一键导入
slides-grab-design
Stage 2 design skill usable in Codex and Claude Code. Generate and iterate slide-XX.html files in the selected slides workspace.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Stage 2 design skill usable in Codex and Claude Code. Generate and iterate slide-XX.html files in the selected slides workspace.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Stage 3 conversion skill usable in Codex and Claude Code. Convert approved HTML slides to PDF or per-slide PNG reliably, and to experimental / unstable PPTX/Figma outputs on a best-effort basis.
Stage 1 planning skill usable in Codex and Claude Code. Build and iterate slide-outline.md until explicit user approval.
End-to-end presentation workflow usable in Codex and Claude Code. Use when making a full presentation from scratch — planning, designing slides, editing, and exporting. PDF and per-slide PNG are preferred; PPTX/Figma export is experimental / unstable.
Generate square Instagram-style card news by reusing the slides-grab workflow with card-news mode enabled. Defaults to per-slide PNG export.
基于 SOC 职业分类
| name | slides-grab-design |
| description | Stage 2 design skill usable in Codex and Claude Code. Generate and iterate slide-XX.html files in the selected slides workspace. |
| metadata | {"short-description":"Build HTML slides and viewer for review loop"} |
Use this after slide-outline.md is approved.
Generate high-quality slide-XX.html files in the selected slides workspace (slides/ by default) and support revision loops.
slide-outline.md (must contain style: <id> in meta section — style was approved in Stage 1)<slides-dir>/slide-01.html ... slide-XX.html<slides-dir>/viewer.html via build scriptslide-outline.md and extract the style field from its meta section.style is a bundled id (e.g. glassmorphism), load from src/design-styles-data.js — colors, fonts, layout, signature elements, and things to avoid.style ends in .md (e.g. ./DESIGN.slides.md or ./DESIGN.md), or if a design markdown file exists at the project root, parse it with slides-grab show-design <path> and treat the parsed output as the authoritative design system (colors, typography, layout, components, signature, avoid).DESIGN.slides.md takes priority over DESIGN.md. The .slides.md version is the slide-flavored conversion produced by the plan stage and is the only file safe to apply to slide HTML. If only DESIGN.md exists, treat it as web-flavored and follow the slide layout/avoid rules in references/design-rules.md strictly to avoid leaking web-only components (top-nav, CTA buttons, footer-band columns, pricing grids) into slides — or, preferably, switch back to the plan stage and produce a DESIGN.slides.md first.references/beautiful-slide-defaults.md for the full working model, content discipline, color discipline, and AI slop tropes to avoid.slides-grab list-styles and open the gallery from slides-grab preview-styles so the Stage 2 deck stays aligned with the Stage 1 direction.--slides-dir.slides-grab image --prompt "<prompt>" --slides-dir <path> to generate a local asset with the default god-tibo-imagen provider (which reuses the local Codex ChatGPT login — no API key required) and save it under <slides-dir>/assets/.tldraw, export it with slides-grab tldraw, and treat the result as a local slide asset under <slides-dir>/assets/.<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>) and start from templates/chart.html when helpful. Keep the script in the slide HTML, use real data from the outline/research, set animation: false, responsive: true, and maintainAspectRatio: false, wrap each <canvas> in a fixed-size or flex-stable container, and use direct labels or concise legends that match the approved style tokens.<slides-dir>/assets/, reference it as ./assets/<file>, and prefer a poster="./assets/<file>" thumbnail so PDF export uses a stable still image.slides-grab fetch-video --url <youtube-url> --slides-dir <path> (or yt-dlp directly if needed) to download it into <slides-dir>/assets/ before saving the slide HTML.slides-grab validate --slides-dir <path> after generation or edits. Treat empty-canvas as a chart-rendering failure: fix the Chart.js target id, script loading, canvas sizing, or chart initialization until the canvas paints.references/beautiful-slide-defaults.md before presenting the deck for review.references/design-gate.md) before showing the deck: (a) capture render evidence with slides-grab png --slides-dir <path> --output-dir <path>/gate-preview --resolution 1080p; (b) run two read-only reviewer passes — Pass A (System Contract / Constraint Integrity) and Pass B (Audience Impact / Expressive Readability) — that open the rendered PNGs directly, using runtime-native subagents/tasks in parallel when available or sequential passes when not; (c) synthesize contract coherence against audience impact into a single Design Gate Report ending in a verdict (Proceed / Revise and re-review / Rethink approach). Review Litmus is the shared audience-success tie-breaker, not a third pass. Keep the two reviewer passes distinct from the slide-building pass. The render evidence aims the reviewers; it is not the verdict. For Proceed, each pass report must satisfy the CLI-enforced structure in references/design-gate.md: role title, VERDICT: PASS, confidence, rendered PNG evidence filenames, current slide-*.html: <sha256> fingerprints, Unresolved Critical: 0, Blocking findings: None, a findings table, and all required checks marked PASS.slides-grab validate, capture fresh PNGs, then re-run both adversarial passes until the verdict is Proceed (zero unresolved Critical) or Rethink approach requires redesigning the visual thesis/system. When the verdict is Proceed, write the export-unlocking receipt with slides-grab design-gate --slides-dir <path> --verdict proceed --pass-a-report <pass-a.md> --pass-b-report <pass-b.md>. If the CLI rejects the reports, treat that as the loop still failing: fix the missing evidence/checks or unresolved findings, re-render, re-review, and retry. Record deferred Minor/Note findings in <slides-dir>/design-debt.md; never silently drop a finding.slides-grab edit --slides-dir <path>slides-grab build-viewer --slides-dir <path> and open viewer.html to confirm charts render inside the generated iframe viewer, not only as standalone slide-*.html files.slides-grab build-viewer --slides-dir <path>) for a final read-only preview, or proceed to export (PDF/PPTX).p, h1-h6, ul, ol, li).<slides-dir>/assets/ and reference them as ./assets/<file>.data: URLs when the slide must be fully self-contained.http(s):// image URLs in saved slide HTML; download source images into <slides-dir>/assets/ and reference them as ./assets/<file>.slides-grab image with the default god-tibo-imagen provider for bespoke slide imagery before reaching for remote URLs.~/.codex/auth.json) — run codex login once to enable it; no API key required. ⚠️ god-tibo-imagen calls an unsupported private Codex backend that may break without notice. Optional alternatives: --provider codex (Codex/OpenAI gpt-image-2 via OPENAI_API_KEY; maps --aspect-ratio to the nearest supported OpenAI image size), or --provider nano-banana (Google Nano Banana / gemini-3-pro-image-preview via GOOGLE_API_KEY or GEMINI_API_KEY; supports --image-size 2K|4K). If image generation credentials are unavailable, fall back to web search + download into <slides-dir>/assets/.poster="./assets/<file>" thumbnail so PDF export uses the still image.slides-grab fetch-video or yt-dlp to pull supported web videos into <slides-dir>/assets/ before saving slide HTML.<img> for slide imagery and data-image-placeholder when no final asset exists.oklch() neighbors. Do not invent fresh standalone hex colors mid-slide.references/beautiful-slide-defaults.md for the full list.tldraw for complex diagrams instead of recreating dense node/edge diagrams directly in HTML/CSS.slides-grab tldraw plus templates/diagram-tldraw.html when that gives a cleaner, more export-friendly result.<canvas> charts are validated for painted pixels and blank canvases fail as empty-canvas.slides-grab validate --slides-dir <path> passes.references/design-gate.md). Critical hard-blocks; Major findings are listed for user acceptance; Minor/Note findings may be tracked. slides-grab pdf, slides-grab convert, and slides-grab figma require a fresh slides-grab design-gate Proceed receipt.For full constraints and style system, follow:
references/design-rules.mdreferences/detailed-design-rules.mdreferences/beautiful-slide-defaults.md — slide-specific art direction defaults adapted from OpenAI's frontend design guidance and Anthropic's Claude design system guidance (content/color discipline, system declaration, AI slop tropes)references/design-gate.md — the structured design-quality gate run after validation and before export: severity rubric (Critical/Major/Minor/Note), the seven checks, evidence-before-shipping, design-debt log, and the gate report/verdict format. Run with runtime-native subagents/tasks when available, or as two explicit sequential reviewer passes, then record Proceed with slides-grab design-gate.references/design-system-full.md — archived full design system, templates, and advanced pattern guidance