safety-guard
Guard against destructive operations with three modes: Careful intercepts dangerous commands (rm -rf, git push --force, DROP TABLE) for confirmation, Freeze locks writes to one directory, and Guard combines both. Advisory: the agent applies these rules itself; no hook ships with it. Use when working on production systems, running agents autonomously, restricting edits to a directory, or during migrations, deploys, and data changes.
Target: Software development & testing. Automatically collected · unverified.
Excerpt from the author’s documentation
Extracted from a fixed version of SKILL.md in its original language. This is the author’s documentation; installation, compatibility and runtime results have not been verified by this site.
Read the original English text
Topics in the source
- Safety Guard — Prevent Destructive Operations
- When to Use
- How It Works
- Mode 1: Careful Mode
- Mode 2: Freeze Mode
- Mode 3: Guard Mode (Careful + Freeze combined)
- Unlock
- Enforcement
When working on production systems When agents are running autonomously (full-auto mode) When you want to restrict edits to a specific directory During sensitive operations (migrations, deploys, data changes) Three modes of protection. They are instructions the agent follows, not enforced blocks (see Enforcement). Before it runs a destructive command, the agent stops and warns: When detected: shows what the command does, asks for confirmation, suggests safer alternative. Locks file edits to a specific directory tree, for example: "freeze edits to src/components/". The agent does not Write/Edit outside src/components/, and explains why when a change would need it. Useful when you want an agent to focus on one area without touching unrelated code. Both protections active, for example: "guard mode, write only to src/api/, read anything". The agent can read anything but only writes to src/api/, and asks before any destructive command. Tell the agent to stop applying the rules. This skill is advisory. ECC ships no /safety-guard command and no hook for it, so nothing blocks a tool call that breaks these rules. For blocking that does not depend on the agent, use Claude Code permission den
This is an excerpt. Refer to the complete source and its current requirements.
- Source repository
- affaan-m/ECC
- Source file
- skills/safety-guard/SKILL.md
- Fixed revision
- d2ef2680594f9a17526a6e1a2e18b3d242c5d17b
Sources and evidence
This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.
Author: affaan-m/ECC · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-09T16:01:00.486Z.
Categories are inferred from names, descriptions and paths. They do not establish compatibility.
License and attribution
MIT. Third-party content and copyright remain with their authors. Refer to the original license and terms.
Original license ↗Synchronization, copying and user-reported success do not mark a resource as runtime-tested.
Limitations and notes
- Collecting metadata does not mean this site has installed, adapted, runtime-tested or security-reviewed the resource.