
agent-harness
Skill that makes repos agent-ready by verifying, bootstrapping, and enforcing harness infrastructure.
- GitHub stars
- 92
What it does
- Adds one skill,
agent-harness, that verifies instruction index, documented commands, and harness CI in a repository - Covers three maturity levels, Basic, Verified, and Enforced, with a
verify-harness.shscript for checks and status - Enforces AGENTS.md as a compact index under 150 lines, backed by CI, git hooks, and branch protection
- Designed for teams that want enforcement that works for all contributors, human or AI, with or without the skill
Use when making a repo agent-ready, verifying harness consistency, checking for documentation drift, bootstrapping harness infrastructure (AGENTS.md as index, docs/ structure, CI verification, enforcement mechanisms), or auditing repo agent-readiness maturity level.
Add marketplace
/plugin marketplace add netresearch/claude-code-marketplaceRun it inside Claude Code once, then install the plugin below.
Install
/plugin install agent-harness@netresearch-claude-code-marketplaceRun it inside Claude Code after adding the marketplace.
Files
Discovered from sourceAgent Harness
The agent harness makes a repo agent-ready with self-sustaining enforcement. This skill installs it; CI, hooks, and conventions then enforce it.
Modes
1. Verify (primary)
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.
2. Bootstrap
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.
3. Audit
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.
Running the checks that skills ship
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.
Key Principles
- AGENTS.md is an index, not an encyclopedia. Keep it under 150 lines. Put detail in
docs/. - Enforcement is project-level. CI workflows, git hooks, and branch protection enforce the harness -- not this skill at runtime.
- Verify first, bootstrap second. Always run verification before creating artefacts. The skill checks artefacts, not tools.
- Delegate specialist work. See
references/skill-integration-map.mdfor skill routing (@agent-rules,@github-project,@enterprise-readiness,@retro). - Verify evidence and enforcement separately. A structural pass, static review,
actual test execution and a protected merge gate prove different things. Record
the checked revision/environment and unresolved coverage; a missing tool, denied
access or timeout is not a pass. Use the review evidence contract in
references/skill-integration-map.mdwhen integrating review or eval results. - Bound delegated work. Use focused specialists for independent risks within one task budget. Delegation cannot broaden permissions or count as a human's approval. Reuse valid evidence for the same revision/property; rerun affected checks when either changes.
- Does not own learning. Session retrospection, outcome review, and constitutional audits are delegated to
retro-skill. The harness verifies integration points exist (AH-22, AH-23) but does not invoke retro at runtime.
Maturity Levels
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
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 skills
Readme
Agent Harness Skill
Agent Skill for bootstrapping, verifying, and enforcing agent-harness infrastructure in repositories. Makes repos agent-ready with self-sustaining enforcement mechanisms that work for all contributors -- human or AI, with or without skills installed.
What is Agent Harness?
Agent harness is repo-level infrastructure that makes AI coding agents reliable. Instead of relying on individual skill installations, the harness embeds enforcement directly into the project via CI workflows, git hooks, and conventions.
The skill follows the "verify-first" principle: it primarily checks consistency, secondarily creates missing artefacts, and delegates specialised work to existing skills.
Key concepts:
- AGENTS.md as compact index (<150 lines), not encyclopedia
- Three enforcement layers: hard (CI/branch protection), automatic (.envrc/hooks), soft (conventions)
- Three maturity levels: Basic, Verified, Enforced
- The skill is the installer; the harness enforces itself
Installation
Claude Code Marketplace
/plugin marketplace add netresearch/claude-code-marketplace
/plugin install agent-harness@netresearch-claude-code-marketplace
Without a marketplace
Since Claude Code 2.1.157 a plugin directory under your personal skills directory loads on its own:
mkdir -p ~/.claude/skills
git clone https://github.com/netresearch/agent-harness-skill.git \
~/.claude/skills/agent-harness
It loads as agent-harness@skills-dir on the next session. Update with git -C ~/.claude/skills/agent-harness pull and start a new session; remove it by deleting the directory. This route has no claude plugin update.
Composer
composer require netresearch/agent-harness-skill
npm (Node Projects)
npm install --save-dev \
@netresearch/agent-skill-coordinator \
github:netresearch/agent-harness-skill
Requires @netresearch/agent-skill-coordinator, which discovers the skill in node_modules and registers it in AGENTS.md via a postinstall hook. For pnpm, also allowlist the coordinator's postinstall:
{
"pnpm": {
"onlyBuiltDependencies": ["@netresearch/agent-skill-coordinator"]
}
}
npx (skills.sh)
npx skills add https://github.com/netresearch/agent-harness-skill
Git Clone
git clone https://github.com/netresearch/agent-harness-skill.git
Usage
Verify (Primary Mode)
Check harness consistency in the current repo:
"Verify the harness in this repo" "Check if this repo is agent-ready" "Run harness verification"
Bootstrap
Create missing harness artefacts:
"Make this repo agent-ready" "Bootstrap the harness for this project"
Audit
Check maturity level:
"What's the harness maturity of this repo?" "Audit agent-readiness"
CLI (without skill)
The verification script works standalone. The bootstrap mode copies it to scripts/verify-harness.sh in your repository, which the examples use; in this repository it is skills/agent-harness/scripts/verify-harness.sh.
# Full check
bash scripts/verify-harness.sh --format=text
# Check specific level
bash scripts/verify-harness.sh --level=2
# Status summary
bash scripts/verify-harness.sh --status
# In CI
bash scripts/verify-harness.sh # auto-detects GitHub Actions format
Maturity Levels
Level 1 -- Basic
- AGENTS.md exists and is index-format
- Commands documented
- docs/ directory exists
Level 2 -- Verified
- All AGENTS.md references resolve
- Documented commands match actual targets
- docs/ARCHITECTURE.md exists
- CI harness verification active
Level 3 -- Enforced
- harness-verify is a required check
- Git hooks auto-activate on clone
- PR template includes harness checklist
- Drift detection active
See maturity-levels.md for details.
Enforcement Mechanisms
The skill sets up enforcement that works for ALL contributors:
| Mechanism | Layer | Works without skill? |
|---|---|---|
| CI Workflow | Hard | Yes -- runs on GitHub |
| Branch Protection | Hard | Yes -- GitHub server-side |
| .envrc (direnv) | Automatic | Yes -- in repo |
| composer/npm hooks | Automatic | Yes -- runs on install |
| Git hooks | Automatic | Yes -- in repo |
| AGENTS.md | Soft | Yes -- agents read it |
| PR Template | Soft | Yes -- GitHub shows it |
| Makefile targets | Soft | Yes -- in repo |
See enforcement-mechanisms.md for details.
Integration with Other Skills
The harness skill delegates specialised work:
| Skill | Delegation | What harness verifies |
|---|---|---|
| agent-rules | AGENTS.md content | Index format, length, references |
| github-project | Branch protection, PR templates | Required checks configured |
| enterprise-readiness | Quality gates, SLSA | Gates present |
| typo3-testing | Test infrastructure | Test commands work |
| git-workflow | Commit conventions, hooks | Hooks installed |
| automated-assessment | Checkpoint evaluation | Maturity checkpoints |
See skill-integration-map.md for details.
Architecture Decisions
- ADR-001: Verify-First Design
- ADR-002: Enforcement Layers
- ADR-003: Skill Delegation Model
- ADR-004: AGENTS.md as Index
- ADR-005: Checkpoint Maturity Model
Contributing
Contributions are welcome. CONTRIBUTING.md describes the setup, how to run the tests, where CI runs them, and the rule that new behaviour comes with tests. In addition:
- The SKILL.md body stays under 500 lines (
validate-skill.shin the Lint workflow enforces it) - Templates remain self-contained and portable
Governance and policies
This repository follows the organisation-wide policies of netresearch:
- Governance: roles, how changes are decided and disputes resolved, and who controls access to sensitive resources.
- Roadmap: the maintenance work planned and excluded for the coming year.
- Handling of dependency and code analysis findings: which vulnerability, licence and static-analysis findings block a change, the deadlines for the others, and how exceptions are recorded.
- Secret management: where CI secrets are stored, who can access them, and when they are rotated.
- Access roster: the accounts with admin, maintain and write access to this repository.
Dependency and static security checks that run on every pull request to main (.github/workflows/security.yml):
- Dependency review: fails on a known vulnerability of severity high or critical in a dependency the pull request adds or changes.
- Composer Audit: installs the Composer dependencies from
composer.jsonand fails on a known vulnerability in them. - Opengrep: static security analysis of the repository's code; which findings fail the check is set by the organisation's static analysis rule.
- Betterleaks: fails on a committed secret.
- zizmor: static analysis of the GitHub Actions workflows.
Branch protection of main requires Composer Audit, Opengrep and Betterleaks to pass, together with Skill Validation (.github/workflows/lint.yml), CodeQL's analysis of the workflows, SonarCloud and the DCO check. Dependency review and zizmor run on every pull request but are not required checks.
What you can and cannot expect from this repository in terms of security, with its threat model: docs/SECURITY-ASSURANCE.md.
License
Split licensing:
- Code (scripts, workflows, configs): MIT
- Content (skills, references, docs): CC-BY-SA-4.0
Copyright (c) 2026 Netresearch DTT GmbH
Details
- Marketplace
- netresearch/claude-code-marketplace
- Source
- netresearch/agent-harness-skill
- Category
- Development
- Listed since
- Apr 7, 2026
More from netresearch/claude-code-marketplace
All 41- agent-rules
- automated-assessment
- cli-tools
- concourse-ci
- context7
- data-tools
- docker-development
- enterprise-readiness
- file-search
- formal-model-checking
- german-technical-writing
- git-workflow
- github-project
- github-release
- go-development
- jira-integration
- jujutsu-workflow
- markdown-to-pdf
- matrix-communication
- netresearch-branding
- orocommerce
- peer-qa-review
- php-modernization
- php-structured-edit
Similar to agent-harness
More Agent Workflow & Planning
agent-rulesPluginnetresearch/claude-code-marketplace92 starsGenerate and maintain AGENTS.md, copilot-instructions.md, and other agent rule files. Extracts CI rules, architecture boundaries, ADRs, and GitHub rulesets. Sup
harness-engineeringSkillpproenca/dot-skills312 installsAgent-first repository scaffolding that builds knowledge maps, domain boundaries, enforcement rules, and quality scoring for coding agents.
postmanPluginanthropics/claude-plugins-official47.9K starsWork with Postman from your agent: bootstrap a repo's Postman setup, mock an API before it's implemented, run collection and governance checks in CI, monitor a
harness-creatorSkillwalkinglabs/learn-harness-engineering2.5K installsScaffolds and audits repository harnesses that keep coding agents in scope, verified, and resumable across sessions.
agentforce-adlcPluginanthropics/claude-plugins-official47.9K starsAgentforce Agent Development Life Cycle — author, discover, scaffold, deploy, test, and optimize .agent files
doc-auditPlugindgalarza/claude-code-workflows72 starsAudit codebase documentation for accuracy, completeness, and freshness against actual code. Auto-fixes small discrepancies, reports structural changes. Companio