using-harness-anchor
Skill13 starsChanged 4 months agoMITView on GitHub
Use whenever working in a project. Establishes state/scope/verification discipline. Auto-loaded at session start. Complements superpowers.
In this repository14 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- anti-hallucination-gatesSkill
- capturing-golden-rulesSkill
- context-budget-disciplineSkill
- cpp-build-systemsSkill
- cpp-formattingSkill
- cpp-sanitizersSkill
- cpp-static-analysisSkill
- docs-lookupSkill
- feature-state-keeperSkill
- init-verificationSkill
- project-indexingSkill
- self-correction-loopSkill
- test-coverage-designSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 2 are distinctive, and 5 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.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 19
Default system prompt — lowest
- Distinctive: line 25
If they exist in the project root, read in this order:
- Very specific: line 33
If none exist, the project is un-anchored.
- Very specific: line 57
State lives on disk, not in chat: Update feature_list.json / progress.md / session-handoff.md.
- Very specific: line 59
Subagents are single-level: Never invoke a subagent from within a subagent — a dispatched worker must not run the subagent-backed gates …
- Very specific: line 60
When stuck, follow
docs-lookup: Never guess at unfamiliar tools/APIs/errors. - Very specific: line 85
When the user has explicitly disabled harness-anchor (CLAUDE.md override)
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Using harness-anchor
You have the harness-anchor runtime layer, companion to superpowers (process methodology): it anchors state persistence, scope boundaries, verification gates, and C/C++ engineering.
<!-- os-windows-start -->Windows session (Git-Bash): plugin scripts already handle path and JSON-engine portability — do not hand-"fix" MSYS paths or shell out to PowerShell. C/C++ caveat: TSan/LSan are unavailable on this platform; read the cpp-sanitizers skill's Windows platform notes before trusting sanitizer coverage.
<!-- os-windows-end -->Priority Order
- User's explicit instructions (CLAUDE.md, direct requests) — highest
- superpowers skills (process)
- harness-anchor skills (state/scope/verification/cpp)
- Default system prompt — lowest
On apparent conflict, prefer superpowers' process and use harness-anchor to anchor state/evidence around it.
Project Navigation (read these BEFORE acting)
If they exist in the project root, read in this order:
AGENTS.mdorCLAUDE.md— operating manualfeature_list.json— active feature + scope + done criteriaPROJECT-TOC.md— file-level index, one line per filegolden-rules.md— project taste / anti-pattern rules to honorsession-handoff.md— what previous session left
If none exist, the project is un-anchored. Suggest the user run /anchor to scaffold.
Sibling Skills (load when triggered)
project-indexing— need to find files; PROJECT-TOC.md before Globfeature-state-keeper— feature work starts/finishes; updates feature_list.json + progress.mdinit-verification— at start of work; runinit.shhealth checkself-correction-loop— after edits that fail lint/build; iterate with evidenceanti-hallucination-gates— before claiming "done"; Default-FAIL evidence contracttest-coverage-design— what to test / is coverage real before "done"; dispatchescoverage-analystcapturing-golden-rules— a mistake recurs / a review comment is really a convention; encode it in golden-rules.mdcontext-budget-discipline— context fills up; SELECT/WRITE/COMPRESS/ISOLATEdocs-lookup— unfamiliar tools/APIs/errors; Context7 → WebSearch → calibrated-uncertainty chain
<!-- cpp-only-start -->cpp-build-systems— CMake/Meson/Make/Bazel projectcpp-static-analysis— clang-tidy / cppcheck / IWYUcpp-formatting— clang-formatcpp-sanitizers— ASan / UBSan / TSan / valgrind
<!-- cpp-only-end -->Hard Rules
- No "done" without evidence — and no "absent" without scope. "pass" requires compile + tests + lint with concrete output paths; lacking evidence → status stays
in-progress. The same rule runs in reverse: a claim that something is missing (tool not installed, no such function) must state what you searched and when —searched <scope>, not found (as of <date>). Express uncertainty: "I am uncertain whether X passes because<reason>." - One active feature at a time unless explicit multi-feature plan. Unrelated mid-feature request → surface the scope-jump and confirm before pivoting.
- State lives on disk, not in chat. Update
feature_list.json/progress.md/session-handoff.md. - PROJECT-TOC.md before Glob.
- Subagents are single-level. Never invoke a subagent from within a subagent — a dispatched worker must not run the subagent-backed gates
/verify·/test-plan·/gc; the parent runs them after workers integrate. - When stuck, follow
docs-lookup. Never guess at unfamiliar tools/APIs/errors.
Interop seams with superpowers (contract in the named skill): parallel/subagent dispatch → feature-state-keeper; worktree setup → init-verification; sensor-finding triage → self-correction-loop (+ receiving-code-review).
Commands — recommend them at the right moment
Commands never auto-trigger (unlike skills). Surfacing the right one — with a one-line why — is your job.
/anchor— project un-anchored (nofeature_list.json): scaffolds the state files.
<!-- cpp-only-start -->/cpp-init— C/C++ project with no.clang-format/.clang-tidy(right after/anchor): drops C/C++ config + sanitizer build.
<!-- cpp-only-end -->/index-project—PROJECT-TOC.mdabsent or stale, or before a broad file search: (re)builds the index./verify— before claiming a feature passes or flipping status topass: build + lint + tests in a fresh-context subagent (--fix= bounded ≤2-cycle auto-fix)./test-plan— after implementing, before markingpass: fresh-context coverage-gap analysis. Complements/verify./gc— after a batch of generated code, before/session-end: fresh-context drift/entropy scan vsgolden-rules.md+ slop heuristics. Read-only (notgit gc).
<!-- cpp-only-start -->/sanitize— after a C/C++ source change, or before merging C/C++: ASan+UBSan run (TSan separately) with an evidence log.
<!-- cpp-only-end -->/status— "where am I / what's the state": read-only snapshot, writes nothing./session-end— at a stopping point: writes handoff, appendsprogress.md, offers over-budget state archival + a commit.
When to NOT use this
- Inside a subagent dispatched for a narrow task (its own prompt governs)
- When the user has explicitly disabled harness-anchor (CLAUDE.md override)
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.

