codebase-wiki

codebase-wiki is a skill for Claude Code, Codex from inkeep/open-knowledge-skills. It costs 152 tokens per session (1,760 once invoked), scanned A, original, MIT.

A set of instructions for maintaining a source-based wiki about a software project inside the repository. It organizes explanations of the system, its modules, workflows, concepts, and guides as linked Markdown pages.

In plain words
What is it for?
Creating or refreshing architecture documentation, module explanations, workflow diagrams, and practical guides grounded in the codebase.
Why use it?
It gives developers and coding agents a shared, version-controlled explanation of unfamiliar code. The pages can be reviewed as changes and reused as context in later work.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is - Pages: [Overview](./OVERVIEW.md), [Server](./modules/server.md), ....

Good fit Creating or refreshing architecture documentation, module explanations, workflow diagrams, and practical guides grounded in the codebase.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/inkeep/open-knowledge-skills
agentmods
npx agentmods add skills/inkeep/open-knowledge-skills/codebase-wiki

Made for: Claude Code, Codex.

Its marketplace also offers this one on its own, as the plugin codebase-wiki — /plugin install codebase-wiki after adding the marketplace above.

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 codebase-wiki

README.md
[![agentmods](https://agentmods.dev/badge/skills/inkeep/open-knowledge-skills/codebase-wiki/github.svg)](https://agentmods.dev/skills/inkeep/open-knowledge-skills/codebase-wiki)
Your own site
<a href="https://agentmods.dev/skills/inkeep/open-knowledge-skills/codebase-wiki"><img src="https://agentmods.dev/badge/skills/inkeep/open-knowledge-skills/codebase-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 codebase-wiki

Your own site · 80×15
<a href="https://agentmods.dev/skills/inkeep/open-knowledge-skills/codebase-wiki"><img src="https://agentmods.dev/badge/skills/inkeep/open-knowledge-skills/codebase-wiki.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 152 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,760 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.00152 $0.01760
Opus 5.5 $0.00061 $0.00704
Sonnet 5.5 $0.00030 $0.00352
Haiku 4.5 $0.00015 $0.00176

Measured 23d ago against content hash fcf1ee6f46ee, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

codebase-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 23d 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/starter-packs/codebase-wiki/codebase-wiki/SKILL.md · 84 lines

How it starts

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

Codebase Wiki pack — how to work here

This project holds an agent-authored wiki of a codebase — DeepWiki, but living in the repo. A coding agent reads the source and writes a navigable, diagram-rich, source-grounded wiki as markdown under wiki/. It is version-controlled and diffable, private by default, human+agent co-editable, renders in OK's live preview, and doubles as durable grounding context for future agent sessions. There is no separate Q&A surface — Q&A is "the OK-grounded agent + search".

This skill is pack guidance. The platform /open-knowledge skill (read/write/preview/linking/grounding rules) still governs every markdown operation — this layers the wiki workflow on top.

The shape

wiki/
  OVERVIEW.md     hub: what it is, a big-picture architecture diagram, a nav map to every section.
                  Frontmatter carries `profile` (audience/depth) + `source_commit` (freshness anchor).
  log.md          append-only generation / refresh audit trail
  architecture/   system boundaries, layers, subsystems, cross-cutting concerns + diagrams
  modules/        one page per package / module: purpose, entry points, key files, deps
  flows/          key end-to-end flows as sequence / flow diagrams + narrative
  concepts/       glossary: atomic pages for domain terms / core abstractions
  guides/         task-oriented "how / where do I change X" (filled at depth >= standard)

Generating + refreshing

Don't free-hand it — read references/generate-and-refresh.md and follow the phased, STOP-gated procedure. It auto-detects mode: a stubbed OVERVIEW.md (empty source_commit) → generate (survey → overview → architecture → modules → flows → concepts → link-graph audit); a stamped source_commit → refresh (diff source_commit..HEAD, update only affected pages, re-stamp).

Two toolsets. Read source code with NATIVE tools (Read/Grep/Glob/Bash) — OK MCP does not index non-markdown source. Author and audit the wiki with OK MCP verbs (write/edit for pages, links/search for the graph). Never hand-write wiki markdown with native Write/Edit.

Read the full file on GitHub · 84 lines

Files

What ships with it

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

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. 23d ago Changed fcf1ee6f46ee
  2. 2mo ago First seen · 84 lines · 152 tokens per session scan A f68b7f77c899

Subscribe to this mod's changes

codebase-wiki is a skill published in the GitHub repository inkeep/open-knowledge-skills (17 stars, last pushed 11d ago), licensed MIT. It adds 152 tokens to every session and 1,760 once invoked, about $0.0006 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-31.

Related

codebase-wiki compared with skills from other repositories

codebase-wiki next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
codebase-wikiinkeep/open-knowledge-skillsSkill1711d agoMITA152Claude Code, Codex
claude-md-improveranthropics/claude-plugins-officialSkill46kyesterdayApache-2.0A82Claude Code
agent-platform-model-registrygoogle/skillsSkill22kyesterdayApache-2.0A60Claude Code, Codex
gke-reliabilitygoogle/skillsSkill22kyesterdayApache-2.0A85Claude Code, Codex
gke-workload-securitygoogle/skillsSkill22kyesterdayApache-2.0A171Claude Code, Codex
google-cloud-solution-agentic-analytics-spark-knowledge-cataloggoogle/skillsSkill22kyesterdayApache-2.0A132Claude Code, Codex
glance-canonical-layoutsandroid/skillsSkill10kyesterdayApache-2.0A56Claude Code