houseofmvps/ultraship/guard
- community
Checking that the SKILL.md file is still in the repository.
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.
Install
npx vskill@latest install houseofmvps/ultraship/guardSKILL.md
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:
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:
Guard will write the freeze path to .ultraship/guard-freeze.txt and enforce it on all Edit/Write operations.
Remove freeze
Override a blocked command
If Guard blocks something you actually need to run, explicitly confirm:
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.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/guard/SKILL.md
Popularity
- Repository stars
- 61
- Repository forks
- 7
- Repository npm downloads, 7 days
- 72
- 7-day trend score
- 36
Stars and forks are for the whole GitHub repository, not this skill alone. Downloads are for the repository's npm package. Refreshed 30 Apr 2026, 5 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/houseofmvps/ultraship/guard)