doctor

doctor is a command for Claude Code from rjwalters/kicad-tools. It costs 0 tokens per session (23,342 once invoked), scanned A, original, MIT.

A pull-request maintenance agent for keeping proposed code changes ready to merge after review.

In plain words
What is it for?
Use it to process requested changes, update documentation, fix bugs, add tests, resolve merge conflicts, run CI checks, and return the pull request for review.
Why use it?
It gathers reviewer requests, resolves conflicts, fixes related code or tests, and checks the result so feedback does not remain scattered across the review process.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ./.loom/scripts/worktree.sh "$ISSUE_NUM".

Good fit Use it to process requested changes, update documentation, fix bugs, add tests, resolve merge conflicts, run CI checks, and return the pull request for review.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/rjwalters/kicad-tools
agentmods
npx agentmods add commands/rjwalters/kicad-tools/doctor

Made for: Claude Code.

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 doctor

README.md
[![agentmods](https://agentmods.dev/badge/commands/rjwalters/kicad-tools/doctor/github.svg)](https://agentmods.dev/commands/rjwalters/kicad-tools/doctor)
Your own site
<a href="https://agentmods.dev/commands/rjwalters/kicad-tools/doctor"><img src="https://agentmods.dev/badge/commands/rjwalters/kicad-tools/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 doctor

Your own site · 80×15
<a href="https://agentmods.dev/commands/rjwalters/kicad-tools/doctor"><img src="https://agentmods.dev/badge/commands/rjwalters/kicad-tools/doctor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 23,342 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.00000 $0.23342
Opus 5.5 $0.00000 $0.09337
Sonnet 5.5 $0.00000 $0.04668
Haiku 4.5 $0.00000 $0.02334

Measured 29d ago against content hash cf9605f3d0ce, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

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 29d ago.

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.

.claude/commands/loom/doctor.md · 1,590 lines

How it starts

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

PR Fixer

You are a PR health specialist working in this repository, addressing review feedback and keeping pull requests polished and ready to merge.

Contents

Your Role

Your primary task is to keep pull requests healthy and merge-ready by addressing review feedback and resolving conflicts.

You help PRs move toward merge by:

  • Finding PRs labeled loom:changes-requested (amber badges)
  • Reading reviewer comments and understanding requested changes
  • Addressing feedback directly in the PR branch
  • Resolving merge conflicts and keeping branches up-to-date
  • Making code improvements, fixing bugs, adding tests
  • Updating documentation as requested
  • Running CI checks and fixing failures

Read the full file on GitHub · 1,590 lines

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. 29d ago Changed · +40 lines cf9605f3d0ce
  2. 1mo ago Changed · -16 lines 376e6d93c249
  3. 1mo ago Changed · -1 lines 13381b03865b
  4. 1mo ago Changed · +6 lines e047374cc698
  5. 1mo ago Changed · +21 lines 660994d2a8d7
  6. 1mo ago Changed · +1 lines 281f77f3e7e2
  7. 1mo ago Changed · +18 lines d0b70f37c49d
  8. 1mo ago Changed · -1 lines fd2671825bbe
  9. 1mo ago Changed · -43 lines d06133520984
  10. 1mo ago First seen · 1,565 lines · 0 tokens per session scan A d2520a1baa7e

Subscribe to this mod's changes

doctor is a command published in the GitHub repository rjwalters/kicad-tools (77 stars, last pushed 15d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 23,342 tokens. 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

doctor compared with commands from other repositories

doctor next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
doctorrjwalters/kicad-toolsCommand7715d agoMITA0Claude Code
speckit.spex.submitrhuss/cc-spexCommand1222d agoApache-2.0A15Claude Code
merge-conflict-analysisrjmurillo/ai-agentsCommand50todayApache-2.0A0GitHub Copilot
pr-riskkumaran-is/claude-code-onboardingCommand37yesterdayMITA0Claude Code
gitazrtydxb/procoderCommand21223d agoApache-2.0A20Claude Code
repo-audittractorjuice/arc-kitCommand2.3kyesterdaynoneA29Claude Code
factoryfelvieira/claude-skills-fvCommand2914d agoApache-2.0A47Claude Code