design
Locks visual design style. Decides layout, color palette, font family and saves design_spec.md. Can analyze reference URLs/images. Responds to "lock design", "pick colors/fonts", "make design spec" . Stage 4 of the workflow.
- License 许可
- AGPL-3.0
- 最近更新
- 2026-11-14
- Stars
- ★ 25
- Forks
- 9
01 前言 Front Matter
- name
- design
- owner
- design
- scope
- co-deck
- inputs
- [ "storyline-outline" ]
- status
- active
- outputs
- [ "design-spec", "theme-lock" ]
- version
- 1.2.1
- relates_to
- [ { "type": "enables", "skill": "html-build" }, { "type": "composes_with", "skill": "research" }, { "type": "follows", "skill": "html-build" }, { "type": "composes_with", "skill": "pdf-export" } ]
- description
- Locks visual design style. Decides layout, color palette, font family and saves design_spec.md. Can analyze reference URLs/images. Responds to "lock design", "pick colors/fonts", "make design spec" . Stage 4 of the workflow.
- last_reviewed
- 1787529600000
- prerequisites
- storyline
03 SKILL.md 正文
Context
Locks the visual design — layout, colors, and fonts — into design_spec.md. This file is the shared reference for HTML generation and PDF export. Invoked at Stage 4, after Gate 2 (content approval) is passed.
When to Use
- PM Agent dispatches after Gate 2 approval (storyline locked)
- User says "lock design"
- User wants to change visual direction mid-project
Execution Steps
Step 1: Confirm Design Direction
Confirm with the user (skip anything already mentioned):
- Overall vibe — dark/light, professional/friendly, modern/classic
- References — URLs, image files, brand guidelines
- Brand elements — logo, company colors, mandated fonts
- Font preference — sans-serif (clean) / serif (premium)
If a reference URL is provided, open it in Claude in Chrome and analyze colors and fonts.
Step 2: Design Decisions
Layout
- Aspect ratio: 16:9 (default) / 4:3
- Slide structure: header bar position/height, title position, content area, right visual panel ratio
- Margins: outer card margin, inner padding
Color Palette
Decide on at least 8 role-based colors:
| Role | Name | HEX | RGB |
|---|---|---|---|
| Slide background | slide-bg | ||
| Header / dark bg | bg-dark | ||
| Title text | title-color | ||
| Body text | body-color | ||
| Accent | accent | ||
| Muted text | muted | ||
| Border | border | ||
| Visual panel bg | vis-bg |
Fonts
- One unified Korean+English font is strongly recommended (mixed fonts cause rendering inconsistency)
- Korean font selection guidance (house sans-serif faces, fallback stacks, regional-glyph matching) follows the common
i18n-layoutskill (constitution §4.4 i18n asset suite); font download and TTF wiring remain deck tooling (prep-pdf→download-font.ts) - Record web font URL or local TTF path
Font Sizes (baseline)
Decide in CSS px (HTML). Auto-converted to pt during PDF export.
| Element | CSS px | Note |
|---|---|---|
| Slide title | ||
| Bullet text | ||
| Header section label | ||
| Right panel title | ||
| Right panel body | ||
| Divider part number | ||
| Divider title | ||
| Divider description | ||
| Cover main title | ||
| Cover subtitle |
Step 3: Save design_spec.md
Save the decisions above as design_spec.md in the workspace.
Bundling CSS variables makes the HTML stage directly consumable:
:root {
--slide-bg: ; /* slide background */
--bg-dark: ; /* header / dark elements */
--accent-color: ; /* accent highlights */
--primary-color: ; /* title text */
--text-muted: ; /* muted / secondary text */
--border-color: ; /* borders */
--vis-bg: ; /* visual panel background */
--font-family: , serif; /* Korean-compatible font */
}
Output Format
presentations/<project>/design_spec.md containing: layout decisions, 8-color palette table (with HEX/RGB), font family and size table, CSS variables block.
Related Skills
storyline— providesslide_deck.mdthat drives layout decisionshtml-build— consumesdesign_spec.mdCSS variablesmeasure— uses font/color info fromdesign_spec.mdfor PDF preparation
04 同仓库更多 Skills
i18n-layout
Text layout and encoding guidance: character encoding (UTF-8, legacy Korean code pages, BOM hazards), line endings, RTL/bidi handling, and script-specific font selection (Hangul focus). Use when: encoding is corrupted or mojibake appears, an RTL locale must render correctly, fonts must be chosen for a script, or CRLF/BOM issues surface.
i18n-layout
Text layout and encoding guidance: character encoding (UTF-8, legacy Korean code pages, BOM hazards), line endings, RTL/bidi handling, and script-specific font selection (Hangul focus). Use when: encoding is corrupted or mojibake appears, an RTL locale must render correctly, fonts must be chosen for a script, or CRLF/BOM issues surface.
i18n-layout
Text layout and encoding guidance: character encoding (UTF-8, legacy Korean code pages, BOM hazards), line endings, RTL/bidi handling, and script-specific font selection (Hangul focus). Use when: encoding is corrupted or mojibake appears, an RTL locale must render correctly, fonts must be chosen for a script, or CRLF/BOM issues surface.
i18n-layout
Text layout and encoding guidance: character encoding (UTF-8, legacy Korean code pages, BOM hazards), line endings, RTL/bidi handling, and script-specific font selection (Hangul focus). Use when: encoding is corrupted or mojibake appears, an RTL locale must render correctly, fonts must be chosen for a script, or CRLF/BOM issues surface.
i18n-layout
Text layout and encoding guidance: character encoding (UTF-8, legacy Korean code pages, BOM hazards), line endings, RTL/bidi handling, and script-specific font selection (Hangul focus). Use when: encoding is corrupted or mojibake appears, an RTL locale must render correctly, fonts must be chosen for a script, or CRLF/BOM issues surface.
i18n-layout
Text layout and encoding guidance: character encoding (UTF-8, legacy Korean code pages, BOM hazards), line endings, RTL/bidi handling, and script-specific font selection (Hangul focus). Use when: encoding is corrupted or mojibake appears, an RTL locale must render correctly, fonts must be chosen for a script, or CRLF/BOM issues surface.