/theseus:redesign-systemfrom theseus
Specs of Theseus Redesign System — given a story's updated evals and failing eval tests, plan the smallest change that makes them pass, look for a subsystem worth deleting and regrowing into a better design, redraw @subsystem boundaries, and turn it into tasks reviewed with the developer. Use whenever a story has its evals written but no implementation plan, or the user asks to plan a story, break it into tasks, redesign or regrow a subsystem, extract shared code, or decide whether a rewrite is safe.
Ships in theseus. 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.
Read when SKILL.md points to them; scripts run unread.
Each story is a chance to reconsider the design, not just extend it. Without this step a codebase grows by patches; with it, any subsystem can be deleted and regrown while the evals keep the system correct.
The stage has three steps, each a box in the Specs of Theseus diagram. In the first two you work alone: you plan the redesign and write the tasks — the evals are the guardrails, and the team's coding-style skills shape what good code looks like. You don't need permission to rewrite a subsystem. In the third you review the tasks with a developer before Development starts.
Say which skill is running. Start by telling the person: "Specs of Theseus — Redesign System (theseus:redesign-system)", and the story or epic you're on. Say so again whenever you hand off to another skill, naming it.
Read references/subsystems.md for what a subsystem is, how they're marked, and extracting and folding back.
Start from the story, its updated evals and their failing tests, and the current code. This step has three parts.
Process the updated evals. Read the story's EARS Specifications, the evals they name in docs/evals/, and their failing tests. Run the failing tests to see where they fail. List the current subsystems (search the code for @subsystem) and work out which ones the evals touch.
Plan the smallest change. What's the least change that makes the new evals pass, without breaking any existing one? Write it down. This is the baseline — it's always a valid plan.
If the story removed evals, the smallest change includes deleting the code that served them, and the internal tests that covered that code. Don't plan tests that check the old behavior is gone; the full eval suite passing is what shows nothing else depended on it.
Look for something to regrow. Now ask whether there's a better design that still meets every eval. Is there a subsystem that could be deleted and rewritten into something simpler, clearer, or easier to change for the next likely story?
A regrow is only safe where something would catch a mistake. Before planning a redesign that would change behavior no eval or existing test checks, raise an issue and let the developer help decide: write the missing eval, add tests first, or make the smaller change instead. This matters most while a project is still being adopted — until then, the project's existing tests stand in for the evals not yet written, and no redesign may delete them.
If nothing is worth regrowing, say so. The smallest change is a fine plan.
The result is a plan for the redesigned subsystems and the tasks to get there.
Write the plan as a plain checklist in the story's Implementation Plan. Each task:
Put a regrow's extraction or rewrite before the tasks that depend on it. Include marker moves in the task that moves the code.
Walk the developer through the plan: the smallest change, what (if anything) you chose to regrow and why, and the tasks. Check together that the tasks cover every eval in the story, are small enough, and come in a sensible order. Adjust from their feedback.
When they're satisfied, the story with its tasks moves on to develop-story — say so.
In the story's Issues section (see references/working-agreements.md) when:
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub infews/specs_of_theseus --plugin theseusOther plugins' skills for the same job
6 skills in this plugin
/adopt-projectBring an existing ("legacy") project into Specs of Theseus — Survey Project (edges, existing tests, constraints), Record Tools, Mark Subsystems, and Write Adoption Epic, with one characterization story per product area so its first evals can be written. Use whenever the user wants to start using Specs of Theseus on a codebase that has no docs/evals/, asks to characterize or onboard an existing system, write the first evals for legacy code, or figure out what a system already promises before changing it./develop-storySpecs of Theseus Development — work a story's reviewed tasks through a loop (Pick Next Task, Red/Green/Refactor, Migrate to Property Testing, Run Full Eval Suite), then Complete Story, Run Mutation Tests on the subsystems it touched, Run Controls & Checks, and Tag Repo. Use whenever a story has an Implementation Plan with unchecked tasks, or the user asks to build, implement or finish a story, run the dev loop, or tag a completed story — even if they just say "go" or "keep going" on a story in progress./product-planningSpecs of Theseus Product Planning — with the product manager in charge — Prioritize Ideas and Choose Epic (people only), then Break Down Epic into small stories with Gherkin acceptance criteria and Prioritize Stories into the backlog. Use whenever the user wants to write or refine an epic, slice an epic into stories, prioritize or reorder the backlog, re-rank a story the product manager rejected, or when the backlog has run out — even if they just say "let's plan the next chunk of work" or "break this feature down".