harness-instructions
Skill4 starsChanged 6 months agoMITView on GitHub
Writes a short AGENTS.md the agent actually reads — rules, startup flow, and verification commands. Use when instructions are too long, missing, or the agent keeps asking the same project questions.
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-lifecycleSkill
- harness-observabilitySkill
- harness-repo-knowledgeSkill
- harness-scaffoldSkill
- harness-scopeSkill
- harness-stateSkill
- harness-verificationSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 78
Read the project: stack, package.json scripts, directory structure
- Distinctive: line 80
Write a short AGENTS.md with routing to docs/
- Distinctive: line 81
Create docs/ only for what does not fit in the map
≈ “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 Instructions
What this does for you
- Stop re-explaining the project — the agent reads AGENTS.md first
- Short rules that stick — ~100 lines at the root, details in
docs/ - Copy-paste verification — commands the agent can run, not vague prose
The repository is the single source of truth (Lesson 03). Instructions should be a map, not a manual (Lesson 04).
Principles
- ~100 lines max in root
AGENTS.md/CLAUDE.md - Progressive disclosure: link to
docs/for detail - Constrain, don't micromanage: executable invariants, not implementation steps
- Copy-pasteable commands: verification as code blocks, not prose
Recommended structure
# AGENTS.md
## Purpose (1 line)
[What the project does]
## Stack
[Language, framework, key versions]
## Startup flow
1. pwd
2. Read progress.md
3. Read feature_list.json → pick highest-priority unfinished feature
4. git log --oneline -5
5. ./init.sh
## Verification commands
- Tests: `...`
- Lint: `...`
- Type-check: `...`
- Full: `./init.sh`
## Invariant rules
- One feature at a time
- Do not mark done without evidence
- Do not change verification rules during implementation
## Definition of done
[Brief checklist]
## Detailed documentation
- Architecture: docs/architecture.md
- Conventions: docs/conventions.md
- API: docs/api.md
## End of session
[5 closing steps]Anti-patterns
| Bad | Good |
| 500 lines in AGENTS.md | 80 lines + docs/ |
| "Follow best practices" | "All APIs use OAuth 2.0" |
| Project history | Current commands and rules |
| Duplicate full README | Link to README |
Workflow
- Read the project: stack, package.json scripts, directory structure
- Identify what the agent must know before writing code
- Write a short AGENTS.md with routing to docs/
- Create docs/ only for what does not fit in the map
- Validate: can a new agent start using only these files?
Related skills
harness-repo-knowledge—docs/REPO_MAP.mdfor where code lives
Templates
- templates/agents.md
Course reference
- Lesson 03: The repository as a system of record
- Lesson 04: Why a giant instruction file fails
- Project 02: Agent-legible workspace
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.

