/buddy-agent-harness:doctor-buddy-agent-harnessfrom buddy-agent-harness
Checks whether a repository's agent configuration bridges into .claude/skills and the other harness files still resolve — when a repository loads no project skills, when skills are missing after a clone, or when a harness appears to be ignoring AGENTS.md.
Ships in buddy-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.
A repository keeps one canonical configuration: .agents/skills for its skills and AGENTS.md for its instructions. Harnesses that cannot read those get bridges pointing at them: Claude Code needs the skills projection, and Gemini CLI needs the instruction bridge — each reads the other canonical path itself. A bridge that stops resolving is silent: the harness finds nothing and loads zero project skills, with no warning anywhere.
Instructions fail two ways, both as quiet. A bridge that stops resolving costs more than a skills one, because the harness then reads none of the repository's instructions at all. And a harness that reads AGENTS.md natively still reads none of it when a file it prefers sits beside it — a CLAUDE.md next to an AGENTS.md is read instead of it, unless it imports it.
Diagnose it:
node <this skill's folder>/scripts/buddy-agent-harness.mjs doctor
<this skill's folder> is the directory that holds this SKILL.md. The script forwards every argument to the buddy-agent-harness CLI and runs against the current working directory.
The command is read-only. It never repairs anything, so it is safe to run at any point, including from a session-start hook.
bridges lists every skills bridge init would create for this repository, each with a status of ok, missing, degraded, stale, or diverged.
instructions is everything standing between a harness and AGENTS.md, with a status of ok, missing, unbridged, unreadable, shadowing, or superseded. The last two are not bridges: they are files that suppress an AGENTS.md the harness would otherwise read by itself. A separate section because nothing about any of them is shared with bridges: a different kind, a different status vocabulary, and a repair that is never a command.
globalInstructions is the same question one level up: whether each harness installed for this user loads ~/.agents/AGENTS.md through its own user-scope file, with a status of ok, missing, unbridged, overridden, or cannot-load-file for a harness that keeps its user rules outside a file. No harness reads that file by itself, so text placed there reaches only the harnesses whose row is ok. The rows are there whether or not the file exists; a finding is raised only when it exists and goes unread. harnessInUse names the harness this run is under, or unknown when the environment cannot tell, so you can answer for that harness's row.
findings explains each problem and carries more than the sections above: the configuration, MCP, and non-standard findings have no section of their own, because they are about files rather than about bridges. Each finding carries its own repair on its row, in two columns:
command — a shell invocation that, run exactly as given, completes the repair.instruction — the same repair in the imperative, always present and complete on its own.An unloadable-skill finding also names its cause, unparsable-frontmatter or missing-description, since each has its own repair; cause is empty on every other finding. help lists each distinct repair once, as a summary of the findings' own.
command is empty whenever no single invocation does the job, and that emptiness is the signal: act on instruction and do not assemble a command out of it. A runnable invocation quoted inside an instruction is not the repair either — diverged-both names git diff --no-index because the diff shows you what differs, not because running it reconciles anything. Apply the repair, then re-run doctor.
No repair is wrapped, on a finding or in help.
Do not run an init command yourself. Rebuilding a skills bridge can move skills a user wrote, and rewriting an instruction file touches prose a person authored — both are the init-buddy-agent-harness skill's judgment, so hand the repair to /buddy-agent-harness:init-buddy-agent-harness (pnpm install: pnpm-buddy-agent-harness-init-buddy-agent-harness) instead. Every such repair carries an empty command: a skill invocation has no shell equivalent at all.
When every bridge resolves, findings says so outright rather than being empty.
The default output is TOON, which is what you parse. Add --format text when you need to show the same report to a person, or --format json.
Every problem name routes to exactly one page. Load the page for the finding in front of you and leave the rest unread — the tables are long, and reading four families to act on one is what this split exists to stop.
| Page | Load it for |
|---|---|
references/bridges.md | any bridges row that is not ok |
references/instructions.md | any instructions row that is not ok |
references/global-instructions.md | any globalInstructions row that is not ok |
references/configuration.md | a finding about the configuration around the bridges rather than a bridge |
references/mcp.md | any finding whose path is an MCP locator — always before acting on a credential finding |
references/nonstandard.md | a finding about configuration only one harness can read |
references/worktrees.md | a finding about where Claude Code puts agent worktrees, or what breaks them |
references/harnesses/<name>.md | the paths and files one named harness uses |
diverged-* bridge by re-running init --force. Rebuilding overwrites whichever side holds the newer edit. Hand it to /buddy-agent-harness:repair (pnpm install: pnpm-buddy-agent-harness-repair), which syncs the two file by file..agents/skills/<name>/SKILL.md. Editing through a bridge is only safe when that bridge is a symlink..gitignore. An untracked bridge swallows a real edit silently.mcp-literal-secret or mcp-committed-secret finding points at. The report withheld it on purpose, and quoting it back puts it in the transcript anyway.globalInstructions repair is a step for the user to take in their own home directory; hand it over exactly as reported.AGENTS.md, never in CLAUDE.md. Content written there reaches one harness, drifts from the canonical file, and — because Claude Code prefers it — takes AGENTS.md out of that harness's context entirely.init ran, and nothing was written to CLAUDE.md.README.md (opens in a new tab)evals/evals.yaml (opens in a new tab)evals/files/bridge-missing/AGENTS.md (opens in a new tab)evals/files/claude-md-shadows/AGENTS.md (opens in a new tab)evals/files/claude-md-shadows/CLAUDE.md (opens in a new tab)evals/files/diverged-copy/AGENTS.md (opens in a new tab)evals/files/healthy/AGENTS.md (opens in a new tab)evals/files/mcp-secret/AGENTS.md (opens in a new tab)evals/files/win-symlink-as-file/AGENTS.md (opens in a new tab)references/bridges.md (opens in a new tab)references/configuration.md (opens in a new tab)references/global-instructions.md (opens in a new tab)references/harnesses/claude-code.md (opens in a new tab)references/harnesses/codex.md (opens in a new tab)references/harnesses/copilot-cli.md (opens in a new tab)references/harnesses/cursor.md (opens in a new tab)references/harnesses/devin-desktop.md (opens in a new tab)references/harnesses/gemini-cli.md (opens in a new tab)references/harnesses/windsurf.md (opens in a new tab)references/instructions.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub repobuddy/buddy-agent-harness --plugin buddy-agent-harness4 skills in this plugin
/enhanceAdds guidance missing from a repository's existing AGENTS.md, or refreshes a vetted section it carries in an outdated form — offering each one at a time and writing only what the user approves. Runs on its own or straight after init./init-buddy-agent-harnessInitializes, adopts, or migrates a repository's agent configuration to the open AGENTS.md and Agent Skills standards, so one canonical source works across Claude Code, Codex, Cursor, Copilot CLI, and other agent harnesses./repairRepairs a repository's agent configuration when it is present but wrong or outdated — a retired harness name, a git-ignored bridge, an AGENTS.local.md nothing reads, a skill a harness refuses to load, a skills copy that drifted from .agents/skills or lost its copy protection, or an MCP server that differs between the golden set and a harness, on the side that is plainly ahead. Also for "sync the .claude/skills copy that drifted from .agents/skills". Runs doctor to find them, then offers each correction with its before and after and writes only what is approved.