harness-engineering-skills
AGENTS.md4 starsChanged 6 months agoMITView on GitHub
This repository contains Harness Engineering skills for Cursor, Claude Code, Codex, and compatible agents. Modular skills based on Learn Harness Engineering. This repo is a zero-dependency Node CLI. No .env, Docker, or database. If ./init.sh fails, fix the environment before feature work. Before writing code: If baseline verification is failing, repair that first before adding new scope. A feature is done only when ALL of the following are true: Before ending a session: Rule: If ./init.sh fails, do not start…
- Reads credentials
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository14 other files it gives its agents.
- templates/agents.mdAGENTS.md
- harness-auditSkill
- harness-diagnoseSkill
- harness-e2eSkill
- harness-environmentSkill
- harness-evaluatorSkill
- harness-instructionsSkill
- harness-lifecycleSkill
- harness-observabilitySkill
- harness-repo-knowledgeSkill
- harness-scaffoldSkill
- harness-scopeSkill
- harness-stateSkill
- harness-verificationSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
15 rules. About 0 are common, 8 are distinctive, and 7 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.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 30
If ./init.sh fails, fix the environment before feature work.
- Distinctive: line 42
If baseline verification is failing, repair that first before adding new scope.
- Distinctive: line 47
Verification required: Don't claim done without running verification commands
- Very specific: line 48
Update artifacts: Before ending session, update progress.md and feature_list.json
- Distinctive: line 49
Stay in scope: Don't modify files unrelated to the current feature
- Distinctive: line 70
Before ending a session:
- Very specific: line 72
Update progress.md with current state
- Very specific: line 73
Update feature_list.json with new feature status and evidence
- Distinctive: line 75
Commit with a descriptive message once work is in a safe state
- Very specific: line 76
Leave the repo clean enough for the next session to run ./init.sh immediately
- Very specific: line 80
Rule: If ./init.sh fails, do not start new features.
- Very specific: line 118
Keep each SKILL.md under 500 lines
- Distinctive: line 119
Write skill descriptions in third person with clear triggers
- Distinctive: line 125
Architecture decisions: Check README and existing skills.
- Distinctive: line 126
Repeated test failures: Update progress, flag for human review
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md 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
AGENTS.md
This repository contains Harness Engineering skills for Cursor, Claude Code, Codex, and compatible agents.
Purpose
Modular skills based on Learn Harness Engineering.
Structure
skills/— one skill per harness subsystemtemplates/— copy-ready harness templatesscripts/— create-harness, validate-harness, CLI (install,uninstall,create,validate)references/course/— reference patterns from the original course- Repo map:
docs/REPO_MAP.md(read before exploring)
Environment
This repo is a zero-dependency Node CLI. No .env, Docker, or database.
| Need | Command / file |
| Runtime | Node 22 (CI uses actions/setup-node@v4 with node-version: 22) |
| Install | none — no node_modules required |
| Env file | none |
| Services | none |
| Health | ./init.sh |
| Start (do not auto-run) | node scripts/cli.mjs help |
If ./init.sh fails, fix the environment before feature work.
Startup Workflow
Before writing code:
- Confirm working directory with
pwd - Read this file completely
- Read
progress.mdandfeature_list.jsonfor current state - Review recent commits with
git log --oneline -5 - Run
./init.shto verify the environment is healthy
If baseline verification is failing, repair that first before adding new scope.
Working Rules
- One feature at a time: Pick exactly one unfinished feature from
feature_list.json - Verification required: Don't claim done without running verification commands
- Update artifacts: Before ending session, update
progress.mdandfeature_list.json - Stay in scope: Don't modify files unrelated to the current feature
- Leave clean state: Next session must be able to run
./init.shimmediately
Required Artifacts
feature_list.json— Feature state tracker (source of truth)progress.md— Session continuity loginit.sh— Standard startup and verification pathsession-handoff.md— End-of-session handoff for larger sessions
Definition of Done
A feature is done only when ALL of the following are true:
- Target behavior is implemented
- Required verification actually ran (CLI smoke, harness validate, npm pack)
- Evidence recorded in
feature_list.jsonorprogress.md - Repository remains restartable from the standard startup path
End of Session
Before ending a session:
- Update
progress.mdwith current state - Update
feature_list.jsonwith new feature status and evidence - Record any unresolved risks or blockers in
session-handoff.md - Commit with a descriptive message once work is in a safe state
- Leave the repo clean enough for the next session to run
./init.shimmediately
Verification
Rule: If ./init.sh fails, do not start new features. Fix the baseline first.
Agents cannot mark a feature done until documented commands ran, passed, and evidence is recorded.
Verification hierarchy
| Level | Command | What it checks |
| Lint | ./init.sh (lint step) | SKILL.md files ≤ 500 lines |
| Smoke | node scripts/cli.mjs help | CLI loads |
| Smoke | node scripts/cli.mjs list | Skill catalog readable |
| Integration | node scripts/cli.mjs install --dest /tmp/... | Skills copy correctly |
| Integration | node scripts/cli.mjs create --target /tmp/... | Harness scaffold works |
| Validate | node scripts/validate-harness.mjs --target . --min-score 70 | Five-subsystem score |
| Package | npm pack --dry-run | npm publish contents |
| Full | ./init.sh | All of the above |
Correction loop
Implement → Run ./init.sh → Pass?
├── Yes → Record evidence → Mark done
└── No → Read error → Fix → Re-run (do not declare done)Minimum evidence (feature_list.json)
"evidence": [{
"date": "2026-06-16",
"commands": ["./init.sh"],
"result": "pass",
"output_summary": "validate 100/100, npm pack OK"
}]Skill Authoring Rules
- Keep each SKILL.md under 500 lines
- Write skill descriptions in third person with clear triggers
- All content is written in English
- Attribute to walkinglabs/learn-harness-engineering (MIT)
Escalation
- Architecture decisions: Check README and existing skills; ask the user if unclear
- Repeated test failures: Update progress, flag for human review
- Scope ambiguity: Re-read
feature_list.jsonfor definition of done
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.

