guard
Skill1 starsChanged 7 months agoMITView on GitHub
Full safety mode: destructive command warnings + directory-scoped edits. Combines $careful (warns before rm -rf, DROP TABLE, force-push, etc.) with $freeze (blocks edits outside a specified directory). Use for maximum safety when touching prod or debugging live systems. Use when asked to "guard mode", "full safety", "lock it down", or "maximum safety". (cgstack)
- Deletes or force-pushes
35 other projects use a version of this, 15 of them edited.
Adopted by
Most recently taken up by
- garrytan/gstackedited, first seen Oct 7, 2026
- HanksChen0110/skillsedited, first seen Oct 3, 2026
- leishifu666/skillsedited, first seen Sep 29, 2026
- rcelebrone/DotAgentstheir own version, first seen Sep 23, 2026
- rishabhsisodiya/stop-guessingtheir own version, first seen Sep 22, 2026
- Samin12/skillsedited, first seen Aug 14, 2026
Used with
Projects with it also use open-gstack-browser and connect-chrome.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
seek888Skillopen-gstack-browser
Launch GStack Browser — AI-controlled Chromium with the sidebar extension baked in. Opens a visible browser window where you can watch every action in real time. The sidebar shows a live activity feed and chat. Anti-bot stealth built in. Use when asked to "open gstack browser", "launch browser", "connect chrome", "open chrome", "real browser", "launch chrome", "side panel", or "control my browser". Voice triggers (speech-to-text aliases): "show me the browser".
Also in 5 projects that use this
no-sessionSkillconnect-chrome
Launch real Chrome controlled by pstack with the Side Panel extension auto-loaded. One command: connects Claude to a visible Chrome window where you can watch every action in real time. The extension shows a live activity feed in the Side Panel. Use when asked to "connect chrome", "open chrome", "real browser", "launch chrome", "side panel", or "control my browser".
Also in 4 projects that use this
Other versions35 projects use a version of this.
Word for word · 0
None found.
Edited · 15
- garrytan/gstack★ 143k55% same
- no-session/pstack★ 12291% same
- mr-daedalium/ostack-saas★ 11493% same
- lucas-flatwhite/gstack-ko★ 4482% same
- CarbeneAI/Forge★ 991% same
- Samin12/skills★ 975% same
- Kit4Some/Oh-my-ClaudeClaw★ 411% same
- GTMify/claude-skills-starter★ 288% same
- HanksChen0110/skills★ 291% same
- leishifu666/skills★ 161% same
5 more not listed
Wrote their own version · 20
- autonomous-ai/Physical-AI-Operating-System★ 381same name
- autonomous-ai/autonomous-os★ 378same name
- garagon/nanostack★ 207same name
- Houseofmvps/ultraship★ 123same name
- tranhieutt/software_development_department★ 72same name
- fagemx/gstack-game★ 70same name
- AICreator-Wind/gstack-openclaw-skills★ 44same name
- vshrinath/virtual-product-factory★ 16same name
- YehudaFrankel/clankbrain★ 16same name
- rcelebrone/DotAgents★ 15same name
10 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository46 other files it gives its agents.
- AGENTS.mdAGENTS.md
- cgstack/llms.txtllms.txt
- autoplanSkill
- benchmarkSkill
- browseSkill
- canarySkill
- carefulSkill
- cgstack-upgradeSkill
- context-restoreSkill
- context-saveSkill
- csoSkill
- design-consultationSkill
- design-htmlSkill
- design-reviewSkill
- design-shotgunSkill
- devex-reviewSkill
- document-generateSkill
- document-releaseSkill
- freezeSkill
- healthSkill
- investigateSkill
- land-and-deploySkill
- landing-reportSkill
- learnSkill
- make-pdfSkill
- office-hoursSkill
- open-cgstack-browserSkill
- pair-agentSkill
- plan-ceo-reviewSkill
- plan-design-reviewSkill
- plan-devex-reviewSkill
- plan-eng-reviewSkill
- plan-tuneSkill
- qa-onlySkill
- qaSkill
- retroSkill
- reviewSkill
- scrapeSkill
- setup-browser-cookiesSkill
- setup-deploySkill
- setup-gbrainSkill
- shipSkill
- skillifySkill
- cgstackSkill
- sync-gbrainSkill
- unfreezeSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 28 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 55
Ask the user which directory to restrict edits to.
- Distinctive: line 68
Ensure trailing slash and save to the freeze state file:
“Common” is measured: kept by at least 6 in 10 of the 28 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
<!-- AUTO-GENERATED from SKILL.md.tmpl — do not edit directly --><!-- Regenerate: bun run gen:skill-docs -->$guard — Full Safety Mode
Activates both destructive command warnings and directory-scoped edit restrictions.
This is the combination of $careful + $freeze in a single command.
Dependency note: This skill references hook scripts from the sibling $careful
and $freeze skill directories. Both must be installed (they are installed together
by the cgstack setup script).
mkdir -p ~/.cgstack/analytics
echo '{"skill":"guard","ts":"'$(date -u +%Y-%m-%dT%H:%M:%SZ)'","repo":"'$(basename "$(git rev-parse --show-toplevel 2>/dev/null)" 2>/dev/null || echo "unknown")'"}' >> ~/.cgstack/analytics/skill-usage.jsonl 2>/dev/null || trueSetup
Ask the user which directory to restrict edits to. Use AskUserQuestion:
- Question: "Guard mode: which directory should edits be restricted to? Destructive command warnings are always on. Files outside the chosen path will be blocked from editing."
- Text input (not multiple choice) — the user types a path.
Once the user provides a directory path:
- Resolve it to an absolute path:
FREEZE_DIR=$(cd "<user-provided-path>" 2>/dev/null && pwd)
echo "$FREEZE_DIR"- Ensure trailing slash and save to the freeze state file:
FREEZE_DIR="${FREEZE_DIR%/}/"
eval "$(~/.codex/skills/cgstack/bin/cgstack-paths)"
STATE_DIR="$CGSTACK_STATE_ROOT"
mkdir -p "$STATE_DIR"
echo "$FREEZE_DIR" > "$STATE_DIR/freeze-dir.txt"
echo "Freeze boundary set: $FREEZE_DIR"Tell the user:
- "Guard mode active. Two protections are now running:"
- "1. Destructive command warnings — rm -rf, DROP TABLE, force-push, etc. will warn before executing (you can override)"
- "2. Edit boundary — file edits restricted to
<path>/. Edits outside this directory are blocked." - "To remove the edit boundary, run
$unfreeze. To deactivate everything, end the session."
What's protected
See $careful for the full list of destructive command patterns and safe exceptions.
See $freeze for how edit boundary enforcement works.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

