harness
Skill1 starsChanged 3 months agoMITView on GitHub
Full Harness Engineering workflow: requirement → OpenSpec → implement → verify → deliver. Project-agnostic. Usage: /harness <requirement-description-or-file-path>
- Commits and pushes
40 other projects use a version of this.
Adopted by
Most recently taken up by
- Ertinox7711/SGRR-AGI-V2their own version, first seen Nov 29, 2026
- Exploitacious/OPStheir own version, first seen Nov 29, 2026
- d-o-hub/do-harnesstheir own version, first seen Nov 29, 2026
- Take-Group/openrevoketheir own version, first seen Nov 29, 2026
- AshrafDurjoy/genai-shared-patternstheir own version, first seen Nov 16, 2026
- DavidTeam2008/harness-engineering-kittheir own version, first seen Nov 15, 2026
Used with
Projects with it also use to-issues, to-prd and 6 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.
GoogleSkillto-issues
Break a plan, spec, or PRD into independently-grabbable issues on the project issue tracker using tracer-bullet vertical slices.
Also in 3 projects that use this
GoogleSkillto-prd
Turn the current conversation into a PRD and publish it to the project issue tracker — no interview, just synthesis of what you've already discussed.
Also in 3 projects that use this
MicrosoftSkilldiagnose
Use to systematically diagnose why scenarios fail — identifies root causes by analyzing agent traces, codebase, and behavioral patterns
Also in 3 projects that use this
AWSSkillretro
Conduct a retrospective on a coding session.
Also in 3 projects that use this
SentrySkillskill-creator
Create new agent skills following the Agent Skills specification. Use when asked to "create a skill", "add a new skill", "write a skill", "make a skill", "build a skill", or scaffold a new skill with SKILL.md. Guides through requirements, writing, registration, and verification.
Also in 3 projects that use this
- +3 more from google
Other versions40 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 40
- revfactory/harness★ 9.1ksame name
- cexll/myclaude★ 2.8ksame name
- Simpleyyt/ai-manus★ 1.6ksame name
- BankrBot/openclaw-skills★ 1.2ksame name
- BankrBot/skills★ 1.2ksame name
- bam-bam-2/solo-skills★ 366same name
- serejaris/ris-claude-code★ 251same name
- serejaris/personal-corp-os★ 250same name
- SensorsIot/Embedded-AI-Harness★ 235same name
- skillsynchq/txcript★ 229same name
30 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 repository9 other files it gives its agents.
- channels-releaseSkill
- codexSkill
- product-video-promptSkill
- reviewSkill
- size-chart-auditSkill
- size-chart-syncSkill
- skill-writerSkill
- variant-swatch-imageSkill
- verifySkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. 0 are common, 9 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 27 edited versions we read keep these.
9
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
Before spawning any agents, establish project context.
- Very specific: line 22
Use pwd (current working directory) as the project root unless the user supplied an explicit path.
- Distinctive: line 32
If it exists: read it; pass its contents to every agent.
- Distinctive: line 34
If it does not exist: do a one-shot detection pass and offer to create it:
- Very specific: line 46
Read CLAUDE.md, AGENTS.md, README.md, and any docs/ index for layer rules, file placement conventions, and domain knowledge sources.
- Very specific: line 123
If OpenSpec is not installed or no openspec/ directory exists, ask the user how to proceed:
- Distinctive: line 127
Default to (A) when OpenSpec is available.
- Very specific: line 133
If $ARGUMENTS is a file path that exists, Read it.
- Distinctive: line 172
When the finalizer delivers its report, present it to the user and shut down the team.
- Distinctive: line 181
Test and coverage results.
- Distinctive: line 227
Never modify files outside the project root.
- Very specific: line 228
Never invent commands not present in .harness/project.md.
- Distinctive: line 229
Never assume a language ecosystem.
- Distinctive: line 230
Never hardcode absolute paths in code or artifacts — use project-relative paths.
“Common” is measured: kept by at least 6 in 10 of the 27 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 — Automated Development Pipeline
Launch a coordinated agent team to take a requirement from idea to verified, delivered code in any project.
Input: $ARGUMENTS — either a path to a requirement document, or a text description of what to build.
This skill is project-agnostic. It discovers the project's conventions at startup and uses them throughout — no language, framework, or domain is assumed.
Step 0: Bootstrap Project Context
Before spawning any agents, establish project context. The team must agree on how this project works so every agent uses the same commands and conventions.
0.1 Resolve project root
Use pwd (current working directory) as the project root unless the user supplied an explicit path. All later commands run relative to this root.
0.2 Load or create .harness/project.md
The framework reads project-specific configuration from .harness/project.md at the project root. This is the single source of truth shared by all agents.
ls .harness/project.md 2>/dev/nullIf it exists: read it; pass its contents to every agent.
If it does not exist: do a one-shot detection pass and offer to create it:
- Detect language/build system from manifest files:
package.json/pnpm-lock.yaml/yarn.lock→ Node/JS/TSpyproject.toml/poetry.lock/requirements.txt/setup.py→ Pythongo.mod→ GoCargo.toml→ Rustpom.xml/build.gradle*→ JVMGemfile→ Rubycomposer.json→ PHPMakefile/justfile/Taskfile.yml→ custom recipes (read scripts directly)
- Inspect existing scripts (
package.jsonscripts,pyproject.toml[tool.*],Makefiletargets, etc.) to derive build/lint/format/test/run commands. - Read
CLAUDE.md,AGENTS.md,README.md, and anydocs/index for layer rules, file placement conventions, and domain knowledge sources. - Draft a
.harness/project.md(template below) and ask the user to confirm before writing.
0.3 .harness/project.md template
# Project Harness Config
## Identity
- name: <project name>
- root: <absolute path>
- primary_language: <python | typescript | go | rust | java | …>
- package_manager: <poetry | pnpm | npm | go | cargo | …>
## Commands
> Use these EXACT commands. Agents must not invent equivalents.
- install: <e.g. `poetry install` | `pnpm install` | `go mod download`>
- build: <e.g. `pnpm build` | `cargo build`>
- format: <e.g. `poetry run black .` | `pnpm format`>
- format_check: <command that fails if formatting is off>
- lint: <e.g. `poetry run flake8` | `pnpm lint` | `golangci-lint run`>
- typecheck: <if applicable; else: none>
- test: <e.g. `poetry run pytest -v` | `pnpm test` | `go test ./...`>
- test_changed: <fast subset for iteration; optional>
- run: <e.g. `poetry run uvicorn app.main:app --port 19080` | `pnpm dev` | `go run ./cmd/server`>
- smoke_url: <optional; HTTP endpoint to curl as health check>
## Source Layout
- source_dirs: [<e.g. app/, src/, internal/>]
- test_dirs: [<e.g. tests/, __tests__/, *_test.go siblings>]
- entrypoints: [<files that bootstrap the app>]
## Architectural Rules (optional)
> Layer or module rules the verifier must enforce. Leave empty if the project has none.
- layer_order: [<e.g. constants, schemas, utils, configs, clients, models, tools, handlers, services, routers, main>]
- placement_rules:
- <e.g. "all Pydantic models live under app/schemas/">
- <e.g. "tool functions take `tool_context: ToolContext` as last param">
## Registration / Wiring (required if the project has an entry-point that aggregates handlers, tools, routes, or commands)
> List EVERY layer a new public symbol must touch to be reachable from production. The verifier will demand grep + live-import evidence covering each layer before passing the "Integration Impact" dimension.
- new_symbol_layers:
- <e.g. "package `__init__.py`: add to `from .<module> import <fn>` AND to `__all__`">
- <e.g. "agent/root.py: add to the `from <package> import (...)` block AND to the `LlmAgent(tools=[...])` list">
- wiring_probe: <fresh-subprocess import command that asserts a concrete count or membership, e.g. `poetry run python -c "from app.agent import root_agent; assert '<fn>' in [t.__name__ for t in root_agent.tools]"`>
## Conventions
- error_handling: <e.g. "use app/exceptions/ types; no bare raise Exception">
- logging: <e.g. "use LogUtil; no direct print">
- secrets: <e.g. "via app/configs/config.py only; never read env vars elsewhere">
- verification: "evidence-based — every PASS claim from any agent must include the exact command + verbatim output. Self-reports without command output are treated as unverified."
## Knowledge Sources (priority order)
1. <e.g. `Skill("feed-knowledge")` — domain concepts>
2. <e.g. `mcp__notion__notion-search` — product docs>
3. <e.g. in-repo `docs/` and `CLAUDE.md`>
4. <codebase grep>
## Runtime Smoke Test
- start_command: <command to start a dev server, optional>
- health_check: <curl recipe to confirm it's up, optional>
- stop_command: <how to stop, optional>
## Notes
<anything else the team should know>0.4 Pin OpenSpec presence
Run:
openspec --version 2>/dev/null && ls openspec/ 2>/dev/nullIf OpenSpec is not installed or no openspec/ directory exists, ask the user how to proceed:
- A. Install / initialize OpenSpec, then continue.
- B. Skip the OpenSpec layer and produce lighter artifacts (proposal + checklist) under
.harness/changes/<feature>/.
Default to (A) when OpenSpec is available; otherwise (B).
Step 1: Read the Requirement
If $ARGUMENTS is a file path that exists, Read it. Otherwise treat it as the requirement text directly.
Step 2: Create the Agent Team
TeamCreate: harness-<feature-short-name>The feature short name should be kebab-case, derived from the requirement.
Step 3: Spawn Agents
Spawn the four core agents in parallel. Pass each agent the full .harness/project.md content as part of its initial prompt so they share a single source of truth without re-discovering conventions.
Agent 1 — harness-planner
Owns planning: gathers context, generates OpenSpec artifacts, creates implementation tasks.
Agent 2 — harness-implementer
Picks up tasks one at a time, writes code + tests using the project's commands.
Agent 3 — harness-verifier
Independent adversarial reviewer. Verifies each completed task across seven dimensions using the project's commands. Does not share context with the implementer.
Agent 4 — harness-finalizer
Activates when every task has passed verification. Runs full integration checks and produces the delivery report.
Each agent's behavior is defined in its agent file (~/.claude/agents/harness-*.md). The skill only orchestrates.
Step 4: Monitor as Team Lead
- Receive messages from agents.
- Handle escalations (a task failing verification 3×).
- On
HANDOFFmessages, spawn a freshharness-handoffagent into the same team with the handoff document path and the previous role. - When the finalizer delivers its report, present it to the user and shut down the team.
Step 5: Deliver
Show the user:
- OpenSpec change summary (
openspec status --change "<feature>") — or the lightweight summary if OpenSpec was skipped. - Files changed (
git diff --stat). - Test and coverage results.
- Spec coverage matrix (requirement → code → test).
- Warnings, skipped checks, open questions.
- Suggest next step:
/opsx:archiveif using OpenSpec, otherwisegit commit/gh pr create.
Knowledge Sources
Agents resolve domain knowledge in the order declared in .harness/project.md → Knowledge Sources. If that section is empty, they fall back to:
CLAUDE.md,AGENTS.mdat the project rootREADME.md,docs/- Codebase via
Grep/Read
The framework does not assume any specific MCP server (Notion, Linear, etc.) is available.
Context Handoff
Long-running features risk context fatigue. Any agent may declare HANDOFF when it senses pressure. The flow:
- The agent writes a handoff document under
.harness/changes/<feature>/handoff/<role>-<N>.md(oropenspec/changes/<feature>/handoff/...when OpenSpec is in use). - It sends
HANDOFF: written to <path>and shuts down. - The team lead spawns a
harness-handoffagent into the same team with the handoff path + original role. - The fresh agent verifies state, then continues.
Full context resets beat compression. A fresh agent with a good handoff outperforms a fatigued agent with a stuffed window.
Error Handling
| Situation | Behavior |
| Planner can't understand the requirement | Ask the user for clarification before generating artifacts. |
| Implementer fails 3× on one task | Verifier escalates to team lead → present to user. |
| Runtime check fails because of missing external deps | Mark SKIP with note, not FAIL. |
| Project commands fail at bootstrap | Stop and ask the user to fix .harness/project.md. |
| Agent requests handoff | Spawn fresh continuation agent (above). |
Project Hygiene
- Never modify files outside the project root.
- Never invent commands not present in
.harness/project.md. - Never assume a language ecosystem; read the config.
- Never hardcode absolute paths in code or artifacts — use project-relative paths.
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.

