What problem does it solve?
Guard mode prevents accidental high-impact mistakes by warning before running destructive operations and blocking file edits outside a chosen directory, which reduces risk during production changes and live debugging.
Core Features & Use Cases
- Destructive command warnings (careful layer): Warns before commands like rm -rf, dangerous SQL patterns, and risky git operations to help you catch harmful actions early.
- Directory-scoped edit boundary (freeze layer): Restricts “Edit” and “Write” actions so modifications only occur within a directory you select.
- Combined “maximum safety” workflow (guard layer): Uses both protections together to enforce a consistent safety posture when you need guardrails, not just reminders.
Quick Start
Ask the skill which directory should be allowed for edits by responding to the prompt with the path you want to restrict modifications to.