Safety rails for
Claude Code
Stop the destructive command, keep secrets off disk, keep dependencies current, and know the security risk of a pull request before you merge it.
Claude
> /plugin marketplace add Pierry/harness
Codex
$ curl -fsSLO …/v6.2.0/install.sh && sh install.sh
What you gain
Seven problems that stop happening
-
01 · PR risk
Know the risk before you merge
Five plain lines: the problem, what could happen, the NIST control behind it and the fix.
Rare · Low · Medium · High · Critical · No-go
$ /harness:pr-risk 142 Risk: Critical. Not acceptable to merge. Problem: GET /invoices/:id (app.py:23) returns any invoice to any logged-in user. What could happen: anyone who signs up can read every customer's invoices. NIST: SP 800-53 AC-3 "Access Enforcement". Fix: filter by the logged-in user; that brings it to Low.
-
02 · Guard
Mistakes stop before they run
Force push, deleting home, piping a download into a shell and leaked keys are denied.
$ git push --force origin main ✗ blocked: force push to main $ curl -s get.sh | sh ✗ blocked: curl piped to shell
-
03 · Safe updates
Dependencies stay current
Patches merge after green CI and a 3-day cooldown. Majors wait for you.
react 19.2.1 → 19.2.3 patch released 3 days ago, CI passed ✓ merged automatically next 15 → 16 major: you decide
-
04 · Pinned skills
Skills can't change under you
Security skills locked to a reviewed commit. Upstream changes come as a PR.
security-audit @ c1c8a8c pinned upstream pushed 9f3e2b1 PR opened, skill-audit ran ✓ updates only after you approve
-
05 · Security CI
Every PR scanned
Secrets, code, workflows and packages, by four open-source scanners.
trufflehog secrets passed semgrep code passed zizmor workflows passed osv-scanner packages passed ✓ 4 of 4 passed
-
06 · Verified reviews
Only real findings
Attacker input traced to the sink. What can't be traced is dropped.
input req.params.id via getOrder(id) sink db.find(id) ✗ IDOR: owner never checked XSS guess: no path, dropped
-
07 · Code graph
Know what a change breaks
Callers and tests from your diff, so you run only the tests that matter.
$ graph.py impact --diff main changed charge() callers checkout(), refund() tests test_checkout ✓ 1 test to run