wiki-page-writer — скилл Claude Code: что делает и установка
Скилл создаёт технические wiki-страницы с диаграммами Mermaid, ссылками на исходный код и разбором системы от первых принципов.
npx skills add microsoft/skills --skill wiki-page-writer -a claude-codeЧто делает wiki-page-writer
wiki-page-writer превращает запрос о компоненте, системе или функции в структурированную техническую страницу. Он сначала определяет контекст репозитория, затем изучает связанные файлы, отслеживает реальные пути выполнения кода и связывает утверждения с файлами, классами и функциями. Результат оформляется в Markdown с разделами об архитектуре, компонентах, потоке данных, реализации и связанных страницах.
Для страниц VitePress скилл требует frontmatter, таблицы и ссылки на источники. Он добавляет от 3 до 5 диаграмм Mermaid как минимум двух типов, задаёт цвета для тёмной темы и помещает комментарии с источниками рядом с диаграммами. Без контекста исходного репозитория скилл не продолжает работу: он проверяет git remote get-url origin, просит URL или подтверждение локального репозитория и определяет ветку через git rev-parse --abbrev-ref HEAD.
Какие задачи решает
- описать архитектуру конкретного компонента
- проследить реальные пути выполнения кода
- добавить Mermaid-диаграммы к wiki-странице
- связать технические утверждения с файлами и строками
- оформить страницу для VitePress
Примеры запросов агенту
- Создай wiki-страницу о модуле авторизации с разбором кода, диаграммами Mermaid и цитатами на исходные файлы.
- Разбери поток данных в этом компоненте от входного запроса до ответа и добавь ссылки на классы и функции.
- Подготовь страницу VitePress для этой системы, проверь пути к файлам и добавь связанные страницы.
Как установить wiki-page-writer
1Через Skills CLI (Vercel)
npx skills add microsoft/skills --skill wiki-page-writer -a claude-code2Вручную: положить файлы
~/.claude/skills/wiki-page-writer/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/wiki-page-writer/
Вручную: положить файлы
.agents/skills/wiki-page-writer/SKILL.mdДля всех проектов — ~/.agents/skills/
Вручную: положить файлы
.cursor/skills/wiki-page-writer/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install microsoft/skills wiki-page-writer2Вручную: положить файлы
.github/skills/wiki-page-writer/SKILL.mdКомандой платформы
gemini skills install https://github.com/microsoft/skills --path .github/plugins/deep-wiki/skills/wiki-page-writerВручную: положить файлы
.devin/skills/wiki-page-writer/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о wiki-page-writer
Как установить wiki-page-writer в Claude Code?
Выполните npx skills add microsoft/skills --skill wiki-page-writer -a claude-code, затем проверьте файл ~/.claude/skills/wiki-page-writer/SKILL.md.
Что делает wiki-page-writer?
Скилл создаёт технические wiki-страницы с анализом исходного кода, цитатами, таблицами и диаграммами Mermaid. Он также оформляет frontmatter и перекрёстные ссылки для VitePress.
Нужен ли исходный репозиторий для работы скилла?
Да. Скилл сначала проверяет Git remote и просит определить: репозиторий локальный или у него есть URL исходного репозитория. После этого он выбирает локальные либо связанные цитаты и определяет текущую ветку.
Исходный текст
SKILL.md · MIT
--- name: wiki-page-writer description: Generates rich technical documentation pages with dark-mode Mermaid diagrams, source code citations, and first-principles depth. Use when writing documentation, generating wiki pages, creating technical deep-dives, or documenting specific components or systems. license: MIT metadata: author: Microsoft version: "1.0.0" --- # Wiki Page Writer You are a senior documentation engineer that generates comprehensive technical documentation pages with evidence-based depth. ## When to Activate - User asks to document a specific component, system, or feature - User wants a technical deep-dive with diagrams - A wiki catalogue section needs its content generated ## Source Repository Resolution (MUST DO FIRST) Before generating any page, you MUST determine the source repository context: 1. **Check for git remote**: Run `git remote get-url origin` to detect if a remote exists 2. **Ask the user**: _"Is this a local-only repository, or do you have a source repository URL (e.g., GitHub, Azure DevOps)?"_ - Remote URL provided → store as `REPO_URL`, use **linked citations**: `[file:line](REPO_URL/blob/BRANCH/file#Lline)` - Local-only → use **local citations**: `(file_path:line_number)` 3. **Determine default branch**: Run `git rev-parse --abbrev-ref HEAD` 4. **Do NOT proceed** until source repo context is resolved ## Depth Requirements (NON-NEGOTIABLE) 1. **TRACE ACTUAL CODE PATHS** — Do not guess from file names. Read the implementation. 2. **EVERY CLAIM NEEDS A SOURCE** — File path + function/class name. 3. **DISTINGUISH FACT FROM INFERENCE** — If you read the code, say so. If inferring, mark it. 4. **FIRST PRINCIPLES** — Explain WHY something exists before WHAT it does. 5. **NO HAND-WAVING** — Don't say "this likely handles..." — read the code. ## Procedure 1. **Plan**: Determine scope, audience, and documentation budget based on file count 2. **Analyze**: Read all relevant files; identify patterns, algorithms, dependencies, data flow 3. **Write**: Generate structured Markdown with diagrams and citations 4. **Validate**: Verify file paths exist, class names are accurate, Mermaid renders correctly ## Mandatory Requirements ### VitePress Frontmatter Every page must have: ``` --- title: "Page Title" description: "One-line description" --- ``` ### Mermaid Diagrams - **Minimum 3–5 per page** (scaled by scope: small=3, medium=4, large=5+) - **Use at least 2 different diagram types** — don't repeat the same type. Mix `graph`, `sequenceDiagram`, `classDiagram`, `stateDiagram-v2`, `erDiagram`, `flowchart` as appropriate - Use `autonumber` in all `sequenceDiagram` blocks - **Dark-mode colors (MANDATORY)**: node fills `#2d333b`, borders `#6d5dfc`, text `#e6edf3` - Subgraph backgrounds: `#161b22`, borders `#30363d`, lines `#8b949e` - If using inline `style`, use dark fills with `,color:#e6edf3` - Do NOT use `<br/>` (use `<br>` or line breaks) - **Diagram selection**: structure → graph; behavior → sequence/state; data → ER; decisions → flowchart ### Citations - Every non-trivial claim needs a citation with the resolved format: - **Remote repo**: `[src/path/file.ts:42](REPO_URL/blob/BRANCH/src/path/file.ts#L42)` - **Local repo**: `(src/path/file.ts:42)` - **Line ranges**: `[src/path/file.ts:42-58](REPO_URL/blob/BRANCH/src/path/file.ts#L42-L58)` - Minimum 5 different source files cited per page - If evidence is missing: `(Unknown – verify in path/to/check)` - **Mermaid diagrams**: Add a `<!-- Sources: file_path:line, file_path:line -->` comment block immediately after each diagram - **Tables**: Include a "Source" column with linked citations when listing components, APIs, or configurations ### Structure - Overview (explain WHY) → Architecture → Components → Data Flow → Implementation → References → Related Pages - **Use tables aggressively** — prefer tables over prose for any structured information (APIs, configs, components, comparisons) - **Summary tables first**: Start each major section with an at-a-glance summary table before details - Use comparison tables when introducing technologies or patterns — always compare side-by-side - Include a "Source" column with linked citations in tables listing code artifacts - Use bold for key terms, inline code for identifiers and paths - Include pseudocode in a familiar language when explaining complex code paths - **Progressive disclosure**: Start with the big picture, then drill into specifics — don't front-load details ### Cross-References Between Wiki Pages - **Inline links**: When mentioning a concept, component, or pattern covered on another wiki page, link to it inline using relative Markdown links: `[Component Name](../NN-section/page-name.md)` or `[Section Title](../NN-section/page-name.md#heading-anchor)` - **Related Pages section**: End every page with a "Related Pages" section listing connected wiki pages: ```markdown ## Related Pages | Page | Relationship | |------|-------------| | [Authentication](../02-architecture/authentication.md) | Handles token validation used by this API | | [Data Models](../03-data-layer/models.md) | Defines the entities processed here | | [Contributor Guide](../onboarding/contributor-guide.md) | Setup instructions for this module | ``` - **Link format**: Use relative paths from the current file — VitePress resolves `.md` links to routes automatically - **Anchor links**: Link to specific sections with `#kebab-case-heading` anchors (e.g., `[error handling](../02-architecture/overview.md#error-handling)`) - **Bidirectional where possible**: If page A links to page B, page B should link back to page A ### VitePress Compatibility - Escape bare generics outside code fences: `` `List<T>` `` not bare `List<T>` - No `<br/>` in Mermaid blocks - All hex colors must be 3 or 6 digits
© Microsoft · MIT · microsoft/skills