agentleFS
solanodzsolanodz/harness-engineering-skills/skills/harness-scaffold/SKILL.md

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.

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

    Ask only what you cannot infer: target agent (Cursor/Claude Code), file name, overwrite tolerance.

    line 34
  2. Distinctive:

    Prefer a minimal harness. Add complexity only when the problem requires it.

    line 35
  3. Distinctive:

    If you have access to the skills repo:

    line 39
  4. Very specific:

    If you cannot run scripts, create these files manually using templates in templates/ from the skills repo.

    line 52
  5. Distinctive:

    Keep ~100 lines. Must include:

    line 56
  6. Very specific:

    Startup flow: read progress → feature_list → git log → run init.sh

    line 58
  7. Distinctive:

    End of session: update progress and feature_list, safe commit

    line 61
  8. Distinctive:

    Must: sync dependencies → run baseline verification → show startup command.

    line 86
  9. Distinctive:

    Do not stack new work on a broken baseline.

    line 88

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

SubsystemArtifactPurpose
InstructionsAGENTS.md or CLAUDE.mdStartup path, rules, definition of done
Statefeature_list.json, progress.mdActive feature, evidence, next step
Verificationinit.shCommands the agent must run before declaring done
ScopeDependencies and criteria in feature_listPrevents over-scoping and half-finished work
Lifecyclesession-handoff.md, clean-state checklistClean restart in the next session

First step

  1. Inspect what exists: instruction files, state, verification commands, docs, manifests.
  2. Ask only what you cannot infer: target agent (Cursor/Claude Code), file name, overwrite tolerance.
  3. 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/project

Useful options:

  • --agent-file CLAUDE.md for Claude Code projects
  • --package-manager npm|pnpm|yarn|bun
  • --commands "cmd one,cmd two" for custom verification
  • --force only 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:

  1. Startup flow: read progress → feature_list → git log → run init.sh
  2. Working rules: one feature at a time, do not mark done without evidence
  3. Definition of done: behavior + verification executed + evidence recorded
  4. 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_behavior
  • status: not_started | in_progress | blocked | passing
  • verification: concrete, observable steps
  • evidence: 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

  1. Explain what was created and where
  2. Tell the user to replace example features with real project features
  3. Suggest running harness-audit to validate

Additional resources

  • Memory Persistence
  • Lifecycle & Bootstrap
  • Gotchas

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.