harness-scaffold
Skill4 starsChanged 6 months agoMITView on GitHub
Sets up a new project so the agent can start, verify, and resume anytime — AGENTS.md, feature list, progress log, init.sh, handoff. Use when adopting harness engineering or the user asks to set up an agent-ready project.
In this repository14 other files it gives its agents.
- AGENTS.mdAGENTS.md
- templates/agents.mdAGENTS.md
- harness-auditSkill
- harness-diagnoseSkill
- harness-e2eSkill
- harness-environmentSkill
- harness-evaluatorSkill
- harness-instructionsSkill
- harness-lifecycleSkill
- harness-observabilitySkill
- harness-repo-knowledgeSkill
- harness-scopeSkill
- harness-stateSkill
- harness-verificationSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 7 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
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 34
Ask only what you cannot infer: target agent (Cursor/Claude Code), file name, overwrite tolerance.
- Distinctive: line 35
Prefer a minimal harness. Add complexity only when the problem requires it.
- Distinctive: line 39
If you have access to the skills repo:
- Very specific: line 52
If you cannot run scripts, create these files manually using templates in templates/ from the skills repo.
- Distinctive: line 56
Keep ~100 lines. Must include:
- Very specific: line 58
Startup flow: read progress → feature_list → git log → run init.sh
- Distinctive: line 61
End of session: update progress and feature_list, safe commit
- Distinctive: line 86
Must: sync dependencies → run baseline verification → show startup command.
- Distinctive: line 88
Do not stack new work on a broken baseline.
≈ “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 Scaffold
What this does for you
- Start in minutes — minimum files an agent needs on day one
- Resume across sessions — progress and feature list on disk, not in chat
- Built-in verification —
init.shand done criteria from the start
Creates the minimum harness package so an agent can start, maintain scope, verify work, and resume across sessions.
Based on Learn Harness Engineering — Project 01 and resource library.
Five-subsystem model
| Subsystem | Artifact | Purpose |
| Instructions | AGENTS.md or CLAUDE.md | Startup path, rules, definition of done |
| State | feature_list.json, progress.md | Active feature, evidence, next step |
| Verification | init.sh | Commands the agent must run before declaring done |
| Scope | Dependencies and criteria in feature_list | Prevents over-scoping and half-finished work |
| Lifecycle | session-handoff.md, clean-state checklist | Clean restart in the next session |
First step
- Inspect what exists: instruction files, state, verification commands, docs, manifests.
- Ask only what you cannot infer: target agent (Cursor/Claude Code), file name, overwrite tolerance.
- Prefer a minimal harness. Add complexity only when the problem requires it.
Create harness
If you have access to the skills repo:
node scripts/create-harness.mjs --target /path/to/projectUseful options:
--agent-file CLAUDE.mdfor Claude Code projects--package-manager npm|pnpm|yarn|bun--commands "cmd one,cmd two"for custom verification--forceonly with explicit user confirmation
If you cannot run scripts, create these files manually using templates in templates/ from the skills repo.
Minimum AGENTS.md content
Keep ~100 lines. Must include:
- Startup flow: read progress → feature_list → git log → run init.sh
- Working rules: one feature at a time, do not mark done without evidence
- Definition of done: behavior + verification executed + evidence recorded
- End of session: update progress and feature_list, safe commit
Full template: templates/agents.md
feature_list.json
Each feature needs:
id,priority,title,user_visible_behaviorstatus:not_started|in_progress|blocked|passingverification: concrete, observable stepsevidence: empty array until verification passes
Global rules in the JSON:
"rules": {
"single_active_feature": true,
"passing_requires_evidence": true,
"do_not_skip_verification": true
}init.sh
Must: sync dependencies → run baseline verification → show startup command.
Do not stack new work on a broken baseline.
After creating
- Explain what was created and where
- Tell the user to replace example features with real project features
- Suggest running
harness-auditto validate
Additional resources
- Memory Persistence
- Lifecycle & Bootstrap
- Gotchas
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.

