Document Generator Setup
The onboarding interview, the style presets and the logo handling are written down in ${CLAUDE_PLUGIN_ROOT}/skills/user-preferences/SKILL.md; read it before Step 1.
Run the onboarding interview to configure document generation preferences.
Steps
Check existing preferences:
cat ~/.document-generator/preferences.json 2>/dev/nullIf preferences already exist, ask the user if they want to update them or start fresh.
Check dependencies:
node "${CLAUDE_PLUGIN_ROOT}/scripts/check_deps.js"If
readyis false, show the user 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.)Run the onboarding interview from the user-preferences skill:
- Ask about preferred document style (show 5+ presets with descriptions)
- Ask about default language (en, uk, de, fr, es)
- Optionally collect company information (name, address, phone, email, website, registration/tax ID)
- Optionally collect company logo (file path → validate → convert to base64 → store)
- Optionally set formatting preferences (paper size A4/Letter, currency symbol, date format)
Save preferences to
~/.document-generator/preferences.jsonConfirm setup is complete and show a summary of what was configured.
Notes
- This command can be run at any time to update preferences
- Use the user-preferences skill for the full onboarding flow details
- Preferences are stored at
~/.document-generator/preferences.json - Logos are stored at
~/.document-generator/logos/