agentsclimarketplace

Harden

Skill amineorion/claude-code-safety-skills/skills/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

Install
npx -y skills add amineorion/claude-code-safety-skills --skill harden

Assembled 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

  1. Run the installer to copy the hook scripts into .claude/hooks/:

    bash ${CLAUDE_SKILL_DIR}/scripts/install.sh
    
  2. Merge the printed snippet into .claude/settings.json under "hooks". If a hooks block already exists, merge the arrays — do not overwrite.

  3. 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 — set TENANT_COL if their tenant column isn't one of tenant_id|org_id|account_id|workspace_id.

What each guard does

  • destructive-command-guard (PreToolUse/Bash): refuses DROP/TRUNCATE, DELETE/UPDATE without WHERE, commands aimed at a production host, force-push to protected branches, rm -rf on absolute paths, curl | sh, and sudo.
  • tenant-scope-guard (PostToolUse/Edit): warns when a freshly edited data-access line has no visible tenant filter — the missed WHERE tenant_id that 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

Keep looking

Skills are one crate of 326,851. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.