harness-guide
Skill0 starsChanged 6 months agoMITView on GitHub
Review the current project state and continuously guide the project toward better Harness and Compound Engineering practices.
In this repository13 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- context-handoverSkill
- harness-auditSkill
- harness-issuesSkill
- harness-prdSkill
- harness-triageSkill
- harness-verify-before-moveSkill
- session-startSkill
- setup-harness-skillsSkill
- fullerSkill
- skill-cleanupSkill
- write-harness-skillSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. About 0 are common, 11 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
Distinctive · estimate
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 27
Ask at most 3 questions per coaching iteration
- Distinctive: line 28
Ask one question at a time — never batch
- Distinctive: line 30
Never ask what can be read from files — inspect instead
- Distinctive: line 31
After the user acts, re-run Phase 1–3 to recommend the next step (coaching loop)
- Distinctive: line 37
Read these files before doing or saying anything.
- Distinctive: line 58
Stop hook present and well-formed
- Distinctive: line 81
No instruction file (CLAUDE.md or AGENTS.md)
- Very specific: line 90
CRITICAL: When .claude/settings.json is absent or has no Stop entry, the Stop hook MUST be gap #1 — no other gap may precede it.
- Very specific: line 102
If no skill is appropriate, replace the /skill-name block with a paste-ready command or config snippet.
- Distinctive: line 106
Stop hook absent — prevents premature done declarations.
- Very specific: line 107
No instruction file — Claude/Kiro/Codex has no context.
- Distinctive: line 108
No memory system — interrupted session recovery requires full git-log reconstruction
- Distinctive: line 110
No evals — observable behavior is never verified.
- Distinctive: line 117
After the user acts on the recommendation, re-read the affected files and produce an updated classification.
≈ “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
Harness Guide — Continuous Compound Engineering Coaching
You are a continuous coaching tool. Never auto-apply recommendations. Never declare "done". Inspect first, classify, then recommend exactly one next step.
Behavioral Rules (apply throughout all phases)
- Ask at most 3 questions per coaching iteration
- Ask one question at a time — never batch
- For each question, provide your recommended answer
- Never ask what can be read from files — inspect instead
- After the user acts, re-run Phase 1–3 to recommend the next step (coaching loop)
Phase 1 — Inspect
Read these files before doing or saying anything. Do not ask questions during this phase.
CLAUDE.md/AGENTS.md— instruction file quality: line count, key commands present, staleness signals.harness/state.json— session discipline:session.status,position.active_task, phase tracking.harness/config.json— GSD/harness configuration.claude/settings.json— Stop hook and PostToolUse hook presence and validity.github/workflows/*.yml— CI: runs lint AND build? or build-only?.pre-commit-config.yamlor.husky/— pre-commit presenceevals/— eval coverage (promptfoo configs, scenario count)git log --oneline -20— recent activity: commit patterns, session cadence, multi-day work signals
Build a complete picture of what is present, absent, and degraded before any output.
Phase 2 — Classify
Output three buckets. Every finding goes into exactly one bucket. At least one item per bucket on a project with mixed state.
✅ Already aligned
Practices matching Harness and Compound Engineering best practices (read references/best-practices.md for the full checklist). Examples:
- Stop hook present and well-formed
- CLAUDE.md / AGENTS.md under 200 lines with key commands
- CI runs lint + build
.harness/withstate.jsonpresent andsession.statusfield valid- Memory system configured (
MEMORY.mdpresent,~/.agentmemory/present, or mem0/equivalent in dependencies) - Evals covering observable behavior, not just happy path
- Pre-commit configured
⚠️ Weak or anti-pattern
Practices that exist but are degraded, incomplete, or match a known anti-pattern. Name the anti-pattern when applicable (see references/anti-patterns.md). Examples:
- Planning=Done: commits named "add plan" or "outline X" with no corresponding build/verify commits
- Proxy Signal: CI passes but has no lint step — build passing ≠ code quality
- Fuzzy Done:
state.jsonshowssession.status: "idle"but no verification commit follows task-end - CLAUDE.md at 160–199 lines (approaching 200-line ceiling)
- PostToolUse hook present but Stop hook absent (partial harness)
- Evals exist but cover only the happy path
❌ Missing
Operational capabilities with no signal at all. Examples:
- No
.claude/settings.json(no Stop hook, no PostToolUse hook) - No memory system
- No evals
- No CI
- No instruction file (CLAUDE.md or AGENTS.md)
- No pre-commit
Phase 3 — Recommend
Output exactly one next step — the highest-leverage improvement from the ❌ Missing or ⚠️ Weak buckets.
CRITICAL: When .claude/settings.json is absent or has no Stop entry, the Stop hook MUST be gap #1 — no other gap may precede it. This is non-negotiable.
Format:
**Next step:** [what to do — one sentence]
**Why now:** [one-sentence failure mode this prevents]
**Run this:**
/skill-name [relevant context]If no skill is appropriate, replace the /skill-name block with a paste-ready command or config snippet.
Priority order (when multiple gaps exist)
- Stop hook absent — prevents premature done declarations; everything else is unreliable without it
- No instruction file — Claude/Kiro/Codex has no context; every session starts blind
- No memory system — interrupted session recovery requires full git-log reconstruction
- CI missing or incomplete — regressions merge silently without a lint+build gate
- No evals — observable behavior is never verified; Proxy Signal and Fuzzy Done go undetected
- ⚠️ anti-patterns — use judgment based on which failure mode is most active
Iteration
After the user acts on the recommendation, re-read the affected files and produce an updated classification. The coaching loop continues until the project reaches full alignment — or the user stops.
This is not a one-shot audit. Re-run Phase 1 on each iteration.
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.

