# styled-artifacts > Generate slide images and final PDF/PPTX from v2 styled prompts (prompts/styled/*.md), storing intermediates in artifacts//work/. Use when the user asks to render/generate/export slides from a Styled PROMPT into images/PDF/PPTX. - Author: Youwei Xiao - Repository: uv-xiao/slider - Version: 20260201014246 - Stars: 2 - Forks: 0 - Last Updated: 2026-02-06 - Source: https://github.com/uv-xiao/slider - Web: https://mule.run/skillshub/@@uv-xiao/slider~styled-artifacts:20260201014246 --- --- name: styled-artifacts description: "Generate slide images and final PDF/PPTX from v2 styled prompts (prompts/styled/*.md), storing intermediates in artifacts//work/. Use when the user asks to render/generate/export slides from a Styled PROMPT into images/PDF/PPTX." --- # Styled Artifacts (Styled PROMPT → Images + PDF/PPTX) ## Quick start Generate all artifacts into a per-deck workdir: - `OPENROUTER_API_KEY=... python3 .codex/skills/styled-artifacts/scripts/styled_prompts_to_artifacts.py --prompts prompts/styled/.md --workdir artifacts//work --pdf artifacts//.pdf --pptx artifacts//.pptx` ## Workflow (recommended) 1. Generate slide images into `artifacts//work/slides/`. 2. Assemble PDF/PPTX. 3. Keep generation cheap: review happens on prompts (content/styled), not on final artifacts. ## Existing output behavior (workdir versioning) To avoid clobbering prior outputs, the renderer auto-versions the workdir: - If `--workdir artifacts//work` already exists, it will write to `artifacts//work-2`, `work-3`, ... - For iterative edits where you want to keep prior slide images, pass `--reuse-workdir`. ## Modification & iteration (cheap) ### Regenerate specific slides Edit `prompts/styled/.md`, then regenerate only the affected slide numbers: - `OPENROUTER_API_KEY=... python3 .codex/skills/styled-artifacts/scripts/styled_prompts_to_artifacts.py --prompts prompts/styled/.md --workdir artifacts//work --reuse-workdir --only 7` - `... --only 2,5,8` - `... --only 5-8` If you pass `--pdf/--pptx` together with `--only`, the script expects the other slide images to already exist in the same reused workdir. ### Add / delete / reorder slides - Keep slide numbers unique: `## Slide N: ...` must not repeat. - When inserting a slide, renumber subsequent slides and regenerate the affected range with `--only`. - When deleting a slide, renumber subsequent slides and regenerate the affected range with `--only`. ## Notes - Expects `prompts/styled/*.md` to contain blocks like `## Slide N: Title`. - Keeps intermediate slide PNGs and logs under `artifacts//work/`. - If a slide references `.svg` images, they are rasterized before being sent to image models (some providers reject SVG inputs). References: - `references/consistency-protocol.md` - `references/pipeline-notes.md`