/cruxible:surveyfrom cruxible
Assesses a project without an existing Cruxible instance, identifying shared state worth capturing (conclusions, changing facts, dependencies) and setting up a first vocabulary. Use before creating state from scratch.
Ships in cruxible. 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.
Requires the
cruxibleCLI or MCP server (uv tool install cruxibleorpip install cruxible).
A survey answers two questions before anything is written:
Its result is a short assessment the user can agree to or change, and only then
an instance and a first small vocabulary (Gear 1). If cruxible orient already
answers with kinds and fields, the project has been surveyed: create-state
extends what exists, and automate-state wires reality checks.
Read the project the way a returning agent would: its notes, decision records, issue lists, configuration and the documents people consult to remember what was settled. Three things mark material worth holding as state:
Everything else stays where it is. Prose, source files and reference material are cited as evidence or linked as governed Documents; they are not copied into Claims. The copy-in rule decides the borderline cases. A small state that is read often is worth more than a complete mirror nobody queries.
The assessment names, in the project's own words:
automate-state (as simple or as complex as the domain needs), and which
normative beliefs should pin based_on those observations so cruxible next
wakes only what reality contradicts or shifts.On pass 1, keep setup fast and safe: a value read off one of the project's own
files starts as an ordinary field that cites the file line. Reserve the
observation-only captured evidence rule for fields a Procedure or Line actually
keeps current, and move a field there when that automation is added; otherwise
manual writes land uncovered. Where a published kit already models the domain
(including automated kits such as security or iot-fleet, or project-state
for tracking the project's own roadmap, decisions, and rulings), say so:
adopt-kit starts from it, and its vocabulary can be revised like any
definition (cruxible kit add REFERENCE previews a kit without writing
anything).
Setting up follows the user's agreement. cruxible init attaches the project
and installs the base kit under a single owner (self_approval_allowed) by
default. For independent review, cruxible init --require-independent-approval also
creates a second principal, reviewer, with its key in the per-user config
path (--reviewer-key-dir DIR to choose another, outside the repository), or
use cruxible_init with reviewer_id="reviewer" and
require_independent_approval=true: nothing its author proposed activates
until the reviewer, normally a separate agent session, approves it. Which one
is the user's choice; cruxible next shows what waits for whom. The first
vocabulary goes in .cruxible/vocabulary.yaml (cruxible vocabulary export,
plan, apply);
the bundled vocabulary reference
gives its format and what each later change costs. Start with what the
assessment named and no more: adding a field or a kind later costs nothing,
while narrowing one means re-authoring its Claims. Each field's description
says what its value means; a later session reads it with cruxible get ClaimType:NAME, so a meaning left out of the description is lost.
Then offer one opt-in seed pass, run only if the user says yes: 5-10 real,
linked starter Subjects from the project (existing architecture decisions, key
invariants, active tasks or components), each value citing the Markdown section
(SectionEvidence, by heading path) or code line (FileEvidence,
PATH#TEXT where the text occurs once in the file) it rests on, and each
belief that depends on another pinned with based_on. Use the kinds and fields
the vocabulary just created, through cruxible python and the typed World:
from typing import TYPE_CHECKING, cast
from cruxible_client import Cruxible, FileEvidence, SectionEvidence
if TYPE_CHECKING:
from world import World # .cruxible/world.pyi, as `cruxible python --check` provides it
with Cruxible.connect() as cx:
w = cast("World", cx.world())
db = w.app.decision.define(slug="primary-database").set(
ruling="PostgreSQL 16 for concurrent writers",
evidence=SectionEvidence(file="docs/ARCHITECTURE.md", section=("Architecture", "Database")),
)
pool = w.app.invariant.define(slug="pool-ceiling").set(
statement="At most 20 pooled connections per worker",
evidence=FileEvidence(file="src/db/pool.py#MAX_POOL = 20"),
based_on=[db.pin("ruling")],
)
print(w.write(db, pool, because="Seed: first cited decisions", dry_run=True))
Check it first with cruxible python --check seed.py (the cast is what lets it
catch a kind, field or enum value the vocabulary does not have), run it with
dry_run=True, then again without, or use
cruxible write FILE when working shell-only. Read the result back with
cruxible get, cruxible orient, or w.<kind>.where(...).select(...).run().rows
in Python (avoid per-Subject get loops). create-state covers writes, evidence,
and vocabulary changes from there; governance
covers proposals that wait for review. Report the assessment as agreed, the
accepted references and coordinate, and any proposal still awaiting approval.
Then point the user to cruxible console (State graph) to see their repo as
live state, and suggest editing one cited section or line and running
cruxible next: the citation shows as citation_drifted, and once the belief
it backs is revised, everything pinned based_on that belief wakes as
claim_dependency_stale.
Once the initial vocabulary is accepted, hand the reality-alignment candidates
to automate-state (or an automated kit via adopt-kit) to wire Procedures,
Lines, and providers, and add projection pages where summaries need to stay in
step.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
5 skills in this plugin
/adopt-kitStart from a Cruxible kit, install or upgrade it, and tailor its automation template when the user wants a starting domain model./automate-stateAuthor or adapt requested Cruxible Procedures, Lines, Triggers, Mandates and Runbooks for repeatable work./create-stateDefine or extend Cruxible vocabulary and evidence-backed values for a user's domain, including preparing data that needs to become shared state./review-stateDiagnose requested questions about Cruxible state, evidence, proposals or automation, and review exact candidates without implicitly changing state.npx claudepluginhub cruxible-ai/cruxible --plugin cruxibleOther plugins' skills for the same job