Claude Skill

survey

Assess a project that has no Cruxible instance or vocabulary yet, report what in it is worth holding as shared state, then set up the instance and a first small vocabulary. Use before create-state when starting without a kit.

LLM Mart · 0 points · 0 views 0 listing impressions 0 install-command copies
Download cruxible-ai-cruxible-skills_survey-351bbda.zip · 18 KB

Install

skills CLI npx skills add https://github.com/cruxible-ai/cruxible/tree/main/skills/survey
Claude Code claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install cruxible-ai-cruxible@llmmart
Git git clone https://github.com/cruxible-ai/cruxible.git

The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole cruxible-ai/cruxible collection as a plugin from our marketplace. Git is the plain clone.

Skill manifest

Survey a project

Requires the cruxible CLI or MCP server (uv tool install cruxible or pip install cruxible).

A survey answers two questions before anything is written:

  1. What should later sessions read as accepted state instead of working out again?
  2. How should that state stay aligned with reality as code, data, or external conditions move?

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:

  • a conclusion that took work to reach and that later sessions would otherwise derive again (a verdict, a ruling, a triage result, a mapping);
  • a fact that changes, where the current value and its earlier values both matter (a status, an owner, a due date);
  • a fact other work depends on, so that a change to it should be noticed.

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:

  • Kinds and fields: the few kinds of thing that recur (what each one is and what identifies it across sessions) and the handful of fields per kind that carry the conclusions and changing facts above.
  • Normative vs. observation: which fields are normative (decisions, hypotheses, baselines, acceptance criteria, or triage verdicts: human or agent authority backed by cited prose and hardened through review and signed attestation) and which facts come from reality (test or benchmark runs, experiments, APIs, scanners, telemetry, analyzers, or custom Python/ML models).
  • Keeping state aligned with reality (Gear 2 candidates): which observations should eventually be fed by a Procedure and Line via 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.
  • Boundaries: the documents that stay documents, and what was left out on purpose.

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 and cruxible orient. 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.

Files (cruxible)
  • references
    • copy-in.md 1.3 KB
      Loading…
    • evolving-your-vocabulary.md 34.2 KB
      Loading…
    • governance-flow.md 3.8 KB
      Loading…
  • SKILL.md 7.2 KB
    ---
    name: survey
    description: Assess a project that has no Cruxible instance or vocabulary yet, report what in it is worth holding as shared state, then set up the instance and a first small vocabulary. Use before create-state when starting without a kit.
    ---
    
    # Survey a project
    
    > Requires the `cruxible` CLI or MCP server (`uv tool install cruxible` or `pip install cruxible`).
    
    A survey answers two questions before anything is written:
    
    1. **What should later sessions read as accepted state instead of working out
       again?**
    2. **How should that state stay aligned with reality as code, data, or external
       conditions move?**
    
    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:
    
    - a conclusion that took work to reach and that later sessions would
      otherwise derive again (a verdict, a ruling, a triage result, a mapping);
    - a fact that changes, where the current value and its earlier values both
      matter (a status, an owner, a due date);
    - a fact other work depends on, so that a change to it should be noticed.
    
    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](references/copy-in.md)
    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:
    
    - **Kinds and fields:** the few kinds of thing that recur (what each one is and
      what identifies it across sessions) and the handful of fields per kind that
      carry the conclusions and changing facts above.
    - **Normative vs. observation:** which fields are normative (decisions,
      hypotheses, baselines, acceptance criteria, or triage verdicts: human or agent
      authority backed by cited prose and hardened through review and signed
      attestation) and which facts come from reality (test or benchmark runs,
      experiments, APIs, scanners, telemetry, analyzers, or custom Python/ML
      models).
    - **Keeping state aligned with reality (Gear 2 candidates):** which
      observations should eventually be fed by a Procedure and Line via
      `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.
    - **Boundaries:** the documents that stay documents, and what was left out on
      purpose.
    
    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](references/evolving-your-vocabulary.md)
    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`:
    
    ~~~python
    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` and `cruxible orient`. `create-state` covers writes, evidence,
    and vocabulary changes from there; [governance](references/governance-flow.md)
    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.
    

Comments

Sign in to join the conversation.

No comments yet. Start the conversation.

Reviews (0)

No reviews yet.