agentleFS
ClydeShenClydeShen/harness-skill/skills/engineering/harness-guide/SKILL.md

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.

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
  1. Distinctive:

    Ask at most 3 questions per coaching iteration

    line 27
  2. Distinctive:

    Ask one question at a time — never batch

    line 28
  3. Distinctive:

    Never ask what can be read from files — inspect instead

    line 30
  4. Distinctive:

    After the user acts, re-run Phase 1–3 to recommend the next step (coaching loop)

    line 31
  5. Distinctive:

    Read these files before doing or saying anything.

    line 37
  6. Distinctive:

    Stop hook present and well-formed

    line 58
  7. Distinctive:

    No instruction file (CLAUDE.md or AGENTS.md)

    line 81
  8. Very specific:

    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.

    line 90
  9. Very specific:

    If no skill is appropriate, replace the /skill-name block with a paste-ready command or config snippet.

    line 102
  10. Distinctive:

    Stop hook absent — prevents premature done declarations.

    line 106
  11. Very specific:

    No instruction file — Claude/Kiro/Codex has no context.

    line 107
  12. Distinctive:

    No memory system — interrupted session recovery requires full git-log reconstruction

    line 108
  13. Distinctive:

    No evals — observable behavior is never verified.

    line 110
  14. Distinctive:

    After the user acts on the recommendation, re-read the affected files and produce an updated classification.

    line 117

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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.

  1. CLAUDE.md / AGENTS.md — instruction file quality: line count, key commands present, staleness signals
  2. .harness/state.json — session discipline: session.status, position.active_task, phase tracking
  3. .harness/config.json — GSD/harness configuration
  4. .claude/settings.json — Stop hook and PostToolUse hook presence and validity
  5. .github/workflows/*.yml — CI: runs lint AND build? or build-only?
  6. .pre-commit-config.yaml or .husky/ — pre-commit presence
  7. evals/ — eval coverage (promptfoo configs, scenario count)
  8. 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/ with state.json present and session.status field valid
  • Memory system configured (MEMORY.md present, ~/.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.json shows session.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)

  1. Stop hook absent — prevents premature done declarations; everything else is unreliable without it
  2. No instruction file — Claude/Kiro/Codex has no context; every session starts blind
  3. No memory system — interrupted session recovery requires full git-log reconstruction
  4. CI missing or incomplete — regressions merge silently without a lint+build gate
  5. No evals — observable behavior is never verified; Proxy Signal and Fuzzy Done go undetected
  6. ⚠️ 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.