home / skills / sickn33 / antigravity-awesome-skills / wiki-page-writer
This skill generates rich technical documentation pages with evidence-based depth, diagrams, and precise citations directly from source code.
npx playbooks add skill sickn33/antigravity-awesome-skills --skill wiki-page-writerReview the files below or copy the command above to add this skill to your agents.
---
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.
---
# 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
## 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 2 per page**
- Use `autonumber` in all `sequenceDiagram` blocks
- Choose appropriate types: `graph`, `sequenceDiagram`, `classDiagram`, `stateDiagram-v2`, `erDiagram`, `flowchart`
- **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)
### Citations
- Every non-trivial claim needs `(file_path:line_number)`
- Minimum 5 different source files cited per page
- If evidence is missing: `(Unknown – verify in path/to/check)`
### Structure
- Overview (explain WHY) → Architecture → Components → Data Flow → Implementation → References
- Use Markdown tables for APIs, configs, and component summaries
- Use comparison tables when introducing technologies
- Include pseudocode in a familiar language when explaining complex code paths
### 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
This skill generates production-ready technical wiki pages that prioritize first-principles explanation, code-backed claims, and dark-mode Mermaid diagrams. It is tailored for engineers who need deep, verifiable documentation of components, systems, or features. Pages are VitePress-compatible and include structured sections, diagrams, pseudocode, and file-level citations.
The skill reads the target codebase files, traces actual implementation paths, and extracts functions, classes, and configuration points to support every substantive claim. It composes a VitePress frontmatter header, an explanation-first overview, architecture and component breakdowns, multiple dark-mode Mermaid diagrams, and a references section listing file paths and line ranges. When the code is unavailable or ambiguous it marks inferences clearly and inserts actionable verification notes.
What evidence do you require to assert behavior?
I require explicit implementation reads: file path plus symbol (function/class) and line ranges. If code is not accessible I mark the statement as inferred and add an evidence-check note.
How many diagrams and citation points will the page include?
Every page includes at least two Mermaid diagrams (one sequenceDiagram with autonumber) and a minimum of five distinct source file citations; missing evidence is flagged with a verification path.