guard

Monitors and restricts system commands and file edits in sensitive directories.

1|Updated May 12, 2026
One-click install
npx skills add https://github.com/sobhanashine/nazarato --skill guard-sobhanashine
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: guard
Source: https://github.com/sobhanashine/nazarato/tree/main/.claude/skills/guard
Command: npx skills add https://github.com/sobhanashine/nazarato --skill guard-sobhanashine

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

The Skill solves the problem of accidentally running destructive commands or making unwanted edits in sensitive directories by providing warnings and restrictions.

Core Features & Use Cases

  • Destructive Command Warnings: Warns before executing potentially destructive commands like rm -rf, DROP TABLE, etc.
  • Directory-Scope Edits: Restricts file edits to a specified directory, preventing unauthorized modifications.
  • Use Case: For system administrators or developers working on production systems, this Skill helps prevent costly mistakes and system downtime.

Quick Start

To activate guard mode, run: /guard "path/to/directory"

Frequently Asked Questions about guard

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent accidental destructive commands in production environments?

You can prevent accidental destructive commands in production by using safety scripts that monitor system commands and warn before executing operations like rm -rf or DROP TABLE. This restricts actions to authorized directories.

Can I restrict file edits to a specific directory scope?

Yes, you can restrict file edits to a specific directory scope by activating guard mode with a target path. This confines modifications to the specified directory and prevents unauthorized edits outside of it.

How do Bash scripts check for destructive commands before execution?

Bash scripts intercept system commands and execute pre-flight checks before execution. If a command matches a destructive pattern, the script pauses the process and issues a warning to the system administrator.

What is the best way to add safety warnings for system administration tasks?

The best way to add safety warnings for system administration tasks is to deploy a monitoring layer that evaluates commands against destructive patterns and enforces directory restrictions before execution.

Does this command warning system require any external dependencies?

No, this command warning system does not require any external dependencies. It operates entirely using built-in Bash scripts to enforce directory protection and safety checks.

When should I use directory protection for system edits?

You should use directory protection for system edits when working on production servers or sensitive directories. It helps developers and system administrators prevent costly mistakes and system downtime.