code-wiki
Generate architecture wiki docs, module maps, and Mermaid diagrams for a codebase using Cybara file/search/write tools.
от metaspartan★ 41 звезда на GitHub
Установить code-wiki в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Code Wiki
Use this when the user asks to document a repository, generate architecture diagrams, create a code wiki, or onboard to an unfamiliar codebase.
This is a reference-documentation workflow. It explains what exists and how it fits together; it is not a product strategy or roadmap exercise.
Output Location
Default to ~/.cybara/wikis/<repo-name>/ so active repositories are not modified. Only write under the repo, such as docs/wiki/, when the user explicitly asks for in-repo documentation.
Workflow
- Resolve the target repository.
- If the user gave a local path, use that path.
- If they gave a GitHub URL, clone with
git clone --depth 50 <url> <tmp>/repo. - Record
git rev-parse HEADwhen available.
- Scan the structure with
rg --files, excluding generated and dependency dirs:.git,node_modules,dist,build,target,.next,.expo,coverage,venv,.venv.
- Read the README, manifests, and main entry points:
package.json,bun.lock,Cargo.toml,pyproject.toml,go.mod,Package.swift, app entry files.
- Pick 8-10 modules for the first pass.
- Prioritize entry points, shared/core modules, API boundaries, UI route roots, persistence layers, and integration adapters.
- Write:
README.mdwith purpose, concepts, entry points, and module map.architecture.mdwith a Mermaid flowchart.modules/<module>.mdfor each selected module.diagrams/sequences.mdwith 2-4 key workflows.getting-started.mdwith verified local commands..codewiki-state.jsonwith repo path, commit, generated time, and files reviewed.
Quality Bar
- Every statement should trace to code, config, or docs you read.
- Use relative links for local output; use commit-pinned GitHub links for cloned public repos.
- Keep Mermaid valid and readable. Prefer
flowchart LRfor architecture andsequenceDiagramfor workflows. - Do not document generated bundles or dependency directories.
- Do not claim coverage of the whole repo when you only sampled modules; list gaps explicitly.
Verification
After writing the wiki:
find "$OUTPUT_DIR" -type f | sort
rg -n "TODO|TBD|unknown" "$OUTPUT_DIR" || true
Read the generated README.md and one module page before reporting paths back to the user.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл code-wiki?
Generate architecture wiki docs, module maps, and Mermaid diagrams for a codebase using Cybara file/search/write tools.
Как установить скилл code-wiki?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл code-wiki запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…