guard
/guard
Use when the user wants to initialize, build a collection in, remove a collection from, clear, or inspect the `guard` CLI file-permission tool. Triggers on "init guard", "set up guard", "guard my test files", "create a guard collection", "remove guard collection", "delete guard collection", "unguard a collection", "clear all guard", "wipe guard", "reset guard", "guard status", "guard info", "show guard", "what's guarded".
- Author
- florianbuetow ↗
- Repository
- claude-code ↗
- Licence
- MIT
- Last repository change
- 07.10.2026
Assessment and security
- Files in this package
- 6
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 1
No signals detected. Repository changed on 07.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Use when the user wants to initialize, build a collection in, remove a collection from, clear, or inspect the `guard` CLI file-permission tool. Triggers on "init guard", "set up guard", "guard my test files", "create a guard collection", "remove guard collection", "delete guard collection", "unguard a collection", "clear all guard", "wipe guard", "reset guard", "guard status", "guard info", "show guard", "what's guarded".
Triggers from the description
Original author description
Use when the user wants to initialize, build a collection in, remove a collection from, clear, or inspect the `guard` CLI file-permission tool. Triggers on "init guard", "set up guard", "guard my test files", "create a guard collection", "remove guard collection", "delete guard collection", "unguard a collection", "clear all guard", "wipe guard", "reset guard", "guard status", "guard info", "show guard", "what's guarded".
How it works
- Routing
- The sudo rule (the only non-obvious thing)
- Quote arguments
- CLI reference
SKILL.md preview
--- name: guard description: Use when the user wants to initialize, build a collection in, remove a collection from, clear, or inspect the `guard` CLI file-permission tool. Triggers on "init guard", "set up guard", "guard my test files", "create a guard collection", "remove guard collection", "delete guard collection", "unguard a collection", "clear all guard", "wipe guard", "reset guard", "guard status", "guard info", "show guard", "what's guarded". --- # guard Helper for the `guard` CLI (https://github.com/florianbuetow/guard). Guard protects files from accidental edits by setting the immutable flag and root ownership. This skill composes the right `guard` commands for the user. ## Routing | Intent | Reference | |---|---| | Set up guard / `.guardfile` missing | `references/init.md` | | Build a collection from a description or list | `references/create-collection.md` | | Remove a collection | `references/remove-collection.md` | | Restore everything, wipe the registry | `references/clear-all.md` | | Show collections and loose guarded files | `references/info.md` | ## The sudo rule (the only non-obvious thing) The agent runs as the user, without sudo. Operations that **change a file's guard state** require root (clearing the immutable flag is root-only), so the agent **cannot run them** — it prints the exact `sudo guard …` command for the user to run. - **Print `sudo guard …`** for: `enable`, `disable`, `toggle`, `reset`, and `destroy`/`remove`/`clear` when the target files are **currently guarded**. - **Run directly** (no sudo): `init`, `add`, `create`, `update … add`, `show`, `config`, and `destroy`/`remove` when files are **already unguarded**. Check guard state with `guard show` before deciding. A file is guarded when its line starts with `G`. ## Quote arguments Always quote collection names and file paths in any command you run or print: `guard destroy "$name"`, `sudo guard enable collection "$name"`. Paths can contain spaces. ## CLI reference For exact syntax of any subcommand, run `guard help <sub>`. Don't reproduce it here.
Files in this package (6)
- SKILL.md 2 KB
- references/clear-all.md 1 KB
- references/create-collection.md 1 KB
- references/info.md 1 KB
- references/init.md 1 KB
- references/remove-collection.md 1 KB
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · florianbuetow/claude-code | 85 | MIT |
| frankxai/agentic-creator-os | 100 | Apache-2.0 |
| darioabc/massimo | 100 | MIT |
| onlypfachi/chief | 100 | MIT |
| bdfinst/agentic-dev-team | 100 | MIT |
| houseofmvps/ultraship | 100 | MIT |
| ruya-ai/cozempic | 100 | MIT |
| tranhieutt/software_development_department | 100 | MIT |
| sharpdeveye/maestro | 100 | MIT |
Database snapshot: 13.11.2026 · package version afa184dd08a5 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Similar skills
- 91guard-verification
Use when code adds a guard. Prove tests catch its loss. - 100verify-approval-guard
Use when a change touches the approval guard (D27, D31): guard.rs, the batch loop and guard_* functions in actor.rs, guarded / guarded_batch / call_guarded / held_batch in mcp.rs, run_batch in commands.rs, or the rig in tests/support/guard_rig.rs. Runs a property test over… - 100coverage-guard
Use when you want to prevent coverage regressions during development. Activate with /coverage-guard to warn when coverage drops below threshold after code changes. - 100check
Explain what aws-guard would decide for a shell command, or show its effective rules, without running the command. Use when the user asks whether a command would be blocked or need approval, why aws-guard asked, or what the guard covers. - 100guard-authoring
Authors, approves, and maintains project guard profiles (.wipnote/guard-profile.yaml). Use when setting custom quality, completion, or yolo gates, scoping guards per directory in a monorepo, or re-approving a profile after it drifts. - 100mutate
Mutation-test a guard, check, or fix — break it on purpose, one way at a time, and prove a test goes red for each break; any surviving mutant is an untested guard. Works with any language and test runner. Use when the user says "mutation test this", "prove the test catches it",…