/salvage:salvage-projectfrom salvage
Recovers real requirements from a broken project and generates a portable spec bundle. Guides the developer through structured stages to salvage learnings and rebuild on a simpler, maintainable stack.
Ships in salvage. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Start over, simpler — without losing what you learned.
This skill has two modes. Which one runs is decided by mode detection, below. Run mode detection first, every session, before doing anything else.
Check the working directory for the file salvage/manifest.yaml.
/salvage command or by natural language such as "start
over", "salvage this project", or "rebuild simpler".If salvage/manifest.yaml is present but the developer explicitly invoked
/salvage (a salvage intent), confirm which mode they want rather than silently
routing to accept mode.
Do not mix modes. Decide once, then follow that act to the end.
You are in a project that went down a bad path. Your job is to recover the real requirements (now that the developer knows more) and write a portable spec bundle that a fresh agent can rebuild from — on the simplest stack the developer can actually maintain.
Two rules of discipline for the whole act:
The four stages run in order, pausing for the developer between each.
Ask these one at a time. Listen for the real requirement hiding behind each complaint.
The maintenance ceiling is not a preference — it is a hard cap on Stage 3. No rung you choose later may exceed what the developer answered here, no matter how tempting. Record the ceiling verbatim; you will weigh every architecture decision against it.
Read the existing code to extract the real requirements. Your goal is to separate two things that are tangled together in the old project:
Produce two drafts and show them to the developer:
The developer confirms or corrects the inventory before you continue. Do not move to Stage 3 until the "keep" list is agreed.
Now choose the stack, one fork at a time. Invoke the simplicity-guide skill; it holds one reference file per fork (data store, frontend, realtime, auth, jobs, deploy), each structured as a ladder of rungs.
A fork is relevant if the Stage-2 keep list implies that capability; skip
forks the app doesn't need (e.g. no realtime needs → skip realtime.md). This
reinforces YAGNI.
For each fork that is relevant to this project, run this loop:
simplicity-guide reference.data-store.md#sqlite).Each fork ends with one recorded, rung-cited decision. These become
tech-stack.md in Stage 4.
Now — and only now — write the portable bundle. Create a salvage/ directory at
the root of the broken project containing exactly these six files:
manifest.yaml — the detection file and greeting source. Schema:
salvage_version: 1
created: <today's date, YYYY-MM-DD>
app_name: <one-line app name>
stack: <chosen stack, one line>
docs: [CLAUDE.md, requirements.md, tech-stack.md, design-notes.md, anti-patterns.md]
requirements.md — the recovered "keep" feature inventory from Stage 2.
Behavioral requirements only; no tech decisions.
tech-stack.md — the chosen stack, with the filled rationale (from Stage 3)
for each decision, each citing its simplicity-guide rung.
design-notes.md — how the pieces fit together. Keep this deliberately
small; it is orientation, not a spec.
anti-patterns.md — the failed decisions from last time. For each one, state
WHY it failed and mark it clearly "do NOT reintroduce." This is the
single most valuable artifact in the bundle — it stops the fresh agent from
walking back into the same wreck.
CLAUDE.md — start from this plugin's bundled template at
${CLAUDE_PLUGIN_ROOT}/templates/CLAUDE.md (not a file in the project being
salvaged) and fill its slots from the
interview: {{skill_level}} (from the Stage-1 maintenance ceiling), {{stack}}
(from Stage 3), and {{requirements}} (a one-line summary of the keep list). The
fixed principles half is copied verbatim — do not soften it.
Then tell the developer exactly what to do next:
salvage/ directory into it.A salvage/manifest.yaml is present, which means a bundle is waiting to be
rebuilt into a clean project. Your job is to set the project up from the bundle
and hand off to the build — without re-brainstorming. The salvage interview
already validated this design; treat the bundle as the finished spec.
Read salvage/manifest.yaml. Use its app_name and stack for the greeting,
verbatim shape:
"Found a salvage spec to rebuild [app_name] on [stack]. Want me to set up the project?"
Wait for the developer to say yes before doing anything. The greeting's yes authorizes the safety check, not the writes — if the fresh-target check finds code, escalate to a second confirmation before writing anything.
Sequence, in order:
.bak.Two separate guards. Run both.
Fresh-target check. The repo is "empty enough" if — ignoring .git/, the
salvage/ bundle itself, and this inert allowlist — nothing else remains:
README*LICENSE*.gitignore.editorconfigIf anything outside that set exists (any real source file, config, or stray doc), the repo is not fresh. List exactly what you found and require explicit confirmation before any setup:
"This repo already has code (X, Y, Z) — set up anyway?"
Do not proceed until the developer confirms.
Per-file no-clobber (always, even in a fresh repo). Before writing each
canonical doc, check whether a file of that name already exists. If it does,
STOP and ask — offer to back it up to <name>.bak first. Never overwrite
blindly. A stray CLAUDE.md is not on the inert allowlist, so this guard runs
even when the fresh-target check passed.
Glob the plugins directory for superpowers, e.g.:
~/.claude/plugins/**/superpowers/**/SKILL.md
(plus its config/manifest if present). Install paths vary, so this glob can miss even when superpowers is installed — if it does, fall back to asking (the degrade-to-question behavior below).
/plugin install superpowers, or I can continue
standalone." Only the positive claim is made with confidence; the negative
degrades to a question.Copy the five docs from the bundle into the repo root (respecting the per-file no-clobber guard above for each):
CLAUDE.mdrequirements.mdtech-stack.mddesign-notes.mdanti-patterns.mdThese come straight from salvage/; you are not regenerating them. Only these
five docs are copied out to the repo root; the manifest.yaml stays in
salvage/.
The bundle is the validated design. Do not re-brainstorm and do not reinvent plan-writing or execution — drop straight into building.
superpowers:writing-plans, then
superpowers:executing-plans. The bundle is the spec the plan is written
from.CLAUDE.md: build feature-by-feature from requirements.md,
simplest-first, confirming each feature works before starting the next.salvage owns recovery and setup; the build is owned by superpowers (or a plain agent). superpowers is an optional accelerator, never a hard dependency.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub maludb/salvage-project --plugin salvage2 skills in this plugin
Other plugins' skills for the same job