Harden
Install the always-on safety hooks (destructive-command-guard + tenant-scope-guard) into this project. Use when setting up a multi-tenant or production codebase for agent-authored changes, or when the user asks to "harden", "add safety hooks", or "guard prod".From its SKILL.md
npx -y skills add amineorion/claude-code-safety-skills --skill hardenAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.8 KB, 359 tokens by cl100k_base, as published. Nobody here has run it
Harden this project
Install the two deterministic guards that block irreversible damage. These run as hooks, not skills, because they must fire on every action regardless of what is loaded. A prompt is a request; a hook is a control.
Steps
-
Run the installer to copy the hook scripts into
.claude/hooks/:bash ${CLAUDE_SKILL_DIR}/scripts/install.sh -
Merge the printed snippet into
.claude/settings.jsonunder"hooks". If ahooksblock already exists, merge the arrays — do not overwrite. -
Tell the user what got wired, and remind them to tune the blocklists:
destructive-command-guard.sh— review the SQL and prod-host patterns for their stack.tenant-scope-guard.sh— setTENANT_COLif their tenant column isn't one oftenant_id|org_id|account_id|workspace_id.
What each guard does
- destructive-command-guard (PreToolUse/Bash): refuses
DROP/TRUNCATE,DELETE/UPDATEwithoutWHERE, commands aimed at a production host, force-push to protected branches,rm -rfon absolute paths,curl | sh, andsudo. - tenant-scope-guard (PostToolUse/Edit): warns when a freshly edited data-access
line has no visible tenant filter — the missed
WHERE tenant_idthat becomes a leak.
Over-blocking is worse than under-blocking: if a guard is too aggressive the agent learns to route around it. Keep the lists short and high-signal.
What ships with it: 3 files
7.1 KB alongside SKILL.md, 3 of them executable
scripts/
- destructive-command-guard.shruns3.7 KB
- install.shruns1.3 KB
- tenant-scope-guard.shruns2.1 KB