/x2:kernelfrom X2 Method
Manages a claims catalog, editions, and conformance records. Use when adding or updating claims, editions, or verifying the kernel's coherence.
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.
Maintain the three artifacts the method is built from, and keep them honest about each other. Run this whenever the answer to "what must be true", "what exists to be measured", or "what do we actually enforce" is about to change.
Invoked with no direction, this skill EXPLAINS ITSELF AND STOPS. Print the orientation below, then end the turn and wait. Do not read the tree, do not run a check, do not pick a verb that looks likely, and do not ask a narrowing question that presumes one. Every verb here changes something a person is accountable for, or reports a state that is only worth reporting when someone asked; guessing which one is meant is how a maintenance tool edits a catalog nobody asked it to touch.
Invoked WITH direction, route it and get on with it. Most requests name a verb without knowing it:
"this claim looks wrong" is rule, "does the record still hold" is verify, "add a stack" is
edition. Read the intent and act. Do not make someone who has already said what they want choose
from a menu, and do not re-explain the skill to them.
This skill maintains the kernel: the claims catalog, the editions built against it, and the conformance record between them. Six things it can do:
verb what it does say something like statusreports where everything stands, every number derived from the tree "where do things stand" verifyruns every gate and re-derives every stated fact. Changes nothing "is the kernel still coherent" claimadds, amends or retires a claim, or cuts a catalog pass "add a claim about X" editionadds, retires or recomposes an edition "start an edition for stack Y" measureplants against a claim and records what is honestly enforced "prove what this edition enforces" rulewalks open decisions one at a time and records each with its argument "clear the open decisions"
statusandverifychange nothing and are the safe place to start.claimandruleare owner decisions and will ask before acting. Tell me which, or just describe what you want to change.
Then stop. The next turn is the user's.
| artifact | job | authority |
|---|---|---|
the claims catalog, kernel/claims/ | what MUST be true | NORMATIVE. Source of truth |
the conformance record, kernel/<edition>/conformance.json | what IS enforced today, one row per claim per edition, pinned to a named catalog pass | DESCRIPTIVE |
the editions, kernel/<edition>/ | the machinery in copyable form. Current state, not aspiration | what new projects seed from |
Call it the claims catalog, or claims. Never "the catalogue of rules", never "invariants catalog". The vocabulary is load-bearing: a record whose name drifts stops being findable.
Precedence. If a document and running code disagree, the code is the FACT and the disagreement is surfaced, never reconciled quietly. Code is evidence of what is true. It is never the authority on what SHOULD be true; that is the catalog's job. Three consequences to hold at once:
proven is TWO defects: the code, and the guard that failed
to stop it. The guard is the more serious one.Congruent with the catalog means every claim has an HONEST row. It does NOT mean every claim is
proven. A claim the exemplar has no surface for is correctly owed, and an owed row with a named
trigger is the record being right.
Never reconcile two editions against each other. Each record is measured against the catalog
independently. Where one edition has a persistence layer and another does not, the same claim is
honestly proven in one and owed in the other. Forcing them to match makes one of them lie.
| verb | changes | use when |
|---|---|---|
claim | the catalog | a claim is added, amended or retired, or a catalog pass is cut |
edition | the editions | an edition joins, leaves, or the shared tier is recomposed |
measure | the conformance record | a row is planted, proven, audited or lowered |
rule | a decision | open questions have accumulated and the owner will decide them |
verify | nothing | check every gate and re-derive every derived fact |
status | nothing | report where everything stands and what is open |
verify and status change nothing and are always safe. Prefer them when unsure what state the tree
is in. Never run a mutating verb without knowing the current state, because a measurement taken
from the wrong baseline is worse than no measurement.
statusReport, in this order, every number DERIVED at runtime and none of it quoted from a document:
owed count, and which claims those are.owed in every edition (nothing in any exemplar to enforce) versus enforced
somewhere.verify would fail on.Never quote a count from prose. Derive it. The most expensive error this method has recorded was a false premise propagated through a commit message into a handover, honoured by three passes before anyone measured it.
Report differences between editions as facts, never as a gap to be closed.
verifyEvery gate, then every derived fact. Changes nothing, fails loudly.
provenance pass date against the changelog, the skills
(an instruction file per directory, parsing front matter, name matching directory, listed in every
index that exists to list it, and no product name or machine-local path), and every count stated in
a live document. Read the comparison counts it prints, not only its exit code.printf, because bracket expressions
false-negative on these characters in some greps, and prove the check works by scoring a
known-positive control.The index is generated, so an amendment reaches it or fails the build. The catalog's per-claim tables are rewritten from the claim files; each marker names the families its table covers, so a family no marker names is a claim listed nowhere, and a marker naming no family is a table about nothing. The family intro paragraphs stay hand-written, because they are synthesis rather than restatement, and what they NAME is checked instead. Regenerate rather than hand-edit, the same rule as any composed file.
A check over these documents fails toward false alarms, so give it controls before believing it. Three scans written while auditing this surface were themselves the bug rather than the tree: one matched case-sensitively where the tool it was checking matches case-insensitively, one relied on shell word splitting that the shell in use does not perform, and one assumed a single date format where the changelog uses three. Each reported a defect that did not exist. A scan's first output is a claim about the scan.
A gate that cannot reach what it checks must FAIL, never pass quietly. A check that reports ok because it found nothing to look at is the failure mode this whole method exists to refuse.
claimChanging what must be true. The highest-blast-radius verb, and the one with the strictest protocol.
The catalog is not edited casually, and never from a findings register. A claim that looks wrong
gets RECORDED as a finding and surfaced. The catalog is rewritten at an adjudication pass, by a human
ruling, and the edit is recorded as a dated pass in the catalog's own changelog. Recording the
evidence and pre-empting the ruling are different acts. If the request is "this claim is wrong",
the verb is rule, not claim.
Adding a claim. Ask what harm it prevents, concretely and with an instance. A claim with no named harm is a preference. Then:
owed with a trigger, unless it is measured
otherwise in that change. A catalog with a claim no record answers is incomplete by construction.Amending a claim. Say what the amendment makes newly false. If it tightens an obligation, every
row that read proven on the old text is now unproven until re-planted, and saying so is the work.
Do not let a status survive a change to the thing it was a claim about.
Retiring a claim. Retire, do not delete. Something was learned. Its rows go with it in the same change, and its findings stay in the register as history.
Cutting a catalog pass. The pass date is what every record pins to. Move it only when the catalog actually changed, and re-pin every edition's record in the same change.
Audited surface. The tooling enumerates the catalog by reading the claim FILES, so every check that exists
reaches the files and none reaches the index. Work this table top to bottom on any claim run and report each
line, because the unguarded rows are unguarded in both directions: nothing tells you they moved, and nothing
tells you they did not.
| surface | what changes | guarded by |
|---|---|---|
| the claim file | the claim itself | the locus enum only |
the index heading ## Claims (N) | the count | nothing |
| the family section | a new entry, in the right family | nothing |
| the family intro sentence | it names every claim in that family | nothing |
| the index entry | it RESTATES the statement, harm, enforcement and weakening | nothing |
| the locus split sentence | the centralized versus per-seam tally | nothing |
| the dated pass paragraph | the changelog, and the catalog's VERSION is its latest pass date | nothing |
provenance | the minting refs, and each in-place extension with its pass date | nothing |
| claims citing this claim | a retired or renamed id leaves them dangling | nothing |
| every edition's record | one row per claim, owed with a trigger until measured | the completeness check |
| every edition's pinned pass date | the version the record's statements refer to | partially |
| every edition's generated table | regenerated from the record | regenerate it |
| prose stating the claim count | goes stale on the next mint | nothing |
The index restates every claim in full. That is two copies of the catalog's own content, one per claim, kept in agreement by hand. An amendment that edits the file and not the index leaves the index describing a claim in words the file no longer uses, and every gate stays green. Amending a claim is therefore two edits, always, and confirming the second one is part of the verb.
Claim identity is append-only. A statement may strengthen additively, but its meaning never changes: a change of meaning MINTS A NEW ID, and the old one is deprecated in place with a pointer to its successor, never reused and never silently repurposed. Seeded projects cite claims in their own decision records, so an id whose meaning shifts invalidates provenance chains in repositories this one cannot see. If an amendment changes what the claim MEANS rather than how strongly it says it, the answer is a new id.
editionChanging what exists to be measured.
Adding an edition. The point of a second edition is to test whether the claims are really portable, so the test is wasted if it is run with the answers open. Expect the build to surface claims whose portable layer encodes one stack's specifics; those are findings, and they are the return on the exercise.
owed with a trigger until
measured. Never seed a new edition's record by copying a sibling's. That is reconciling the
editions against each other, and it starts the new record as fiction.verify: the loop
check is what reports a mechanism the new edition ships that nothing runs.Never edit an edition's composed copy of a shared file. Edit the shared tier and recompose. The composed copies exist so the committed edition tree IS the shape a project seeds into; a hand-edited copy fails the build rather than drifting quietly, and that is the whole point of the check.
Retiring an edition. Its record and findings are history and stay. Remove it from the enumerating lists in the same change, or the gates keep asking about a tree that is gone.
measureChanging what the record SAYS, never what must be true. This is the bulk of the work and it has one protocol, per claim, per obligation.
Only non-owed rows can lie. An owed row claims nothing. That bounds the work.
Read the claim file and nothing else first. Enumerate the obligations before looking at any edition: the mechanism class, the completeness obligation, and the comparison obligation where there is one. Reading the edition first tells you what the mechanism does, which is the answer you are supposed to be testing.
Locate the mechanism in that edition.
Plant a violation the obligation should catch. The plant must be the MINIMAL edit that violates only the property under test, and it must remove EVERY cause of that property. A plant that leaves a second cause standing produces a green scan that reads exactly like a clean tree.
Score three outcomes, not two:
| outcome | meaning |
|---|---|
| red, and the message names the right claim or registry | the obligation holds |
| green | the guard does not bind. Finding |
| red, but a different test caught it, or the message names the wrong thing | this guard still does not bind. Finding |
The third is not pedantry. A field was once caught, so the surface looked covered, but only because a different claim's registry happened to list it while the claim's own guard reached nothing.
Revert byte for byte and confirm the suite returns to the EXACT baseline count. Restore from a copy made before the plant. Never use version control as undo: restoring from the index deletes uncommitted work living in the same file. Start any plant cycle from a clean tree.
Remedy is a TWO-WAY decision, never automatic. Build the guard if the claim is inside this
exemplar's cut line; lower the row to owed with a named trigger if the exemplar cannot reach it.
Do not invent a guard for a surface the exemplar does not have, and do not leave the row
overstating while deciding.
If anything was repaired, restore the pre-repair mechanism with the plant STILL IN PLACE and confirm it goes green. That reproduces the hole and proves the repair was necessary. This control is what caught the two most-cited findings in the register. Do not skip it.
Record the honest status. Vocabulary: proven (one scan or configuration point covers the
whole surface), patterned (per-seam, mechanism and current seams tested, every new seam owes its
own test), latent (built, never executed against a real surface), owed (not built, recorded
with the trigger that promotes it). Where obligations differ, use the per-obligation array and the
row's status is the WEAKEST of them.
Never record proven on an obligation you did not plant against.
Land every plant as an executable test, as you go. Not a later phase. A plant that stays prose is
hand-run once and then decays silently while the guard under it gets rewritten, which is exactly how a
row comes to read proven on a guard that stopped binding three passes ago. Feed the guard's
predicate a violating input and assert it reports that violation.
Write the round into that edition's verification record, dated, with the red-green matrix.
ruleWhere the human decides. Use it when open questions have accumulated, when a finding needs a decision rather than a repair, or when a request would edit the catalog.
Every mutating verb owns a blast radius. Any fact stated in a live document belongs to exactly one bucket, and the job on every change is to leave the tree either regenerated or loudly failing.
| bucket | rule |
|---|---|
| generated | regenerated from source on every change. Cannot drift |
| checked | a lint FAILS when the stated fact disagrees with the tree |
| dated | a measurement at a point in time. Never retouched |
| deleted | the fact should not be in prose at all; one home holds it and everything else cites it |
The fourth bucket is the most under-used and often the right answer. When two documents asserted two different values for one policy number, the repair was not to sync them: it was to give the number one home and have everything else cite it from there. A fact written twice is a fact that drifts.
Dated records are never retouched. A number inside a dated finding, ruling or verification round is what was measured then. Rewriting it falsifies history. Only LIVE documents, the ones describing the current state, go stale, and that surface is much smaller than a naive search suggests.
What goes stale on each verb:
claim changes the claim count, the per-family counts, any scope statement, and every edition's
row count.edition changes the edition count, every "both editions" phrasing, the composed file count, and
every enumerating list.measure changes the status tallies and any "N of M" statement.rule can falsify a stated reason without touching a status.A status is a claim about a mechanism and has a guard. A NUMBER in prose is a claim about the tree and has none, so any pass can falsify one without touching the file it lives in, or reading it. That asymmetry is why this section exists, and it has now produced findings inside an edition and inside the catalog's own governance document.
Every verb produces them. A finding is not a backlog item, it is evidence.
claim and rule are owner decisions. Never take them unilaterally.edition needs an owner decision on scope before it starts; the build itself does not.measure and verify need no turn. A guard that does not bind is a finding, not a question.verify, then status. Every mutating run ends by proving the tree is still coherent, and reports
the numbers it derived rather than the ones it expected.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
kernel, claims-catalog, editions, conformance, documentation-maintenance
npx claudepluginhub teklabsdigital/x2-method --plugin x213 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.Other plugins' skills for the same job