harness-doctor
Skill1 starsChanged 5 months agoMITView on GitHub
Check whether this machine has what a project's agentic harness needs — the plugins, skills, MCP servers, CLIs, and API-key variables named in its tools registry — and report each as ok, missing, disabled, stale, or broken-link, read-only. Use to check the system configuration for a harness, to diagnose why a harness tool is unavailable, to see what is missing before or after a harness build, or when a generated {domain}-setup-check skill hands off to it. It proposes pinned install rows for what is missing and hands them to harness-setup to install under approval; it installs nothing itself. Not for assessing how well a harness is used (that is harness-review), not for choosing tools (tool discovery in harness-setup, or visual-advisor), and not for debugging Claude Code itself.
5 other projects use a version of this.
Adopted by
Most recently taken up by
- Mark-Life/agent-skillstheir own version, first seen Nov 6, 2026
- PromptPartner/agentsmiththeir own version, first seen Oct 26, 2026
- thefiredev-cloud/meshvault-harnesstheir own version, first seen Oct 13, 2026
- oeftimie/vv-claude-harnesstheir own version, first seen Aug 23, 2026
- jubscodes/harness-doctortheir own version, first seen Jun 2, 2026
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- PromptPartner/agentsmith★ 173same name
- oeftimie/vv-claude-harness★ 20same name
- jubscodes/harness-doctor★ 9same name
- Mark-Life/agent-skills★ 4same name
- thefiredev-cloud/meshvault-harness★ 0same name
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 repository7 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- harness-feedbackSkill
- harness-reviewSkill
- harness-setupSkill
- spec-advisorSkill
- tracker-advisorSkill
- visual-advisorSkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 1 is distinctive, and 2 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 22
Run nothing that mutates the machine or the project: no claude plugin install, no npx skills add, no claude mcp add, no edits to settings.
- Very specific: line 24
Write, Edit, NotebookEdit.
- Distinctive: line 82
When a role's preferred tool is not ok but its alternative is, say the harness still works on the alternative — a gap is not always a …
“Common” is measured: kept by at least 6 in 10 of the 5 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 doctor — check the system a harness depends on (read-only)
A harness names its tools by role in tools.md; a teammate's machine, a fresh laptop, or a CI
runner may not have them. This skill checks, deterministically, whether each tool the harness
relies on is actually present and usable here, and turns every gap into a proposed install
row with a pinned source. It never installs, enables, or edits anything: installing is a write,
and writes belong to harness-setup, gated by its Step 2b change manifest.
It lives in the plugin so every harness benefits when it improves; each generated harness carries
a thin {domain}-setup-check skill that calls this one when the plugin is present and falls back
to its own inline checks when it is not.
The read-only contract
Run nothing that mutates the machine or the project: no claude plugin install, no
npx skills add, no claude mcp add, no edits to settings. The skill sets disallowed-tools:
Write, Edit, NotebookEdit; Bash stays available for the detection script and read-only
queries — the prose governs it. Never print a secret: API keys are checked for presence only,
and config files are read for server names, never for their env or args values.
Step 1: Gather the required tools
- From a harness — read the
tools.mdregistry in thereferences/directory of the harness orchestrator skill. Take each row's preferred tool and its alternative. Use theKindandSourcecolumns when present; an older registry without them is fine — infer the kind from the tool name and mark the row "Kind inferred" in the report. - From a caller —
visual-advisororharness-setupmay pass a tool list directly. - Standalone with neither — say there is no registry to check against, and offer
harness-setuptool discovery instead of guessing.
Step 2: Build the probe list and run the script
Translate each tool into one line tool|probe[+probe…]. A tool can need more than one thing
(lavish is a skill and needs npx):
| Probe | Checks |
plugin:<name@marketplace> | installed, enabled for this project, install path still on disk |
skill:<name> | a SKILL.md in the user, project, synced, or ~/.agents skill dirs, or inside an enabled plugin |
mcp:<name> | a server of that name in user, project, .mcp.json, or enabled-plugin config |
cli:<cmd> | the command is on PATH |
env:<VAR> | the variable is set (value never shown) |
remote:<name> | a claude.ai connector, or a skill built into the host (e.g. dataviz) — cannot be checked from files |
Then run bash ${CLAUDE_PLUGIN_ROOT}/skills/harness-doctor/scripts/check-system.sh --project "$PWD"
with the lines on stdin. It prefers
claude plugin list --json for plugins (the CLI resolves scope and enablement correctly) and
falls back to the plugin files — marking the detail (degraded) — when the CLI is absent, fails,
or returns an unexpected shape.
It respects CLAUDE_CONFIG_DIR. Supported on macOS, Linux, and WSL; elsewhere it exits with a
message, and the skill reports that the check could not run.
Step 3: Report
Present one table, worst first:
| Tool | Role | Status | Detail | Next step |
The statuses and what each means:
- ok — present and usable.
- missing — not found anywhere; propose an install row.
- disabled — installed but turned off; propose an enable row.
- disabled-here — a project-scoped plugin enabled for a different project path.
- stale — registered, but its install path is gone (a moved or deleted cache); propose a reinstall row.
- broken-link — a skill symlink whose target no longer exists.
- unknown-remote — a claude.ai connector; ask the user to confirm with
/mcp. Never report it as missing. - cannot-check —
jqis absent (plugin and MCP probes need it) or a probe is malformed; say which. A missingclaudeCLI does not cause this — the plugin probes degrade to the files and say(degraded).
When a role's preferred tool is not ok but its alternative is, say the harness still works on the alternative — a gap is not always a blocker.
Step 4: Propose install rows — never run them
For each fixable gap, draft a Step 2b manifest row, install {role} -> {tool}, under the
install safety contract, which harness-setup follows when it carries the row out:
- One command per approval — never a batch.
- Show provenance before asking — the official repo URL, license, last release or push, and the exact resolved command.
- Pin —
pkg@<version>,owner/repo@<tag|sha>, or a marketplace plugin at a known version. Never an unpinnednpx -y pkg. Record the pin intools.mdSource. - Refuse blocklisted plugins — a row the script marks
BLOCKLISTEDis reported, not proposed. - Show MCP servers in full — the complete
commandandargsto be registered, since that is what will run on the user's machine. - Project scope by default — user scope only when the user asks for it.
- Credentials stay with the user — name the variable or login step the tool needs; never ask for or handle the secret.
Then hand off: invoked from harness-setup, return the rows for its manifest; standalone, present
them as a tools-only manifest and tell the user that applying it is harness-setup's job.
Error handling
- Script fails or cannot run — report the error verbatim and fall back to the checks a
person can confirm by hand (
command -v,claude plugin list,/mcp); do not guess statuses. - Registry row unparseable — report the row as
cannot-checkwith the reason; continue with the rest. - Health of MCP servers — this skill checks presence, not liveness. If the user wants a live
check, suggest
claude mcp list, noting that it starts every stdio server and can be slow.
References
scripts/check-system.sh— the deterministic, read-only detector (TSV out:tool,probe,status,detail, plus a per-tool rollup row with probe*).${CLAUDE_PLUGIN_ROOT}/shared/harness-model.md— why tools are referenced by role.
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.

