pdf-report
Generates a branded PDF via the local StratcoreReport generator at
~/Documents/CodeProjects/StratcoreReport-html/. Output is the dark, screen-first
Stratcore theme (brand source: the "Stratcore Design System" folder in the Obsidian vault).
The original version of this skill drove a
digital-marketing-proplugin (pdf-generator.py,~/.claude-marketing/) that is not installed. That machinery is gone; this skill now assembles a JSON payload and runs the local Node generator.
Process
- Confirm scope with the user (ask only for what's missing):
- Report type:
executive-summary,campaign-report,channel-report,competitor-report,monthly-review,quarterly-review. - What data / metrics / period to cover, and the audience
(
c-suite,team,client). - Whether it's
confidential.
- Report type:
- Gather the data. Pull from whatever source applies (Postgres via the vault's
PostgreSQL-login.mdconventions, n8n, analytics, files the user provides). Do not fabricate figures — flag gaps instead. - Build the payload. Write a
*.jsonfile matching the schema in~/Documents/CodeProjects/StratcoreReport-html/README.md(top-level meta +sections[]:h2/h3/p/list/kpis/table/note/image/html/pagebreak).- Audience shaping: c-suite → 3–5
kpis+ short narrative + anote-flagged recommendation list; team → fulltables, test results, numbered actions; client → objectives recap, goal-vs-actual tables, next-period plan. - Tables: use
{ "v": "...", "tone": "pos|neg|warn", "num": true }for conditional colour and right-aligned figures. - Charts: render inline SVG into an
htmlsection (respect brand tokens —#008568accent,#f5f6f5/#9a9fa0text on#0a0a0b), or embed a PNG viaimage. - Save the payload next to related work or in the generator's
examples/.
- Audience shaping: c-suite → 3–5
- Render:
Needs network on first run (Google Fonts). If Chrome isn't at the default macOS path, setcd ~/Documents/CodeProjects/StratcoreReport-html node src/render.mjs <payload.json> [out.pdf]CHROME_PATH. - Review before delivering. Convert pages to PNG and inspect
(
pdftoppm -png -r 90 out/<name>.pdf /tmp/p), or re-run with--htmland open the file. Check for overflowing tables, wrapped KPI values, and empty trailing pages. Offer the user adjustments (sections, emphasis, metrics) and re-render. - Report the payload path and the final PDF path.
Notes
- The generator is a git repo; committing/pushing report outputs is usually unwanted
(
out/and.build/are gitignored). Commit payloads only if the user wants them kept. - To change the look, edit
src/report.cssin the generator, not this skill.