cairn-explore

cairn-explore is a skill for Claude Code, Codex from sdotj/sleeper-bot. It costs 0 tokens per session (741 once invoked), scanned A, a copy of cairn-explore, MIT.

A guide for exploring a Cairn architecture graph, including project structure, code ownership, findings, and the recorded reasons behind design decisions.

In plain words
What is it for?
Checking project health, inspecting nodes and dependencies, finding files, reviewing disconnected areas, examining decisions and research, and listing proposed changes.
Why use it?
It helps developers understand how the project is organised and why parts of it exist before changing or reviewing them.

Skill for Claude CodeCodex

Install

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.

agentmods
npx agentmods add skills/sdotj/sleeper-bot/cairn-explore
Any agent
npx skills add sdotj/sleeper-bot --skill cairn-explore
Clone the repo
git clone --depth 1 https://github.com/sdotj/sleeper-bot

Made for: Claude Code, Codex.

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-explore

README.md
[![agentmods](https://agentmods.dev/badge/skills/sdotj/sleeper-bot/cairn-explore.svg)](https://agentmods.dev/skills/sdotj/sleeper-bot/cairn-explore)
Your own site
<a href="https://agentmods.dev/skills/sdotj/sleeper-bot/cairn-explore"><img src="https://agentmods.dev/badge/skills/sdotj/sleeper-bot/cairn-explore.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 741 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 100% copy Near-identical to another mod 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 $0.00000 $0.00741
Opus 5 $0.00000 $0.00370
Sonnet 5 $0.00000 $0.00148
Haiku 4.5 $0.00000 $0.00074

Measured 2d ago against content hash 51bb72a57d4f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

cairn-explore 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 2d 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

This is a copy

100% identical to cairn-explore — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/skills/cairn-explore/SKILL.md · 61 lines

What it actually says

Explore the Cairn architecture graph.

Commands

  • cairn status - project summary (nodes, edges, findings)
  • cairn get <node> - detailed info for a node
  • cairn neighbourhood <node> - dependencies and dependents
  • cairn files <node> - files owned by a node
  • cairn islands - disconnected components
  • cairn lint - findings across the project (--node <id> scopes to one node); exits 1 when an Error finding is present
  • cairn ui - visual graph explorer in a browser
  • cairn rationale <node> - accepted decisions and provenance chain behind a node (why it exists)
  • cairn decisions <node> - decision artefacts attached to a node
  • cairn research <node> - research artefacts linked to a node
  • cairn sources <node> - external sources a node cites
  • cairn change list --json - registered change proposals (the --json flag is required)

Steps

  1. Pick the target: ask when the request names none:

    "What would you like to explore? A specific node, the overall health, or something else?"

  2. Run the matching command(s) and show the output.
  3. Interpret the results in plain English:
    • synced - node matches the filesystem
    • ghost - declared in blueprint but missing on disk
    • orphaned - exists on disk but not declared
    • drift - declared but contradicts observed state
    • Findings severity: Error > Warning > Info
  4. Suggest the next step: cairn scan to refresh the graph, cairn lint for detailed findings, a blueprint edit for structural issues, or cairn refine to generate a change proposal from code changes.

Provenance: why a node is shaped the way it is

For "what decisions affect node X" or "why was X built this way", query cairn rationale <node> first: it returns the node's accepted decisions with their provenance links (informed_by, related, refines, supersedes), so there is no need to grep meta/decisions/ by hand. cairn decisions <node> adds decisions in other states (proposed, deprecated, superseded); --json gives the structured fields. The reconciled graph is the authority: when an auto-generated guidance block contradicts an accepted decision, the decision cairn returns wins.

Where cairn cannot help: read the source

The graph models blueprint structure plus artefacts (decisions, research, contracts, todos), not source symbols. For enum variants, struct fields, function definitions, or call sites, read the source files directly rather than expecting a cairn query to answer.

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. 2d ago First seen · 61 lines · 0 tokens per session scan A 51bb72a57d4f

Subscribe to this mod's changes

cairn-explore is a skill published in the GitHub repository sdotj/sleeper-bot (0 stars, last pushed 5d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 741 tokens. A static security scan graded it A with 0 findings. It is 100% identical to cairn-explore, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.

obra/superpowers · 37 tokens

auto-perf-optimize

Run agent-driven VS Code performance or memory investigations. Use when asked to launch Code OSS, automate a VS Code scenario, run the Chat memory smoke runner, capture renderer heap snapshots, take workflow screenshots, compare run summaries, or drive a repeatable scenario before heap-snapshot analysis.

microsoft/vscode · 62 tokens

chat-perf

Run chat perf benchmarks and memory leak checks against the local dev build or any published VS Code version. Use when investigating chat rendering regressions, validating perf-sensitive changes to chat UI, or checking for memory leaks in the chat response pipeline.

microsoft/vscode · 51 tokens

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.

microsoft/vscode · 53 tokens

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…

microsoft/vscode · 71 tokens