Introduction¶
When working on larger projects with AI, switching to a new session often means starting from scratch: architectural decisions, pitfalls encountered, half-written SOPs—all need to be explained again. Conversation history is stored on the client side, making version alignment difficult and complicating code reviews alongside the code.
cairn (piling stones) does not take the route of “building another knowledge base service.” It anchors project memory within the repository: markdown goes into git, using a “one-line index + details” structure to tie together tasks, progress, decisions, and documentation, allowing the Agent to grep and read files within the repo to pick up context. Below is an introduction to what it is, what mechanisms were added in version 0.2, and how to install and enable it on SkillHub.
What is it¶
One-sentence positioning: cairn is a repo-based markdown + git project memory convention, not a framework, a long-running service, or a database.
Publisher and coordinates: Community publisher user_9f59bd3b, SkillHub coordinate @user_9f59bd3b/silk-cairn, current version 0.2.0, categorized as knowledge-management, requires_api_key=false.
What problem it solves: Unifies tasks, progress, SOPs, decisions, pitfall ledgers, and documentation into a single writing style—an index line with a conclusion, and details accessed via the corresponding file; every item falls into a dated task directory, and when wrapping up, a line is added to the index to be reused in future searches.
Difference from other Skills with the same name: There are other Skills named cairn on SkillHub based on SQLite and vector retrieval; silk-cairn relies only on markdown and git, making it a different product from these local index solutions.
Core Features¶
Directory and Index Convention¶
- Use markdown + git in the repository to carry memory, unifying the “one-line index + details” approach.
- Covers types such as task tracking, progress, SOPs, decisions, pitfall ledgers, and documentation, avoiding the fragmentation of separate formats.
- One dated task directory per item; when a task is completed, write the conclusion into the index to facilitate later
grepor Agent-based topic search.
“Write After” Mechanisms introduced in 0.2¶
In addition to “being able to write,” version 0.2.0 adds a set of rules to control memory quality and collaboration (the capabilities listed in the Skill description):
| Mechanism | Function |
|---|---|
| Write Entry Barrier | If writing it down won’t improve a future task, don’t write it, reducing noise. |
| Pre-write Verification | Rewrite when there is already an index line for the same topic, rather than having multiple conflicting conclusion lines coexist. |
| [Use N] Use it or Lose it | Conclusions that have not been cited for a long time will be eliminated. |
| 2-4 Week Review Ritual | Generates proposal diffs for human review; deletion takes priority over addition. |
| Cross-repo Borrowing (seek) | Directly reuse pitfall ledgers or decisions from parent or sibling repos to avoid repeating pitfalls. |
| Multi-session Collaboration ENV-LOG | Records changes to shared state immediately; check this log first when others report metric anomalies. |
| Closing Reminder (Stop hook) | Reminds when a task is not completed; remains silent when there are no outstanding items. |
| Zero-dependency single-file HTML panel | View the memory structure within the repository without needing an extra service. |
| 30 Smoke Tests | Performs basic validation on conventions and processes (provided with the Skill). |
Agent Trigger Scenarios (Official Description)¶
Suitable for triggering via natural language or workflows after enabling this Skill on an Agent, including but not limited to:
- Starting a task, or asking where temporary files should be placed;
- Recording or querying progress;
- Closing a task;
- Querying whether a similar task was done previously;
- Solidifying SOPs, logging pitfalls, and registering decisions;
- Implementing cairn in a new repository;
- Asking “where should this be recorded”;
- Cross-repo borrowing or multi-session collaboration;
- Bridging the gap when a repository still uses the legacy
.trellis/layout.
Not applicable: Trellis framework mechanism itself (you should use a trellis-usage type Skill, rather than treating this Skill as Trellis documentation).
Installation and Enablement¶
1. Install SkillHub CLI (if not already installed)¶
First, check if the CLI already exists:
command -v skillhub && skillhub --version
If not installed, you can install the CLI only:
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only
2. Install cairn Skill¶
When installing, you must use --dir to point to the skills directory actually read by the current Agent, otherwise it will default to ./skills/, which may not be recognized. After installation, restart the client.
skillhub install @user_9f59bd3b/silk-cairn --dir <your skills directory>
Common skills directories for each environment (excerpted from the SkillHub installation documentation):
| Agent | skills directory |
|---|---|
| Claude Code | ~/.claude/skills/ |
| Cursor | ~/.cursor/skills/ |
| Codex | ~/.codex/skills/ or .agents/skills/ in the project |
You can also download the SKILL zip file from the SkillHub page, unzip it into the directory above, and restart to get the same effect as CLI installation.
3. Enable the convention in the target repository¶
In a new or existing repository, have the Agent “implement cairn” via conversation: initialize the memory structure within the repository according to the directory and index rules in the Skill (specific file names and templates are based on SKILL.md after installation). No API Key is required, and it does not depend on external databases.
Typical Usage¶
Below is a reproducible workflow outline; details are based on the Skill within the repository and the generated markdown.
Start a task and schedule¶
- Explain the work to be done, let the Agent create a tracking record under a dated task directory, and update the progress index as needed.
- If you are unsure about the path for temporary artifacts, just ask “where should I put temporary files” — the Skill will answer according to the convention rather than arbitrarily creating scattered directories.
Record progress and shared state during execution¶
- When working in parallel across sessions, for configuration or environment changes that will affect others, require writing to ENV-LOG so another session can check the log before modifying code.
- When querying progress, let the Agent read the index and corresponding detail files rather than relying solely on the current chat window.
Closing and indexing¶
- When a task is completed, perform Closing: add or rewrite a line of conclusion in the index (pre-write verification), and place details inside the task directory.
- If the Stop hook is enabled, you will be reminded if the task is not completed; the hook will remain silent once everything is settled.
Retrieval and solidification¶
- Ask “have I done X before” or let the Agent
grepthe index — there should be only one latest expression for conclusions on the same topic. - Once the fixed process is established, solidify it into a SOP; record pitfalls in the pitfall ledger; record decisions for architecture or product choices.
- When a single repository is insufficient, use seek to search for existing lines in parent or sibling repos, then decide whether to copy or rewrite.
Regular review¶
Run the review ritual every 2-4 weeks: generate proposal diffs, prioritize deleting outdated lines, and then consider adding new ones; combine with [Use N] to eliminate items that have not been cited for a long time.
Applicable Scenarios and Notes¶
Who is it suitable for
- Using Agents with Skills capabilities such as Claude Code, Cursor, Codex, for repository maintenance or feature development involving longer cycles and more decisions.
- Teams or individuals tired of explaining context from scratch in every new session, yet unwilling to maintain a separate service or database for “project memory.”
Limitations and Notes
- Memory quality depends on whether you follow the convention to close tasks, and whether you adhere to the write entry barrier and pre-write verification; simply piling up files without maintaining the index will quickly degrade search effectiveness.
- Requires a git and markdown workflow; the review ritual requires a human to review diffs; core business documents cannot be completely handed over to the Agent for automatic deletion and modification.
- Irrelevant to the Trellis framework mechanism; legacy
.trellis/repositories can use this Skill for bridging, but framework usage should be paired with a separate trellis-usage Skill. - SkillHub statistics (as of page info): rating 100000, downloads approx. 590 times; after installation, please refer to the local
SKILL.mdas the authoritative operation guide.
Conclusion¶
cairn puts “what is remembered about the project” into markdown + git in the repo: one-line index, dated task directories, and the entry barriers and review mechanisms introduced in 0.2, allowing the Agent to pick up work from the last session directly within the repository, rather than re-oralizing everything in every new session.
- SkillHub Page: https://www.skillhub.cn/skills/user_9f59bd3b/silk-cairn
- API Coordinate: https://api.skillhub.cn/user_9f59bd3b/silk-cairn
- Installation Documentation: https://www.skillhub.cn/install/skillhub.md