branded-reportlisted
Install: claude install-skill whobat/AI-Agent-skills
# Branded Report
> Generates **HTML, PDF, and DOCX** from a single Markdown file and a single theme, so a
> series of reports always looks the same. The agent supplies the content (Markdown) and
> the cover metadata; the script does the rendering. Deterministic — no LLM is called.
`SCRIPT` = this skill's `scripts/build_report.py`. Theme extraction =
`scripts/extract_theme.py`. The theme schema and styling details are in
[REFERENCE.md](REFERENCE.md).
## The theme (do this once per brand)
The look is driven by a small `theme.json` (colors, fonts, logo, organization). Get one by:
- **From an Office template** (most accurate) — reads the real color scheme + fonts:
```bash
python EXTRACT --template "Brand.pptx" --out theme.json --logo-dir ./assets
```
Works with **`.pptx`, `.potx`, `.thmx`, `.dotx`, `.docx`, `.xlsx`** — anything carrying an
OOXML theme. Then open `theme.json` and pick the right `logo` (a dark/colored logo for
white pages; **DOCX needs a PNG/JPG** logo via `logo_raster` — SVG embeds only in HTML/PDF).
- **From an image, a website, or a PDF** (when there is no Office theme) — `extract_theme_visual.py`
renders the source and samples its brand colors (heuristic; review the result):
```bash
python VISUAL --image brand.png --out theme.json
python VISUAL --url https://acme.example --out theme.json --logo-dir ./assets # + logo + org + fonts
python VISUAL --pdf branded.pdf --page 1 --out theme.json
```
A PDF or image of an already-branded d