rat412

Style2deck — Design skill for Claude Code

Design community

Turn any reference PPT into a reusable style template: extract design tokens (palette/typography/layout), codify placeholder-only skeletons, generate matching decks with visual verification.

How to install Style2deck

This entry records only its repository, not the path inside it, so there is no exact command to give. Open rat412/style2deck and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Style2deck does

Turn any reference PPT into a reusable style template: extract design tokens (palette/typography/layout), codify placeholder-only skeletons, generate matching decks with visual verification. Stdlib-only scripts, agent-agnostic (Claude Code/Codex/etc).

Alternatives in Design

  • Grade — Generate a shareable HTML "Design Report Card" — letter grade, 8 dimensions, evidence (palette, type, rhythm) 3.6k ★
  • Skill Deck — Generate slide deck presentations from briefs — use when you need slides, pitch decks, or visual summaries 2.8k ★
  • Design Dna — Turn reference UIs (images, screenshots, URLs) into quantified Design DNA JSON—tokens, qualitative style, visu 624 ★

README

style2deck — Turn Any Deck into a Reusable Style Template

**把任意参考 PPT 反向工程成可复用的风格模板,再生成同风格的新 PPT。** Reverse-engineer any reference `.pptx` into design tokens (palette, typography, layout coordinates), package them as a placeholder-only template, then generate new decks that visually match — with a screenshot-verification loop before declaring done.

Keywords: PPT template extraction, deck style clone, design tokens from pptx, PowerPoint reverse engineering, presentation style guide, Agent Skill, Claude Code, Codex, slidep. 关键词:PPT 风格提取、PPT 模板复刻、参考 PPT 做新 PPT、设计规范提取。

Why

Everyone has "that deck" — the one with the perfect corporate style — and no easy way to reuse it. Asking an AI to "make a new PPT in the same style" without structure produces mush: invented colors, drifting layouts, no verification. **style2deck** turns that vague request into a disciplined three-phase pipeline with hard gates, inspired by the "process over prompt" philosophy:

  1. EXTRACT — scripts pull facts (colors, fonts, coordinates) out of the deck's XML; screenshots fill in what XML can't show.
  2. CODIFY — facts become a standalone template skill: placeholder-only page skeletons + design-token contract + trademark-clean assets.
  3. GENERATE — new content is filled in mechanically, then every page is rendered and compared against the reference before it's allowed to be called done.

Repository layout

style2deck/
├── SKILL.md                  # entry point: phase routing + rules
├── workflows/
│   ├── extract.md            #   phase 1 checklist + gate
│   ├── codify.md             #   phase 2 checklist + gate
│   └── generate.md           #   phase 3 checklist + gate
├── scripts/                  # stdlib-only Python, zero dependencies
│   ├── extract_theme.py      #   theme colors/fonts + frequency stats
│   └── map_layout.py         #   per-slide shape layout map
├── templates/
│   ├── DESIGN.md.tmpl        # design-token document skeleton
│   ├──