wiki

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 CodeCodex

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

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.

agentmods
npx agentmods add skills/theafh/ai-modules/wiki
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, Codex.

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

Per session 143 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 13,425 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00143 $0.13425
Opus 5 $0.00072 $0.06712
Sonnet 5 $0.00029 $0.02685
Haiku 4.5 $0.00014 $0.01342

Measured 3d ago against content hash 0815492db276, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 3d 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,040 lines

How it starts

The opening of the file, as written. The whole thing — 1,040 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.
  • Asks to ingest, add, or process a source into their wiki.
  • Asks a question that an existing wiki at the discovered location could answer.
  • Asks to lint, audit, fix, health-check, clean up, or auto-repair their wiki — delegate the work to the auto_shaper_wiki agent (see <lint_and_audit>).
  • 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 — 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 — which 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,040 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. 3d 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 3d ago), licensed MIT. It adds 143 tokens to every session and 13,425 once invoked, about $0.0007 per session on Opus 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

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.

obra/superpowers · 37 tokens

auto-perf-optimize

Run agent-driven VS Code performance or memory investigations. Use when asked to launch Code OSS, automate a VS Code scenario, run the Chat memory smoke runner, capture renderer heap snapshots, take workflow screenshots, compare run summaries, or drive a repeatable scenario before heap-snapshot analysis.

microsoft/vscode · 62 tokens

chat-perf

Run chat perf benchmarks and memory leak checks against the local dev build or any published VS Code version. Use when investigating chat rendering regressions, validating perf-sensitive changes to chat UI, or checking for memory leaks in the chat response pipeline.

microsoft/vscode · 51 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens