rescue

rescue is a skill for Claude Code from Rune-kit/rune. It costs 59 tokens per session (4,229 once invoked), scanned A, original, MIT.

A workflow coordinator for safely modernizing old or messy codebases. It assesses the code, builds safety nets, performs small refactoring steps, and tracks progress across multiple sessions.

In plain words
What is it for?
Use it when refactoring, modernizing, or cleaning up legacy code. It helps plan the work, capture current behavior, refactor one module at a time, review each step, and preserve progress between sessions.
Why use it?
Large changes to legacy code can break undocumented behavior and become difficult to resume. Breaking the work into assessed, protected, reviewable stages reduces that risk.

Skill for Claude Code

Written for Claude Code: background in frontmatter. Also seen: agent in frontmatter; mentions CLAUDE.md; mentions subagents.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is → These tests are the rollback oracle — if they break, surgery went wrong. Also run `rune verify --oracle` against the pre-surgery binary or recorded fixtures w.

Part of the rune plugin — 66 skills, 1 command, 66 agents, 6 hooks shipped together

Good fit Use it when refactoring, modernizing, or cleaning up legacy code. It helps plan the work, capture current behavior, refactor one module at a time, review each step, and preserve progress between sessions.

Compare 6 skills 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/Rune-kit/rune
agentmods
npx agentmods add skills/rune-kit/rune/rescue

Made for: Claude Code.

Or install rune, the plugin that ships this one along with the rest of its 66 skills, 1 command, 66 agents, 6 hooks.

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 rescue

README.md
[![agentmods](https://agentmods.dev/badge/skills/rune-kit/rune/rescue/github.svg)](https://agentmods.dev/skills/rune-kit/rune/rescue)
Your own site
<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.

agentmods 80×15 button for rescue

Your own site · 80×15
<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>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,229 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.00059 $0.04229
Opus 5.5 $0.00024 $0.01692
Sonnet 5.5 $0.00012 $0.00846
Haiku 4.5 $0.00006 $0.00423

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

Security

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.

skills/rescue/SKILL.md · 476 lines

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 assessment
  • safeguard (L2): Phase 1 SAFETY NET — characterization tests and protective measures
  • surgeon (L2): Phase 2-N SURGERY — incremental refactoring (1 module per session)
  • retro (L2): post-rescue retrospective — capture lessons learned
  • journal (L3): state tracking across rescue sessions
  • plan (L2): create refactoring plan based on autopsy findings
  • review (L2): verify each surgery phase
  • session-bridge (L3): save rescue state between sessions
  • onboard (L2): generate context for unfamiliar legacy project
  • dependency-doctor (L3): audit dependencies in legacy project
  • context-pack (L3): create structured handoff briefings before spawning subagents
  • neural-memory | Phase start + phase end | Recall past refactoring patterns, capture new ones

Called By (inbound)

  • User: /rune rescue direct 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" }
])

Read the full file on GitHub · 476 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. 2d ago Changed 3d6814bc3ac1
  2. 8d ago First seen · 476 lines · 59 tokens per session scan A fba425175d28

Subscribe to this mod's changes

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.

Related

rescue compared with skills from other repositories

rescue next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
rescueRune-kit/runeSkill962d agoMITA59Claude Code
tddsentimony/skillsSkill8todayMITA43Claude Code
using-agent-skillsvanja-emichi/a0_agent_skillsSkill63mo agoMITA95Claude Code, Codex
binder-design-tool-selectionzongtingwei/Bioclaw_Skills_HubSkill277mo agoMITA91Claude Code, Codex
end-to-end-protein-design-workflowzongtingwei/Bioclaw_Skills_HubSkill277mo agoMITA98Claude Code, Codex
agent-orchestratorlingxling/awesome-skills-cnSkill3411mo agoMITA41Claude Code
poc-spec-loopfabiandistler/agentsSkill2todaynoneA55Claude Code, Codex