cairn: Skill for Claude Code

.claude/skills/cairn-apply/SKILL.md

cairn-apply is a skill for Claude Code from cairn-framework/cairn. It costs 38 tokens per session (1,510 once invoked), scanned A, original, Apache-2.0.

A skill for applying a documented change to a codebase, the collection of files that make up a software project. It follows proposal, design, and task documents, then verifies the result and accepts the change.

In plain words
What is it for?
Use it to find a change, read its planning documents, implement tasks in order, run focused and project-wide checks, update task progress, and mark the change complete.
Why use it?
It turns an agreed plan into tested code while keeping the change’s completion criteria visible. It also uses the repository’s own instructions and quality checks.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

This is cairn-framework/cairn's own configuration. It tells Claude Code how to work on cairn itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything cairn configures →

Reuse

Borrowing it

Nothing to install: this file belongs to cairn-framework/cairn. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/cairn-framework/cairn/main/.claude/skills/cairn-apply/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/cairn-framework/cairn

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cairn-apply

README.md
[![agentmods](https://agentmods.dev/badge/skills/cairn-framework/cairn/cairn-apply/github.svg)](https://agentmods.dev/skills/cairn-framework/cairn/cairn-apply)
Your own site
<a href="https://agentmods.dev/skills/cairn-framework/cairn/cairn-apply"><img src="https://agentmods.dev/badge/skills/cairn-framework/cairn/cairn-apply/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cairn-apply

Your own site · 80×15
<a href="https://agentmods.dev/skills/cairn-framework/cairn/cairn-apply"><img src="https://agentmods.dev/badge/skills/cairn-framework/cairn/cairn-apply.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,510 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Tool Misuse · line 110
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
  • medium Excessive Agency · line 101
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00038 $0.01510
Opus 5.5 $0.00015 $0.00604
Sonnet 5.5 $0.00008 $0.00302
Haiku 4.5 $0.00004 $0.00151

Measured 2mo ago against content hash 8e6a41c562c0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cairn-apply scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.claude/skills/cairn-apply/SKILL.md · 143 lines

How it starts

The opening of the file, as written. The whole thing — 143 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Apply a change: implement its tasks, prove the outcome, and accept it.

Prerequisites

  • A change directory exists at meta/changes/<change-id>/
  • proposal.md, design.md, and tasks.md are present

Steps

  1. Identify the change to apply

    If the user doesn't specify a change:

    cairn change list
    
  2. Read the change artifacts

    Read proposal.md, design.md, and tasks.md. The proposal names the outcome and the acceptance boundary you have to reach; treat that as the definition of done, not the task checkboxes.

  3. Implement the tasks in order

    For each unchecked task, implement it and mark it complete in tasks.md. Run whatever narrow test or check covers just that task as you go. Let the repository decide commit granularity; most expect one reviewable commit per change, not one per task.

  4. Run the host repository's own gates

    This is the target repository's call, not Cairn's. In order of authority:

    1. Instructions the repository gives you (AGENTS.md, CLAUDE.md, CONTRIBUTING.md, a documented script such as scripts/*gates*.sh).
    2. The gates: list in cairn.config.yaml, if the project configures one.
    3. The project's ordinary build and test commands for its language.

    Run only batteries from the project's own language. If you cannot tell what the gates are, ask rather than guessing.

  5. Prove the outcome at its own claim boundary

    A green internal check is evidence about the code, not about the claim. Prove the thing the proposal actually promised, at the nearest place it becomes observable:

    Claim Insufficient Proof at the boundary
    Behavioural change unit test passes run the command or call the API and show the new observable result
    UI change component test passes load the surface and confirm the rendered state
    Generated output generator has no errors diff the regenerated artefact and show the delta is the intended one
    Operational change config parses exercise the path in a running instance, or state plainly that you could not
    Bug fix new test passes reproduce the original failure first, then show that reproduction now passes

    If a boundary is genuinely out of reach in this environment, say so and name what would close it. Do not upgrade a partial check into a completeness claim.

  6. Run Cairn's acceptance boundary

    cairn change accept <change-id>
    

    This resolves and runs the project's language battery, then checks Cairn's own invariants: cairn lint, and the suggested-edges queue.

    accept picks the battery in this order: an explicit gates: list in cairn.config.yaml wins (an explicit empty list deliberately runs nothing); otherwise a Rust project falls back to a built-in cargo battery; every other language reports an informational note that no default battery exists and continues to the language-agnostic checks. That note means "configure gates: if you want Cairn to run them", not "this project has no gates". You are still responsible for step 4.

    CC002 means the change's meta/changes/<change-id>/suggested-edges.json still holds entries whose triage_state is pending. Those are machine suggested blueprint edges, and Cairn will not let them enter the graph without a human decision. Resolve it by setting each entry's triage_state to accepted, rejected, or deferred (with a triage_note when the reason is not obvious), then re-run accept. Do not delete the queue to clear the gate.

  7. Report

    Summarise what was implemented, the evidence for the outcome, and anything you could not prove.

Mutation authority

You may, without asking: edit source, tests, and docs inside the change's scope; create and edit files the design calls for; run builds, tests, linters, and read-only commands; run cairn commands that write inside meta/ (todo set, change accept).

Read the full file on GitHub · 143 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 143 lines · 38 tokens per session scan A 8e6a41c562c0

Subscribe to this mod's changes

cairn-apply is a skill published in the GitHub repository cairn-framework/cairn (53 stars, last pushed yesterday), licensed Apache-2.0. It adds 38 tokens to every session and 1,510 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

cairn-apply compared with skills from other repositories

cairn-apply next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cairn-applycairn-framework/cairnSkill53yesterdayApache-2.0A38Claude Code
imagegenopenai/codexSkill133kyesterdayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill99kyesterdayApache-2.0A19Claude Code
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill79k4d agoMITA200Claude Code, Codex
systematic-debuggingobra/superpowersSkill313k3d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill143ktodayMITA95Claude Code
next-partial-prefetching-adoptionvercel/next.jsSkill143ktodayMITA103Claude Code