/cairn:using-cairnfrom cairn
Use when working in a repo that has cairn installed — teaches when to invoke cairn, which skills wrap which verification moments, and how YAML specs are derived silently from prose. Routes to spokes for deep topics (YAML authoring, hash placeholders, source-hash comment format, code-reviewer pattern).
Ships in cairn. 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.
Cairn is a verification substrate for AI-coordinated software development. See PLAN.md §"What this is / is not" for the full substrate summary. This skill teaches when to invoke cairn's three wrappers, how YAML specs derive silently from prose, and which spoke to load for specific tasks.
Three scenarios trigger this skill:
specs/ dir with cairn YAML? YAML derives from prose. Read spoke yaml-authoring.md.code-reviewer-pattern.md.| Situation | Use |
|---|---|
| Executing a plan via subagent dispatch inside a cairn-tracked repo | cairn:subagent-driven-development-with-verdicts |
Executing a plan outside a cairn-tracked repo (no specs/) | superpowers:subagent-driven-development |
| Verification before claiming complete, while holding an active cairn claim | cairn:verdict-backed-verification |
| Verification before claiming complete, no active cairn claim | superpowers:verification-before-completion |
| Brainstorming, plan writing, test-driven development, receiving code review | superpowers:* originals unchanged. No cairn wrap. |
In a cairn-tracked repo, specs/ YAML is always derived from prose. The human never edits YAML directly. Requirements YAML derives from docs/superpowers/specs/*.md (brainstorming output); task YAML derives from docs/superpowers/plans/*.md (writing-plans output). Derivation is deterministic and byte-identical on re-run. See yaml-authoring.md for the full protocol.
When binding a verdict, producer_hash and inputs_hash use provisional Ship 3 placeholders.
These hashes are placeholders. They do not reflect toolchain version or input state. Verdicts bound with these values are NOT safe to rely on for cross-run drift detection.
See hash-placeholders.md for the recipe and the future-replacement plan.
This skill MUST be invoked explicitly by the orchestrating session after each of
superpowers:brainstormingandsuperpowers:writing-planscommits. Agent-noticing is unreliable. For harness-enforced belt-and-suspenders drift detection, enable the cairn Stop hook viacairn hook enable. The hook supplements skill discipline; it does not replace it, and it only catches source-hash drift (not skipped verdicts or orphan claims — those are guaranteed by cairn's mutation path itself).
| Task you're about to do | Load first |
|---|---|
| Author or regenerate YAML from prose | yaml-authoring.md |
Compute producer_hash or inputs_hash for a verdict | hash-placeholders.md |
Read or write the # cairn-derived: comment | source-hash-format.md |
Dispatch superpowers:code-reviewer against a rubric gate | code-reviewer-pattern.md |
| Thought | Reality |
|---|---|
| "I'll just edit the YAML directly" | YAML is derived. Edit the prose; regeneration follows. |
| "The prose spec is fine, skip the elicitation" | Elicitation checks for cairn-required fields not present in prose. Skipping = malformed YAML downstream. |
| "Verdict is close enough without evidence" | Core Invariant 3 — no verdict without hash-verified evidence. |
"Agent said it's done, skip cairn task complete" | Core Invariant 10 — cairn events since must show the completion. |
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub productofamerica/cairn --plugin cairn3 skills in this plugin
/subagent-driven-development-with-verdictsUse when executing an implementation plan inside a cairn-tracked repo. Composition over superpowers:subagent-driven-development — same dispatch flow, with cairn task claim / evidence / verdict / complete checkpoints inserted at named steps./verdict-backed-verificationUse when about to claim work is complete inside an active cairn claim. Composition over superpowers:verification-before-completion — same Iron Law, with evidence put + verdict bound before the completion claim. Tracked-only. Without an active claim, use superpowers:verification-before-completion directly.