Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add Rune-kit/rune --skill surgeongit clone --depth 1 https://github.com/Rune-kit/runeWrote 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.
[](https://agentmods.dev/skills/rune-kit/rune/surgeon)<a href="https://agentmods.dev/skills/rune-kit/rune/surgeon"><img src="https://agentmods.dev/badge/skills/rune-kit/rune/surgeon/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.
<a href="https://agentmods.dev/skills/rune-kit/rune/surgeon"><img src="https://agentmods.dev/badge/skills/rune-kit/rune/surgeon.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00061 | $0.02402 |
| Opus 5.5 | $0.00024 | $0.00961 |
| Sonnet 5.5 | $0.00012 | $0.00480 |
| Haiku 4.5 | $0.00006 | $0.00240 |
Grade A, and why
surgeon 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 8d 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.
How it starts
The opening of the file, as written. The whole thing — 233 lines — stays where its author put it; the contents beside it link to each section on GitHub.
surgeon
Purpose
Incremental refactorer that operates on ONE module per session using proven refactoring patterns. Surgeon is precise and safe — it applies small, tested changes with strict blast radius limits. Each surgery session ends with working, tested code committed.
Called By (inbound)
rescue(L1): Phase 2-N SURGERY — one surgery session per moduleimprove-architecture(L2): hand-off with proposal payload (depth/leverage/locality target + adapter list) — surgeon executes the deepening
Calls (outbound)
scout(L2): understand module dependencies, consumers, and blast radiussafeguard(L2): if untested module found, build safety net firstimprove-architecture(L2): if no proposal payload provided, request one before refactoringdebug(L2): when refactoring reveals hidden bugsfix(L2): apply refactoring changestest(L2): verify after each change (REPLACE old shallow-module tests with deepened-interface tests, don't layer)review(L2): quality check on refactored codejournal(L3): update rescue progress
Consuming proposal payloads
When invoked by improve-architecture, surgeon receives a proposal payload (YAML) containing:
module_path— targetcurrent/targetscores (depth/leverage/locality)dependency_category— informs test strategysuggested_seam— name of the deepened interfaceadapters_planned— at least 2 adapters means a real seam; surgeon implements all listedtests_to_replace— old shallow-module tests; DELETE in same commit as new tests landtests_to_write_new— at the deepened interface
Honor the payload. If the payload's adapters_planned lists only 1 adapter, push back — single-adapter seam is indirection.
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.
- 8d ago First seen · 233 lines · 61 tokens per session scan A 33306f92f656
surgeon is a skill published in the GitHub repository Rune-kit/rune (96 stars, last pushed 2d ago), licensed MIT. It adds 61 tokens to every session and 2,402 once invoked, about $0.0002 per session on Opus 5.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-11-22.
surgeon compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| surgeonRune-kit/rune | Skill | 96 | 2d ago | MIT | A | 61 | Claude Code |
| tddsentimony/skills | Skill | 8 | today | MIT | A | 43 | Claude Code |
| using-agent-skillsvanja-emichi/a0_agent_skills | Skill | 6 | 3mo ago | MIT | A | 95 | Claude Code, Codex |
| binder-design-tool-selectionzongtingwei/Bioclaw_Skills_Hub | Skill | 27 | 7mo ago | MIT | A | 91 | Claude Code, Codex |
| end-to-end-protein-design-workflowzongtingwei/Bioclaw_Skills_Hub | Skill | 27 | 7mo ago | MIT | A | 98 | Claude Code, Codex |
| agent-orchestratorlingxling/awesome-skills-cn | Skill | 341 | 1mo ago | MIT | A | 41 | Claude Code |
| poc-spec-loopfabiandistler/agents | Skill | 2 | today | none | A | 55 | Claude Code, Codex |