Harness Inspect¶
Audit an existing harness for rot, gaps, and improvement opportunities. Two modes — health check (quick pass) or full audit (thorough assessment).
| Version | CHANGELOG.md |
| Author | Arne Franken |
| Visibility | Public |
When to use¶
| Trigger | Mode |
|---|---|
| Monthly cadence | Health check |
After any structural change, Makefile edit, or harness-file change |
Health check |
| Quarterly cadence | Full audit |
| After an agent incident or major refactor | Full audit |
| After adopting a new AI tool or runtime | Full audit |
| Health check surfaced more than one or two issues | Escalate to full audit |
If the repository has no harness yet, or has one that needs migration, use the harness-setup skill first. It scans for existing artifacts and chooses the right path automatically.
How to execute¶
Invoke the skill from any agent that supports the Agent Skills spec:
To run a specific mode directly — bypasses the interactive prompt, useful in CI:
Claude Code does not scan .agents/skills/ — symlink this skill into a Claude skills directory so it's discovered (both auto-invocation and /harness-inspect): ln -s <repo>/.agents/skills/harness-inspect ~/.claude/skills/harness-inspect for a user-global install, or .claude/skills/harness-inspect → .agents/skills/harness-inspect inside a repo.
Run this through the runtime your agents actually use in production. Some runtimes (e.g., AWS Bedrock agents) re-route or override system prompts in ways that can silently drop
INVARIANTS.mdcontent. An audit run in Claude Code or against the raw model API may pass while the production runtime is operating without the invariants. The Health Check's question 2 (constraint propagation) is designed to catch this.
What to expect¶
Health check — ten questions, pass/fail per question, action items only:
- Integrity — file paths, commands, and links resolve
- Constraint propagation — invariants actually reach the model
- Sensors —
make checkpasses - Coverage gaps — module-level
AGENTS.mdfiles where they should exist - Enforcement gaps —
INVARIANTS.mditems that could move from human review to automation - Footgun freshness — known footguns in
AGENTS.mdare still active - Token budget — auto-loaded total ≤ 4,000 tokens (tokenizer-relative heuristic; see chapter 09 Context Budget; override via
INVARIANTS.md) - File size discipline — core files within line budget AND using progressive discovery (see chapter 04; override via
INVARIANTS.md) - Content accuracy — factual claims in harness files (versions, paths, commands) match actual source files
- Claude Code integration — only if Claude Code is a target (
CLAUDE.mdor.claude/present): skills are discoverable via resolving.claude/skills/symlinks, and no stale.claude/commands/@-shims duplicate them
Full audit — eight-step assessment producing a verdict table. For repeat runs, paste the prior verdict table into the prompt — the agent produces a delta automatically.
Prerequisites¶
- Read access to the repository
- An existing harness to audit (run
/harness-setupfirst if there isn't one) - (Optional) Prior verdict table pasted into the prompt for delta tracking
Background¶
This skill operationalizes chapter 09 — Keep It Current of Repository Harnesses for AI Coding Agents: A Practical Guide.
Full guide: https://github.com/adobe/ai-repo-harness-guide