guard
Skill123 starsChanged 8 months agoMITView on GitHub
Safety guardrails — blocks destructive commands (rm -rf, DROP TABLE, force-push, git reset --hard) and optionally restricts file edits to a specific directory. Use when working on critical systems or when you want extra protection.
- Deletes or force-pushes
- Commits and pushes
35 other projects use a version of this.
Adopted by
Most recently taken up by
- garrytan/gstacktheir own version, first seen Oct 7, 2026
- HanksChen0110/skillstheir own version, first seen Oct 3, 2026
- leishifu666/skillstheir own version, 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/skillstheir own version, first seen Aug 14, 2026
Used with
Projects with it also use unfreeze, open-gstack-browser and 10 more.
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.
Kit4SomeSkillunfreeze
Also in 15 projects that use this
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
ayudaySkillsetup-deploy
Configure deployment settings for /land-and-deploy. Detects your deploy platform (Fly.io, Render, Vercel, Netlify, Heroku, GitHub Actions, custom), production URL, health check endpoints, and deploy status commands. Writes the configuration to CLAUDE.md so all future deploys are automatic. Use when: "setup deploy", "configure deployment", "set up land-and-deploy", "how do I deploy with gstack", "add deploy config".
Also in 11 projects that use this
seek888Skilldesign-html
Design finalization: generates production-quality Pretext-native HTML/CSS. Works with approved mockups from /design-shotgun, CEO plans from /plan-ceo-review, design review context from /plan-design-review, or from scratch with a user description. Text actually reflows, heights are computed, layouts are dynamic. 30KB overhead, zero deps. Smart API routing: picks the right Pretext patterns for each design type. Use when: "finalize this design", "turn this into HTML", "build me a page", "implement this design", or after any planning skill. Proactively suggest when user has approved a design or has a plan ready. (gstack) Voice triggers (speech-to-text aliases): "build the design", "code the mockup", "make it real".
Also in 7 projects that use this
ayudaySkillcso
Chief Security Officer mode. Performs OWASP Top 10 audit, STRIDE threat modeling, attack surface analysis, auth flow verification, secret detection, dependency CVE scanning, supply chain risk assessment, and data classification review. Use when: "security audit", "threat model", "pentest review", "OWASP", "CSO review".
Also in 10 projects that use this
AICreator-WindSkillfreeze
文件编辑锁定工具。限制文件编辑范围。
Also in 15 projects that use this
- +1 more from seek888
- +1 more from ayuday
Other versions35 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 35
- garrytan/gstack★ 143ksame name
- autonomous-ai/Physical-AI-Operating-System★ 381same name
- autonomous-ai/autonomous-os★ 378same name
- garagon/nanostack★ 207same name
- no-session/pstack★ 122same name
- mr-daedalium/ostack-saas★ 114same name
- tranhieutt/software_development_department★ 72same name
- fagemx/gstack-game★ 70same name
- AICreator-Wind/gstack-openclaw-skills★ 44same name
- lucas-flatwhite/gstack-ko★ 44same name
25 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.
- CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- a11ySkill
- architectureSkill
- brainstormingSkill
- canarySkill
- clone-patternsSkill
- code-reviewSkill
- competeSkill
- costSkill
- demoSkill
- deploySkill
- dispatching-parallel-agentsSkill
- evalsSkill
- executing-plansSkill
- finishing-a-development-branchSkill
- frontend-designSkill
- growSkill
- index-fixSkill
- investigateSkill
- launchSkill
- learnSkill
- onboardSkill
- pentestSkill
- perf-auditSkill
- receiving-code-reviewSkill
- releaseSkill
- requesting-code-reviewSkill
- rescueSkill
- retroSkill
- revise-claude-mdSkill
- security-auditSkill
- seo-auditSkill
- seo-strategySkill
- ship-gateSkill
- sprintSkill
- staying-currentSkill
- subagent-driven-developmentSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- using-git-worktreesSkill
- using-ultrashipSkill
- verification-before-completionSkill
- visual-diffSkill
- writing-plansSkill
- writing-skillsSkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 3 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 28 edited versions we read keep these.
3
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 29
When the user specifies a directory to freeze to, Guard blocks edits outside that directory:
- Distinctive: line 65
If Guard blocks something you actually need to run, explicitly confirm:
- Distinctive: line 82
No silent failures: Always explain what was blocked and why.
“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
Guard — Safety Guardrails
Guard protects you from accidental destructive actions by intercepting dangerous commands before they execute. It uses Claude Code's PreToolUse hooks to catch risky patterns in real-time.
Announce at start: "I'm activating Guard — destructive commands will be blocked until you explicitly approve them."
What Guard Blocks
Destructive Bash Commands
rm -rf/rm -ron important directoriesDROP TABLE/DROP DATABASE/TRUNCATEgit push --force/git push -f(to main/master)git reset --hardgit checkout ./git restore .(discard all changes)git clean -f/git clean -fdgit branch -D(force delete branch)kubectl delete(Kubernetes resource deletion)docker system prune/docker volume rm:> file/> file(truncate files)
File Edit Restrictions (Optional)
When the user specifies a directory to freeze to, Guard blocks edits outside that directory:
User: "Only edit files in src/api/"
→ Guard blocks Edit/Write calls to any path not under src/api/How It Works
Guard installs PreToolUse hooks that run BEFORE Claude executes Bash, Edit, or Write tools:
- Bash hook — Scans the command string for destructive patterns. If matched, outputs a warning and blocks execution.
- Edit/Write hook — If a freeze directory is set, checks that the target file is within the allowed path.
The hooks are defined in this skill's configuration and activate when the skill is loaded.
Usage
Activate full protection
Just invoke /guard — destructive command blocking is immediate.
Set a directory freeze
Tell Claude which directory to restrict edits to:
"Only edit files in packages/api/"
"Freeze edits to src/components/"Guard will write the freeze path to .ultraship/guard-freeze.txt and enforce it on all Edit/Write operations.
Remove freeze
"Unfreeze" or "Remove edit restrictions"Override a blocked command
If Guard blocks something you actually need to run, explicitly confirm:
"Yes, I want to force-push to main"
"Confirmed: drop the users table"Guard will allow explicitly confirmed destructive actions.
Integration with Other Skills
/investigate— Guard pairs well with investigation. No accidental fixes while diagnosing./deploy— Guard prevents accidental force-pushes during deployment./rescue— During incidents, Guard ensures rollback commands are deliberate.
Key Principles
- Block by default, allow on confirmation. Better to stop and ask than to destroy.
- No silent failures. Always explain what was blocked and why.
- The user is sovereign. Explicit confirmation overrides any guard.
- Minimal friction for safe operations. Guard only triggers on genuinely dangerous patterns.
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.

