Draft or edit a document — PRD, spec, design doc, technical brief. Use for "/doc project title" to create a new doc or edit existing.
Create or edit documents (specs, PRDs, design docs, etc.).
Today's date: !date +%Y-%m-%d
Existing docs: !ls docs/*/*.md 2>/dev/null | tail -10
Reference template: @_templates/doc.md Config: @_core/config.yaml Processing logic: @_core/PROCESSING.md
User input: $ARGUMENTS
Parse Input
Check Existing
docs/{project}/*.md for similar titles (or docs/general/*.md if no project)Gather Context
Interactive Drafting
Create Doc Note
docs/general/{slug}.mddocs/{project}/{slug}.md## Links sectionUpdate References
Append to Vault Log
01-index/_vault-log.md (see .claude/rules/vault-log.md)docCreated: docs/{project}/{slug}.md
Status: draft
Sections: {filled}/{total}
Supports --docx, --pdf flags. See .claude/rules/export-formats.md for layout specs and workflow. Complete normal processing first, then generate the formatted file.
Edit PDFs with natural-language instructions using the nano-pdf CLI.