agent-doctor
Skill0 starsChanged 2 months agoMITView on GitHub
Verify that subagents installed in a project (e.g. reviewer, qa-engineer) can actually run on the user's current platform — correct file location, valid frontmatter for that platform's dialect, and a model the user actually has access to (subscriptions differ per person and per platform) — then help fix whatever's broken. Use after installing agents into a repo, when a subagent fails to invoke or errors out, or when the user asks to "check if my agents work" / "set up the model for this agent". Not for creating new agents from scratch (see agents/README.md's authoring pattern in this catalog) or for the underlying project's own runtime (see project-bootstrap for that).
4 other projects use a version of this.
Adopted by
Most recently taken up by
- InnovationMachineTeam/skillstheir own version, first seen Aug 1, 2026
- AlekseiUL/openclaw-superagenttheir own version, first seen May 13, 2026
- chrisetheridge/skillstheir own version, first seen May 11, 2026
- sinclarespeaking143/openclaw-superagenttheir own version, first seen Mar 24, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- AlekseiUL/openclaw-superagent★ 41same name
- chrisetheridge/skills★ 4same name
- sinclarespeaking143/openclaw-superagent★ 4same name
- InnovationMachineTeam/skills★ 1same 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 repository29 other files it gives its agents.
- ai-discoverabilitySkill
- api-designSkill
- api-testingSkill
- backend-patternsSkill
- branchingSkill
- brd-readerSkill
- codebase-explainSkill
- code-review-and-qualitySkill
- database-migrationsSkill
- debuggingSkill
- dependency-updateSkill
- deploymentSkill
- docker-patternsSkill
- e2e-testingSkill
- exec-todoSkill
- incremental-implementationSkill
- modern-web-guidanceSkill
- mysql-patternsSkill
- prd-grillSkill
- project-bootstrapSkill
- react-patternsSkill
- react-testingSkill
- security-and-hardeningSkill
- security-reviewSkill
- skill-syncSkill
- nama-skill-contohSkill
- test-case-matrixSkill
- test-driven-developmentSkill
- webapp-testingSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 66
Ask the user to confirm they have access to that model under their current plan/provider for this platform — subscriptions and available …
- Very specific: line 72
If the user doesn't have access, or isn't sure, help them find a model they do have access to (point at the platform's own model …
- Distinctive: line 78
Live-invoke test, when possible: If the current running session's platform matches the agent being checked (e.g.
- Distinctive: line 88
When the platform being checked isn't the one currently running (e.g.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Agent Doctor
A subagent file sitting in the right folder with correct-looking
frontmatter can still fail to actually run — a model: alias the user's
plan doesn't have access to, a platform-specific field missing, or the
file simply in the wrong location for that platform's convention. This
skill diagnoses that gap and helps fix it, instead of assuming "the file
exists" means "it works".
When to use
- Just installed one or more subagents into a project and want to confirm they're actually invokable before relying on them.
- A subagent fails to trigger, errors on invoke, or behaves like it never ran.
- The user asks to "check if my agents work", "set up the model for this agent", or "make sure reviewer/qa-engineer runs".
When NOT to use
- Writing a brand-new agent from scratch — that's authoring, not diagnosis; follow this catalog's agent-authoring pattern (thin orchestration delegating to a skill) instead.
- Verifying the underlying project runs (dependencies, build, dev
server) — that's
project-bootstrap, a different layer entirely.
Steps
- Ask which platform(s) the user is running right now (Claude Code, OpenCode, Antigravity, Cursor, Codex CLI) — don't guess from file presence alone, since a project can have agent files for multiple platforms installed but the user only actively uses one or two of them day to day.
- Locate every agent file for that platform. See
references/platform-agent-specs.mdfor the file-location convention per platform. List what's found — and just as importantly, what's expected but missing (e.g. a project's docs mention aqa-engineeragent but no file exists at the platform's expected path for it). - Validate structure per file, per platform's required frontmatter
(see the reference table):
- Required fields present and non-empty (not a leftover template placeholder).
- File in the exact location/filename convention that platform reads — a single wrong folder or missing extension silently makes the agent invisible to that platform, with no error message anywhere.
- For Codex CLI specifically: confirm it's actually TOML with
developer_instructionsset, not accidentally a Markdown+YAML file copied from another platform's convention.
- Check the model field — this is where most "installed but broken"
agents actually fail. Never assume a model alias/string is valid or
available:
- Show the user exactly what
model:value is set. - Ask the user to confirm they have access to that model under their current plan/provider for this platform — subscriptions and available models differ per person and change over time, so this can't be inferred, only asked or checked against the platform's own model listing (see the reference file for where each platform surfaces that).
- If the user doesn't have access, or isn't sure, help them find a
model they do have access to (point at the platform's own model
picker/config as source of truth) and update the
model:field — confirm with the user before editing the file, since it's a change to their repo.
- Show the user exactly what
Live-invoke test, when possible. If the current running session's platform matches the agent being checked (e.g. this is a Claude Code session checking a Claude Code subagent), actually invoke it with a trivial, harmless prompt (e.g. "reply with OK and nothing else") via that platform's own subagent-invocation mechanism, and confirm it responds without an error (unknown model, missing tool, malformed frontmatter all surface here). This is the strongest signal available — a file that looks structurally correct can still fail at invoke time for reasons static checks can't catch.
When the platform being checked isn't the one currently running (e.g. checking a Cursor agent from a Claude Code session), a live test isn't possible from here — give the user the exact manual command/action to test it themselves in that platform, and ask them to report back what happened.
- Report per agent, per platform: works / doesn't work / couldn't be tested live, and for anything broken, what was found and what was fixed (or what the user needs to do, if it needs their action — e.g. picking a model only they can confirm access to).
Reference
references/platform-agent-specs.md— file locations, required frontmatter, and model-field conventions per platform, plus why model validity can't be hardcoded and when live-invoke testing is possible.
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.

