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

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.

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
  1. Very specific:

    Read the project: stack, package.json scripts, directory structure

    line 78
  2. Distinctive:

    Write a short AGENTS.md with routing to docs/

    line 80
  3. Distinctive:

    Create docs/ only for what does not fit in the map

    line 81

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

  1. ~100 lines max in root AGENTS.md / CLAUDE.md
  2. Progressive disclosure: link to docs/ for detail
  3. Constrain, don't micromanage: executable invariants, not implementation steps
  4. 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

BadGood
500 lines in AGENTS.md80 lines + docs/
"Follow best practices""All APIs use OAuth 2.0"
Project historyCurrent commands and rules
Duplicate full READMELink to README

Workflow

  1. Read the project: stack, package.json scripts, directory structure
  2. Identify what the agent must know before writing code
  3. Write a short AGENTS.md with routing to docs/
  4. Create docs/ only for what does not fit in the map
  5. Validate: can a new agent start using only these files?

Related skills

  • harness-repo-knowledge — docs/REPO_MAP.md for 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

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.