Write a structured technical document following project markdown conventions
Write a comprehensive technical document following the format specification in ${CLAUDE_SKILL_DIR}/../_shared/markdown.md. Read that file before starting.
If $ARGUMENTS is empty, ask:
If $ARGUMENTS provides a topic, proceed directly.
If the topic requires current or external knowledge, use WebFetch to gather material before writing. Search multiple sources and synthesize.
Output a heading outline for user review:
# Title
## 1. Section
### 1.1 Sub-section
### 1.2 Sub-section
#### 1.2.1 Deep point
## 2. Section
...
Rules:
### or deeper) per ## section[DIAGRAM: flowchart of X]## sectionWait for user approval before writing.
Repeat until stable (no structural changes between iterations), then exit.
First iteration: write the full document. Subsequent iterations: apply only the fixes identified in the previous iteration's review steps — do not rewrite from scratch.
Writing rules (from _shared/markdown.md):
# Title then immediately > Version | Date metadata## 1., ### 1.1, #### 1.1.1--- / *** / ___ dividers**Figure X.X — description**; all diagram text in EnglishFix any violation immediately:
--- dividers anywhere## section has at least one Mermaid diagram# Title and metadata blockquoteFor each ## section, check and fix directly:
Actively look for content to cut or merge — fix directly:
###/#### sections that together form only 2–3 sentences → merge under one headingScan the full document and fix inconsistencies:
Present the final document with a brief summary of what changed across iterations.
Ask the user:
Save to the specified path if provided.