guard

Restrict edits to a chosen directory and warn before destructive commands.

Updated Mar 30, 2026
One-click install
npx skills add https://github.com/agwacom/adeel --skill guard-agwacom
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: guard
Source: https://github.com/agwacom/adeel/tree/main/skills/guard
Command: npx skills add https://github.com/agwacom/adeel --skill guard-agwacom

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Teams frequently risk catastrophic mistakes when running destructive commands or making edits outside of the designated project area. Guard mode provides a safety net by warning about unsafe actions and enforcing a strict edit boundary.

Core Features & Use Cases

  • Destructive command warnings: alerts and prompts before executing rm -rf, DROP TABLE, or other dangerous operations.
  • Edit boundary enforcement: restricts edits to a user-specified directory to prevent accidental changes elsewhere.
  • Seamless integration: pairs with /adeel:careful and /adeel:freeze to deliver combined safety in prod, debugging, and maintenance contexts.

Quick Start

Ask the user which directory should be protected and set the freeze boundary accordingly.

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 during production maintenance?

To prevent destructive commands during production maintenance, guard mode applies Bash and Edit hooks to intercept and warn about dangerous operations like rm -rf or DROP TABLE. It prompts you to confirm any unsafe actions before execution.

What is the best way to restrict file edits to a specific directory?

The best way to restrict file edits to a specific directory is by configuring a strict edit boundary. Guard mode enforces this workspace protection, preventing accidental file modifications outside your designated project area.

How does workspace protection integrate with existing freeze workflows?

Workspace protection integrates with existing freeze workflows by pairing directly with /adeel:careful and /adeel:freeze. This integration delivers combined safety boundaries during sensitive development, debugging, and maintenance tasks.

Can I use edit boundary enforcement for sensitive development tasks?

Yes, you can use edit boundary enforcement for sensitive development tasks. Guard mode applies directory-boundary restrictions and destructive command warnings specifically when safety boundaries are critical.

How do I set a freeze boundary to protect my project directory?

To set a freeze boundary, you specify which directory should be protected during the quick start phase. Guard mode then applies strict edit boundary restrictions to that chosen directory, preventing accidental changes elsewhere.