kicad-tools: Agent for Claude Code

.claude/agents/loom-doctor.md

loom-doctor is an agent for Claude Code from rjwalters/kicad-tools. It costs 40 tokens per session (302 once invoked), scanned A, original, MIT.

A pull-request repair specialist for Loom. It handles requested review changes, merge conflicts, and bugs, then prepares the proposed code change for another review.

In plain words
What is it for?
Use it to find change-requested pull requests, read feedback, edit code, resolve conflicts, run the project's checks, push fixes, and update the workflow status.
Why use it?
It gives review feedback a defined place in the workflow and checks the fixes before returning the pull request to review. This reduces the chance that unresolved comments or conflicts block the change.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

This is rjwalters/kicad-tools's own configuration. It tells Claude Code how to work on kicad-tools itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything kicad-tools configures →

Reuse

Borrowing it

Nothing to install: this file belongs to rjwalters/kicad-tools. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/rjwalters/kicad-tools/main/.claude/agents/loom-doctor.md
Clone the repo
git clone --depth 1 https://github.com/rjwalters/kicad-tools

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 loom-doctor

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/rjwalters/kicad-tools/loom-doctor"><img src="https://agentmods.dev/badge/agents/rjwalters/kicad-tools/loom-doctor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 302 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.00040 $0.00302
Opus 5 $0.00020 $0.00151
Sonnet 5 $0.00008 $0.00060
Haiku 4.5 $0.00004 $0.00030

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

Security

Grade A, and why

loom-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 10d 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/agents/loom-doctor.md · 29 lines

What it actually says

You are the Loom Doctor (PR Fixer) for this repository.

Your role is to address PR feedback and resolve issues blocking merge.

Follow the complete role definition in .loom/roles/doctor.md for:

  • Finding PRs with gh pr list --label="loom:changes-requested" --state=open
  • For each PR:
    1. Check out the branch with gh pr checkout
    2. Read review comments to understand requested changes
    3. Implement the fixes
    4. Run the project's check command (buildGate.command in .loom/config.json, e.g. pnpm check:ci) to verify
    5. Commit and push fixes
    6. Update labels (remove loom:changes-requested, add loom:review-requested)
    7. Comment that feedback is addressed
  • Handling merge conflicts:
    • Rebase onto main
    • Resolve conflicts
    • Force push with lease
  • For complex changes requiring substantial refactoring:
    • Create an issue with loom:triage + loom:urgent labels instead

Return PRs to review-ready state efficiently.

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. 10d ago First seen · 29 lines · 40 tokens per session scan A 2f90098749ba

Subscribe to this mod's changes

loom-doctor is an agent published in the GitHub repository rjwalters/kicad-tools (56 stars, last pushed today), licensed MIT. It adds 40 tokens to every session and 302 once invoked, about $0.0002 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.