Generate Report
Follow the document-rules skill (${CLAUDE_PLUGIN_ROOT}/skills/document-rules/SKILL.md) and the document-generator skill (${CLAUDE_PLUGIN_ROOT}/skills/document-generator/SKILL.md): the first holds the mandatory rules, the second the generation process. Read both before Step 1.
Generate a professional report with cover page, table of contents, structured sections, page numbers, and headers/footers.
Arguments
Format: <title> [--format <docx|pdf>] [--type <annual|quarterly|project>]
- title: Report title (required)
- --format: Output format -- docx (default, editable) or pdf (final)
- --type: Report type hint for structure suggestions (optional)
Parse from "$ARGUMENTS".
Process
Plugin directory: Scripts and templates live under
${CLAUDE_PLUGIN_ROOT}(Claude Code substitutes it with the installed plugin path). Use it as is; do not search for the plugin.Check dependencies:
node "${CLAUDE_PLUGIN_ROOT}/scripts/check_deps.js"If
readyis false, show what is missing and ask permission to run the listedinstallCommands. (readycovers Node, the npm modules and the Playwright browser; pandoc and the PDF engines are optional extras listed inmissing.)Gather required data from user:
- Author name
- Date
- Introduction (context and purpose)
- Findings (key data and observations)
- Conclusions (what the data tells us)
- Optional: methodology, analysis, recommendations, appendices
Read template:
cat "${CLAUDE_PLUGIN_ROOT}/templates/report_template.json"Build JSON input: Merge user data into template. Write to
.doc_input.json.Generate document:
node "${CLAUDE_PLUGIN_ROOT}/scripts/generate_docx.js" /absolute/path/.doc_input.jsonDeliver result.
Example Usage
/document-generator-ops:generate-report "Q1 2026 Performance Analysis" --format pdf
/document-generator-ops:generate-report "Security Audit Findings" --type project