architect
Given a PRD, produces an implementation architecture: file tree, component breakdown, data model, and a phased build plan with end conditions that Archon can…
Markdown-first knowledge base where the LLM acts as librarian. Ingests raw sources, compiles and interlinks topic files, self-maintains an index. No vector DB or embeddings required -- uses LLM-native navigation over structured markdown up to ~400K words.
$ npx -y skills add SethGammon/Citadel --skill wiki --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/wikiContext preview
The summary Claude sees to decide when to auto-load this skill.
Markdown-first knowledge base where the LLM acts as librarian. Ingests raw sources, compiles and interlinks topic files, self-maintains an index. No vector DB or embeddings required -- uses LLM-native navigation over structured markdown up to ~400K words.
name: wiki license: MIT description: >- Markdown-first knowledge base where the LLM acts as librarian. Ingests raw sources, compiles and interlinks topic files, self-maintains an index. No vector DB or embeddings required -- uses LLM-native navigation over structured markdown up to ~400K words. user-invocable: true auto-trigger: false trigger_keywords: - wiki - knowledge base - llm wiki - project wiki - build a wiki - maintain knowledge - knowledge management - llm-wiki - karpathy wiki last-updated: 2026-04-06
**Use when:** building and querying a markdown-first knowledge base -- ingests raw notes, deduplicates, surfaces answers. **Don't use when:** capturing session learnings into the evolve pipeline (use /learn); generating structured code documentation (use /doc-gen).
wiki/ index.md # Master index raw/ # Unprocessed sources (timestamped files) topics/ # Compiled topic files (one per topic, interlinked) .wiki-meta.json # Stats: topic count, source count, last compaction
| Command | Behavior | |---|---| | `/wiki` | Status overview: topic count, last update, pending raw sources | | `/wiki --add [source]` | Ingest a new source into the wiki | | `/wiki --query [question]` | Answer a question using wiki knowledge | | `/wiki --status` | Detailed wiki health: topic count, staleness, orphan detection | | `/wiki --compact` | Merge, deduplicate, and reorganize topics | | `/wiki --rebuild-index` | Regenerate index.md from current topic files | | `/wiki init [path]` | Initialize a new wiki at the specified path |
Create `wiki/`, `wiki/raw/`, `wiki/topics/`, an empty `wiki/index.md`, and `wiki/.wiki-meta.json` with fields: `created`, `lastUpdated`, `topicCount: 0`, `sourceCount: 0`, `totalWords: 0`, `lastCompaction: null`. Default path: `wiki/` at project root.
Ingest a new source into the wiki.
**Step 1:** Determine source type — URL (fetch with WebFetch), file path (read), raw text (use directly), no argument (ask user).
**Step 2:** Write raw content to `wiki/raw/source-{timestamp}.md` with header: title/URL, ingested date, type, original reference.
**Step 3:** Identify 1-5 topics. For each: check if a topic file already exists — append to existing or create `wiki/topics/{slug}.md`.
**Step 4:** Each topic file has: title, `> Last updated`, `> Sources`, compiled content, and `## Related Topics` with `[[slug]]` cross-links. Scan existing topics for cross-links when writing.
**Step 5:** Regenerate `wiki/index.md` with stats header, Topics table (`[[slug]]` | summary | last updated), and Recent Sources table.
**Step 6:** Update `wiki/.wiki-meta.json` with new counts.
**Step 7:** Output: source description, topics created, topics updated, index counts.
1. Read `wiki/index.md`, identify 1-5 relevant topic files, explain reasoning briefly 2. Read those topics; follow `[[cross-links]]` up to 2 hops if relevant 3. Produce a clear answer citing specific topic files used 4. If the wiki lacks enough information: state what it knows, list gaps, suggest `/wiki --add` for missing areas
Read meta, count topic files and raw sources, check for orphaned topics, broken cross-links, and stale topics (30+ days). Output: topic/source/word counts, last updated/compaction dates, and health issues with counts and lists.
1. Read `wiki/index.md` and all topic files 2. Identify: merge candidates (overlapping subjects), split candidates (multiple distinct subjects), stale/outdated content, duplicates 3. For each change: describe what and why, make the change, update all affected cross-links 4. Rebuild `wiki/index.md` and update `wiki/.wiki-meta.json` with `lastCompaction` and new counts 5. Output: topics merged/split/removed/resolved, final count, estimated words
Read all topic files, extract title/summary/date, write a fresh `wiki/index.md`. Output: "Index rebuilt with {count} topics."
**Disclosure:** "Updating wiki at `.planning/wiki/`. Files will be created or modified." **Reversibility:** amber — creates and modifies `.planning/wiki/` files; undo by deleting or reverting changed files. **Trust gates:**
Output a summary appropriate to the command executed, then:
---HANDOFF---
- Wiki: {command executed} at {wiki path}
- Topics: {count} total, {new/updated/merged count} changed
- Status: {healthy |An open-source operating layer for Claude Code and OpenAI Codex. Citadel routes requests, preserves repository state between sessions, coordinates parallel work, applies repository safeguards, and records evidence and handoffs around the coding agent you
Repo: SethGammon/Citadel
Given a PRD, produces an implementation architecture: file tree, component breakdown, data model, and a phased build plan with end conditions that Archon can…
Autonomous multi-session campaign agent. Decomposes large work into phases, delegates to sub-agents, reviews output, and maintains campaign state across…
Generate perfectly aligned ASCII diagrams — architecture, flow, sequence, box-and-arrow. Uses a programmatic character-grid approach so alignment is guaranteed…
Intake-to-delivery pipeline. Processes pending items from .planning/intake/: briefs new ideas, executes approved work through research → plan → build → verify.…
Deep cost exploration and transparency. Shows real token usage, session costs, campaign spend, burn rates, and model breakdown. Reads Claude Code's native…
End-to-end app creation from a single description. Five tiers: blank project, guided, templated, fully generated, or feature addition to existing codebase.…