harness-audit
Skill0 starsChanged 6 months agoMITView on GitHub
Scans a project for agent-harness gaps and outputs a prioritised list with paste-ready config snippets to close them. Covers hooks, CI, pre-commit, instruction file quality, init.sh, and session discipline. Use when starting a new project, auditing an existing harness, writing or reviewing CLAUDE.md/AGENTS.md, setting up CI gates, beginning multi-day autonomous work, or when user says "set up harness", "health check", "agent discipline", "project setup", "pre-commit hooks", "stop hook", "verification gap".
- Installs packages
9 other projects use a version of this.
Adopted by
Most recently taken up by
- venhdev/skillstheir own version, first seen Sep 28, 2026
- fabianmartinelli-fm/harness-audittheir own version, first seen Sep 20, 2026
- fernandopetry/keelsontheir own version, first seen Aug 16, 2026
- jh941213/my-cc-harnesstheir own version, first seen Jul 27, 2026
- DaeSeokSong/oh-my-ouroborostheir own version, first seen Jul 23, 2026
- solanodz/harness-engineering-skillstheir own version, first seen Jun 16, 2026
Other versions9 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 9
- AnastasiyaW/codex-claude-code-config★ 153same name
- jh941213/my-cc-harness★ 126same name
- fabianmartinelli-fm/harness-audit★ 7same name
- fernandopetry/keelson★ 4same name
- solanodz/harness-engineering-skills★ 4same name
- sattva2020/skills★ 2same name
- DaeSeokSong/oh-my-ouroboros★ 1same name
- TheKREATORS/my-claude-skills★ 1same name
- venhdev/skills★ 1same 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 repository13 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- context-handoverSkill
- harness-guideSkill
- harness-issuesSkill
- harness-prdSkill
- harness-triageSkill
- harness-verify-before-moveSkill
- session-startSkill
- setup-harness-skillsSkill
- fullerSkill
- skill-cleanupSkill
- write-harness-skillSkill
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 6 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 28
Check each item. List unsatisfied items as gaps in priority order.
- Distinctive: line 31
Before analyzing gaps, state: "run lint + build to verify the baseline, check git status, read the relevant spec, Initial Interview with …
- Distinctive: line 41
If neither → Gap: No agent instruction file.
- Distinctive: line 42
If present and >200 lines → Gap: Instruction file exceeds 200-line ceiling.
- Distinctive: line 48
Check for any of these signals (one positive signal = gap closed):
- Very specific: line 70
All present → "Already in place" — do NOT suggest /setup-harness-skills
- Very specific: line 79
Check ~/.claude/skills/ (or equivalent platform path) for these collections:
- Very specific: line 91
Add after gaps: ".kiro/hooks/ with agentTurnEnd replaces Stop hook.
- Distinctive: line 132
Only include the "Recommended skill collections" section if at least one collection was absent (check #9).
“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Harness Engineering — Gap Analysis
You are a gap analysis tool. Never create files, run git, or say "Harness is set up" or "Done".
Reference files
Load on demand — do not load all upfront:
references/detect.md— load at the start of Phase 1 (runtime detection rules)references/scenarios.md— load if the user describes a specific scenario (brownfield, monorepo, multi-day, Kiro, Gemini)references/universal-snippets.md— load when generating a fix snippet for hooks, CI, init.sh, or CLAUDE.mdreferences/node-snippets.md— load instead of (or after) universal-snippets when a Node.js or TypeScript project is detectedreferences/python-snippets.md— load instead of (or after) universal-snippets when a Python project is detectedreferences/kiro-snippets.md— load when.kiro/is detected or the user mentions Kiroreferences/recommended-skills.md— load when outputting the "Recommended skill collections" section
Detection Checklist
Check each item. List unsatisfied items as gaps in priority order.
0. Pre-task checklist (for tasks >30 min)
Before analyzing gaps, state: "run lint + build to verify the baseline, check git status, read the relevant spec, Initial Interview with Sprint Contract."
1. Stop hook
.claude/settings.json absent or no Stop entry? → Gap: Missing Stop hook. (Highest priority — nothing precedes it.)
2. PostToolUse hook
.claude/settings.json absent or no PostToolUse entry? → Gap: Missing PostToolUse hook. Separate from Stop hook.
3. Instruction file
CLAUDE.md or AGENTS.md present? (Fully equivalent — one is sufficient.)
- If neither → Gap: No agent instruction file.
- If present and >200 lines → Gap: Instruction file exceeds 200-line ceiling.
- If AGENTS.md is present (user mentions AGENTS.md or asks about CLAUDE.md): You MUST state: "AGENTS.md is the instruction file — it is equivalent to CLAUDE.md, you do not need a CLAUDE.md." Then comment on its quality (line count vs 200 ceiling). Then identify OTHER gaps.
4. Memory system
Check for any of these signals (one positive signal = gap closed):
MEMORY.mdpresent in project root or~/.claude/projects/*/memory/MEMORY.md(file-based memory — zero dependencies)memory/or.memory/directory in project rootmem0inrequirements.txt,package.json, orpyproject.toml(most popular agent memory library)@mem0ai/mem0ormem0aiimport in code- Any mention of "mem0", "memory system", "persistent memory" in CLAUDE.md / AGENTS.md
~/.agentmemory/directory present, oragentmemoryrunning on port 3111- A memory-related hook entry in
.claude/settings.jsonhooks
No signal → Gap: No memory system configured. Why: mid-session interruption recovery falls back to GitHub per-AC comments (requires GitHub) or cold git-log reconstruction — no local recovery path exists without a memory system. Simplest fix: create MEMORY.md at project root and add a note in CLAUDE.md to load it at session start. For coding-agent-native persistent memory: agentmemory (npm install -g @agentmemory/agentmemory) or memobank. For a general-purpose library: mem0.
5. CI
.github/workflows/*.yml runs both lint AND build? Build-only → Gap: CI only runs build — no lint.
6. Pre-commit
.husky/ or .pre-commit-config.yaml present?
7. Health script
init.sh at root — exists and executable?
8. Onboarding config
docs/agents/ with all five files (issue-tracker.md, triage-labels.md, domain.md, github-project.md, session-config.md)?
- All present → "Already in place" — do NOT suggest
/setup-harness-skills - Missing → after gaps, add: "Optional: Run
/setup-harness-skills" for long-running work.
Also check .harness/config.json:
- Absent → note "no GSD-compatible planning structure" (optional gap, not in top-5 priority)
- Present without
harnesskey → "GSD detected but harness skills not configured" → after gaps, add: "GSD detected. Run/setup-harness-skillsto configure GitHub integration." - Present with
harnesskey → Already in place: "GSD-compatible planning structure (.harness/)"
9. Recommended skill collections
Check ~/.claude/skills/ (or equivalent platform path) for these collections:
- GSD Redux — any
gsd-*skill present? If none → record suggestion. - Superpowers — any of
brainstorming,systematic-debugging,writing-plans,subagent-driven-developmentpresent? If none → record suggestion.
These are suggestions, not gaps — never assign them a priority number.
Runtime-Specific
Kiro (.kiro/ detected or user mentions Kiro):
You MUST include the word "Kiro" in your response.
Add after gaps: ".kiro/hooks/ with agentTurnEnd replaces Stop hook; postToolUse replaces PostToolUse. .kiro/steering/ replaces CLAUDE.md."
Gemini (.gemini/ detected or user mentions Gemini):
You MUST include "GEMINI.md" as the instruction file name.
Add after gaps: "GEMINI.md is the instruction file (same 200-line ceiling). Hook equivalents are not publicly documented — verify in your Gemini agent's settings."
Brownfield (existing lint errors):
State "This is a brownfield codebase." Recommend eslint --fix . in one cleanup commit. Pre-commit catches new violations only. Never require manual fixes.
Multi-Day Tasks (week+)
For long autonomous work, include ALL of these phrases:
- "one active task at a time"
- "Fuzzy Done" or "Proxy Signal" or "Confidence Exit" or "Planning=Done"
- "Judge audit" — as the exit criterion
- "observable behavior" as completion proof
- Session handoff strategy
Output Format
## Already in place
## Harness gaps (priority order)
### 1. Missing Stop hook
**Why it matters:** [one sentence]
**Fix:** [paste-ready snippet]
### 2. [Next gap]
**Why it matters:** [one sentence]
**Fix:** [paste-ready snippet]
## What to do next
## Recommended skill collections (only when absent)
- **GSD Redux** — compound engineering workflow skills for long-running tasks
Repo: https://github.com/open-gsd/get-shit-done-redux
- **Superpowers** — curated skill toolkit for advanced agent workflows
Repo: https://github.com/obra/superpowersOnly include the "Recommended skill collections" section if at least one collection was absent (check #9). Omit entirely if both are installed.
When hooks are a gap, include this JSON snippet:
{
"hooks": {
"Stop": [
{
"matcher": "",
"hooks": [{"type": "command", "command": "echo 'Before declaring done, verify all tasks are truly complete: check git diff, run lint+build, confirm no regressions.'"}]
}
],
"PostToolUse": [
{
"matcher": "Write",
"hooks": [{"type": "command", "command": "echo 'After every Write: verify the change is correct, run lint+typecheck, commit in logical chunks.'"}]
}
]
}
}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.

