Atlas
Keep a repository's docs from drifting using a single-source-of-truth scheme — one home per fact, a uniform per-directory shape, and a lint that fails on drift. Use when editing docs (CLAUDE.md/AGENTS.md, per-directory notes, a tracker) in a project that has adopted atlas (it has a CONVENTIONS.md), or when the user asks to set up doc-hygiene / stop the same fact living in many files. To scaffold atlas into a project, run /atlas-init.From its SKILL.md
npx -y skills add kleinmatic/atlas --skill atlasAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
5.1 KB, as published. Nobody here has run it
atlas — single-source-of-truth docs for a repo
Atlas is a lightweight discipline that stops the same fact (an address, a status, a next-action) from
living in five files and drifting out of sync. It's a "lite LLM-wiki": structured, machine-readable,
single-source, cross-linked. It is opt-in per project — a repo has adopted atlas if it contains a
CONVENTIONS.md. If it doesn't, don't impose atlas; just edit normally.
The core idea: one home per fact
| Fact type | Canonical home | Everyone else… |
|---|---|---|
| Identity (stable IDs: names, addresses, ports, IPs — whatever a project treats as identity) | the directory's CLAUDE.md/AGENTS.md YAML frontmatter | links to it — never restates it |
| Status (a state enum) | TRACKER.md (canonical) | frontmatter does not carry it |
| Next-actions / TODO | TRACKER.md (a per-dir anchor) | the dir doc points up via a todo: anchor |
| Gotchas / recipes / lessons | the directory's doc body | topic docs link to it |
| Cross-cutting design | dedicated topic docs | reference identity keys/names, not restated values |
| Dated narrative | an append-only ## History section | — |
Status is tracker-canonical, not duplicated into frontmatter: a fact with a single home can't drift from itself, so there's nothing to cross-check.
The three rules that prevent drift
- Don't restate identity. An identity value appears in exactly one place — its owning frontmatter. Other docs name the entity and link; they never re-type the value. (A project's lint can flag identity values found restated in prose.)
- Status & TODO live in the tracker, not in the dir docs. The dir doc carries only a
todo:pointer; the status and task list live inTRACKER.md. - Edit in place; append only in History. When a fact changes, change it where it lives — don't stack
an "Update: actually…" correction above/below the now-wrong text. Dated notes go in
## Historyonly.
Per-directory shape
Every per-directory CLAUDE.md/AGENTS.md opens with frontmatter, then a pointer banner, then a stable
body. A generic starting template is in references/conventions-template.md.
---
# Identity — the SSOT. Fill the fields your project treats as identity.
title: <what this directory is>
verified: 2026-01-01 # ISO date the identity was last confirmed true
todo: ../TRACKER.md#anchor # anchor of this dir's row/section in the tracker (status + TODO live there)
---
# <title> — one-line what & why
> 📍 **Status & TODO** are canonical in [`../TRACKER.md`](../TRACKER.md#anchor). **Identity** is this
> file's frontmatter (the SSOT). This body is **stable reference** — access, gotchas, recipes, history.
## <stable body sections — access / gotchas / recipe / History (append-only)>
Standardization: pattern is standard, checks are per-project
There is no shared god-linter. Each project ships its own thin tools/lint-docs.py that imports the
shared helper atlas_lint (in this skill's scripts/) and configures it with the project's own schema —
which frontmatter keys are required, which identity values must not be restated (as regexes), and which
docs are allowed to reference them. The shared helper provides the generic mechanics (frontmatter parse,
anchor resolution, ISO-date / stale-verified checks, status-in-enum); the project provides the specifics.
- Shared, generic:
scripts/atlas_lint.py(never encodes one project's schema). - Per-project, shipped into the repo by
/atlas-init:tools/lint-docs.py(a thin adapter),CONVENTIONS.md(the project's actual rules), and a.goodnight.mdthat runs the lint.
Enforcement runs via goodnight
The project's .goodnight.md declares a doc-drift subtask (python3 tools/lint-docs.py) that
/goodnight runs before committing. Drift fails the wrap-up. Fix drift by editing the SSOT (the
frontmatter for identity, the tracker for status), never the copies.
tools/lint-docs.py and tools/atlas_lint.py are repo-supplied executable code — running them (like
any repo script) is code execution. In a repo you don't own (e.g. a fresh clone), goodnight treats them as
untrusted and confirms before running; the presence of a CONVENTIONS.md never auto-enables execution on
its own.
Adopting atlas in a project
Run /atlas-init — it scaffolds CONVENTIONS.md, a thin tools/lint-docs.py, a TRACKER.md stub,
and a .goodnight.md, then leaves the per-project schema for you to fill in. Enforcement cost scales with
directory count: a large tree justifies the Python lint; a handful of dirs can run the .goodnight.md
checklist as prose and add the script later.