lv-262/security-agents-bundle/safety-guard

Claude Code and agent skill by lv-262/security-agents-bundle

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Blocks destructive shell operations in autonomous or production sessions. A PreToolUse guard that stops irreversible commands (recursive deletes, disk writes, force pushes, table drops) before they run. Use in any session that runs with reduced supervision.

Install

npx vskill@latest install lv-262/security-agents-bundle/safety-guard

SKILL.md

The same SKILL.md was published earlier as lv-262/security-agents-bundle/safety-guard.

Safety Guard

Some commands have no undo. This guard blocks the irreversible ones before they run, so an autonomous session cannot destroy state on a bad step.

What it blocks

  • Recursive force deletes: rm -rf on broad or absolute paths.
  • Disk and device writes: dd to a device, mkfs, > /dev/.
  • History rewrites on shared branches: git push --force to main or a protected branch.
  • Destructive database statements: DROP TABLE, DROP DATABASE, TRUNCATE outside a sandbox.
  • Mass permission or ownership changes: chmod -R / chown -R on system paths.

Blocking returns a clear message naming the command and why it was stopped, so the agent can choose a safer path or ask for a human.

Wiring it

Register a PreToolUse hook on Bash that matches the patterns above and exits non-zero to block. Sketch:

json
{
"hooks": {
"PreToolUse": [
{ "matcher": "Bash", "hooks": [{ "type": "command", "command": "safety-guard-check" }] }
]
}
}

The check reads the proposed command, tests it against the blocklist, and exits non-zero with a reason to block. Keep the blocklist strict and the message specific.

Tuning

  • Scope by session: enforce hardest in autonomous and production sessions, relax for a sandbox.
  • Prefer an allowlist for the narrow cases you truly want (a known-safe cleanup path) over loosening the whole rule.
  • Pair with deploy-block for release and deploy commands.

Boundaries

  • This guards destructive shell actions. Production deploy and release commands belong to deploy-block.
  • A guard is a floor, not a substitute for review. It stops the obvious catastrophes; it does not make an unsupervised session safe on its own.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/lv-262/security-agents-bundle/safety-guard/badge)](https://verified-skill.com/skills/lv-262/security-agents-bundle/safety-guard)

Something wrong with this skill or its page? Tell us.