agentleFS
solanodzsolanodz/harness-engineering-skills/AGENTS.md

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

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

    If ./init.sh fails, fix the environment before feature work.

    line 30
  2. Distinctive:

    If baseline verification is failing, repair that first before adding new scope.

    line 42
  3. Distinctive:

    Verification required: Don't claim done without running verification commands

    line 47
  4. Very specific:

    Update artifacts: Before ending session, update progress.md and feature_list.json

    line 48
  5. Distinctive:

    Stay in scope: Don't modify files unrelated to the current feature

    line 49
  6. Distinctive:

    Before ending a session:

    line 70
  7. Very specific:

    Update progress.md with current state

    line 72
  8. Very specific:

    Update feature_list.json with new feature status and evidence

    line 73
  9. Distinctive:

    Commit with a descriptive message once work is in a safe state

    line 75
  10. Very specific:

    Leave the repo clean enough for the next session to run ./init.sh immediately

    line 76
  11. Very specific:

    Rule: If ./init.sh fails, do not start new features.

    line 80
  12. Very specific:

    Keep each SKILL.md under 500 lines

    line 118
  13. Distinctive:

    Write skill descriptions in third person with clear triggers

    line 119
  14. Distinctive:

    Architecture decisions: Check README and existing skills.

    line 125
  15. Distinctive:

    Repeated test failures: Update progress, flag for human review

    line 126

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

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

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 subsystem
  • templates/ — copy-ready harness templates
  • scripts/ — 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.

NeedCommand / file
RuntimeNode 22 (CI uses actions/setup-node@v4 with node-version: 22)
Installnone — no node_modules required
Env filenone
Servicesnone
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:

  1. Confirm working directory with pwd
  2. Read this file completely
  3. Read progress.md and feature_list.json for current state
  4. Review recent commits with git log --oneline -5
  5. Run ./init.sh to 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.md and feature_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.sh immediately

Required Artifacts

  • feature_list.json — Feature state tracker (source of truth)
  • progress.md — Session continuity log
  • init.sh — Standard startup and verification path
  • session-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.json or progress.md
  • Repository remains restartable from the standard startup path

End of Session

Before ending a session:

  1. Update progress.md with current state
  2. Update feature_list.json with new feature status and evidence
  3. Record any unresolved risks or blockers in session-handoff.md
  4. Commit with a descriptive message once work is in a safe state
  5. Leave the repo clean enough for the next session to run ./init.sh immediately

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

LevelCommandWhat it checks
Lint./init.sh (lint step)SKILL.md files ≤ 500 lines
Smokenode scripts/cli.mjs helpCLI loads
Smokenode scripts/cli.mjs listSkill catalog readable
Integrationnode scripts/cli.mjs install --dest /tmp/...Skills copy correctly
Integrationnode scripts/cli.mjs create --target /tmp/...Harness scaffold works
Validatenode scripts/validate-harness.mjs --target . --min-score 70Five-subsystem score
Packagenpm pack --dry-runnpm publish contents
Full./init.shAll 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.json for definition of done

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.