Skip to content
Back to skills

Atomic Wiki

ASecurity

Conversational wiki and capture-bucket routing. Fires when the user wants a place, space, or folder for notes, research, tickets, raw dumps, or knowledge capture — checks the <wikis> block in ~/.claude/CLAUDE.md; if the cwd is under a registered realm, creates the folder as a bucket via `atomic wiki bucket add` rather than a bare mkdir. Also fires on "add a bucket", "set up a karpathy wiki", "karpathy realm", "set up a wiki for my projects", "add this to my wiki", "wiki this", "what does my w...

  • 96 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added August 31, 2026
ai-agentsbash

Works with

  • cli

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned August 31, 2026

npx -y skills add damusix/atomic-claude --skill atomic-wiki --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Atomic Wiki?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Atomic Wiki
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/damusix-atomic-wiki/badge)](https://www.skillsdirectory.com/skills/damusix-atomic-wiki)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: atomic-wiki
description: >
  Conversational wiki and capture-bucket routing. Fires when the user wants a
  place, space, or folder for notes, research, tickets, raw dumps, or knowledge
  capture — checks the <wikis> block in ~/.claude/CLAUDE.md; if the cwd is under
  a registered realm, creates the folder as a bucket via `atomic wiki bucket add`
  rather than a bare mkdir. Also fires on "add a bucket", "set up a karpathy wiki",
  "karpathy realm", "set up a wiki for my projects", "add this to my wiki",
  "wiki this", "what does my wiki know about X", "is my wiki stale".
  Routes per-scope: repo wikis use references/repo.md pipeline (docs/wiki/);
  realm wikis use references/realm.md pipeline (wiki/ in a separate repo).
  Not invoked by other commands — this skill is the conversational entry point
  for wiki and bucket operations; /refresh-wiki is the synthesis engine.
---

<trigger>

Auto-fires on:

- "I want a place for my notes / research / tickets / raw dumps"
- "create a space for [notes|tickets|research]" — any capture-intent phrase
- "add a bucket", "add this to my wiki", "wiki this"
- "set up a karpathy wiki", "karpathy realm", "set up a wiki for my projects"
- "what does my wiki know about X"
- "is my wiki stale"

</trigger>

Conversational entry point for wiki and capture-bucket operations. Code writes structure; the model writes meaning. Degrades gracefully when `atomic` binary is absent.

## Realm resolution

Read the `<wikis>` block in `~/.claude/CLAUDE.md` (outside `<atomic>`, CLI-managed). Each entry is a path to a registered wiki's `index.md`. The realm root is the directory containing `wiki/index.md`.

- **cwd under a realm root** → that realm is active. Bucket operations target it.
- **No registered realm + setup intent** → `atomic wiki scan --root <path>` bootstraps. Ask which folder is the realm root if ambiguous.
- **`atomic` binary absent** → say so; point at `/refresh-wiki` and `docs/reference/realm-wiki.md`. Do not hand-build the structure.

## Pipeline routing

When a full inference run is needed (refresh, summarize, synthesize), detect scope and load the matching reference:

1. Read `<wiki-type>` from the active wiki index (`docs/wiki/index.md` for repo scope, `wiki/index.md` for realm scope).
2. **Repo scope** (`<wiki-type>repo</wiki-type>`) — the full per-repo pipeline lives at `~/.claude/skills/atomic-wiki/references/repo.md` (installed location). A full refresh is triggered via `/refresh-wiki`, which dispatches `atomic-wiki-inferrer` to execute it.
3. **Realm scope** (`<wiki-type>realm</wiki-type>`) — the wiki-output and bucket-synthesis pipelines live at `~/.claude/skills/atomic-wiki/references/realm.md` (installed location). A full refresh is triggered via `/refresh-wiki [root]`, which orchestrates scan/stale/offer and dispatches `atomic-wiki-inferrer` for each inference step.

The pipeline text lives **only** in the reference files (installed at `~/.claude/skills/atomic-wiki/references/`) — not here, and not duplicated in the agent's system prompt. When an agentic inference run is needed, the agent resolves `$HOME` via Bash and reads the appropriate reference file at its absolute path, then executes it.

## Bucket creation route

When the user wants a folder for notes, tickets, research, or any loose material and the cwd is under a registered realm:

1. Run `atomic wiki bucket add <name> --root <realm-root>` — never bare `mkdir`.
   - Creates `<realm-root>/<name>/index.md` (stub: purpose line + `## Conventions` placeholder).
   - Creates `wiki/.buckets/<name>/` (empty manifest dir).
   - Splices a `<bucket name="<name>" path="<abs-path>"/>` entry into the `<wiki-buckets>` block in `wiki/index.md`.
   - On the first bucket in the realm, writes a `## Capture surfaces` section to the realm `CLAUDE.md`.
2. Drive the meaning-fill: ask the user what the bucket is for, then replace the `<!-- describe what this bucket is for -->` placeholder in the realm `CLAUDE.md` `## Capture surfaces` section and write the bucket's `index.md` purpose line + `## Conventions` block to match. **Code writes structure; the model writes meaning.**

Reserved name `wiki` is refused by the binary. If `<wiki-buckets>` carries `declined="true"`, `bucket add` removes the attribute when registering a new bucket.

## Bucket doc authoring route

When the user wants a new topic file inside a registered bucket, or asks about a bucket's own conventions:

- `atomic wiki bucket doc <bucket> <slug> [--router]` scaffolds `<bucket>/<slug>.md` from the embedded template (six-key frontmatter, `created` pre-stamped). `--router` also creates `<bucket>/<slug>/` + a `CLAUDE.md` stub for a topic that outgrows one file. Refuses on an existing target — never overwrites.
- `atomic wiki bucket skill <bucket>` scaffolds `<realm-root>/.claude/skills/<bucket>-management/SKILL.md`, pre-filled with the bucket's purpose line. No-op if the file exists.
- `atomic wiki bucket index [<bucket>]` rebuilds the `<bucket-docs>` region in one bucket's `index.md` (or every registered bucket when omitted) plus the realm `<wiki-bucket-list>` region in `wiki/index.md`. `atomic wiki scan` already runs this as part of its pass — only reach for the verb directly to force a rebuild outside a scan.

See `references/realm.md` for the full frontmatter contract.

## Karpathy-wiki setup route

When the user asks to set up a wiki for a folder of projects:

1. Run `atomic wiki scan --root <realm-root>` to scaffold `wiki/` and classify member repos.
2. Offer bucket names — `research`, `raw`, `tickets` are examples; user defines the actual names.
3. Create each named bucket via `atomic wiki bucket add <name>`.
4. Fill in meaning for each bucket's `index.md` and `## Capture surfaces` entry.
5. Point at `/refresh-wiki` for the synthesis pass that writes `wiki/repos/`, `wiki/concerns/`, and `wiki/knowledge/`.

Wiki repo commits happen inside `wiki/` — never the realm root.

## Query and staleness route

- **"what does my wiki know about X"** → read `wiki/index.md`, `wiki/knowledge/`, `wiki/repos/`, `wiki/concerns/` for the active realm. Summarize what is present; say explicitly if nothing matches.
- **"is my wiki stale"** → run `atomic wiki stale --root <realm-root>`. Exit 0 = fresh. Exit 1 = stale: stdout lists `DRIFT`/`STALE` lines (including `STALE bucket <name>` for buckets with a non-empty diff). Exit 2 = hard error.

## Conventions that prevent foot-guns

- `<wiki-scan>` and `<wiki-buckets>` blocks in `wiki/index.md` are code-owned — never hand-edit them.
- `wiki/concerns/` files need a `reflects:` stamp or they perpetually STALE-nag. Route through `/refresh-wiki`; or stamp after a light single-file edit with `atomic wiki stamp`.
- Knowledge pages (`wiki/knowledge/<topic>.md`) are stamped via `atomic wiki stamp --knowledge` — never write `sources:` frontmatter by hand; the model declares which bucket files contributed, code writes every SHA-256 value.
- Light single-file edit + stamp vs full `/refresh-wiki` for anything multi-artifact — full refresh is for batch staleness.

<constraints>

## Boundaries

- **Complements /refresh-wiki**: `/refresh-wiki` is the synthesis engine (repo signals refresh, realm repo summaries, bucket synthesis, concern re-auth, linkify). This skill is the conversational entry point — it registers and describes; `/refresh-wiki` synthesizes.
- **Not invoked by other commands.** No cross-reference needed in the other direction.
- **Never bare mkdir** for capture intent in a registered realm. `atomic wiki bucket add` is the only correct path — it wires the manifests and registry.

</constraints>

Files in this skill

  • SKILL.md7.5 KB
  • references/realm.md14.9 KB
  • references/repo.md34.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.