๐Ÿ›ก๏ธ
AutomationShell

Guard

by garagon

Guard is an Automation skill for Claude Code, published by garagon in nanostack.

204 stars15 forkson garagon/nanostackAdded 2026/09/05Repository updated 2026/06/15
ai-agentsai-codingclaude-codecode-reviewcodexdeveloper-toolsengineering-workflowgstackharnessharness-engineeringsecurity-audit
Install in seconds
Install Guard
Copy Guard into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/garagon/nanostack/tree/main/guard ~/.claude/skills/guard

Requires Node.js. Downloads this skill only โ€” not the rest of the repository โ€” into your Claude Code skills folder.

Without Node.js

git clone https://github.com/garagon/nanostack.git

Clones the whole repository, then copy the skillโ€™s own directory into your skills folder yourself.

In this catalog

Source file
guard/SKILL.md in garagon/nanostack
Installs to
~/.claude/skills/guard
Collection
One of 18 skills cataloged from this repository
Category
Automation โ€” 1956 skills

What Guard does

Guard adds safety checks for destructive commands near production or sensitive systems. It can warn, freeze file writes to a scoped set of paths, or unfreeze back to careful mode.

Guard is cataloged under Automation on DirSkills. Guard comes from a repository tagged ai-agents, ai-coding, claude-code, code-review and codex.

Documentation

README

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

_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:

This is the opening of the README. Read the full README on GitHub.

Commands Guard provides

Slash commands named in this skillโ€™s SKILL.md, listed in the order they first appear.

  • /guard
  • /freeze
  • /unfreeze

Frequently asked about Guard

  • What else does garagon publish alongside Guard?

    Guard is one of 18 skills that DirSkills catalogs from garagon/nanostack, the repository it ships in. Its siblings there include Compound, Conductor and Feature. Each one is a separate skill with its own page in this directory, installs the same way Guard does, and is maintained by garagon in that same repository. The rest of the collection is listed on the garagon/nanostack page.

  • How does Guard compare to other Automation skills?

    Guard ranks #1739 by stars among the 1956 Automation skills in this catalog. The most-starred ones next to it are Autonomous Loops, Autonomous Agent Harness and Automation Audit Ops. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Guard against them. Open each page to compare what they document and how they install.

More from garagon/nanostack

Guard is one of 18 skills cataloged on DirSkills from garagon/nanostack.

See all 18 skills โ†’