What does PPT Skill do?
Put content into the 13 registered layouts to produce a single-directory web-based slide deck; HTML is the single source of truth, PPTX/PNG are one-click derivatives.
Hard Constraints (violate any one and rework)
- Never write HTML from scratch. A deck can only be created by copying
templates/seed.html; slides can only copy registered skeletons fromreferences/layouts.mdand replace text content. - No inventing class names. Only use classes already defined in base.css; the validator rejects any class outside the whitelist.
- No raw color values or font declarations. Colors must come from tokens; inline style is only allowed for parameterized values of
top/left/width/height/font-size/line-height. - Every page must declare
data-layout="Lxx"(L01–L13). - Text only goes inside
h1/h2/h3/p; decorative elements usediv[data-shape="rect|ellipse"]; images use<img>, do not usebackground-imagefor content images. - Data honesty: Data-driven layouts like L07/L11 must use real user-provided values; never fabricate data. If no real data is available, switch to a conceptual layout.
- Per-page density discipline: 1 core message + no more than 4 supporting points; if it overflows, split the page; adjacent pages should not repeat the same layout.
- Use a theme as a whole: one deck uses one theme file; do not mix themes across pages.
Workflow
Step 1 · Clarification & Scoping (one-shot questioning, no more than 5 questions)
- Q1 Delivery format (mandatory sets the track; cannot switch later): Web presentation only → Web track; editable .pptx needed → Office track.
- Q2 Audience & occasion → Recommend 2–3 themes based on the mapping table in
references/themes.md. - Q3 Page count or duration.
- Q4 Existing materials (outline / documents / data / images / logo).
- Q5 Hard constraints. Brand colors are accepted only when the user has explicit brand guidelines; otherwise, use a preset theme.
Step 2 · Assets & Fact-checking (mandatory when real organizations, products, or data are involved)
- Facts first: Every external claim—numbers, dates, names—must have a source: either first-party user-provided material or verified official publications cross-referenced via web search; each must be traceable; KPI pages must footnote the source. Hard-to-find data should be replaced with a conceptual layout; never fabricate.
- Photo selection: When there are more than 10 candidate photos, first create a contact-sheet (a grid preview image), then select; do not read each photo individually.
- Avoiding text over image subjects: For image-inclusive layouts (L09/L14/L01), after selecting an image, read it to identify the subject position (logo, face, product); titles and overlays must land on quiet areas of the frame; if the subject is cropped, change the image, do not force it.
Step 3 · Scaffold the deck
mkdir -p <deck-dir>/assets && cp templates/seed.html <deck-dir>/index.html
cp -r assets/base.css assets/runtime.js assets/themes <deck-dir>/assets/
Modify <link id="theme"> according to the chosen theme; replace <title>. The deck is self-contained and can be distributed as a whole directory.
Step 4 · Sample Gate (mandatory when deck ≥ 5 pages)
Produce only two pages first: the cover (L01) + the most representative content page. Render screenshots and show them to the user for confirmation before entering bulk production. Correct directional issues on 2 pages, not after 13.
Step 5 · Batch Fill
First, choose a narrative template from references/narratives.md (pitch/report/promotion) to determine page order; then for each page: copy the skeleton from references/layouts.md → replace only text/images → self-check density. Store images in <deck-dir>/assets/img/, named {page-number}-{semantic}.{ext}.
Step 6 · Machine Validation (First Gate)
node scripts/validate.mjs <deck-dir> # Web track
node scripts/validate.mjs <deck-dir> --office # Office track
All errors must be cleared. Overflow handling order: trim copy → adjust parameterized inline styles → switch layouts; never reduce font-size below 16px.
Step 7 · Visual Self-check (Second Gate)
node scripts/render-png.mjs <deck-dir>
Review each page's rendered image against the P0–P3 tiered checklist in references/checklist.md; P0/P1 items must be fixed.
Step 8 · Delivery
For Web track, deliver the deck directory (open index.html in a browser, navigate with arrow keys, F for fullscreen, S opens the speaker console—dual-window sync, next-slide preview, timer, speaker notes). Notes format: at the end of each page add <aside class="notes"><p>cue</p></aside>; only visible to the speaker, never rendered or exported; write "cue signals" (≤3 short sentences per page), not word-for-word scripts. Add as needed:
node scripts/export-pdf.mjs <deck-dir> # Vector PDF (both tracks)
node scripts/export-pptx.mjs <deck-dir> --cjk-font "Microsoft YaHei" # Office track
After export, a third gate is mandatory: open the .pptx in presentation software and compare page-by-page with the HTML renders (see references/pptx-export.md for details).
Layout Quick Reference
| ID | Layout | Purpose |
|---|---|---|
| L01 | Cover | Opening: kicker + main title + subtitle + meta |
| L02 | Table of Contents | 3–5 agenda items |
| L03 | Section Divider | Large number + section name, pace-changing |
| L04 | Statement | One sentence in large font, single-point emphasis |
| L05 | Two-column Comparison | Two options / before-after, two panels |
| L06 | Three-point Argument | Three parallel arguments |
| L07 | KPI Big Numbers | 2–3 real data metrics |
| L08 | Timeline | 4-node horizontal progression |
| L09 | Image Hero | Full-bleed image + overlay title |
| L10 | Body Text + Bullets | Left long text, right three bullets, regular content page |
| L11 | Data Rows | 4 rows of label–value–note structured info |
| L12 | Process Steps | 4-step process |
| L13 | End | Closing statement + meta |
Themes
paper (default, warm paper white) · graphite (dark) · forest (cool paper green). Selection criteria in references/themes.md.
Reference Documents (read on demand, do not load all at once)
references/layouts.md— Full copyable skeletons for 14 layouts + accent decoration usagereferences/narratives.md— Three narrative page-order templates: pitch/report/promotionreferences/themes.md— Theme catalog and audience mappingreferences/authoring.md— Copy density, Chinese typography rulesreferences/pptx-export.md— Office track constraints, font strategy, export troubleshootingreferences/checklist.md— P0–P3 visual self-inspection checklistreferences/animations.md— Semantic animation recipes for presentation mode (auto-applied, export unaffected)