harness-doctor

harness-doctor is a skill for Claude Code from oeftimie/vv-claude-harness. It costs 130 tokens per session (3,197 once invoked), scanned A, original, MIT.

A report-first health check for projects managed by a harness, a set of project hooks and files that enforce checks. It verifies required tools, hooks, settings, ignore rules, and harness files without changing the project by default.

In plain words
What is it for?
Use it to check whether a harness project is installed correctly, find missing or non-executable hooks, detect configuration and version problems, and suggest repairs.
Why use it?
It shows exactly what is wrong before any repair is made. A separate fix option can apply only the documented mechanical repairs after you have reviewed the report.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: reads .claude/ paths; mentions subagents.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the vv-harness plugin — 6 skills, 7 agents, 5 hooks shipped together

Good fit Use it to check whether a harness project is installed correctly, find missing or non-executable hooks, detect configuration and version problems, and suggest repairs.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add oeftimie/vv-claude-harness
Claude Code
/plugin install vv-harness

Made for: Claude Code.

Or install vv-harness, the plugin that ships this one along with the rest of its 6 skills, 7 agents, 5 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for harness-doctor

README.md
[![agentmods](https://agentmods.dev/badge/skills/oeftimie/vv-claude-harness/harness-doctor/github.svg)](https://agentmods.dev/skills/oeftimie/vv-claude-harness/harness-doctor)
Your own site
<a href="https://agentmods.dev/skills/oeftimie/vv-claude-harness/harness-doctor"><img src="https://agentmods.dev/badge/skills/oeftimie/vv-claude-harness/harness-doctor/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for harness-doctor

Your own site · 80×15
<a href="https://agentmods.dev/skills/oeftimie/vv-claude-harness/harness-doctor"><img src="https://agentmods.dev/badge/skills/oeftimie/vv-claude-harness/harness-doctor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 130 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,197 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00130 $0.03197
Opus 5 $0.00065 $0.01598
Sonnet 5 $0.00026 $0.00639
Haiku 4.5 $0.00013 $0.00320

Measured 12d ago against content hash d0f382066289, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

harness-doctor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (doctor.py, fixes.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/harness-doctor/SKILL.md · 208 lines

How it starts

The opening of the file, as written. The whole thing — 208 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Harness Doctor

Structural, idempotent health check for a single harness project. It is report-first: running it never changes anything on disk. It only writes when re-run with --fix, and --fix applies exactly the six mechanical steps in INSTALL.md's "Upgrading an existing harness project" section — nothing broader, and never without you having first seen the report and asked for the fix.

Running it

python3 "${CLAUDE_PLUGIN_ROOT}/skills/harness-doctor/doctor.py" .

A clean project prints a single line:

healthy

A project with problems prints one FINDING:/fix: pair per problem and exits non-zero:

FINDING: hook 'enforce-scope.sh' is not executable
  fix: chmod +x .claude/hooks/enforce-scope.sh

A directory with no .harness/ at all is not a harness project — the doctor exits 2 and points to /harness-init instead of running any checks.

What it checks

  1. Dependencies: python3 and git resolve on PATH — every hook depends on python3, and nothing else in this project checks for it.
  2. Hook set, each entry classified so a missing artifact is reported at the right severity:
    • Hard-required (missing or non-executable = error): verify-task-quality.sh, enforce-scope.sh, verify-git-identity.sh, statusline.sh.
    • Optional-v5 (missing = "upgrade available", not an error): harness_state.py (post-OVI-50) — verify-task-quality.sh works identically with or without it, so its absence is a suggestion, not a defect.
    • Stale Agent Teams artifacts (present = flagged for removal, not an error): a leftover check-remaining-tasks.sh hook or .claude/teammate-scope.txt file from a project initialized before the v6 Agent Teams retirement. Nothing invokes them anymore; the doctor flags them and --fix removes them.
    • Not-yet-applicable: a commit-content gate (post-S4/OVI-64). The doctor only checks for this once the running plugin version actually ships a commit-gate template; until then, a missing per-project copy produces no finding of any kind.
  3. .claude/settings.json: parses; carries statusLine, a non-empty permissions.allow, and hook wiring for PreToolUse (enforce-scope.sh, verify-git-identity.sh, commit-gate.sh) and TaskCompleted (verify-task-quality.sh). The check is structural — it accepts either the "$CLAUDE_PROJECT_DIR"/... form or a simpler relative path, since both are functionally equivalent; it does not enforce one string form over the other. Stale blocks are flagged for removal: a PostCompact hook block (superseded by the plugin's SessionStart compact handling), a TeammateIdle hook block, and the CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS env var (both dead since the v6 Agent Teams retirement).
  4. .gitignore: does not exclude .claude/ without the !.claude/hooks/ and !.claude/settings.json exceptions, and does include .harness/SESSION_INCOMPLETE.
  5. .harness/ state: harness.json and features.json parse; features.json additionally validates against scripts/validate-features.py when the running plugin ships one; context_summary.md carries the section headings that always appear per its canonical template (rules/context-summary.md): ## Active Context, ## Cross-Cutting Concerns, at least one ## Domain: section, and ## Meta-Patterns. Repeatable dated ## Meta-Session [DATE] entries and the optional ## Closed Work Streams section are not checked for bare presence — a project's first session legitimately has neither yet.
  6. v5 upgrade staleness: a stale PostCompact block (see check 3) and missing v5 artifacts (statusline.sh, the settings wiring, the .gitignore entry, harness_state.py) are the staleness surface for a per-project doctor. The global v3.6-era stale-file manifest in CHANGELOG.md is explicitly scoped to ~/.claude/ only and does not apply here.
  7. Feature test_file existence (F066): every feature with status passing or in-progress and a non-null test_file must have that path actually resolve in the working tree — features.json recording a test file is a claim, not a fact, and nothing else in the harness validates it. pending features and features with no test_file set are not checked (nothing to verify yet).
  8. Plugin version drift (F068): .harness/harness.json's plugin_version field is compared against the currently running plugin's own .claude-plugin/plugin.json version. scripts/stamp.sh writes it at project creation (mechanical, not decision-shaped, so the stamp emits it directly rather than deferring it to a /harness-init follow-up step like git_identity/worker). A mismatch is reported (not an error) — hooks and skills may have legitimately changed between the two versions, and the reader decides whether that matters here. A project with no plugin_version recorded at all — one stamped before F068 shipped, most likely — gets an "upgrade available" finding, same class as the missing-harness_state.py case (check 2): fixable, not a hard error, and --fix bootstraps it. This is the only path by which such a project can ever acquire the field, so unlike the worker block, absence here is not silently valid.
  9. mld non-injection: if .harness/mld/ exists, the currently running plugin's hooks/session-start.sh must not reference it anywhere — that directory is telemetry, never something read into the model's context. This checks the plugin's own copy rather than anything under the project's .claude/hooks/, since session-start.sh is invoked directly from CLAUDE_PLUGIN_ROOT and is never copied per-project. If .harness/mld/ doesn't exist, or the plugin root can't be determined, there is nothing to guard and no finding is produced.
  10. focused_test skip contract (F108): .harness/init.sh is a per-project copy made at init time, so v5.5.0's focused_test exit-code contract (F106 — exit 3 reserved for a skip, a runner's own exit 3 remapped to 1, a missing test file skipped rather than faked green) never reaches a project that adopted focused_test before F106 shipped. If init.sh mentions focused_test outside a comment (the same support-detection heuristic verify-task-quality.sh uses) but is missing the skipped (exit 3) marker on a non-comment line — or still carries a pre-F106 treating as pass fake-green arm, which catches a partially hand-applied repair — the doctor reports it as upgrade-available. The run_focused exit-3 remap is not required: a stack with no per-file runner legitimately skips every invocation with the marker and defines no run_focused at all (the trade-off — a runner-invoking init.sh missing only the remap goes undetected — was accepted in OVI-147's field validation over false-positiving on every always-skip project). All of these are checked against non-comment lines only, so a comment quoting the markers (a TODO note, or the finding text pasted as a reminder) neither satisfies nor triggers the check. An init.sh with no focused_test support at all, or none present, produces no finding — there is nothing to check yet.
  11. Agent Teams migration (OVI-144): Agent Teams was retired in v6, after v5.7.0 made worktree-isolated workflows the primary parallel path. A project initialized under v5.x still carries four artifacts of it, each reported as a migration step with a fixer: a TeammateIdle route to check-remaining-tasks.sh, the CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS env var, the orphaned .claude/hooks/check-remaining-tasks.sh itself, and a leftover .claude/teammate-scope.txt. The last one is the only remnant that still has an effect — while it exists, enforce-scope.sh gates edits against a scope no running teammate owns.

Read the full file on GitHub · 208 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 208 lines · 130 tokens per session scan A d0f382066289

Subscribe to this mod's changes

harness-doctor is a skill published in the GitHub repository oeftimie/vv-claude-harness (19 stars, last pushed 20d ago), licensed MIT. It adds 130 tokens to every session and 3,197 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

debug-optimize-lcp

Guides debugging and optimizing Largest Contentful Paint (LCP) using Chrome DevTools MCP tools. Use this skill whenever the user asks about LCP performance, slow page loads, Core Web Vitals optimization, or wants to understand why their page's main content takes too long to appear. Also use when the user mentions…

ChromeDevTools/chrome-devtools-mcp · 99 tokens

systematic-debugging

Use when debugging a failing test, build error, or runtime issue that isn't immediately obvious. Guides a 4-phase root cause analysis instead of random fix attempts.

open-metadata/OpenMetadata · 37 tokens

diagnose

Trace from a reproduced symptom to the source code that causes it. Pin the specific file and approximate line, rate confidence in the cause and clarity of the fix independently, and always propose a concrete fix.

emdash-cms/emdash · 43 tokens

repro-admin

Reproduce an EmDash admin UI bug. Attach a container, start the demo dev server, drive the admin with agent-browser using the dev-bypass session, and capture the reproduction as screenshots plus a replayable transcript.

emdash-cms/emdash · 48 tokens

log-error-digest

Analyze log files to troubleshoot errors, identify peak error periods, and produce error clustering, frequency statistics, and time distribution reports. Supports JSON, syslog, and Nginx formats with automatic detection. Use when a user uploads a .log file and asks to analyze errors, find patterns, debug issues, or…

zebbern/claude-code-guide · 71 tokens

byted-util-volcengine-detect-retry

An orchestration workflow for Volcengine Cloud Detect, a service that checks websites or network endpoints from test locations.

bytedance/agentkit-samples · 101 tokens