/x2:lockfrom X2 Method
Copies approved design artifacts into the repo, verifies completeness, and requests the lock (gate 2b). Use after prototype approval (gate 2a) or when re-locking after spine revisions.
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.
Copy the approved design artifact down into the repo, verify it is complete, stamp its provenance, and request the lock. The lock is the acceptance contract for the slice; everything the builder ships is held to it. The pilot ran without this step and paid twice: the design system was never imported so the client's tokens were scraped from what happened to be readable inline (MET-04), and the prototype was treated as locked for days before anyone asked for the approval (turn 25).
Pull the complete artifact set from the design project into design/prototype/ (the canonical
home, INV-01):
<name>.dc.html),_ds/ (the token css, component css, fonts),The sanctioned route is the on-disk export: the owner places the design project's complete export
in the repo (a handoff folder under design/), the lock copies out what it needs and deletes the
handoff. A context-carried import (the design MCP) is the fallback for small artifact sets; it
cannot carry binaries, and the third project moved to the on-disk route after channel limits bit.
Either way, verify the copied tree against its source: the file inventory matches and no copy
artifacts exist (a duplicated or nested directory survived the third project's import verification
and was caught only by the owner's eye).
Never derive tokens from values readable inline in the prototype source. The pilot did, and silently produced a partial, light-only, placeholder token set with the coverage floor skipped. The client's token source derives from the export on disk, nothing else.
design/prototype/README.md records provenance: source design-project URL, import date, the
portion being locked. On approval, it gains the lock stamp.design/ledger/ exists for the per-slice fidelity ledgers that derivation will add.design/prototype/_ds/, provenance-true where the import
lands. A shared house-system home is deferred with a trigger: the second product reusing the same
system makes it a pinned, hash-ledgered vendored asset under DEP-1, not a shared directory..dc.html plus the full _ds/, both themes, more
than fifty variables), per the manifest; never values scraped from the .dc.html (MET-04, ruled).Gate 2b on record, then derive-tests.
What SKILL.md sets; muted values are Claude Code's defaults
13 skills in this plugin
/adoptUse when an existing project that was not built with X2 must be migrated to run under it, with documentation sprawl to dissolve, stories to harvest at epic altitude, an as-built design to baseline, and existing enforcement to map and arm. Runs the migration on a dedicated branch with three human gates. Do not use for a new project (that is seed), and do not use it to redesign the product or refactor code beyond what arming the enforcement requires./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./extractUse when an X2 project completes (or reaches a major milestone) to run the extraction loop, the quality feedback that folds the project's evidence back into the method. Reads the turn ledger and decision records, computes the metric and the per-decision churn table, distils sanitized candidates, confirmations, and negative-space nominations, and holds everything for a rulings pass. Do not use mid-slice (that is the normal intake flow), and never let raw project material cross into the public method./helpUse when someone asks what an X2 skill does, which skill to run next, how the gates work, or where an artifact lives. A quick in-flight reference; for the method's rationale, read X2.md at the method repo root.npx claudepluginhub teklabsdigital/x2-method --plugin x2Other plugins' skills for the same job