guard

Featured

Use when working near production, sensitive systems, or destructive operations. Activates on-demand safety hooks that block dangerous commands. Supports modes — careful (warn), freeze (guided, keeps writes within scope), unfreeze (remove restrictions). Triggers on /guard, /careful, /freeze, /unfreeze.

Code & Development 206 stars 15 forks Updated yesterday Apache-2.0

Install

View on GitHub

Quality Score: 93/100

Stars 20%
77
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# /guard — Safety Guardrails You have activated safety guardrails. These protect against accidental destructive operations during this session. ## Telemetry preamble Defensive telemetry init. No-op if telemetry is disabled via `NANOSTACK_NO_TELEMETRY=1`, `~/.nanostack/.telemetry-disabled`, or if the helpers are removed. ```bash _P="$HOME/.claude/skills/nanostack/bin/lib/skill-preamble.sh" [ -f "$_P" ] && . "$_P" guard unset _P ``` ## Modes The user may activate a specific mode. If no mode is specified, default to **careful**. ### Careful Mode (default) **What it does:** Warns before any potentially destructive operation but does not block. When you detect a destructive operation, pause and present: ``` ⚠️ GUARD: Potentially destructive operation detected Operation: {{what you're about to do}} Impact: {{what could go wrong}} Reversible: {{yes/no — if yes, how}} Proceed? [y/n] ``` Use `AskUserQuestion` to get explicit confirmation before proceeding. **Destructive operations include:** - `rm -rf`, `rm -r` on directories - `git reset --hard`, `git push --force`, `git branch -D` - `DROP TABLE`, `DELETE FROM` without WHERE, `TRUNCATE` - `kubectl delete`, `docker rm`, `docker system prune` - Writing to production configs or `.env` files - Modifying CI/CD pipeline files - Any operation the `guard/bin/check-dangerous.sh` script flags ### Freeze Mode **What it does:** Asks the agent to keep its file writes (Edit, Write) within a chosen scope for the rest of the session....

Details

Author
garagon
Repository
garagon/nanostack
Created
5 months ago
Last Updated
yesterday
Language
Shell
License
Apache-2.0

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category