Project Docs
jezweb/claude-skills
Generate project documentation from codebase analysis — ARCHITECTURE.md, APIENDPOINTS.md, DATABASESCHEMA.md.
Generate and maintain AI-readable markdown documentation for a codebase in docs/.
$ npx skills add espennilsen/pi --skill codebase-docs -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install espennilsen/pi codebase-docs --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/espennilsen/pi.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/codebase-docs .claude/skills/codebase-docs && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "codebase-docs" agent skill from https://github.com/espennilsen/pi/tree/main/skills/codebase-docs into .claude/skills/codebase-docs/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "codebase-docs", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/espennilsen/pi/tree/main/skills/codebase-docsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add espennilsen/pi --skill codebase-docs -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install espennilsen/pi codebase-docs --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/espennilsen/pi.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/codebase-docs .agents/skills/codebase-docs && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "codebase-docs" agent skill from https://github.com/espennilsen/pi/tree/main/skills/codebase-docs into .agents/skills/codebase-docs/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "codebase-docs", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add espennilsen/pi --skill codebase-docs -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install espennilsen/pi codebase-docs --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/espennilsen/pi.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/codebase-docs .cursor/skills/codebase-docs && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "codebase-docs" agent skill from https://github.com/espennilsen/pi/tree/main/skills/codebase-docs into .cursor/skills/codebase-docs/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "codebase-docs", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/espennilsen/pi.git --path skills/codebase-docs--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add espennilsen/pi --skill codebase-docs -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install espennilsen/pi codebase-docs --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/espennilsen/pi.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/codebase-docs .gemini/skills/codebase-docs && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "codebase-docs" agent skill from https://github.com/espennilsen/pi/tree/main/skills/codebase-docs into .gemini/skills/codebase-docs/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "codebase-docs", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install espennilsen/pi codebase-docsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add espennilsen/pi --skill codebase-docs -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/espennilsen/pi.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/codebase-docs .github/skills/codebase-docs && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "codebase-docs" agent skill from https://github.com/espennilsen/pi/tree/main/skills/codebase-docs into .github/skills/codebase-docs/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "codebase-docs", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add espennilsen/pi --skill codebase-docs -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install espennilsen/pi codebase-docs --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/espennilsen/pi.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/codebase-docs .opencode/skills/codebase-docs && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "codebase-docs" agent skill from https://github.com/espennilsen/pi/tree/main/skills/codebase-docs into .opencode/skills/codebase-docs/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "codebase-docs", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
codebase-docsGenerate and maintain AI-readable markdown documentation for a codebase in docs/.
Codebase Docs is an agent skill from espennilsen/pi. Generate and maintain AI-readable markdown documentation for a codebase in docs/. Use this skill whenever the user asks to document their codebase, generate project docs, create architecture docs, update documentation after code changes, build a knowledge base for AI agents, create onboarding docs, map out a codebase, or explain a project structure. Also trigger when users say things like "document this repo", "create docs for my project", "update the docs", "write architecture documentation", "help AI understand…
Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/doc-templates.md`).
It sits in Development, covering Technical documentation, Codebase onboarding and Project scaffolding. The licence is MIT.
5 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 79d019b. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Codebase Docs loads about 1.8k tokens when it runs, and up to ~4.9k if it reads all its reference files. Until then it costs about 202 tokens; SKILL.md has 881 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from espennilsen/pi at commit 79d019b, republished under its MIT licence (© espennilsen). 881 words, ~1,847 tokens.
.claude/skills/codebase-docs/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.Generate and maintain a structured set of markdown files in docs/ that give AI agents (and humans) a fast, accurate understanding of a codebase without needing to search through source files.
The docs you produce are a map, not the territory. They should let an AI agent answer questions like "where does authentication happen?", "how does data flow from API to database?", or "what are the key abstractions?" — without reading every file. Optimize for navigability and accuracy over exhaustiveness.
docs/ directory maintenanceBefore writing anything, understand what you're documenting.
docs/ directoryIf a docs/ directory already exists, read it first. You'll be updating, not starting from scratch.
Create the docs/ directory with the files described below. Not every project needs every file — use judgment. A small CLI tool doesn't need DATA_MODEL.md, and a pure library doesn't need DEPLOYMENT.md.
Refer to references/doc-templates.md for the exact templates and structure for each file. Read that file before writing any documentation.
| File | Purpose |
|---|---|
docs/OVERVIEW.md | Project purpose, tech stack, architecture style, key concepts. This is the entry point — an AI agent should read this first. |
docs/STRUCTURE.md | Annotated directory tree showing what lives where and why. Maps directories to responsibilities. |
docs/ARCHITECTURE.md | How components connect. Data flow, request lifecycle, key abstractions, dependency graph between modules. |
| File | When to Include | Purpose |
|---|---|---|
docs/DATA_MODEL.md | Project has a database, ORM, or significant data structures | Schema overview, entity relationships, key types/interfaces |
docs/API.md | Project exposes or consumes APIs | Endpoints, request/response shapes, auth patterns |
docs/CONFIGURATION.md | Non-trivial config (env vars, feature flags, multi-environment) | All configuration knobs, defaults, and where they're used |
docs/PATTERNS.md | Project uses recurring patterns worth documenting | Design patterns, conventions, error handling strategy, logging approach |
docs/DEPLOYMENT.md | Project has deployment infrastructure | Build process, environments, CI/CD, infrastructure overview |
docs/DEVELOPMENT.md | Project has non-obvious dev setup or workflow | Local setup, testing strategy, debugging tips, contribution workflow |
docs/GLOSSARY.md | Domain-specific or project-specific terminology | Term definitions that an AI agent needs to understand the codebase |
Always generate docs/INDEX.md as the last file. This is a table of contents linking all other docs with one-line descriptions. An AI agent uses this to decide which file to read for a given question.
Follow these principles for every file:
process() method when..."src/auth/middleware.tsLast updated date at the top of each file## Changes Log section at the bottom of each file with space for noting updatesWhen updating rather than creating from scratch:
docs/ firstLast updated date and add a note to the Changes Logdocs/INDEX.md if any files were added or removedAfter generating or updating docs, do a quick sanity check:
STRUCTURE.md matches realityINDEX.md links to all docs that were createdAll files go in the docs/ directory at the project root. Use the exact filenames specified above (UPPERCASE with .md extension). Present the full set to the user when done, summarizing what was created and any areas where the docs might need human review (e.g., business logic descriptions, architectural decisions that aren't obvious from code alone).
© espennilsen, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 1 other file (references) in skills/codebase-docs of espennilsen/pi.
Open the folder on GitHubat commit 79d019b
Codebase Docs next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Codebase Docs this skillespennilsen/pi | 122 | — | ~1.8k | Automated safety check: Pass | MIT | |
| Project Docsjezweb/claude-skills | 1.1k | — | ~1.6k | Automated safety check: Notes | MIT | |
| Project Onboarding Guide from Knowledge GraphEgonex-AI/Understand-Anything | 85k | — | ~1.2k | Automated safety check: Pass | MIT | |
| Deepwiki Rssopaco/deepwiki-rs | 3.1k | — | ~748 | Automated safety check: Pass | MIT | |
| Acquire Codebase Knowledgegithub/awesome-copilot | 40k | 1 repos | ~2.3k | Automated safety check: Pass | MIT | |
| Qwen Agentthananon/9arm-skills | 3.2k | — | ~1.5k | Automated safety check: Pass | None |
jezweb/claude-skills
Generate project documentation from codebase analysis — ARCHITECTURE.md, APIENDPOINTS.md, DATABASESCHEMA.md.
Egonex-AI/Understand-Anything
Writes an onboarding guide for new team members from a project's existing knowledge graph, after checking that the graph still matches the current commit.
sopaco/deepwiki-rs
AI-powered Rust documentation generation engine for comprehensive codebase analysis, C4 architecture diagrams, and automated technical documentation.
github/awesome-copilot
Maps an unfamiliar codebase into seven evidence-backed documents in docs/codebase/, using a scan script and templates, for onboarding or architecture write-ups.
thananon/9arm-skills
Delegate menial, well-scoped coding tasks to a cheap Qwen-backed subagent via the claude-9arm command instead of burning Claude tokens/quota.
fengshao1227/ccg-workflow
Generates README.md and DESIGN.md skeletons for a module by scanning its structure with a Node script, then lists what to fill in by hand.
espennilsen/pi
Interact with GitHub repos, PRs, issues, CI, and notifications via the pi-github extension commands and gh CLI.
espennilsen/pi
Create, review, and improve skills for Pi agents. An agent skill from espennilsen/pi.
espennilsen/pi
Perform a comprehensive DRY (Don't Repeat Yourself) code review on a codebase.
espennilsen/pi
Reverse-engineer a design system from a live website (public URL or localhost).
espennilsen/pi
Read and extract content from PDF files — text, tables, metadata, and images.
espennilsen/pi
Manage Google Workspace via the gws CLI — Drive, Gmail, Sheets, Docs, Slides, People, Chat, Meet, Forms, and cross-service workflows.
Categories
Generate and maintain AI-readable markdown documentation for a codebase in docs/. Codebase Docs is an agent skill from espennilsen/pi. Generate and maintain AI-readable markdown documentation for a codebase in docs/.
Codebase Docs fits situations like: the user asks to document their codebase; generate project docs; create architecture docs; update documentation after code changes.
Run `npx skills add espennilsen/pi --skill codebase-docs -a claude-code`. Or copy the skill folder (skills/codebase-docs in espennilsen/pi) into .claude/skills/codebase-docs in your project. Claude Code loads it when a task matches its description.
Run `npx skills add espennilsen/pi --skill codebase-docs -a codex`. Or copy the skill folder (skills/codebase-docs in espennilsen/pi) into .agents/skills/codebase-docs in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add espennilsen/pi --skill codebase-docs -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/codebase-docs, .gemini/skills/codebase-docs, .github/skills/codebase-docs and .opencode/skills/codebase-docs in your project.
SKILL.md names no scripts, command-line tools or credentials: Codebase Docs is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Codebase Docs is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.8k tokens (SKILL.md is roughly 7.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 3k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Codebase Docs: Project Docs (jezweb/claude-skills, 1.1k stars), Project Onboarding Guide from Knowledge Graph (Egonex-AI/Understand-Anything, 85k stars), Deepwiki Rs (sopaco/deepwiki-rs, 3.1k stars) and Acquire Codebase Knowledge (github/awesome-copilot, 40k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
espennilsen (a GitHub user) maintains it in espennilsen/pi, which has 122 GitHub stars. The repository holds 36 skills in this directory. The repository was last updated on September 21, 2026.
Source: espennilsen/pi on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.