一键导入
repo-map-wiki
Build a pyramid-structured wiki for a product area by exploring its source repos. Produces Tufte Dracula HTML docs with Mermaid diagrams.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Build a pyramid-structured wiki for a product area by exploring its source repos. Produces Tufte Dracula HTML docs with Mermaid diagrams.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Batch-verify and delete dead code: rg-confirm zero callers for N symbols, delete files, run the build once, stage results.
Run benchmarks and check regressions, add benchmark gating to CI, or audit GitHub Actions workflows. Determines mode from user intent.
Batch-apply findings from the most recent --local review. One confirmation, one test run.
Orchestrated code review of git diff using parallel agents. Standard mode (diff-scoped) or full mode (adds Roslyn semantic analysis). Produces severity-grouped plan.
Unified code review: --local (diff review), --pr (adversarial PR review), --apply (batch fixes from last review).
Audit .NET solution health across 13 dimensions: dependency graph, solution sync, CPM compliance, package health, framework consistency, IVT & encapsulation, build config, analyzer config, NuGet config, suppression hygiene, output type & AOT, public API surface, and lock files & pruning. Works with any .NET solution (.slnx or .sln). Parses all config files once, spawns 3 parallel agents, and produces a severity-grouped report with a Mermaid dependency graph. Triggers on: solution audit, audit solution, project graph, dependency audit, solution health, audit projects, check solution.
| name | repo-map-wiki |
| description | Build a pyramid-structured wiki for a product area by exploring its source repos. Produces Tufte Dracula HTML docs with Mermaid diagrams. |
| when_to_use | build wiki, create repo-map, document product area, build knowledge base for repos. |
| argument-hint | <product-area> [--target <output-path>] [--repos <repo-path>] [--format md|html] |
| allowed-tools | ["Read","Write","Glob","Grep","Bash","Agent","Edit","TaskCreate","TaskUpdate"] |
Build a multi-audience, pyramid-structured wiki for a product area by investigating its
source repositories. The output is a self-contained documentation set under docs/ that
routes readers by role to the right depth of information.
Default output: Tufte Dracula HTML — self-contained .html files with inlined CSS,
client-side Mermaid rendering, and sortable tables. Pass --format md for plain markdown.
Arguments: $ARGUMENTS
HTML (default). Self-contained .html files with the Dracula-Tufte theme — inlined
CSS/JS, <pre class="mermaid"> diagrams with click-to-zoom, sortable booktabs tables, and
relative-link nav. Read references/html-format.md at generation
time and follow its skeleton exactly.
Markdown (--format md). Same structure and content; .md files with standard fenced
Mermaid blocks.
Before generating, check if the target already has a docs/ structure:
docs/index.html (or docs/index.md) exists at the target path:
docs/ layout (overview/, architecture/, engineering/, guides/, reference/)docs/ directory exists:
docs/ tree with the full structure belowA docs/ directory of 15–20 files across five sections: overview/ (executive, strategy,
product), architecture/ (system, data-flow, storage, deployment, integration-patterns,
security), engineering/ (getting-started, codebase-map, testing-strategy), guides/
(configuration), and reference/ (glossary, cli-commands), plus index.html as the pyramid
entry point. The per-file content requirements are in
references/file-conventions.md.
Per-service docs fold into architecture/{service}.html (internal architecture) or
engineering/{service}-ops.html (operations) — there is no separate services/ directory.
Extract from $ARGUMENTS:
<product-area> — name of the product (default: the current repo)--target <path> — where to write the docs (default: docs/)--repos <path> — where the source repos live (default: ., the current repo)--format <md|html> — output format (default: html)If <product-area> is empty, default to documenting the current repository in
self-documentation mode (see step 3). Only ask the user to pick when --repos points at a
directory containing multiple cloned repos.
If --format html (default): read references/html-format.md
and use its canonical skeleton for every output file. The skeleton includes all CSS, JS,
Mermaid, and table sorting inline -- no external files needed.
If --format md: skip this step.
Self-documentation mode. When product-area is ./ (or the current repo),
skip external repo exploration. The investigation agents can read existing lode/ knowledge
files (start with lode/lode-map.md, lode/summary.md, lode/terminology.md) and any
existing docs/*.md files directly -- the repo is already documented. Convert existing .md
files to .html rather than regenerating content from scratch. Investigation agents in this
mode should focus on summarising lode/ sections rather than exploring unfamiliar source trees.
Launch 2-3 Explore agents in parallel to gather raw data. Each agent should investigate deeply and report back structured findings. The goal is to understand:
Agent 1 — Core Architecture:
Agent 2 — Data & Integration:
Agent 3 — Frontend & Supporting Repos:
After agents return, synthesise findings into a content plan:
Create tasks to track each file being written.
Generate files in parallel batches. Each file follows the conventions in references/file-conventions.md (content requirements) and references/html-format.md (HTML skeleton and tag patterns).
Generate index.html first, then fan out one agent per section: overview (3), architecture
(6+ service pages), engineering (3+ ops pages), guides + reference (remaining). The
architecture agent is the long pole — it carries the most Mermaid diagrams.
For each file:
<title>, <meta> tags, <h1>, and subtitle<nav class="wiki-nav"> links based on file depth (e.g., ../index.html from subdirectories)<main> with content sections using the tag patterns in html-format.md.html extensions and correct relative pathsAfter all files are written:
Glob to confirm all expected files existdocs/index.html in a browser if possible to verify rendering.md link false positives. A naive rg '\.md"' will flag .md strings inside Mermaid
diagram labels, JSON examples, and fenced code blocks as broken navigation links. These are
content references, not navigation links, and require no fix. Only flag .md" occurrences
inside href= attributes.
See references/file-conventions.md for per-file content requirements, Mermaid diagram type guidance, and quality checklist. The content requirements are format-independent -- they apply to both HTML and markdown output.
The generated docs/ tree is a presentation layer; lode/ remains the authoritative
memory (see CLAUDE.md). Cross-link from lode summaries to docs, summarise rather than
duplicate lode content, and timestamp generated files with scripts/ts.sh (ISO 8601 UTC).
See references/troubleshooting.md for common issues and recovery tips.
If a run surfaces a recurring failure, user correction, or convention gap, spawn the
skill-self-updater agent with a short feedback payload. Skip when the run was clean.