go-strict
Skill2 starsChanged 35 days agoApache-2.0View on GitHub
Auto-iterating quality loop , verify → critique → dead → simplify → re-verify until clean. USE WHEN you implemented a non-trivial feature (>50 LoC), when Stop hook reason says 'audit needed' or 'invoke /go-strict', when user types /go-strict, or when /go composite isn't strict enough. Loops max 5 iterations, each tightens code further. The hook is fully autonomous , invokes itself if Stop detects unfinished work. NOT for tiny fixes (use /verify) or quick ships (use /go).
1 other project uses a version of this.
Adopted by
Most recently taken up by
- 0xMassi/claude-skillstheir own version, first seen Apr 28, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- 0xMassi/claude-skills★ 7same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository41 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- 12-principles-of-animationSkill
- aip-namingSkill
- architectSkill
- babysit-abortSkill
- babysit-prSkill
- babysit-tickSkill
- baseline-uiSkill
- commit-pushSkill
- complex-refactorSkill
- critiqueSkill
- deadSkill
- devstackSkill
- go-backendSkill
- goSkill
- greptileSkill
- impl-checkSkill
- inspect-dbSkill
- inspect-deploySkill
- inspect-runtimeSkill
- interaction-designSkill
- issue-planSkill
- lessonsSkill
- mergeSkill
- new-resourceSkill
- plan-featureSkill
- preflightSkill
- pr-reviewSkill
- review-fixSkill
- reviewSkill
- shipSkill
- simplifySkill
- task-execution-protocolSkill
- teamSkill
- tui-component-browserSkill
- tui-design-labSkill
- tui-designSkill
- verifySkill
- wrap-upSkill
- write-docsSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 22
Stop hook's prompt-eval said "invoke /go-strict to audit your N LoC of new code"
- Distinctive: line 82
Run more than 5 iterations (hard cap to prevent infinite loops)
- Very specific: line 86
Stop hook prompt-eval , invokes /go-strict when diff is substantive
- Very specific: line 104
Stop hook prompt-eval reads last-check.md + your "I'm done" message.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/go-strict , Auto-iterating quality loop (the autonomy centerpiece)
This is what /go becomes when the diff is substantive (>50 LoC). It loops automatically , you don't drive it.
The skill declares its own Stop hook so the loop self-terminates when .claude/last-check.md shows no Failures + no Warnings.
When to invoke
- Stop hook's prompt-eval said "invoke /go-strict to audit your N LoC of new code"
- You implemented a feature (>50 LoC) and need to lock down quality before shipping
- User typed
/go-strictor "lock this down" - Compound
/goisn't strict enough , you want the auto-iteration
Do not invoke for:
- Tiny fixes (<30 LoC) , use
/verify+/ship - Quick refactors with no new behavior , use
/go - Doc-only changes , use
/verifyfor the typecheck only
The loop
Initialize iteration state:
# Write iteration counter
mkdir -p .claude
echo '{"iteration": 0, "started_at": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'"}' > .claude/go-strict-state.jsonThen loop (max 5 iterations):
Iteration N , sequence
Step 1: /verify , detect failing lint/tests on changed surfaces. Fix any failures before proceeding.
Step 2: /critique , forked Explore subagent reviews own diff across 4 dimensions (correctness, simplicity, Mazarbul-specifics, test coverage). Read the punch list; address MUST FIX items.
Step 3: /dead , run reachability + knip. Apply obvious dead-code removals.
Step 4: /simplify , 4-dimension complexity audit (reuse, dead code, premature abstractions, oversize). Apply obvious wins.
Step 5: Re-run /verify , confirm changes from steps 2-4 didn't break anything.
Step 6: Increment iteration counter, check Stop hook for convergence.
ITER=$(python3 -c "import json; d=json.load(open('.claude/go-strict-state.json')); d['iteration']+=1; json.dump(d, open('.claude/go-strict-state.json','w'))")The skill-scoped Stop hook will:
- Return
ok: truewhen.claude/last-check.mdhas empty Failures + Warnings → exit loop - Return
ok: truewhen iteration >= 5 → exit loop with remaining issues - Return
ok: falseotherwise → loop continues
Exit conditions
| Condition | Result |
| Failures + Warnings empty | ✓ Converged , surface to user, suggest /preflight + /ship |
| Iteration cap (5) hit | ✗ Stuck , list remaining issues, ask user for guidance |
| Critical compliance issue (event-log invariants, scope boundaries, encryption) | STOP loop, surface immediately to user , do not auto-fix |
What this skill deliberately does NOT do
- Apply judgment-call simplifications without surfacing (e.g., merging two near-duplicate functions that diverge on one branch)
- Modify generated code (
gen/,web/src/gen/) - Touch audit log code, migration history, or
internal/auth/permission.goautomatically (compliance , needs human eyes) - Force-push or rewrite git history
- Open a PR (that's
/ship, separate, deliberate) - Run more than 5 iterations (hard cap to prevent infinite loops)
Pairs well with
- Stop hook prompt-eval , invokes
/go-strictwhen diff is substantive /preflight, call after/go-strictconverges, before/ship/ship, opens PR once preflight is green/loop "every 30m, /go-strict on this branch", overnight quality maintenance
Gotchas
- The skill-scoped Stop hook overrides the project Stop hook for this skill's lifecycle. Once the loop converges, control returns to the project Stop hook for normal end-of-task evaluation.
- Iteration state lives in
.claude/go-strict-state.json, if you abort mid-loop, delete this file before re-running, or the iteration counter persists. /critiqueruns in a forked context , it doesn't see this conversation. Pass diff info explicitly in the invocation prompt.- Don't apply ALL findings blindly.
/simplifyand/critiquesurface judgment calls. The loop applies obvious wins (>3 LoC each, no behavior change). For borderline calls, the skill should pause and ask the user. - Compliance-protected files (
internal/auth/permission.go,migrations/*.sql, anything touchingaudit_eventorevent_log) are auto-flagged but never auto-modified. The loop will report "needs human review" and continue with other items. - If iteration count hits 5 with persistent issues, the loop exits and surfaces "stuck" state. This usually means there's a design issue, not a quality issue , escalate to user.
How autonomy works end-to-end (the user's actual ask)
- You implement a 120-LoC feature.
- You declare done. Stop hook deterministic check runs, writes
.claude/last-check.md. - Stop hook prompt-eval reads
last-check.md+ your "I'm done" message. Returnsok: false, reason: "Substantive diff (120 LoC) without cleanup pass. Run /go-strict to auto-iterate verify/critique/dead/simplify until clean." - You read the reason in your context (injected by hooks docs spec). You invoke
/go-strict. /go-strictloops automatically. After iteration 3,.claude/last-check.mdis clean.- The skill-scoped Stop hook returns
ok: true. Loop exits. - You declare done again. Project Stop hook re-evaluates. This time prompt-eval sees clean state, returns
ok: true. You actually stop.
The user typed one prompt. Everything else was hooks → reasons → skill invocations → fixes → re-evals.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

