/theseus:adopt-projectfrom theseus
Bring 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.
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.
The other stages assume evals exist and only change them. An existing project has behavior but no written spec, so its first evals are read out of what the system already does.
This skill runs the Adopt Project steps of the adoption diagram, each a box in it, and sets up the work. The adoption stories are then ranked in product-planning (Prioritize Stories), and their evals written story by story through update-evals, like any other story — adoption doesn't need to finish before real work starts.
You work with a developer throughout. The product manager joins to write the adoption epic, and decides whether surprising behavior is intended.
Say which skill is running. Start by telling the person: "Specs of Theseus — Adopting an Existing Project (theseus:adopt-project)", and the story or epic you're on. Say so again whenever you hand off to another skill, naming it.
Build a picture of what the system promises and what already protects it. Read the code, not just the README.
CART, AUTH) and adoption stories.Write the survey up for the developer: the areas, their edges, existing coverage, and gaps. Agree on the areas before going on.
Add a command for each Development step to the project's CLAUDE.md or AGENTS.md: tests, property testing, mutation testing, controls and checks, the full eval suite. Where a step has no tool, raise an issue proposing one; the developer decides. See references/working-agreements.md.
Add @subsystem markers at the entry points the survey found — one per command, controller, or job handler — and for any clearly shared code. This is the only step that touches source files, and it adds comments only: don't move code, restructure anything, or change behavior. You're labeling what exists. Run the existing tests afterwards to show nothing changed. See references/subsystems.md.
Write it with the product manager and developer, from the survey's product areas and edges and the subsystems you marked. Write the epic as product-planning writes any epic — it sets up docs/epics/ if the project has none (layout in references/project-layout.md). Write an epic, "Adopt Specs of Theseus", with one Characterize story per product area: "Characterize the cart", "Characterize checkout". To characterize an area is to write evals and tests for what it does today — see "Characterization" in references/evals.md.
On a small system, write a story for every area. On a large one, ask the PM which areas upcoming work will touch, and write stories for those; Break Down Epic in product-planning proposes Characterize stories for the rest when a later epic touches them.
Each story's acceptance criteria describe the area's current behavior at its edges, in Gherkin — what the survey found. Each story also names the entry-point subsystems it covers. On a small system, every marked entry point should land in some story, so none is left uncharacterized. Add the epic to 0000-epics.md where the PM wants it.
The adoption stories go next to Prioritize Stories in product-planning, where the PM ranks them against the backlog — adopt first the areas upcoming stories will touch. Hand off there, naming it. From the backlog, each story goes through update-evals, whose "Characterize stories" section covers Write Evals, Run Evals, Review Evals & Tests and Complete Story.
Until a product area is adopted, some of the system's behavior isn't written down as evals, and a regrow could change it without any eval failing. So until adoption is complete, the project's existing tests stand in for the missing evals: they must keep passing, and no redesign may delete them. When an area is adopted, its tests are sorted into eval tests and internal tests like any others.
Tell the developer this when you hand off. The thinner the existing tests in an area, the more redesign-system will raise issues before regrowing there — that's expected, and it's a reason to adopt that area sooner.
When the survey finds behavior that looks unintended (offer to record it as a story for the PM; don't change it), a step with no tool, or an edge whose owner is unclear (see references/working-agreements.md).
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub infews/specs_of_theseus --plugin theseus6 skills in this plugin
/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"./redesign-systemSpecs 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.