Skip to content
Skills Library
Programming · Automation

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".

Repository
claude-code ↗
Licence
MIT
Last repository change
07.10.2026

Assessment and security

85/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content20 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
6
Scripts
0
HTML comments
0
URLs in SKILL.md
1
Deprecation

No signals detected. Repository changed on 07.10.2026, without references to retired models or APIs.

Licence

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

init guardset up guardguard my test filescreate a guard collectionremove guard collectiondelete guard collectionunguard a collectionclear all guard
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

  1. Routing
  2. The sudo rule (the only non-obvious thing)
  3. Quote arguments
  4. CLI reference
Original SKILL.md headings · 32 lines, 242 words
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

RepositoryScoreLicence
This page · florianbuetow/claude-code85MIT
frankxai/agentic-creator-os100Apache-2.0
darioabc/massimo100MIT
onlypfachi/chief100MIT
bdfinst/agentic-dev-team100MIT
houseofmvps/ultraship100MIT
ruya-ai/cozempic100MIT
tranhieutt/software_development_department100MIT
sharpdeveye/maestro100MIT

Database snapshot: 13.11.2026 · package version afa184dd08a5 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

: harmful content, incorrect descriptions or an author’s removal request.

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",…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.