editor-rescue

editor-rescue is a skill for Claude Code from jschulte/claude-plugins. It costs 127 tokens per session (1,062 once invoked), scanned A, original, MIT.

A recovery workflow for editors that reopen with many unsaved or untitled buffers. It backs up the state, sorts unique buffers into keep, maybe, or toss groups, writes notes, and moves the old state aside.

In plain words
What is it for?
Use it when Sublime Text, VS Code, Cursor, or related editors reopen with dozens of scratch tabs, to save useful notes, discard empty or noisy buffers, and reset the session.
Why use it?
Editors with hot exit can preserve every unsaved buffer indefinitely, causing clutter and high memory use. This helps clean up without deleting the original backup.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions subagents.

Part of the editor-rescue plugin — 1 skill shipped together

Good fit Use it when Sublime Text, VS Code, Cursor, or related editors reopen with dozens of scratch tabs, to save useful notes, discard empty or noisy buffers, and reset the session.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jschulte/claude-plugins/editor-rescue
Install

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.

Any agent
npx skills add jschulte/claude-plugins --skill editor-rescue
Clone the repo
git clone --depth 1 https://github.com/jschulte/claude-plugins

Made for: Claude Code.

Or install editor-rescue, the plugin that ships this one along with the rest of its 1 skill.

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 editor-rescue

README.md
[![agentmods](https://agentmods.dev/badge/skills/jschulte/claude-plugins/editor-rescue/github.svg)](https://agentmods.dev/skills/jschulte/claude-plugins/editor-rescue)
Your own site
<a href="https://agentmods.dev/skills/jschulte/claude-plugins/editor-rescue"><img src="https://agentmods.dev/badge/skills/jschulte/claude-plugins/editor-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 editor-rescue

Your own site · 80×15
<a href="https://agentmods.dev/skills/jschulte/claude-plugins/editor-rescue"><img src="https://agentmods.dev/badge/skills/jschulte/claude-plugins/editor-rescue.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 127 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,062 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.00127 $0.01062
Opus 5.5 $0.00051 $0.00425
Sonnet 5.5 $0.00025 $0.00212
Haiku 4.5 $0.00013 $0.00106

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

Security

Grade A, and why

editor-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 27d ago.

The scan reads SKILL.md. This mod also ships 6 executable files (scripts/assemble.py, scripts/extract.py, scripts/rescuelib.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

editor-rescue/skills/editor-rescue/SKILL.md · 79 lines

How it starts

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

editor-rescue

Editors with hot exit keep every unsaved buffer forever. This skill backs up that state, triages each unique buffer into keep, maybe or toss, writes organized notes, and then moves the state aside so the editor opens empty. Nothing is ever deleted.

Scripts are in this skill's scripts/ directory and need only the Python 3 standard library. OUT defaults to ~/editor-rescue-<date>.

Procedure

  1. Have the user fully quit each editor (Cmd-Q, not just closing windows). A running Sublime keeps rewriting its session, and reset.py refuses to run while an editor is open.
  2. Extract: python3 <skill-dir>/scripts/extract.py [--out DIR]. This copies each editor's state into OUT/_backup/, dumps unique buffers to OUT/_work/raw/, auto-tosses empty buffers and terminal or test output, and writes triage batches to OUT/_work/batches/.
  3. Triage: start one background subagent per batch, all in a single message, on a cheaper model (e.g. sonnet). Give each the prompt in references/triage-prompt.md, with {LIST} set to OUT/_work/batches/batch_NN.list and {RESULT} set to OUT/_work/results/batch_NN.json. If there is only one small batch (about 20 files or fewer), triage it yourself with the same prompt.
  4. Assemble: python3 <skill-dir>/scripts/assemble.py OUT. If it prints UNREVIEWED paths, read those files yourself (usually tiny fragments), write OUT/_work/results/manual.json in the same schema, and run assemble again until nothing is left unreviewed.
  5. Spot-check: read OUT/README.md, plus a few files from keep/ and entries in TOSSED.md.
  6. Report: give the user the counts, the highlights, how many buffers held credentials, and the DIRTY-FILES.md entries whose only copy is the buffer. Tell them the raw secrets are still in OUT/_work/raw/ and OUT/_backup/, so OUT stays private and gets deleted once they have rotated the keys.
  7. Reset, only after the user says yes to the report. The original "close it all" request does not count as that yes. Run python3 <skill-dir>/scripts/reset.py OUT as a dry run and show its output. Then run it again with --yes. It moves Sublime sessions and VS Code-family Backups/ into OUT/_backup/<editor>/moved-aside/, and clears the reopen-window list. Without that last step, VS Code reopens every empty window.
  8. Suggest turning hot exit off so this doesn't happen again: Sublime "hot_exit": "disabled", VS Code "files.hotExit": "off".

Read the full file on GitHub · 79 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 27d ago First seen · 79 lines · 127 tokens per session scan A fc969b7624ed

Subscribe to this mod's changes

editor-rescue is a skill published in the GitHub repository jschulte/claude-plugins (0 stars, last pushed 25d ago), licensed MIT. It adds 127 tokens to every session and 1,062 once invoked, about $0.0005 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-10-09.

Related

Other skills, from other repositories

Migrate

Intakes external content (notes, CLAUDE.md, Cursor rules, Obsidian/Notion/Apple Notes exports), classifies chunks against the LifeOS taxonomy, and commits with provenance after confidence-tiered approval. USE WHEN /migrate, migrate content, import from other LifeOS, bring in old notes, import Cursor rules, import…

danielmiessler/LifeOS · 104 tokens

Cortex

LifeOS memory, prior-session recall, and learning capture. USE WHEN capture this learning, document this learning, what did we learn recently, recent learnings, cortex, knowledge, knowledge base, search knowledge, what do we know about, archive, harvest, knowledge status, develop note, add to knowledge, add a people…

danielmiessler/LifeOS · 184 tokens

Profile

View, edit, or clear the LifeOS User Model (PRINCIPALIDENTITY.md) — persistent identity context loaded at session startup. Three intents: View, Edit (identity, goals, constraints, preferences), Clear (reset). Read by Algorithm OBSERVE and skills for personalization. USE WHEN profile, show profile, view profile, who am…

danielmiessler/LifeOS · 108 tokens

wiki-dashboard

Create dynamic, queryable Obsidian dashboard views using Bases or Dataview. Use for auto-updating tables, indexes, or structured views of vault content; not for ordinary question answering.

Ar9av/obsidian-wiki · 42 tokens

relevance-coarse-filter

Cheap, high-recall first-pass filter that removes obvious junk from a detector candidate pool before expensive story-origin research and PR judgment. Decides keep, monitoronly, or reject — never ranks, writes angles, verifies dates, or decides whether to pitch.

elvisun/newsjack · 57 tokens

daily-briefing

Proactive daily briefing that fires on a recurring schedule, pulls recent memory and workspace context, composes a structured summary (action items, progress, radar, next steps), and delivers it to all active channels. Enable with a time like "set up my daily briefing at 9am". Disable, reschedule, or check status at…

vellum-ai/vellum-assistant · 75 tokens