/xros:xros-compilefrom xros
Interviews users to compile a schema-valid XROS methodology spec, classifying problems into verification tiers (A/B/C) before filling JSON fields.
Ships in xros. 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 compiling one XROS methodology spec: a JSON file, conforming to
schema/xros-spec.schema.json (bundled in this plugin), that another skill
($xros-run) executes as a multi-agent search and checks against a real
verifier. Your job is the interview, not the run.
The user's one-line problem, if they gave one.
Run the steps in order. Do not skip Gate 0. Keep questions tight; batch discrete choices with AskUserQuestion, use open prompts for the rich natural-language fields. Write nothing to disk until Step 9.
Everything downstream turns on one question. Ask it in plain language — never say oracle, soundness, or tier to the user; those are your internal fields, not their vocabulary. Get a one-line problem statement if they did not give one, then ask, in order:
"If I handed you an answer right now, what would you do to check whether it's right?" and, if that stalls, "What would convince you that you were wrong?"
Almost everyone can answer the second question, including non-experts. A blank answer usually means the question isn't yet checkable — not that the user has failed. Classify what they give you:
| What they can offer | Internally | Route |
|---|---|---|
| A command/procedure whose pass/fail establishes the exact claim (proof checker, model check over a full bounded space) | soundness: sound (Tier A) | Proceed to Steps 1–8, complete-only allowed |
| A command/procedure that gives evidence, not proof (held-out backtest, benchmark, sampled experiment, fuzzing) | soundness: statistical (Tier B) | Proceed, but returnPolicy is strongest-partial-allowed and a ceiling is required |
| Nothing runnable — but the question is well-posed | soundness: none (Tier C) | Offer the $xros-sharpen handoff (below); if declined, $xros-reason <spec> (the Tier-C path) |
| Nothing — and the question isn't even well-posed ("will my startup succeed?") | — | $xros-sharpen — do not force a spec |
soundis narrower than "it runs deterministically." A type-check, a compile, or an ordinary test suite issoundonly when the claim is exactly the property it decides — "it type-checks" proves type-safety, not functional correctness; "the tests pass" proves those cases pass, not that the code is correct. Unless the check is exhaustive over the claim's full scope (like a bounded model check), classify itstatisticaland record theceiling. A non-expert must never be allowed to read "it compiles" as "it's correct."
"I don't have a check" is not a terminal answer — it's the start of a short ladder. For a non-expert, propose, don't interrogate: offer concrete options and let them pick, rather than demanding they produce a check cold.
$xros-sharpen researches.)deferredVerification tripwire (needs a date and an owner).complete-only requires a genuinely sound check. The schema (safety rule 1)
rejects any attempt to pair it with a statistical/absent one; do not fight it.backtest is statistical, never sound — soundness is about whether passing
proves the claim, not whether it runs.$xros-sharpen. Bring its result back here.Record: verifier.kind, verifier.soundness, and the provisional
success.returnPolicy. For a mechanical check also capture the intended
verifier.command, verifier.artifactToVerify, and verifier.passCondition, and
(for statistical) the ceiling — what passing will NOT establish — now, while it's
fresh.
Walk the schema top-down. For each field, the schema description is your
prompt text; enforce the semantic gates below (the schema can only count,
not judge).
schemaVersion: "1.0.0", a kebab-case id (also the filename), a human title,
and the domain (used to key the learning report and to sanity-check whether a
real check is even plausible). These four are required top-level fields; the
rest of this walkthrough won't remind you again.ontology (force a precise definition of every load-bearing
term), one fully-quantified claim, optional claimFormalization (for Tier
A, tie it to what the oracle checks). If a term came from an $xros-sharpen
domain map, carry its standing / sources / provenance onto the ontology
item (the honesty group is all-or-nothing, and canonical needs ≥2 sources —
the validator enforces both).successCriterion; nonGoals (gate ↓); confirm
existenceAssumption (if the user genuinely does not know the answer exists,
it is open-question/unknown → schema forces strongest-partial-allowed);
confirm returnPolicy from Gate 0.approaches (gate ↓); independenceRounds (default 2);
maxConcurrentAgents (a ceiling on simultaneous routes; runtimes cap real
concurrency well below large values, so higher settings widen breadth, not
simultaneity); crossPollinationRule;
blockedRouteReopenRule; antiProgressRules; requiredArtifacts.adversarialChecklist (gate ↓); verificationVotes
(default 3); finalize the verifier object from Gate 0.minRounds, maxRounds (≥ minRounds), budgetTokens
(surface the cost, never set it silently), convergenceRule,
giveUpCondition (only for strongest-partial-allowed).webSearch (default background-only), forbiddenLookups
(always add "whether this exact problem is already solved/open"),
allowedTools.preview (keep true; it gates only the cost preview — the
oracle command always needs approval); isolation (worktree when the oracle
needs repo context, e.g. a test-suite command, so the runner verifies in a
clean checkout; none for self-contained artifacts — it is collision isolation,
not a security sandbox); optional agentModel/agentEffort/agentType
(set agentType to a restricted-tool type to actually enforce allowedTools).derivedFrom: "openai-cdc-v2".The schema can only count items; you judge whether they're real. For an expert,
elicit; for a non-expert, propose candidates and let them ratify — an amateur
often cannot name a domain's failure modes cold, but you frequently can, and a
ratified proposal beats a blank field. Record provenance on every checklist
item and approach:
user — the user supplied it.assistant-proposed — you suggested it, the user explicitly kept it.assistant-assumed — you filled it and the user did not weigh in.Then enforce the gates:
assistant-proposed/assistant-assumed) and ask them to
confirm — do not leave the field weak, and do not silently pass off your guesses
as theirs.Count provenance across checklist + approaches. If a majority of load-bearing
items are assistant-proposed/assistant-assumed, tell the user plainly: "Most
of this spec's failure modes and approaches came from me, not from your own domain
knowledge. The run will be only as good as those guesses — treat its verdict as
lower-confidence until you've reviewed them." This is not optional; a spec built
mostly from AI suggestions must carry that flag into $xros-run.
xros/specs/<id>.spec.json in the user's project (create the
dir). Confirm before writing.jsonschema/npx dependency). Paths are passed as arguments, never
interpolated into source, so an apostrophe in a path can neither break nor
inject:
ROOT="${PLUGIN_ROOT:-${GROK_PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT}}}" # plugin install root; if unset,
# locate xros_validate.py in this plugin
SCHEMA="$ROOT/schema/xros-spec.schema.json"
SPEC="xros/specs/<id>.spec.json" # substitute the real id
python3 "$ROOT/schema/tools/xros_validate.py" "$SCHEMA" "$SPEC"
It enforces the full schema and the three gates JSON Schema cannot express —
stopping.maxRounds >= stopping.minRounds, search.approaches holding at
least 3 distinct family values, and unique approaches[].names (names key
the runner's per-route state). On any INVALID line (non-zero exit), fix
and re-run; do not advance to $xros-run with an uncertified spec. (jsonschema
or npx ajv-cli@5 --spec=draft2020 may be used as an optional second opinion,
but neither is required.)verifier.soundness is sound or
statistical, verifier.command and verifier.artifactToVerify are present
and non-empty (the schema requires this, but re-check after any hand edit).Report, in this order, in plain language (translate the internal terms):
soundness and, for statistical/none, the ceiling).$xros-run <path> (with the cost/approval reminder);$xros-sharpen to find one;$xros-reason <path>, output labeled UNVERIFIED.Because provenance is recorded on every approach and checklist item, the downgrade
is not just spoken here — $xros-run recomputes the assistant-authored proportion
from the spec and repeats the warning in its own report, so it survives the handoff.
Never fabricate a check to unlock complete-only. "No sound check exists" is a
correct, useful outcome — it tells the user the trustworthy engine does not fit
their problem yet, and points them at $xros-sharpen rather than a dead end.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub xiaolai/xros --plugin xros4 skills in this plugin
/xros-reasonThe Tier-C path — structured, adversarial reasoning for a claim that has NO mechanical check. Decomposes the claim into premises and verifies the checkable ones, runs a pre-mortem, and emits dated tripwires. Never runs the CDC engine, never claims a verified result; all output is labeled UNVERIFIED. $xros-run redirects here automatically when verifier.soundness is "none"./xros-runExecute an XROS methodology spec — run a CDC-style search (diverse independent routes, blocked-route state, adversarial refutation, counterexample-fed loop-until-dry), then authoritatively verify the winning candidate by running its oracle command and gating deterministically on the exit code and passCondition. Tier-C specs are redirected to $xros-reason; the engine never runs without a real check./xros-sharpenOrient a newcomer in an unfamiliar field, sharpen a vague question into a falsifiable claim, then discover the currently best-available way to check it. For when the user can't yet say "how would I know if this were wrong?". First maps the field's minimal vocabulary (the nouns you can ask about, the verbs you can do), and states what each check cannot establish. Uses your runtime's web research capability; returns "no check clears the soundness bar" honestly rather than inventing one.Other plugins' skills for the same job