{"name":"write-codebase-wiki-prompt","description":"A prompt that writes a wiki for a codebase: each module, how requests flow, and how to extend a module, with a file named on every claim. Use when the user wants a WIKI.md, wiki pages for modules, or docs on how to extend the code.","category":"writing-prompts","tags":["writing","docs"],"models":["any"],"proven":false,"passing_families":0,"model_testing":"Not yet model-tested; testing Jan 2027","url":"https://theskillvault.ai/skills/write-codebase-wiki-prompt","api_url":"https://theskillvault.ai/api/skills/write-codebase-wiki-prompt","raw_url":"https://theskillvault.ai/api/skills/write-codebase-wiki-prompt/raw","body":"# Write a codebase wiki (prompt)\n\nThis prompt writes wiki pages for a codebase you can point at. It is not a short README and not a design doc for a system that does not exist yet.\n\n## When to use\n- You want a WIKI.md for a repo.\n- You need wiki pages for the modules.\n- Someone asked how to extend the code.\n\n## When not to use\n- You need a README with a quick start. Use write-readme-prompt.\n- You only need a map before a small edit. Use research-repo-onboarding-prompt.\n\n## Steps\n1. Paste a directory tree, or the paths of the main files. Skip dependency folders.\n2. Paste the entry file and one or two modules. Remove secrets first.\n3. Say which module a new teammate would extend.\n4. Read the wiki. Drop any claim that names no file.\n\n## Prompt\n```text\nWrite a wiki for this codebase. Use only the files and tree I paste.\n\nTREE AND FILES:\n{{TREE AND FILES}}\n\nMODULE TO EXTEND:\n{{MODULE}}\n\nWrite these sections:\n\n# Project overview\nWhat the code does, in a few sentences. Name the stack only if a file shows it.\n\n# Modules\nOne short subsection per main module. Say what it owns. Name the file.\n\n# Request flow\nHow a request, job or command moves through the modules. Name the files in order. If you cannot see the path, write \"unknown\".\n\n# How to extend\nSteps to add a feature in {{MODULE}}. Each step names the file to open.\n\n# Config\nSettings a developer must set. If none are in the files, write \"none shown\".\n\nRules:\n- Every claim names a file path, or says \"unknown\".\n- Do not invent APIs, tables or folders.\n- Skip dependency folders such as node_modules, vendor, .git, dist and build.\n- A language server is optional. Pasted files are enough.\n- One diagram is fine. A short numbered list is also fine.\n```\n\n## How to adapt\n- A huge repo? Ask for one module's wiki page, not the whole tree.\n- You want a page per folder? Ask for one page per top-level folder under the source directory.\n\n## Gotchas\n- Do not paste API keys, passwords or private data into a public AI.\n- A wiki that cites no files is a guess. Check the paths before you commit it.\n\n## Portability\nWorks with any AI chat and any language. No tool lock-in.\n\n## Done when\n- Modules, a request flow and how to extend are all present.\n- Every claim names a file or says unknown.\n\n## Example prompt\n\"Write a WIKI.md for this codebase: modules, how requests flow, and how to extend the billing module.\"\n\n---\nAdapted from the \"Codebase WIKI Documentation Skill\" prompt by s-celles on prompts.chat (CC0 1.0, public domain).","files":[],"license":"CC0-1.0","license_name":"CC0 1.0","license_url":"https://creativecommons.org/publicdomain/zero/1.0/","attribution":"Based on work by s-celles (prompts.chat, 'Codebase WIKI Documentation Skill') (Public domain (CC0 1.0) - prompt contributed to prompts.chat by s-celles, CC0 1.0), https://github.com/f/prompts.chat/blob/b09880e229d2f091ffa2254bc187532fb8980f9b/prompts.csv; adapted by TheSkillVault, https://theskillvault.ai","install":{"claude_code":"curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/write-codebase-wiki-prompt/raw' -o ~/'.claude/skills/write-codebase-wiki-prompt/SKILL.md'","cursor":"curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/write-codebase-wiki-prompt/raw' -o '.cursor/skills/write-codebase-wiki-prompt/SKILL.md'","agents":"curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/write-codebase-wiki-prompt/raw' -o '.agents/skills/write-codebase-wiki-prompt/SKILL.md'","mcp_url":"https://theskillvault.ai/mcp","cursor_mcp_deeplink":"cursor://anysphere.cursor-deeplink/mcp/install?name=theskillvault&config=eyJ1cmwiOiJodHRwczovL3RoZXNraWxsdmF1bHQuYWkvbWNwIn0%3D","mcp_config":{"mcpServers":{"theskillvault":{"url":"https://theskillvault.ai/mcp"}}}},"bundles":[],"tested_on":[{"family":"chatgpt","name":"ChatGPT","outcome":null,"date":null,"source":null,"counts":false,"stale":false},{"family":"claude","name":"Claude","outcome":null,"date":null,"source":null,"counts":false,"stale":false},{"family":"gemini","name":"Gemini","outcome":null,"date":null,"source":null,"counts":false,"stale":false},{"family":"grok","name":"Grok","outcome":null,"date":null,"source":null,"counts":false,"stale":false},{"family":"llama","name":"Llama","outcome":null,"date":null,"source":null,"counts":false,"stale":false},{"family":"deepseek","name":"DeepSeek","outcome":null,"date":null,"source":null,"counts":false,"stale":false},{"family":"mistral","name":"Mistral","outcome":null,"date":null,"source":null,"counts":false,"stale":false},{"family":"qwen","name":"Qwen","outcome":null,"date":null,"source":null,"counts":false,"stale":false},{"family":"kimi","name":"Kimi K","outcome":null,"date":null,"source":null,"counts":false,"stale":false}],"proven_rule":{"threshold":5,"window_days":365,"computed_at":"2026-11-29T03:42:30.374Z"}}