by iBlinkQ
Turn project work into reusable knowledge — an AI-agent skill for Claude Code & Codex
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
# Add to your Claude Code skills
git clone https://github.com/iBlinkQ/project-cairnGuides for using ai agents skills like project-cairn.
Project Cairn gives AI-collaboration projects a durable way to keep and reuse what they learn while doing real work. The Skill supplies the method, AGENTS.md carries always-read project rules, and .cairn/config.yaml stores machine-readable configuration.
This Skill is documentation-first: instructions, templates, references, and provider adapters. It has no CLI, MCP server, background hook, chat-end trigger, automatic provider write, or automatic history migration. Routine maintenance happens during normal work because AGENTS.md carries the rules. Provider writes require human confirmation.
Load only the reference your task needs:
references/init.md — initialize, retrofit, bootstrap, or set up Project Cairn in a project.references/consume.md — pull, cite, reuse, or apply external knowledge from the configured knowledge base.references/maintenance.md — record progress, update LOG/ROADMAP, distill conclusions from dialogue or project process documents into topic notes (e.g. "整理已有经验"), or apply Cairn rules after work.references/audit.md — check project experience (检查项目经验; aliases 检查知识文档 / 检查主题文档 / legacy 体检), or the experience library (检查经验库, no init); respect the requested scope and propose changes before writing.references/upgrade.md — upgrade an initialized project instance to the current skill spec, or check instance drift.references/graduation.md — graduate knowledge, judge readiness, or run one-shot graduation without init (经验入库 / 直接整理入库; legacy 毕业 / 一次性毕业, e.g. “看看这个文件夹里,有哪些经验值得存进知识库”); provider writes also read the selected references/graduation/<provider>.md.references/frontmatter.md — create or review Cairn topic notes or knowledge-base notes.references/branch-closure.md — review, close, abandon, or roll back an exploration branch and salvage its cairn/ knowledge.references/zh-glossary.md — writing project docs in Chinese; fixed English↔Chinese terminology mapping.Frontmatter describes triggers, not workflow.
assets/templates/ holds AGENTS.md, CLAUDE.md, config.yaml, user-config.yaml, LOG.md, ROADMAP.md, topic.md, and Cited.md. init scaffolds AGENTS.md, CLAUDE.md, .cairn/config.yaml, cairn/LOG.md, and optional cairn/ROADMAP.md, and can seed ~/.config/cairn/config.yaml from user-config.yaml. topic.md, Cited.md, and Reference/ are trigger-created. Templates use {{PLACEHOLDER}} tokens; never hardcode a provider or path.
AGENTS.md is read as project rules.scripts/*.sh use bash (macOS/Linux; Windows needs WSL/Git Bash). scripts/*.py use Python 3; notion-graduate-batch.py also needs PyYAML.Turn project work into reusable knowledge.
Open the interactive guide to learn more about the Skill
Project Cairn is an agent skill. During normal project work, it helps the agent keep validated pitfall lessons, key decisions, exploration findings, and sparks of insight inside the project. When something is genuinely reusable elsewhere, the agent can prepare it for a long-term knowledge base after you confirm it.

The files have distinct jobs:
AGENTS.md holds the rules the agent reads whenever it enters the project.cairn/LOG.md records what happened, with short summaries and pointers.cairn/ROADMAP.md keeps the overall goal, plan, and current progress.cairn/<topic>.md holds the current conclusion for one subject.cairn/Cited.md points to external knowledge that actually shaped the project, without copying its body.A cairn is a trail marker built by earlier travelers. The name captures the goal: let the next project see where the previous one found a safe route.
Project Cairn is useful when you run several AI-collaboration projects, switch between skill-compatible agents such as Claude Code and Codex, or need project knowledge to survive beyond one person's memory.
Claude Code, user-level installation:
git clone https://github.com/iBlinkQ/project-cairn.git ~/.claude/skills/project-cairn
Codex, user-level direct skill path:
git clone https://github.com/iBlinkQ/project-cairn.git ~/.agents/skills/project-cairn
WorkBuddy, import the local skill package:
See the official WorkBuddy skill guide for the installation interface.
The skill holds the method, and the project's AGENTS.md carries the rules the agent keeps every turn. WorkBuddy loads that file when you open the project folder in a WorkBuddy Project for code development. For other tasks, add one line to the Project's Instructions: "Read AGENTS.md at the project root and follow it as project rules." If the project already has a CODEBUDDY.md, WorkBuddy reads that file instead of AGENTS.md, so init adds an @AGENTS.md import line to it.
For another skill-compatible agent, clone the repository into the directory where that agent loads skills. SKILL.md should sit directly at the root of project-cairn/, not inside another nested folder.
Prerequisites are git, plus bash for scripts/*.sh. The shell scripts have been verified on macOS and Linux; Windows users need WSL or Git Bash. Python scripts require Python 3; notion-graduate-batch.py additionally requires PyYAML. There is no package-manager release yet.
AGENTS.md to maintain progress and current conclusions. There is no separate recording service to run.cairn/Cited.md only when a result actually influences the work.Already have an ongoing project or a finished project folder?
cairn/ROADMAP.md, and distills still-valid conclusions into topic notes while leaving original files untouched.cairn/ folder is needed. Open the folder and ask "See what experience in this folder can graduate" ("看看这个文件夹里,有哪些经验值得存进知识库"), or name a specific retrospective/summary note directly. The agent reads ~/.config/cairn/config.yaml, excludes external reference material, proposes reusable candidates, and — once you confirm — writes the knowledge-base note (type: project_insight), updates INDEX.md, adds only graduated_to / graduated_at back-pointers to the source note, and logs a 经验入库:[[...]] line under today's date if a project record note exists.检查经验库): run directly against an Obsidian knowledge-base folder without project init. List notes missing from INDEX.md and propose fixes for missing type / summary or a body not opening with Background. Register or edit only after confirmation or prior explicit authorization; manual notes without graduated_from remain valid.For a project audit, ask “检查项目经验” (check project experience). “检查知识文档”, “检查主题文档” and legacy “体检” requests are also recognized. A named file or document kind limits the scope; a general project request checks relevant topic notes, LOG and ROADMAP together. Findings and proposed repairs come first; checking alone does not authorize repairs or index writes. A normal project audit logs the check; an explicit read-only request forbids that write too.
Project Cairn separates two lifecycles instead of putting every kind of information into one ever-growing file.
| Side | What it keeps | Typical home | When it is read |
|---|---|---|---|
| Project side | Rules, progress, current conclusions, and local cases | root AGENTS.md and cairn/ |
while entering and advancing the project |
| Knowledge-base side | Distilled knowledge that can be reused across projects | Obsidian, Notion, or Lark / Feishu wiki | when new work needs an earlier lesson |
The project side keeps local facts and conclusions current. Once a lesson proves useful beyond that project, human-confirmed graduation distills it into the knowledge-base side. Each side remains authoritative for its own scope.
Take the messaging-bot problem:
LOG.md.type.Cited.md records a pointer rather than a duplicate.The interactive overview expands this journey into T0 through T8, including roadmap maintenance, audit, and re-graduation: explore the full flow.
Project Cairn does not stamp out a directory full of empty templates. Beyond the core initialization files, documents appear only when a real signal calls for them.
| File | Responsibility |
|---|---|
AGENTS.md |
Rules and navigation |
.cairn/config.yaml |
Machine-readable configuration |
cairn/LOG.md |
Reverse-chronological history |
cairn/ROADMAP.md |
Overall goal, plan, and current progress |
cairn/<topic>.md |
Current truth for one topic |
cairn/Reference/ |
External source material owned by the project |
cairn/Cited.md |
Pointers to knowledge that influenced the work |
Schemas, configurations, and contracts consumed directly by code stay in the code tree. Cairn keeps the knowledge around them: why they look this way, what alternatives were tested, and what went wrong during implementation.
Topic notes use Markdown and YAML frontmatter with at least a type field, following the minimal convention of Google's Open Knowledge Format. Project Cairn does not claim to implement the complete OKF bundle. New project topics use project_topic; newly graduated notes use project_insight. Initialization does not ask for a type. Existing note types remain valid and are preserved unless a separate migration is confirmed. See frontmatter.
Graduated notes carry provenance through graduated_from, contributors, graduated_by, and authoring_mode, so readers can trace a conclusion back to the people, p
project-cairn is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by iBlinkQ. Turn project work into reusable knowledge — an AI-agent skill for Claude Code & Codex. It has 256 GitHub stars.
project-cairn's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/iBlinkQ/project-cairn" and add it to your Claude Code skills directory (see the Installation section above). project-cairn ships a SKILL.md manifest, so compatible agents can discover and load it automatically.
project-cairn is primarily written in Shell. It is open-source under iBlinkQ on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh project-cairn against similar tools.
No comments yet. Be the first to share your thoughts!