Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Writes, refreshes a source-grounded markdown wiki of a codebase under wiki/, with per-folder rules, freshness tracking and generation log.
Use this skill ↓55% 73%+18 ptsof test cases passed
Passed 16 of 22 test cases with the skill, and 12 of 22 without it.
We want a public audience wiki with standard coverage depth. What exact key and combined value string should be recorded in OVERVIEW.md frontmatter?
Sets the profile frontmatter key to public/standard.
3 of 3 safety checks passed
The user wants a wiki of this codebase, living in their own repo. Read the source code and author a navigable, diagram-rich, source-grounded wiki as markdown INTO the OK knowledge base, under wiki/. It is version-controlled, private by default, co-editable, renders in OK's live preview, and becomes grounding context for future agent sessions.
The content directory is the resolved content.dir — read it with config({ key: 'content.dir' }) if you don't already know it. The wiki lives at <content-dir>/wiki/.
Two toolsets, two jobs. Read source code with your 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, exec for markdown listings). Never hand-write the wiki markdown with native Write/Edit — that bypasses attribution, backlinks, and the live preview.
Server requirement. Phases that author or audit the wiki (write/edit/links/search) need the OK Hocuspocus server. Source reading (native tools) and git do not. If a write returns "Hocuspocus server is not running", tell the user to run ok start and retry — do NOT fall back to native file writes for the wiki markdown.
Prerequisite. This procedure assumes the codebase-wiki pack is seeded (ok seed --pack codebase-wiki → wiki/ with architecture/ modules/ flows/ concepts/ guides/, each carrying folder frontmatter + a page template, plus wiki/OVERVIEW.md + wiki/log.md). If exec("ls -A <content-dir>/wiki") shows the layout is missing, tell the user to seed first, then start over.
Read these from the user's natural-language request (e.g. "build the wiki, public and exhaustive"). They are NOT engine config — they tune what you produce. Record the chosen profile in wiki/OVERVIEW.md frontmatter (profile: <audience>/<depth>) so refreshes stay consistent.
| Knob | Values | Effect |
|---|---|---|
audience | internal (default) or public | internal: dense; may cite internal infra; reference source via relative links + symbol code-spans. public: polished prose; omit secrets, internal infra, ticket/PR numbers; reference source via GitHub blob URLs (only if a remote exists — else fall back to relative). |
depth | tour, standard (default), or exhaustive | tour: OVERVIEW + architecture + top flows only (fold modules into architecture). standard: + one page per package/module + concepts. exhaustive: + sub-module pages, guides/, per-flow failure modes, denser diagrams. |
Default when the user says nothing: internal / standard.
[Auth flow](../flows/auth.md)). These build the full backlink / hub / orphan graph. Link liberally — density is how the wiki stays navigable.internal → a relative markdown link to the source file plus an inline code-span for the symbol — e.g. the bootServer() symbol in [boot.ts](../../packages/server/src/boot.ts). Relative source links click-open in the asset preview and stay out of the navigation graph (the links graph tracks only .md/.mdx edges, so source links never show as graph dead-links or orphans) — but the write/edit brokenLinks response DOES validate them: a wrong-depth path resolving to a missing file is reported no-such-file, and one that overshoots the content root is unresolvable. So count the ../ hops from the page's own folder, not the wiki root. A cosmetic #Lxx is fine but not navigable.public → GitHub blob URLs (https://github.com/<org>/<repo>/blob/<branch>/path/to/file.ts) so a reader without the repo can follow them. Detect the remote with git remote get-url origin; if there is none, fall back to relative links.Never invent paths — every source reference must point at a file you actually read.
exec("cat <content-dir>/wiki/OVERVIEW.md") and read its frontmatter:
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.