Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/cairn-framework/cairn/cairn-applynpx skills add cairn-framework/cairn --skill cairn-applygit clone --depth 1 https://github.com/cairn-framework/cairnWrote 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.
[](https://agentmods.dev/skills/cairn-framework/cairn/cairn-apply)<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="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00038 | $0.01510 |
| Opus 5 | $0.00019 | $0.00755 |
| Sonnet 5 | $0.00008 | $0.00302 |
| Haiku 4.5 | $0.00004 | $0.00151 |
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 5d 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.
Copies of this mod
1 near-identical copy found in the catalogue:
- cairn-apply — 100% identical, 0 lines differ
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
-
Identify the change to apply
If the user doesn't specify a change:
cairn change list -
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.
-
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.
-
Run the host repository's own gates
This is the target repository's call, not Cairn's. In order of authority:
- Instructions the repository gives you (
AGENTS.md,CLAUDE.md,CONTRIBUTING.md, a documented script such asscripts/*gates*.sh). - The
gates:list incairn.config.yaml, if the project configures one. - 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.
- Instructions the repository gives you (
-
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.
-
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.acceptpicks the battery in this order: an explicitgates:list incairn.config.yamlwins (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 "configuregates: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.jsonstill holds entries whosetriage_stateispending. 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'striage_statetoaccepted,rejected, ordeferred(with atriage_notewhen the reason is not obvious), then re-runaccept. Do not delete the queue to clear the gate. -
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).
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.
- 5d ago First seen · 143 lines · 38 tokens per session scan A 8e6a41c562c0
cairn-apply is a skill published in the GitHub repository cairn-framework/cairn (40 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. 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.
Other skills, from other repositories
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
local-ai-agents
Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…
chronicle
Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…
imagegen
Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output…
chat-pet-sprite-creation
Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.
cpu-profile-analysis
Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…