harness-engineering
Skill15 starsChanged 3 months agoMITView on GitHub
Use when a coding task needs spec-first planning, acceptance criteria, verification evidence, AI agent workflow design, sub-agent coordination, disciplined project delivery, or project workflow initialization.
28 other projects use a version of this.
Adopted by
Most recently taken up by
- wxxb789/hoatheir own version, first seen Nov 29, 2026
- AnonymXXX/agent-harness-engineeringtheir own version, first seen Nov 29, 2026
- AnonymXXX/codex-harness-engineeringtheir own version, first seen Nov 20, 2026
- dvy1987/agent-loomtheir own version, first seen Nov 15, 2026
- anuragsarkar97/skillstheir own version, first seen Nov 8, 2026
- Mark393295827/graph-engineering-architecturestheir own version, first seen Nov 8, 2026
Used with
Projects with it also use self-improvement-loops, bdi-mental-states and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
DVwebBiz11Skillself-improvement-loops
This skill should be used when the harness, scaffold, workflow, or optimizer itself is the optimization target: recursive self-improvement (RSI) loops, meta-harnesses, self-improving harnesses that mine their own failures and propose bounded edits, evolutionary or population-based search over agent scaffolds, acceptance gates for self-modifying systems, and agentic context evolution where the mechanism that produces context is versioned and evolved. Route governance of a single autonomous loop (locked surfaces, durable logs, rollback, novelty gates, approval boundaries) to harness-engineering, measurement and quality-gate design to evaluation, judge design to advanced-evaluation, and remote sandbox infrastructure to hosted-agents.
Also in 4 projects that use this
Downey6689Skillbdi-mental-states
Transforms external RDF context into BDI mental states. Invoke when modeling beliefs, desires, and intentions.
Also in 5 projects that use this
Downey6689Skillhosted-agents
Guidance for hosted/sandboxed agents. Invoke when running background agents in isolated VMs or multi-client setups.
Also in 5 projects that use this
DVwebBiz11Skilllong-horizon-prompting
This skill should be used when writing, enhancing, or evaluating the launch prompt for a long-running autonomous agent or a parallel multi-agent orchestration attacking a hard problem: pseudo-formal task briefs that define terms and an exact success predicate linguistically, enumerate non-counting outcomes, set persistence rules with explicit stop and return conditions and effort floors, manage a diverse portfolio of parallel approaches with an approach registry and blocked-route bookkeeping, and gate the return on adversarial audit. Route agent topology and coordination protocols to multi-agent-patterns, runtime control surfaces and loop governance to harness-engineering, evaluator and quality-gate construction to evaluation, judge design to advanced-evaluation, and compaction or memory mechanics to context-compression and memory-systems.
Also in 4 projects that use this
AbdelrhmanAlquranSkilllatent-briefing
This skill should be used when the user asks to "share memory between agents", "KV cache compaction for multi-agent", "orchestrator worker context", "latent briefing", "reduce worker tokens", "cross-agent memory without summarization", or discusses Attention Matching compaction, recursive language models with workers, or token explosion in hierarchical agents.
Also in 4 projects that use this
abdullah1854Skillcontext-degradation
Also in 5 projects that use this
- +2 more from Downey6689
Other versions28 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 28
- github/awesome-copilot★ 42ksame name
- muratcankoylan/Agent-Skills-for-Context-Engineering★ 18ksame name
- kangarooking/kangarooking-skills★ 779same name
- magnus919/agent-skills★ 197same name
- brake71/1c-ssl-skills★ 90same name
- docxology/template★ 25same name
- charlesanim/harness-engineering★ 20same name
- fiveonecode/agent-skills★ 20same name
- drewid74/ai_skills★ 8same name
- AnonymXXX/agent-harness-engineering★ 4same name
18 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repositoryOne other file it gives its agents.
- AGENTS.mdAGENTS.md
The file
Show its rules and text
We split this skill into the rules it gives an agent
23 rules. 0 are common, 20 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 25 edited versions we read keep these.
20
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Treat every non-trivial task as a controlled engineering loop:
- Distinctive: line 16
Verify with real evidence.
- Distinctive: line 19
Do not claim completion without verification evidence.
- Distinctive: line 23
When the user invokes this skill in a project and asks to initialize, bootstrap, or set up Harness Engineering:
- Distinctive: line 31
Do not overwrite an existing AGENTS.md unless the user explicitly asks for overwrite.
- Very specific: line 32
Prefer running scripts/init_harness.py <project-root> for deterministic initialization.
- Distinctive: line 33
After initialization, verify the four files exist and report the generated paths.
- Very specific: line 35
If the script is unavailable, use references/initialization.md to create the same baseline manually.
- Distinctive: line 39
Use the lightest process that protects the task:
- Distinctive: line 48
When uncertain, classify upward.
- Distinctive: line 54
Read in this order when present:
- Distinctive: line 63
If project docs conflict, follow the higher-priority project rule and state the conflict.
- Distinctive: line 67
If a non-trivial task lacks a spec or acceptance criteria:
- Distinctive: line 69
Create or update a spec before implementation.
- Distinctive: line 70
Create or update matching acceptance criteria before delivery.
- Distinctive: line 71
Keep both scoped to the current task.
- Very specific: line 73
Use references/templates.md for templates.
- Distinctive: line 77
Before code changes, summarize:
- Distinctive: line 91
Run the narrowest real verification that proves the acceptance criteria.
- Distinctive: line 93
Never invent test, build, run, screenshot, or log results.
- Distinctive: line 112
Test Agent: verifies against acceptance criteria.
- Distinctive: line 115
Do not let the same role silently redefine the target, implement it, and judge completion.
- Distinctive: line 119
Read only what is needed:
“Common” is measured: kept by at least 6 in 10 of the 25 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Harness Engineering
Core Rule
Treat every non-trivial task as a controlled engineering loop:
- Read project context.
- Define or locate the spec.
- Define or locate acceptance criteria.
- Implement the smallest necessary change.
- Verify with real evidence.
- Report against the acceptance criteria.
Do not claim completion without verification evidence.
Initialization Mode
When the user invokes this skill in a project and asks to initialize, bootstrap, or set up Harness Engineering:
- Inspect the target project root.
- Generate the Harness Engineering baseline documents:
AGENTS.mddocs/harness-engineering-theory.mdspec/harness-engineering-baseline.mdacceptance/harness-engineering-baseline.md
- Do not overwrite an existing
AGENTS.mdunless the user explicitly asks for overwrite. - Prefer running
scripts/init_harness.py <project-root>for deterministic initialization. - After initialization, verify the four files exist and report the generated paths.
If the script is unavailable, use references/initialization.md to create the same baseline manually.
Decision Guide
Use the lightest process that protects the task:
| Task type | Examples | Required workflow |
| Micro | run a command, explain code, typo fix | Use existing context, verify if claiming a result |
| Normal | local bug fix, small UI copy change | Summarize scope and run targeted verification |
| Important | page, API, module, cross-file behavior | Create/read spec/*.md and acceptance/*.md first |
| High risk | auth, secrets, deletion, installer, release, migration | Full spec, acceptance, rollback/risk notes, stronger verification |
When uncertain, classify upward.
Required Workflow
1. Gather Context
Read in this order when present:
AGENTS.mdREADME.md- Relevant
docs/ - Relevant
spec/*.md - Matching
acceptance/*.md - Related source, config, and tests
If project docs conflict, follow the higher-priority project rule and state the conflict.
2. Fill Missing Harness
If a non-trivial task lacks a spec or acceptance criteria:
- Create or update a spec before implementation.
- Create or update matching acceptance criteria before delivery.
- Keep both scoped to the current task.
Use references/templates.md for templates.
3. Summarize Before Implementing
Before code changes, summarize:
- Current goal.
- Files likely to change.
- Files or behaviors that must not change.
- Acceptance criteria.
- Key risks.
4. Implement Narrowly
Make the smallest change that satisfies the spec. Avoid unrelated refactors, dependency changes, production config changes, and cleanup outside scope.
5. Verify
Run the narrowest real verification that proves the acceptance criteria. Broaden verification for shared, security-sensitive, release, migration, or user-visible behavior.
Never invent test, build, run, screenshot, or log results.
6. Report
Final response must include:
- Task conclusion.
- Files changed and why.
- Verification commands/results.
- Acceptance criteria mapping.
- Remaining risks or follow-up.
Sub-Agent Use
For complex work, split roles:
- Spec Agent: produces
spec/*.md. - Acceptance Agent: produces
acceptance/*.md. - Implementation Agent: changes code/config/tests.
- Test Agent: verifies against acceptance criteria.
- Review Agent: checks drift, omissions, quality, and risk.
Do not let the same role silently redefine the target, implement it, and judge completion.
References
Read only what is needed:
references/theory.md: deeper theory, task layering, failure modes, and metrics.references/initialization.md: project initialization behavior and generated baseline expectations.references/templates.md: spec, acceptance, task summary, and final report templates.references/checklists.md: quick checklists for creation, implementation, verification, and review.
Common Mistakes
| Mistake | Correction |
| Coding before the spec is clear | Stop and write/update the spec |
| Acceptance says "works correctly" | Replace with observable pass/fail criteria |
| Reporting "done" after reading code | Run verification or state why it cannot run |
| Expanding scope during implementation | Move extra ideas to follow-up |
| Treating failed verification as a footnote | Fix it or report it as unresolved risk |
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.

