Skip to main content
ClaudeWave
Skill2.3k repo starsupdated 23d ago

pptx-posters

This Claude Code skill generates research posters in HTML/CSS format that can be exported to PDF or converted to PowerPoint, with responsive layouts and easy visual integration. Use this skill exclusively when users explicitly request PPTX or PowerPoint poster format; for standard research posters, use the latex-posters skill instead, which offers superior typographic control and is the academic conference default.

Install in Claude Code
Copy
git clone --depth 1 https://github.com/K-Dense-AI/claude-scientific-writer /tmp/pptx-posters && cp -r /tmp/pptx-posters/skills/pptx-posters ~/.claude/skills/pptx-posters
Then start a new Claude Code session; the skill loads automatically.

SKILL.md

# PPTX posters

## Scope

Use this skill only when the requested source/deliverable is an editable PowerPoint
poster. Do not route an unspecified poster request here merely because PowerPoint is
available.

Version 2.0 generates a real one-slide `.pptx` from strict local JSON. It does not use
HTML conversion, external templates, schematic/image-generation services, API keys,
environment files, network requests, or mandatory figure styles.

## Hard gates

Stop instead of guessing when any gate is unmet:

1. The author has not supplied exact poster content and source records.
2. Any claim, number, citation, author, affiliation, funding statement, figure,
   license, or QR target is unresolved.
3. Current conference and printer requirements are not confirmed.
4. Author approval is not bound to the current manifest content hash.
5. An asset is remote, outside the manifest directory, unhashed, or unapproved.
6. An input is `.pptm`, contains macros/external relationships/OLE/embedded files,
   or is an untrusted template.
7. The requested workflow needs PowerPoint to be opened or executed automatically.
8. A script reports a package, layout, DPI, contrast, or output-plan blocker.

Never fabricate missing material or leave a plausible placeholder. Drafts fail closed.

## Install exact generation dependencies

From the skill directory:

```bash
uv venv
uv pip install "python-pptx==1.0.2" "Pillow==12.3.0" "lxml==6.1.1"
```

Generation requires exactly:

```text
python-pptx==1.0.2
Pillow==12.3.0
lxml==6.1.1
```

All CLIs use lazy optional imports, so `python -B scripts/<tool>.py --help` works
without these packages. Use `-B` to avoid bytecode artifacts.

## Establish requirements before layout

Record these separately:

- physical trim width/height and orientation;
- bleed on each edge;
- safe margin inside trim;
- PowerPoint canvas width/height;
- uniform physical-artboard/canvas print scale;
- conference maximum dimensions and delivery format;
- printer trim, bleed, margin, scaling, color-mode, and proof requirements;
- final-output font and raster-DPI thresholds, each labeled as a heuristic or tied to
  an exact source.
- required font faces, workstation availability, embedding permission, and the
  substitution/proof workflow.

There is no universal poster size. Microsoft currently limits each custom PowerPoint
dimension to 1–56 inches and uses one size for all slides. If the physical artboard
is larger, use a proportional canvas only when the printer confirms scaling.

Read `references/poster_layout_design.md`.

## Build the manifest

Copy `assets/poster_manifest_template.json` into the project. The template is
deliberately invalid until every replacement token, false confirmation, and draft
approval is resolved.

Follow `references/manifest_spec.md` and `references/poster_content_guide.md`.

The manifest requires:

- exact source IDs for document metadata, every element, and every asset;
- `author_verified: true` on every source;
- `author_approved: true` on every element and asset;
- local PNG/JPEG paths and lowercase SHA-256 hashes;
- exact provenance and license/permission for every optional image;
- approved alt text and, when needed, a source-bound native long description;
- explicit reading order and design rectangles;
- visible exact fallback URL/text for every local QR image;
- confirmed conference/printer rules;
- declared sRGB contrast pairs and redundant data encoding;
- approval bound to canonical manifest content.

To obtain the content hash after all non-approval fields pass:

```bash
python -B scripts/validate_manifest.py poster.json \
  --print-content-hash
```

Give that exact manifest and hash to the author. Then set `approval.status` to
`approved`, record approver and offset-aware timestamp, and copy the hash. Any
non-approval edit invalidates approval.

Validate the approved manifest and local assets:

```bash
python -B scripts/validate_manifest.py poster.json
```

## Audit assets and palette before generation

```bash
python -B scripts/inventory_images.py poster.json \
  --output poster.assets.json

python -B scripts/check_palette.py poster.json \
  --output poster.palette.json

python -B scripts/plan_export.py poster.json \
  --output poster.export-plan.json
```

Effective DPI is pixels divided by final placed inches, not image metadata DPI.
The inventory fully decodes bounded images and blocks EXIF/XMP/comments and embedded
text/application metadata;
strip those offline, then rehash and reapprove the asset.
Contrast uses WCAG 2.2 sRGB mathematics; applying those values to a physical poster is
a design target, not a standalone conformance claim. Keep color-redundant labels,
markers, shapes, patterns, or line styles.

If the printer requires CMYK, the plan blocks print-readiness until a
printer-approved conversion/profile and proof exist. Do not claim that a native
PowerPoint PDF is CMYK-compliant.

Read `references/poster_design_principles.md`.

## Generate the PPTX

Use a new output path:

```bash
python -B scripts/generate_poster.py poster.json \
  --output poster.pptx \
  --report poster.generation.json
```

Generation:

- creates a new blank presentation; it never loads a user template;
- sets the approved canvas before adding content;
- uses one native title placeholder, native text boxes, and local pictures;
- preserves image aspect ratio with `contain` fitting;
- disables text auto-shrink;
- adds elements in approved reading order;
- writes approved picture alt descriptions and explicit text language to PresentationML;
- does not embed fonts, audio, video, OLE, ActiveX, links, or other media;
- removes default printer-settings binary data and normalizes package timestamps;
- inspects the package before and after the alt-text patch;
- refuses overlaps, out-of-bounds shapes, low final font size/DPI, unsafe packages,
  and existing destinations.

It renders exact manifest text. It does not compose, summarize, research, or correct
scientific content.

## Run final t
citation-managementSkill

Comprehensive citation management for academic research. Search Google Scholar and PubMed for papers, extract accurate metadata, validate citations, and generate properly formatted BibTeX entries. This skill should be used when you need to find papers, verify citation information, convert DOIs to BibTeX, or ensure reference accuracy in scientific writing.

clinical-decision-supportSkill

Prepare and validate research-only clinical decision-support evaluation, evidence-profile, cohort, survival, biomarker/model, privacy, and governance artifacts. Use for aggregate or synthetic research documentation and traceability—not patient care or live clinical operation.

clinical-reportsSkill

Create safety-bounded draft structures and run local deterministic checks for clinical case, diagnostic, trial, safety, and aggregate research reports. Use only with synthetic, de-identified, or aggregate inputs and verified source-fact manifests; every output requires qualified review.

docxSkill

Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', '.dotx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx or .dotx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation.

pdfSkill

Use this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill.

pptxSkill

Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates (.potx), layouts, speaker notes, or comments. Trigger whenever the user mentions \"deck,\" \"slides,\" \"presentation,\" or references a .pptx or .potx filename, regardless of what they plan to do with the content afterward. If a .pptx or .potx file needs to be opened, created, or touched, use this skill.

xlsxSkill

Create, edit, analyze, or convert Excel spreadsheets (.xlsx, .xlsm, .xltx) where the workbook file is the primary deliverable. Use for formulas, formatting, financial models, multi-sheet workbooks, and tabular cleanup exported to Excel. Also applies to .csv/.tsv when the user wants spreadsheet output. Do NOT use for Word documents, HTML reports, standalone Python scripts, database pipelines, or Google Sheets API work.

generate-imageSkill

Generate or edit images with AI models through the OpenRouter Image API (Gemini, FLUX, Seedream, Recraft, GPT-Image). Use for photos, illustrations, artwork, concept art, visual assets, logos, and image editing or compositing from reference images. For flowcharts, circuits, pathways, and other technical diagrams, use the scientific-schematics skill instead.