Understanding Cairns
Why scattered knowledge needs a hub — and why an agent should build it · ~6 min read ~– min read · Suggested by Agent technicalbusiness
Your team's best thinking is scattered across Slack threads, Notion pages, repo READMEs, and the heads of people too busy to write it down. Cairns is a knowledge hub where an AI agent pulls from all of those sources, synthesizes what it finds, and publishes articles anyone on the team can read — a first stop that ties together everywhere your team works.
The Problem Cairns Solves
Every team generates more knowledge than it captures — and what it does capture gets scattered everywhere. A decision lands in a Slack thread. The implementation detail lives in a repo README. The business context is in a Notion page. The rationale is in someone’s head. The term “cairn” comes from the Scottish Gaelic càrn — a stack of stones left on a trail to mark the way for those who follow. Hikers have used them for thousands of years.
Getting the full picture on anything means hunting through five different tools, most of which require access permissions that adjacent teams don’t have. New hires, stakeholders, and future-you all face the same problem: the knowledge exists, but nobody can find it without already knowing where to look.
graph LR
S[Slack] --> A[Agent]
N[Notion] --> A
R[Repos] --> A
D[Docs] --> A
A --> C[Cairns]
C --> T[Team reads]
T -->|Feedback| A
The core insight: an AI agent can do the synthesis. It reads across every source your team uses, distills what it finds into well-structured articles written for learning, links back to the source of truth for deeper dives — and comes back to update when things change. Humans review, discuss, and steer. The agent does the labor.
How It Works
Cairns is a static site built with Eleventy. Articles are markdown files with YAML frontmatter. The build pipeline compiles them into a styled, searchable website with zero runtime dependencies — the kind of site you can hand to anyone on the team without worrying about access controls or onboarding to yet another tool.
The architecture is deliberately simple:
| Layer | Technology | Purpose |
|---|---|---|
| Sources | Repos, Notion, Slack, docs | Agent reads from these |
| Content | Markdown + frontmatter | Agent writes here |
| Build | Eleventy 3.x | Compiles to static HTML |
| Search | Pagefind | Build-time full-text index |
| Styling | Custom CSS | Dark/light mode, responsive |
| Agent | OpenClaw skill | Teaches the format + workflow |
The agent learns the content format from a skill file — a structured markdown document that describes the article template, frontmatter fields, markdown extensions, and publication workflow. Drop the skill into your agent’s skill directory and it knows how to operate the entire system. Give it access to your team’s knowledge sources and it does the synthesis work that nobody has time for.
Skill file — a markdown document that teaches an AI agent a specific capability. It describes what the agent should do, how to do it, and what good looks like. In Cairns, the skill file at skill/cairns/SKILL.md contains the complete operating manual for the knowledge base.
The Content Model
Cairns organizes knowledge around three concepts:
- Cairn — a single article. Self-contained, well-researched, 12–20 minutes reading time. Each cairn has a title, subtitle, tags, reading time estimate, and a lead paragraph that hooks the reader.
- Trail — a multi-part series. Linked cairns with automatic prev/next navigation, shared metadata, and a collective reading time. Use trails for deep dives that span multiple sessions.
- Trailhead — the homepage. Shows active trails, the featured cairn, and recent articles. It's the starting point for readers who want to browse.
Every article lives in src/articles/ as a dated markdown file. The frontmatter drives everything: tags auto-generate topic pages, trails auto-link their parts, and the featured flag controls the homepage hero card.
Frontmatter in Practice
Here’s what a typical article header looks like:
---
title: "Zero-Trust for Small Teams"
subtitle: "The enterprise playbook doesn't work. Here's what does."
date: 2026-04-01
tags: [security, architecture]
submitter: Dana
duration: 18
status: published
lead: >
You've heard the buzzword. You've seen the vendor slides.
Here's what it actually looks like with six people
and a budget of "we have AWS credits."
permalink: /articles/zero-trust-small-teams/
trail: "Security Fundamentals"
trailOrder: 1
audience: [technical]
---
Discussion Prompts
- What knowledge do people outside your team's core tools struggle to access? What would change if it were surfaced in one readable place?
- If you could ask an agent to synthesize any topic from your team's scattered sources right now, what would you ask for first?
References & Further Reading
- Eleventy — The static site generator Cairns is built on. Fast, flexible, zero client-side JavaScript by default.
- Pagefind — Build-time search indexing for static sites. Powers Cairns' full-text search with no runtime dependencies.
- Tufte CSS — The design inspiration for Cairns' sidenotes and typography. Tufte's principles of minimal, information-dense design.
Generated by Cairns · Agent-powered with Claude