/x2:adoptfrom X2 Method
Migrates an existing project onto the X2 methodology: dissolves old documentation, harvests epic stories, baselines design, and arms enforcement in CI. Runs on a dedicated branch with three human gates.
Ships in X2 Method. 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.
You are migrating a project that was built under another method onto X2. The end state:
no stray documentation artifacts in the project tree, the epic story set identified and approved,
docs/ initialised and baselined with the X2 decision layer, the as-built UI replicated into
design/prototype/ and locked, the existing enforcement mapped onto the claims and armed in CI, and
the project resuming under the normal X2 skills.
The existing documentation will distract and confuse you. It is documentation-heavy: detailed acceptance criteria, plans, test plans, briefs, traceability prose. That style documents what must be true and checks code against the documents. X2 makes what must be true unbreakable or derivable, and reserves prose for decisions a machine cannot witness:
So: keep the epochs and the stories, not the ACs. Detailed acceptance criteria are dissolution input, never story material. When you feel the pull to preserve a detailed document because it is good, ask which of the three destinations its content belongs to (invariant, locked design, behaviour spec) and send it there or record it as owed. Do not adopt the old corpus's style.
Only these survive as prose: decision records, the behaviour spec, runbooks for humans operating the system, and the claims' human-readable statements. Everything descriptive of code dies once code or a test says it; code wins over descriptive docs.
Adoption inherits three independently produced accounts of the product, and they will not agree:
The triangle is reconciled edge by edge, each at its gate, divergences always surfaced and ruled, never silently resolved:
After the three gates, the triangle is closed: the story set matches what is built, the locked design matches the stories, and the client's divergence from the locked design is named and scheduled. That closed triangle is the adoption baseline.
The adoption run is measured like an acceptance test. Keep an append-only turn ledger from the first message (number, what, why the human was needed, bucket), feed every human turn to it as it happens, and produce the exit report at the end. A compactible context is not durable storage: write the ledger to a file immediately, and re-read this skill after any compaction.
pre-x2). Git history is the real archive: after this
tag, removed files remain retrievable forever, so removal later is safe.x2-migration). All adoption work happens on it.Survey the repo and produce two artifacts:
Gate A: the human approves the story set and rules on the divergence list. Stop and ask. Do not proceed on an unapproved set.
Create the X2 layout (docs/decisions/, docs/runbooks/, docs/work/, design/, root
VERSIONS.md, root README.md, root CLAUDE.md carrying the standing constraints) and write the
baseline decisions:
deltas.md started: where this project deviates from the edition nearest its stack, and why.
Name that edition explicitly, because an adopted project is measured against the claims and compared
against one edition's mechanisms, and a comparison whose baseline is unnamed cannot be re-run.VERSIONS.md consolidated: every dependency surface in one ledger (packages, submodule
pins, container images by digest), exact pins, cooling-off policy stated once.conformance.json, the edition's machine-readable home for per-claim
status; the prose table is generated from it, never hand-written): every kernel claim mapped onto
the project's existing mechanisms, marked proven, patterned, latent, or owed with a named trigger.
The record is complete or it is not a record: every claim gets a row, and the edition's docs-lint
fails the build on a missing one. The kernel is provenance-blind: existing enforcement that holds is
mapped and kept, never renamed or rebuilt to match kernel naming. Existing mechanisms with no kernel
counterpart are candidate claims.Gate B: the human approves the baseline decisions. From here forward, going is work.
Order matters: sort and relocate before you archive, because some documentation is load-bearing in the build (specs wired into lint gates, invariant docs referenced by lint configs, ledgers). Moving those blind breaks the build.
End state of this phase: no stray documentation artifacts anywhere in the project tree.
_ds) and the screen designs.
An on-disk mirror is a candidate, never the source: diff the fresh export against it, and any
drift is a finding to surface (the mirror was stale; whatever consumed it inherited the
staleness).design/prototype/ with a provenance README: source project URL,
export date, how currency was established (the link request and diff), and what it covers.
Only if no live design source exists at all does the on-disk artifact or an as-built screen
capture become the baseline, recorded as exactly that.Gate C: the human locks the current as-built export as the acceptance contract (the UI-4 chargeable turn), ruling in the same turn on the client-vs-design drift from step 3 and every congruence orphan from step 4: each is accepted as sanctioned, scheduled, or excluded from the lock. A story-set change coming out of this gate re-touches Gate A (the story set is re-approved with the delta).
From the lock forward, divergence from the design baseline is either a defect or a deliberate, ruled re-lock. Do not redesign anything in this skill; the current design export is the contract.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub teklabsdigital/x2-method --plugin x213 skills in this plugin
/decomposeUse after the repo is seeded to run the D-000 five-lens decomposition, record persistent schema decisions, define slice one, and start the deltas file. Also use when a stays-ahead decision (decomposition, schema) must be revisited. Do not use for per-slice implementation decisions; those are D-0xx record-gaps raised during implement./derive-testsUse only after the lock (gate 2b) is on record for the slice portion, to derive the fidelity ledger and acceptance scenarios from the locked prototype. Triggers when a portion is newly locked or re-locked. Never use before the lock, and never use it to hand-author prototype-fidelity test cases from prose./designUse when D-000 exists and the whole-product prototype does not, to run Claude Design in its own context and produce the prototype and design system. Also use when a later slice exposes a design gap that needs a spine revision. Requests gate 2a (prototype approved at Claude Design). Never run in the builder's context, and never used to author tests, acceptance criteria, or application code.Other plugins' skills for the same job