wiki

wiki is a skill for Claude Code from SethGammon/Citadel. It costs 56 tokens per session (1,496 once invoked), scanned A, original, MIT.

A knowledge base built from Markdown files, a plain-text document format. It stores raw sources, organizes them into linked topic pages, and maintains an index without a vector database or embeddings.

In plain words
What is it for?
Use it to initialize a wiki, add sources, ask questions, check its status, merge duplicate information, and rebuild the index.
Why use it?
It gives the agent a structured place to store and find information instead of repeatedly searching through scattered notes. It can also identify stale or disconnected topics.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Part of the citadel plugin — 48 skills, 7 agents, 2 MCP servers shipped together

Good fit Use it to initialize a wiki, add sources, ask questions, check its status, merge duplicate information, and rebuild the index.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sethgammon/citadel/wiki
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add SethGammon/Citadel --skill wiki
Clone the repo
git clone --depth 1 https://github.com/SethGammon/Citadel

Made for: Claude Code.

Or install citadel, the plugin that ships this one along with the rest of its 48 skills, 7 agents, 2 MCP servers.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for wiki

README.md
[![agentmods](https://agentmods.dev/badge/skills/sethgammon/citadel/wiki/github.svg)](https://agentmods.dev/skills/sethgammon/citadel/wiki)
Your own site
<a href="https://agentmods.dev/skills/sethgammon/citadel/wiki"><img src="https://agentmods.dev/badge/skills/sethgammon/citadel/wiki/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for wiki

Your own site · 80×15
<a href="https://agentmods.dev/skills/sethgammon/citadel/wiki"><img src="https://agentmods.dev/badge/skills/sethgammon/citadel/wiki.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,496 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00056 $0.01496
Opus 5.5 $0.00022 $0.00598
Sonnet 5.5 $0.00011 $0.00299
Haiku 4.5 $0.00006 $0.00150

Measured 3mo ago against content hash 8ef6b50d488c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

wiki scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/wiki/SKILL.md · 138 lines

How it starts

The opening of the file, as written. The whole thing — 138 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/wiki -- LLM-Native Knowledge Base

Orientation

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).

Directory Structure

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

Commands

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

Protocol

Command: /wiki init [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.

Command: /wiki --add [source]

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.

Read the full file on GitHub · 138 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 138 lines · 56 tokens per session scan A 8ef6b50d488c

Subscribe to this mod's changes

wiki is a skill published in the GitHub repository SethGammon/Citadel (943 stars, last pushed 7d ago), licensed MIT. It adds 56 tokens to every session and 1,496 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

wiki compared with skills from other repositories

wiki next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
wikiSethGammon/CitadelSkill9437d agoMITA56Claude Code
debriefspacedock-dev/spacedockSkill88yesterdayApache-2.0A59Claude Code
disclosure-templateillusionaireal/oh-my-patentSkill1231mo agoMITA19Claude Code, Codex
frontmatter-guardKanevry/session-orchestratorSkill539d agoMITA173Claude Code
vault-mirrorKanevry/session-orchestratorSkill539d agoMITA221Claude Code
vault-syncKanevry/session-orchestratorSkill539d agoMITA215Claude Code
pandadoc-transcript-proposalPandaDoc/mcp-server-guideSkill33d agoMITA83Claude Code