wiki

wiki is a skill for Claude Code from theafh/ai-modules. It costs 76 tokens per session (14,303 once invoked), scanned A, original, MIT.

A skill for maintaining a persistent knowledge base as linked plain-text files. It organizes research, cross-references related notes, flags contradictions, and keeps summaries available across sessions.

In plain words
What is it for?
Use it to create or update a wiki, ingest research sources, answer questions from existing notes, and maintain links, tags, and page structure.
Why use it?
It prevents the agent from repeatedly rediscovering information and helps keep research consistent as new sources are added.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths; mentions subagents; reads ~/.codex paths.

Part of the knowledge_management plugin — 6 skills, 1 agent shipped together

Good fit Use it to create or update a wiki, ingest research sources, answer questions from existing notes, and maintain links, tags, and page structure.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/theafh/ai-modules/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 theafh/ai-modules --skill wiki
Clone the repo
git clone --depth 1 https://github.com/theafh/ai-modules

Made for: Claude Code.

Or install knowledge_management, the plugin that ships this one along with the rest of its 6 skills, 1 agent.

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/theafh/ai-modules/wiki/github.svg)](https://agentmods.dev/skills/theafh/ai-modules/wiki)
Your own site
<a href="https://agentmods.dev/skills/theafh/ai-modules/wiki"><img src="https://agentmods.dev/badge/skills/theafh/ai-modules/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/theafh/ai-modules/wiki"><img src="https://agentmods.dev/badge/skills/theafh/ai-modules/wiki.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 76 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 14,303 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.00076 $0.14303
Opus 5.5 $0.00030 $0.05721
Sonnet 5.5 $0.00015 $0.02861
Haiku 4.5 $0.00008 $0.01430

Measured 4d ago against content hash 4f223ea8d627, 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 4d ago.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/compute_sha256.py, scripts/discover_wiki.sh, scripts/init_wiki.sh, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

plugins/knowledge_management/skills/wiki/SKILL.md · 1,110 lines

How it starts

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

Wiki

Unlike traditional RAG (which rediscovers knowledge from scratch per query), the wiki compiles knowledge once and keeps it current. Cross-references are already there. Contradictions have already been flagged. Synthesis reflects everything ingested.

Division of labor: the human curates sources and directs analysis. The agent summarizes, cross-references, files, and maintains consistency.

<orient_first_top> Read $WIKI/SCHEMA.md once at the start of any session that activates this skill. The schema declares the domain, the page-type enum, the tag taxonomy, and the conventions every subsequent action must honor. Reading it first prevents wrong-type pages, off-taxonomy tags, and duplicate or misfiled work. The full orientation pass (SCHEMA + index + recent log) is covered in <resuming_an_existing_wiki>; this top-line note exists so the SCHEMA read is never skipped, even on quick queries. </orient_first_top>

<when_to_activate> Use this skill when the user:

  • Asks to create, build, or start a wiki or knowledge base.
  • Points at a named source to bring into the wiki: activate wiki_import.
  • Asks a question that an existing wiki at the discovered location could answer.
  • Asks for a wiki-wide lint, audit, health check, clean-up, or auto-repair: activate wiki_fix.
  • References their wiki, knowledge base, or "notes" in a research context.
  • Asks to capture procedural knowledge (workflows, conventions, runbooks) alongside the wiki's subject pages. </when_to_activate>
wiki/
├── SCHEMA.md           # Conventions, structure rules, domain config
├── index.md            # Sectioned content catalog with one-line summaries
├── log.md              # Chronological action log (append-only in substance, rotated yearly)
├── raw/                # Layer 1: Immutable source material
│   ├── articles/       # Externally-published articles, web clippings
│   ├── papers/         # PDFs, arxiv papers
│   ├── meetings/       # Meeting notes, interviews, spoken-word transcripts (podcasts, talks)
│   ├── notes/          # Internal memos, discussion writeups, ad-hoc observations, internal docs not published externally
│   └── assets/         # Images, diagrams referenced by sources
├── entities/           # Layer 2: Entity pages (people, orgs, products, models)
├── concepts/           # Layer 2: Concept/topic pages
├── comparisons/        # Layer 2: Side-by-side analyses
├── queries/            # Layer 2: Filed query results worth keeping
├── summaries/          # Layer 2: Standalone overview / digest pages
└── procedures/         # Layer 2: Procedure / workflow / how-to pages

The log is append-only in substance. Never reword, reorder, or delete what a past entry records. An entry may still be edited to repair a structural or lint break it introduced, keeping what it records and where it sits. See <appending_to_log> for the rule, and <lint_and_audit> for the duplicate heading the linter surfaces.

Layer 1: Raw Sources. Immutable. The agent reads but never modifies these. Layer 2: The Wiki. Agent-owned markdown files. Created, updated, and cross-referenced by the agent. Page types split into declarative (what / why) and procedural (how). See <page_types> below. Layer 3: The Schema. SCHEMA.md defines structure, conventions, and tag taxonomy. The linter reads its ## Frontmatter yaml block to learn the page-type enum, so wikis can declare additional types there without modifying the linter.

<folder_layout> The folder tree is the type axis only. Every page lives directly at <pluralized-type>/<slug>.md, flat, one layer deep. No thematic prefix (themes/ai/concepts/foo.md is wrong), no sub-folder nesting inside a type folder (concepts/ai/foo.md is wrong), no bare files at the wiki root. Thematic scope belongs in tags: and type:, not in folder names, because tags have an enumerated taxonomy in SCHEMA.md and don't drift the way emergent theme folders do. The linter's structure check enforces this with blocking severity on misfiled pages (with a concrete move suggestion) and warn when an expected type folder is missing on disk. Because the wiki's primary consumer is an LLM with tools that greps and follows links rather than browsing, visual folder shelving adds no real value and trades it for filing-drift risk. </folder_layout>

Read the full file on GitHub · 1,110 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. 4d ago Changed 4f223ea8d627
  2. 24d ago Changed · +1 lines 69207f4d4187
  3. 25d ago Changed · +7 lines · -64 tokens per session 3d44cc27bc61
  4. 27d ago Changed · +50 lines c12bdfef0ba4
  5. 1mo ago Changed · +12 lines 383f55896c8b
  6. 1mo ago Changed · -3 tokens per session d271d381593a
  7. 1mo ago First seen · 1,040 lines · 143 tokens per session scan A 0815492db276

Subscribe to this mod's changes

wiki is a skill published in the GitHub repository theafh/ai-modules (38 stars, last pushed today), licensed MIT. It adds 76 tokens to every session and 14,303 once invoked, about $0.0003 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

Other skills, from other repositories

knowledge-ingest

Ingest documents, articles, conversations, or supplied text into Knowledge with retained originals, sourced claims, entity updates, timelines, and cross-links; also learn durable lessons from a set of conversations, transcripts, or past sessions (/learn), including the Learn from conversations and Learn from Memory…

openclaw/openclaw · 79 tokens

mem0-oss-to-platform

Plan, then execute, a migration of a project from the mem0 open-source / self-hosted SDK (local Memory class) to the mem0 Platform / hosted SDK (MemoryClient). TRIGGER when: the developer wants to move, switch, or migrate mem0 off OSS/self-hosted to the hosted API, e.g. "migrate my mem0 setup to the platform", "switch…

mem0ai/mem0 · 217 tokens

forget

Remove a personal fact, preference, relationship detail, topic, or prior event from Muse's active memory and stop existing copies or automations from bringing it back. Use for explicit requests such as 'forget that', 'don't remember this about me', or 'remove that from your memory'. Do not use when 'forget it' merely…

asgeirtj/system_prompts_leaks · 74 tokens

Cortex

LifeOS memory, prior-session recall, and learning capture. USE WHEN capture this learning, document this learning, what did we learn recently, recent learnings, cortex, knowledge, knowledge base, search knowledge, what do we know about, archive, harvest, knowledge status, develop note, add to knowledge, add a people…

danielmiessler/LifeOS · 184 tokens

memory

Use when the user asks to remember, recall, forget, update, search, or inspect durable OpenSquilla memory, including profile facts in USER.md and long-term notes in MEMORY.md or memory//.md.

opensquilla/opensquilla · 44 tokens

ha-data-stores

Map of Hope Agent's local data stores and safe read-only query workflow. Use when the user asks where Hope Agent stores data, wants to inspect sessions/messages/memory/logs/background jobs/knowledge indexes/settings, asks the model to query local app data, or debugging requires checking persisted state. Trigger…

shiwenwen/hope-agent · 115 tokens