Overview
Create source-adjacent HTML visualizations from repository documentation, markdown files, standardized plan folders, and arbitrary user context. This skill is Huashu-derived in workflow discipline, but it is intentionally documentation-focused: it turns real source material into readable maps, timelines, flows, risk blocks, and recommendation diagrams.
Scope
Use this skill for:
- Documentation and markdown visualization
- Standardized plan folder visualization
- Flow, chart, Mermaid, context map, and recommendation diagram requests
- Source-adjacent HTML summaries that help users inspect structure, risks, decisions, and next steps
Do not use this skill for:
- Brand sites or marketing pages
- Product prototypes or production web apps
- Slide decks, long motion demos, or broad visual design systems
Output Conventions
- Plan folder: create
visualize.htmlandvisualize-assets/inside the plan folder. - Markdown or document file: create
<source-base>.visualize.htmland<source-base>.visualize-assets/beside the source file. - Source-less context: create
visualize-YYMMDD-HHmm-<slug>.htmland a matching assets folder in the current working directory unless the user specifies a target. Generate the timestamp withdate +%y%m%d-%H%M.
Always copy references/templates/visualize-theme.css into the adjacent assets folder and link the copied local CSS from the generated HTML. Mermaid CDN usage is allowed for diagrams.
Workflow
- Load project context when visualizing repository files (if the current session does not already have it).
- Follow the shared Context Loading Protocol: read
docs/SUMMARY.mdfirst, then load only directly relevant detail files.
- Follow the shared Context Loading Protocol: read
- Load the source material.
- For plan folders, read
SUMMARY.mdand relevantphase-XX-*.mdfiles. - For markdown or document files, read the requested source directly.
- For source-less user context, use only the provided conversation/request content.
- For plan folders, read
- Identify the visualization intent.
- Determine whether the user needs a plan map, document map, process flow, decision view, recommendation view, or mixed visualization.
- Ask with the question tool only when the source, target, or output ambiguity cannot be resolved safely.
- Choose the template with
references/router.md.- Plan folders use
references/templates/plan.html. - Single documents use
references/templates/document.html. - Source-less context uses
references/templates/context.html.
- Plan folders use
- Extract facts and assumptions.
- Use
references/workflow.mdandreferences/content-patterns.md. - Preserve source facts, file paths, statuses, risks, decisions, verification steps, and recommendations.
- Label assumptions clearly when the source leaves gaps.
- Use
- Compose the HTML.
- Start from the selected template.
- Replace
VISUALIZE:marker regions with source-backed content. - Copy
visualize-theme.cssbeside the output before linking it.
- Add Mermaid diagrams where they clarify structure.
- Use
references/mermaid-recipes.md. - Prefer several small diagrams over one dense diagram.
- Use readable HTML/CSS fallback blocks when Mermaid syntax is uncertain.
- Use
- Verify the output with
references/verification.md.
Rules
- Do not invent facts, fake metrics, fake decisions, fake users, fake constraints, or unsupported recommendations.
- Do not hide missing source content. Add an assumption or warning block instead.
- Keep visualizations factual, source-adjacent, and easy to inspect.
- Keep templates and generated HTML focused on documentation visualization, not broad design/prototype work.
- Avoid large inline style blocks; use the copied fixed theme CSS.
- Preserve source links and paths when they help the user trace content back to origin.