install
source · Clone the upstream repo
git clone https://github.com/ComeOnOliver/skillshub
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ComeOnOliver/skillshub "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/microsoft/skills/wiki-page-writer" ~/.claude/skills/comeonoliver-skillshub-wiki-page-writer-0d7815 && rm -rf "$T"
manifest:
skills/microsoft/skills/wiki-page-writer/SKILL.mdsource content
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:
- Check for git remote: Run
to detect if a remote existsgit remote get-url origin - 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
, use linked citations:REPO_URL[file:line](REPO_URL/blob/BRANCH/file#Lline) - Local-only → use local citations:
(file_path:line_number)
- Remote URL provided → store as
- Determine default branch: Run
git rev-parse --abbrev-ref HEAD - Do NOT proceed until source repo context is resolved
Depth Requirements (NON-NEGOTIABLE)
- TRACE ACTUAL CODE PATHS — Do not guess from file names. Read the implementation.
- EVERY CLAIM NEEDS A SOURCE — File path + function/class name.
- DISTINGUISH FACT FROM INFERENCE — If you read the code, say so. If inferring, mark it.
- FIRST PRINCIPLES — Explain WHY something exists before WHAT it does.
- NO HAND-WAVING — Don't say "this likely handles..." — read the code.
Procedure
- Plan: Determine scope, audience, and documentation budget based on file count
- Analyze: Read all relevant files; identify patterns, algorithms, dependencies, data flow
- Write: Generate structured Markdown with diagrams and citations
- 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
as appropriateflowchart - Use
in allautonumber
blockssequenceDiagram - Dark-mode colors (MANDATORY): node fills
, borders#2d333b
, text#6d5dfc#e6edf3 - Subgraph backgrounds:
, borders#161b22
, lines#30363d#8b949e - If using inline
, use dark fills withstyle,color:#e6edf3 - Do NOT use
(use<br/>
or line breaks)<br> - 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)
- Remote repo:
- Minimum 5 different source files cited per page
- If evidence is missing:
(Unknown – verify in path/to/check) - Mermaid diagrams: Add a
comment block immediately after each diagram<!-- Sources: file_path:line, file_path:line --> - 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:
or[Component Name](../NN-section/page-name.md)[Section Title](../NN-section/page-name.md#heading-anchor) - Related Pages section: End every page with a "Related Pages" section listing connected wiki pages:
## 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
links to routes automatically.md - Anchor links: Link to specific sections with
anchors (e.g.,#kebab-case-heading
)[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:
not bare`List<T>`List<T> - No
in Mermaid blocks<br/> - All hex colors must be 3 or 6 digits