harness-eng
Skill7 starsChanged 4 months agoMITView on GitHub
Use when designing, evaluating, or simplifying an agent project harness: AGENTS.md/CLAUDE.md rules, startup scripts, progress logs, feature trackers, handoffs, evaluator rubrics, quality documents, repo-local knowledge maps, and mechanical guardrails for coding agents. Especially useful when converting raw agent-workflow notes into a concise, verifiable project control layer.
In this repository14 other files it gives its agents.
- artifactSkill
- chat-cleanerSkill
- clean-systemSkill
- doc-styleSkill
- dumb-downSkill
- experiment-workflowSkill
- first-principlesSkill
- gitlabSkill
- pdfSkill
- product-designSkill
- req-engineeringSkill
- training-nnSkill
- visionSkill
- word-farsi-docxSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 8 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use this skill to make an agent-run project easier to start, steer, verify, resume, and improve.
- Distinctive: line 13
Keep the injected instruction file short: it should be a table of contents, not an encyclopedia.
- Distinctive: line 16
Every harness component should earn its keep through a clearer start, safer edit, stronger verification, or better handoff.
- Distinctive: line 23
Add or edit only the earmarked artifact.
- Distinctive: line 24
Verify the harness by running the cheapest check that proves a future agent can follow it.
- Distinctive: line 28
Use these only when they fit the project:
- Distinctive: line 42
Prefer adapting these sections in place over creating all files by default.
- Distinctive: line 116
If unsure whether a component is still needed, take a quality snapshot, remove or bypass one component, run the benchmark/task suite, …
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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 Engineering
Use this skill to make an agent-run project easier to start, steer, verify, resume, and improve. Favor local project artifacts over chat-only guidance.
Core stance
- Build a harness only around a real workflow the user wants repeated.
- Keep the injected instruction file short: it should be a table of contents, not an encyclopedia.
- Move durable knowledge into repo-local docs, scripts, checks, and templates.
- Encode high-value judgment as mechanical checks when possible.
- Every harness component should earn its keep through a clearer start, safer edit, stronger verification, or better handoff.
First pass
- Inspect the project locally: root files, existing docs, package scripts, tests, git state, and any existing session/progress files.
- Identify the agent's repeated failure mode or bottleneck: startup, context discovery, feature selection, verification, review, handoff, architecture drift, or cleanup.
- Choose the smallest harness surface that fixes that bottleneck.
- Add or edit only the earmarked artifact. Do not scatter duplicate instructions.
- Verify the harness by running the cheapest check that proves a future agent can follow it.
Harness artifacts
Use these only when they fit the project:
AGENTS.md: short operating map, source-of-truth pointers, definition of done, and project-specific guardrails.init.sh: one command for setup/baseline verification/startup hints. It should print the cwd and fail clearly.progress.mdor.ES/.../ES.md: current verified state, blocker, latest verification, next action.feature_list.json: machine-readable queue when there are multiple user-visible features.session-handoff.md: compact state transfer after long or risky sessions.clean-state-checklist.md: end-of-session checks for startup, tests, docs, feature status, and unfinished work.evaluator-rubric.md: pass/fail scorecard for agent output quality; tune it against human judgment.quality-document.md: snapshot of product/domain/layer health over time.- Custom lints/tests: enforce dependency boundaries, schemas, logging, naming, file size, or other rules that agents repeatedly violate.
Minimal templates
Prefer adapting these sections in place over creating all files by default.
AGENTS.md
# Project Agent Rules
## Start Here
- Read this file, then read: <progress/doc paths>.
- Verify cwd: `<expected path or command>`.
- Baseline check: `<test or smoke command>`.
## Work Rules
- Work on one task/feature at a time.
- Keep changes scoped to <area/feature>.
- Preserve <important APIs/contracts>.
- Use <package manager/test command/style command>.
## Definition of Done
- Behavior matches: <acceptance criteria>.
- Verification run: <commands>.
- Evidence recorded in: <progress/handoff path>.
- Known risks or skipped checks are explicitly listed.Progress state
# Progress
Current Verified State:
- Root:
- Startup:
- Verification:
- Highest priority unfinished work:
- Current blocker:
Session Record:
- Date:
- Goal:
- Completed:
- Verification run:
- Evidence:
- Known risks:
- Next best action:Feature item
{
"id": "short-id",
"priority": 1,
"area": "area-name",
"title": "User-visible feature",
"user_visible_behavior": "What should be true when done",
"status": "not_started",
"verification": ["Step 1", "Step 2"],
"evidence": [],
"notes": ""
}Evaluation loop
For a new or changed harness, check:
- Can a fresh agent find the right starting docs in under one minute?
- Can it run the baseline verification without guessing commands?
- Is there exactly one current priority or a clear selection rule?
- Is "done" tied to evidence, not confidence?
- Is stale or duplicate guidance avoided?
- Can the harness be simplified without quality dropping?
If unsure whether a component is still needed, take a quality snapshot, remove or bypass one component, run the benchmark/task suite, compare results, and keep the simpler version only if quality does not drop.
Further reading
Adapted in part from the "Learn Harness Engineering" material at https://walkinglabs.github.io/learn-harness-engineering/en/skills/.
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.

