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.
npx agentmods add skills/theafh/ai-modules/wikinpx skills add theafh/ai-modules --skill wikigit clone --depth 1 https://github.com/theafh/ai-modulesWhat 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.
| Model | Per session | Once 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 |
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.
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.
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_wikiagent (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>
What ships with it
9 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- references/lint_checks.md 20 KB
- references/raw_taxonomy.md 5.0 KB
- references/template_index.md 316 B
- references/template_log.md 2.1 KB
- references/template_schema.md 20 KB
- scripts/compute_sha256.py 7.3 KB runs code
- scripts/discover_wiki.sh 12 KB runs code
- scripts/init_wiki.sh 3.1 KB runs code
- scripts/lint.py 92 KB runs code
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.
- 3d ago First seen · 1,040 lines · 143 tokens per session scan A 0815492db276
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.
Other skills, from other repositories
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
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.
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.
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.
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.
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…