agentleFS
MasihMoafiMasihMoafi/skills/harness-eng/SKILL.md

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.

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

    Use this skill to make an agent-run project easier to start, steer, verify, resume, and improve.

    line 8
  2. Distinctive:

    Keep the injected instruction file short: it should be a table of contents, not an encyclopedia.

    line 13
  3. Distinctive:

    Every harness component should earn its keep through a clearer start, safer edit, stronger verification, or better handoff.

    line 16
  4. Distinctive:

    Add or edit only the earmarked artifact.

    line 23
  5. Distinctive:

    Verify the harness by running the cheapest check that proves a future agent can follow it.

    line 24
  6. Distinctive:

    Use these only when they fit the project:

    line 28
  7. Distinctive:

    Prefer adapting these sections in place over creating all files by default.

    line 42
  8. Distinctive:

    If unsure whether a component is still needed, take a quality snapshot, remove or bypass one component, run the benchmark/task suite, …

    line 116

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

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

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

  1. Inspect the project locally: root files, existing docs, package scripts, tests, git state, and any existing session/progress files.
  2. Identify the agent's repeated failure mode or bottleneck: startup, context discovery, feature selection, verification, review, handoff, architecture drift, or cleanup.
  3. Choose the smallest harness surface that fixes that bottleneck.
  4. Add or edit only the earmarked artifact. Do not scatter duplicate instructions.
  5. 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.md or .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:

  1. Can a fresh agent find the right starting docs in under one minute?
  2. Can it run the baseline verification without guessing commands?
  3. Is there exactly one current priority or a clear selection rule?
  4. Is "done" tied to evidence, not confidence?
  5. Is stale or duplicate guidance avoided?
  6. 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/.

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.