/agent-harness:agent-harnessfrom agent-harness
Makes a repository agent-ready by verifying instruction indexes, documented commands, and harness CI; bootstraps missing artifacts; audits harness maturity; integrates delegated-review evidence with execution and merge controls.
Ships in agent-harness. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
The agent harness makes a repo agent-ready with self-sustaining enforcement. This skill installs it; CI, hooks, and conventions then enforce it.
Always start here. From the target repo root, run:
${CLAUDE_SKILL_DIR}/scripts/verify-harness.sh
Analyse the output and fix or suggest fixes. Verification checks dead references, line counts, missing artefacts, and command/target alignment.
When artefacts are missing, create them from templates:
| Artefact | Template | Platform |
|---|---|---|
AGENTS.md | templates/AGENTS.md.tmpl | All |
docs/ARCHITECTURE.md | templates/ARCHITECTURE.md.tmpl | All |
docs/exec-plans/{active,completed}/ | Create directories | All |
.github/workflows/harness-verify.yml | templates/harness-verify.yml.tmpl | GitHub |
.gitlab-ci.yml (harness-verify job) | templates/gitlab-ci-harness-verify.yml.tmpl | GitLab |
.forgejo/workflows/harness-verify.yml | templates/forgejo-harness-verify.yml.tmpl | Forgejo/Gitea |
.github/workflows/harness-checkpoints.yml | templates/harness-checkpoints.yml.tmpl | GitHub |
.gitlab-ci.yml (harness-checkpoints job) | templates/gitlab-ci-harness-checkpoints.yml.tmpl | GitLab |
.forgejo/workflows/harness-checkpoints.yml | templates/forgejo-harness-checkpoints.yml.tmpl | Forgejo/Gitea |
.github/pull_request_template.md | templates/pull_request_template.md.tmpl | GitHub |
.gitlab/merge_request_templates/Default.md | templates/merge_request_template.md.tmpl | GitLab |
.forgejo/pull_request_template.md | templates/pull_request_template.md.tmpl | Forgejo/Gitea |
.envrc | templates/envrc.tmpl | All |
| Makefile harness targets | templates/Makefile.harness.tmpl | All |
scripts/verify-harness.sh | ${CLAUDE_SKILL_DIR}/scripts/verify-harness.sh (copy directly) | All |
.harness/checkpoints.yml | see references/enforcement-mechanisms.md § 12 | All |
Populate with repo-specific values and preserve unrelated content. Existing authorization to update these files remains valid; ask only for a new scope or permission decision, not for each routine edit.
Report the repo's maturity level (1, 2, or 3) and show what is needed to reach the next level. See references/maturity-levels.md for detailed criteria.
A skill's own validator is run by an agent only if the agent decides to, and measured over six trials on the case where it was most obviously relevant, it was run once (#61). A repository therefore declares in .harness/checkpoints.yml which skills' checkpoints apply to it, pinned by ref, and a CI job runs them:
${CLAUDE_SKILL_DIR}/scripts/run-shipped-checkpoints.sh
It fails the job on a failing checkpoint of severity error, reports the rest, and exits 2 on a declaration it cannot resolve rather than passing quietly. verify-harness.sh errors when a declaration has no job, and when a job has no declaration.
For explicitly required results, set require_pass on the declaration entry.
Only one passing result per named ID fulfills that obligation; skipped, blocked
or missing results leave verification incomplete. See
references/enforcement-mechanisms.md, section 12, for the contract and limits.
docs/.references/skill-integration-map.md for skill routing (@agent-rules, @github-project, @enterprise-readiness, @retro).references/skill-integration-map.md when integrating review or eval results.retro-skill. The harness verifies integration points exist (AH-22, AH-23) but does not invoke retro at runtime.Level 1 -- Basic: AGENTS.md exists, is an index, documents commands.
Level 2 -- Verified: CI enforces harness integrity, AGENTS.md references resolve, commands match Makefile/scripts, ARCHITECTURE.md exists.
Level 3 -- Enforced: Branch protection requires harness CI, git hooks auto-activate, PR template includes checklist, drift detection on push.
See references/maturity-levels.md for the full breakdown.
references/maturity-levels.md -- Maturity criteria and progressionreferences/harness-engineering-overview.md -- Theory: four functions, patternsreferences/agent-first-architecture.md -- Legibility, layered deps, agent-first techreferences/enforcement-mechanisms.md -- 12-mechanism table (CI, hooks, protection, drift, shipped checkpoints)references/skill-integration-map.md -- Skill routing map + integration contracts with companion skillscheckpoints.yaml (opens in a new tab)evals/eval_queries.json (opens in a new tab)evals/evals.json (opens in a new tab)references/adr/001-verify-first-design.md (opens in a new tab)references/adr/002-enforcement-layers.md (opens in a new tab)references/adr/003-skill-delegation-model.md (opens in a new tab)references/adr/004-agents-md-as-index.md (opens in a new tab)references/adr/005-checkpoint-maturity-model.md (opens in a new tab)references/agent-first-architecture.md (opens in a new tab)references/enforcement-mechanisms.md (opens in a new tab)references/harness-engineering-overview.md (opens in a new tab)references/maturity-levels.md (opens in a new tab)references/skill-integration-map.md (opens in a new tab)scripts/run-shipped-checkpoints.sh (opens in a new tab)scripts/verify-harness.sh (opens in a new tab)templates/AGENTS.md.tmpl (opens in a new tab)templates/ARCHITECTURE.md.tmpl (opens in a new tab)templates/Makefile.harness.tmpl (opens in a new tab)templates/envrc.tmpl (opens in a new tab)templates/exec-plan.md.tmpl (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
agent-harness@netresearch-claude-code-marketplace is listed by netresearch/claude-code-marketplace — review the source before installing
npx claudepluginhub netresearch/claude-code-marketplace --plugin agent-harness