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.
git clone --depth 1 https://github.com/Rune-kit/runenpx agentmods add skills/rune-kit/rune/rescueWrote 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/rescue)<a href="https://agentmods.dev/skills/rune-kit/rune/rescue"><img src="https://agentmods.dev/badge/skills/rune-kit/rune/rescue/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/rescue"><img src="https://agentmods.dev/badge/skills/rune-kit/rune/rescue.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.00059 | $0.04229 |
| Opus 5.5 | $0.00024 | $0.01692 |
| Sonnet 5.5 | $0.00012 | $0.00846 |
| Haiku 4.5 | $0.00006 | $0.00423 |
Grade A, and why
rescue 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 2d 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 — 476 lines — stays where its author put it; the contents beside it link to each section on GitHub.
rescue
Purpose
Legacy refactoring orchestrator for safely modernizing messy codebases. Rescue runs a multi-session workflow: assess damage (autopsy), build safety nets (safeguard), perform incremental surgery (surgeon), and track progress (journal). Designed to handle the chaos of real-world legacy code without breaking everything.
Triggers
/rune rescue— manual invocation on legacy project- Auto-trigger: when autopsy health score < 40/100
Calls (outbound)
autopsy(L2): Phase 0 RECON — full codebase health assessmentsafeguard(L2): Phase 1 SAFETY NET — characterization tests and protective measuressurgeon(L2): Phase 2-N SURGERY — incremental refactoring (1 module per session)retro(L2): post-rescue retrospective — capture lessons learnedjournal(L3): state tracking across rescue sessionsplan(L2): create refactoring plan based on autopsy findingsreview(L2): verify each surgery phasesession-bridge(L3): save rescue state between sessionsonboard(L2): generate context for unfamiliar legacy projectdependency-doctor(L3): audit dependencies in legacy projectcontext-pack(L3): create structured handoff briefings before spawning subagentsneural-memory| Phase start + phase end | Recall past refactoring patterns, capture new ones
Called By (inbound)
- User:
/rune rescuedirect invocation team(L1): when team delegates rescue work
Execution
Step 0 — Initialize TodoWrite
Rescue is multi-session. On first invocation, build full todo list. On resume, read RESCUE-STATE.md and restore todo list to current phase.
TodoWrite([
{ content: "RECON: Run autopsy, onboard, and save initial state", status: "pending", activeForm: "Assessing codebase health" },
{ content: "SAFETY NET: Add characterization tests and rollback points", status: "pending", activeForm: "Building safety net" },
{ content: "SURGERY [Module N]: Refactor one module with surgeon", status: "pending", activeForm: "Performing surgery on module N" },
{ content: "CLEANUP: Remove @legacy and @bridge markers", status: "pending", activeForm: "Cleaning up markers" },
{ content: "VERIFY: Run full test suite and compare health scores", status: "pending", activeForm: "Verifying rescue outcome" }
])
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.
- 2d ago Changed 3d6814bc3ac1
- 8d ago First seen · 476 lines · 59 tokens per session scan A fba425175d28
rescue is a skill published in the GitHub repository Rune-kit/rune (96 stars, last pushed 2d ago), licensed MIT. It adds 59 tokens to every session and 4,229 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.
rescue compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| rescueRune-kit/rune | Skill | 96 | 2d ago | MIT | A | 59 | 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 |