cairn-resync

cairn-resync is a skill for Claude Code from isaacriehm/cairn. It costs 34 tokens per session (1,519 once invoked), scanned A, original, MIT.

A skill for re-examining a project after its files, structure, or configuration have changed, then preparing updates and draft decisions for Cairn's stored project information.

In plain words
What is it for?
Use it to detect configuration drift, group newly added topics, and create drafts for reviewing and updating Cairn's decisions and invariants.
Why use it?
It helps the recorded project information catch up with the actual codebase without automatically applying proposed changes.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions subagents; mentions Claude Code; mentions Codex.

Part of the cairn plugin — 5 skills, 4 commands, 5 agents, 5 hooks, 1 MCP server shipped together

Good fit Use it to detect configuration drift, group newly added topics, and create drafts for reviewing and updating Cairn's decisions and invariants.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/isaacriehm/cairn/cairn-resync
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.

Any agent
npx skills add isaacriehm/cairn --skill cairn-resync
Clone the repo
git clone --depth 1 https://github.com/isaacriehm/cairn

Made for: Claude Code.

Or install cairn, the plugin that ships this one along with the rest of its 5 skills, 4 commands, 5 agents, 5 hooks, 1 MCP server.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/isaacriehm/cairn/cairn-resync/github.svg)](https://agentmods.dev/skills/isaacriehm/cairn/cairn-resync)
Your own site
<a href="https://agentmods.dev/skills/isaacriehm/cairn/cairn-resync"><img src="https://agentmods.dev/badge/skills/isaacriehm/cairn/cairn-resync/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-resync

Your own site · 80×15
<a href="https://agentmods.dev/skills/isaacriehm/cairn/cairn-resync"><img src="https://agentmods.dev/badge/skills/isaacriehm/cairn/cairn-resync.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,519 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.
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.00034 $0.01519
Opus 5.5 $0.00014 $0.00608
Sonnet 5.5 $0.00007 $0.00304
Haiku 4.5 $0.00003 $0.00152

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

Security

Grade A, and why

cairn-resync 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 1mo 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.

packages/cairn-plugin/skills/cairn-resync/SKILL.md · 122 lines

How it starts

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

Skill: cairn-resync

Host portability

This skill is shared by Claude Code, Cursor, and Codex. Resolve Cairn MCP tools with the host's native discovery mechanism and use its structured question UI, falling back to a concise A/B/C chat question. Named curator briefs live under ../../agents/; dispatch them natively after reading the brief, or execute inline only when the host has no subagent capability.

You are running Cairn's operator-initiated re-discovery so committed ground state catches up to a tree that has grown or been restructured since adoption.

Everything here is opt-in, recoverable, and never auto-applies to committed ground: deterministic edits are review-class (the operator commits the diff); LLM passes spend the fast tier only on genuinely-new prose; re-curation produces _inbox/ drafts the operator drains. Confirm scope with the operator before any pass that spends model quota (re-cluster, re-curate).

Pass 1 — config-resync (deterministic, free)

Resolve the config-drift the sensor surfaced.

  1. Preview: cairn_resync({}) (dry-run default). Summarize the proposed .cairn/config.yaml edits — add a grown dir to componentDirs, add a new file type to extensions, add a .gitignore entry to off_limits, drop a dead componentDir, re-point a moved entity's source_file.
  2. On the operator's OK: cairn_resync({ apply: true }). It archives the pre-resync config.yaml to .cairn/ground/.archive/ and is idempotent. Tell the operator to review + commit the diff.
  3. Pass area to scope either call to one subtree.

Pass 2 — topic re-cluster (LLM, opt-in)

Offer this when prose has moved/grown enough that the topic-index is stale. Confirm first — it spends the fast tier (only on new prose; unchanged pairs hit the cache).

  1. Preview: cairn_resync({ recluster: true }) — re-walks + judges and reports topics_before → topics_after + judge_calls_fresh, but overwrites no map.
  2. On OK: cairn_resync({ recluster: true, apply: true }) — archives the prior topic-index.yaml + anchor-map.yaml, then rebuilds them. The maps are gitignored, per-clone derived state, so there's nothing to commit.

Read the full file on GitHub · 122 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. 1mo ago First seen · 122 lines · 34 tokens per session scan A feae287ee23a

Subscribe to this mod's changes

cairn-resync is a skill published in the GitHub repository isaacriehm/cairn (6 stars, last pushed 19d ago), licensed MIT. It adds 34 tokens to every session and 1,519 once invoked, about $0.0001 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-31.

Related

Other skills, from other repositories

ccs-align

Run the CCS Align seat's hourly breathing cycle — prove the local claude-mem worker is healthy, pull needle observations through search → timeline → getobservations, land them in a seat-owned middle cache via atomic grab → append → filter exclude-marks → replace, manage exclude marks, and walk house → project → seat…

thedotmack/claude-mem · 136 tokens

weekly-digests

Generate a serial week-by-week narrative digest of a project's full claude-mem timeline. Splits the timeline into per-ISO-week files, then runs one consecutive subagent per week — each receiving the prior week's carry-forward block — to produce one chapter per ISO week of data. Use when asked for "weekly digests"…

thedotmack/claude-mem · 93 tokens

mode-creator

Interactively create, install, activate, and verify custom claude-mem modes, including domain-specific observation types, concept tags, optional Telegram alerts, bot setup, worker restart, and startup-context verification. Use this whenever someone asks to customize what claude-mem remembers, create or change a mode…

thedotmack/claude-mem · 94 tokens

handoff

Generate a HANDOFF.md that captures goal, current state, files touched, failed attempts, and next steps — so a fresh Claude session can continue exactly where this one left off. Use when sessions are getting long, Claude keeps retrying the same broken solution, or the user wants to step away and resume later.

thedotmack/claude-mem · 66 tokens

cloud-sync

Set up or check claude-mem cloud sync with cmem.ai Pro. Use when the user says "set up cloud sync", "sync my memories", "cmem pro", "cloud backup", "sync status", or wants their memory database backed up or synced to their cmem.ai account.

thedotmack/claude-mem · 64 tokens

screenpipe

Search screen and audio history recorded by Screenpipe and optionally save selected context into claude-mem. Use when the user asks to recall desktop activity, a meeting, or something seen in another app through Screenpipe.

thedotmack/claude-mem · 46 tokens