Skip to content

Akxan/ppt-agent-skill

ppt-agent

Verified

专业 PPT 演示文稿全流程 AI 生成助手。模拟顶级 PPT 设计公司的完整工作流(需求调研 -> 资料搜集 -> 大纲策划 -> 策划稿 -> 设计稿),输出高质量 HTML 格式演示文稿。当用户提到制作 PPT、做演示文稿、做 slides、做幻灯片、做汇报材料、做培训课件、做路演 deck、做产品介绍页面时触发此技能。即使用户只说"帮我做个关于 X 的介绍"或"我要给老板汇报 Y",只要暗示需要结构化的多页演示内容,都应该触发。也适用于用户说"帮我把这篇文档做成 PPT"、"把这个主题做成演示"等需要将内容转化为演示格式的场景。

FileKindSize
SKILL.mdskill md20.3 KB
assets/architecture.pngbinary2.0 MB
assets/architecture.svgother17.7 KB
assets/hero-all.pngbinary1.3 MB
assets/hero-cultural-oriental.pngbinary250.3 KB
assets/hero-dark-professional.pngbinary585.1 KB
assets/hero-light-premium.pngbinary639.5 KB
assets/hero-natural-retro.pngbinary403.2 KB
assets/hero-vibrant.pngbinary279.1 KB
assets/logo.svgother1.7 KB
references/README.mdmarkdown2.9 KB
references/bento-grid.mdmarkdown6.2 KB
references/blocks/README.mdmarkdown2.1 KB
references/blocks/card-styles.mdmarkdown5.6 KB
references/blocks/comparison.mdmarkdown1.8 KB
references/blocks/diagram.mdmarkdown1.9 KB
references/blocks/image-hero.mdmarkdown1.9 KB
references/blocks/matrix-chart.mdmarkdown1.9 KB
references/blocks/people.mdmarkdown1.6 KB
references/blocks/quote.mdmarkdown1.6 KB
references/blocks/timeline.mdmarkdown1.7 KB
references/charts/advanced.mdmarkdown39.0 KB
references/charts/basic.mdmarkdown57.9 KB
references/charts/complex.mdmarkdown83.7 KB
references/charts/index.mdmarkdown4.9 KB
references/design-runtime/css-weapons.mdmarkdown10.9 KB
references/design-runtime/data-type-visual-mapping.mdmarkdown7.9 KB
references/layouts/README.mdmarkdown4.8 KB
references/layouts/asymmetric.mdmarkdown1.2 KB
references/layouts/hero-top.mdmarkdown2.0 KB
references/layouts/l-shape.mdmarkdown1.6 KB
references/layouts/mixed-grid.mdmarkdown2.3 KB
references/layouts/primary-secondary.mdmarkdown1.8 KB
references/layouts/single-focus.mdmarkdown1.5 KB
references/layouts/symmetric.mdmarkdown1.5 KB
references/layouts/t-shape.mdmarkdown1.4 KB
references/layouts/three-column.mdmarkdown1.5 KB
references/layouts/waterfall.mdmarkdown1.3 KB
references/method.mdmarkdown2.8 KB
references/page-templates/cover.mdmarkdown2.4 KB
references/page-templates/end.mdmarkdown2.3 KB
references/page-templates/section.mdmarkdown1.9 KB
references/page-templates/toc.mdmarkdown1.9 KB
references/pipeline-compat.mdmarkdown7.5 KB
references/principles/README.mdmarkdown2.1 KB
references/principles/cognitive-load.mdmarkdown2.2 KB
references/principles/color-psychology.mdmarkdown2.2 KB
references/principles/composition.mdmarkdown2.6 KB
references/principles/data-visualization.mdmarkdown2.1 KB
references/principles/failure-modes.mdmarkdown4.9 KB
references/principles/narrative-arc.mdmarkdown2.7 KB
references/principles/visual-hierarchy.mdmarkdown2.9 KB
references/prompts.mdmarkdown32.8 KB
references/strict-mode.mdmarkdown6.4 KB
references/styles/cultural.mdmarkdown8.3 KB
references/styles/dark.mdmarkdown21.3 KB
references/styles/index.mdmarkdown11.8 KB
references/styles/light.mdmarkdown21.9 KB
references/styles/natural.mdmarkdown11.1 KB
references/styles/vibrant.mdmarkdown10.6 KB
references/typography.mdmarkdown8.6 KB
scripts/README.mdmarkdown2.3 KB
scripts/build_hero.pyscript7.2 KB
scripts/contracts.pyscript12.8 KB
scripts/gallery.pyscript10.3 KB
scripts/html2png.pyscript2.9 KB
scripts/html2svg.pyscript24.2 KB
scripts/html_packager.pyscript10.1 KB
scripts/png2pptx.pyscript2.4 KB
scripts/pptx_motion.pyscript8.8 KB
scripts/resource_loader.pyscript7.0 KB
scripts/smoke_test.pyscript16.3 KB
scripts/svg2pptx.pyscript45.3 KB
scripts/validate.pyscript23.0 KB

references/styles/index.md

View on GitHub
# 风格系统索引(26 风格 / 5 板块)

> 本目录下每个 `<quadrant>.md` 文件包含一个板块的所有风格定义。
>
> **新风格的添加**:在对应板块的 `.md` 中追加风格 JSON,并在 `ppt-output/style-gallery/<style_id>.html` 写一张 1280×720 的 mock。
>
> **跨风格共享**:[排版铁律](../typography.md) · [失败模式](../principles/failure-modes.md) · [Bento Grid 布局](../bento-grid.md) · [管线兼容性](../pipeline-compat.md)

---

## 1. 26 风格全景表

| # | style_id | 板块 | 灵感 | 适用场景 | 板块文件 |
|---|----------|------|------|---------|---------|
| 1 | `dark_tech` | 暗色专业 | Linear.app | AI / SaaS / 开发者工具 | [dark.md](dark.md) |
| 2 | `xiaomi_orange` | 暗色专业 | Apple Keynote (硬件) | 硬件 / IoT / 汽车发布 | [dark.md](dark.md) |
| 3 | `luxury_purple` | 暗色专业 | Tom Ford | 奢侈品 / 高端品牌 | [dark.md](dark.md) |
| 4 | `nocturne_violet` | 暗色专业 | Linear (紫光版) | 设计师 SaaS / 产品发布 | [dark.md](dark.md) |
| 5 | `cyberpunk_neon` | 暗色专业 | Cyberpunk 2077 | 电竞 / 游戏 / Web3 | [dark.md](dark.md) |
| 6 | `chrome_y2k` | 暗色专业 | Y2K / Vaporwave | Web3 / 千禧年复古 | [dark.md](dark.md) |
| 7 | `noir_film` | 暗色专业 | 黑白电影 | 纪录片 / 影像艺术 | [dark.md](dark.md) |
| 8 | `blue_white` | 浅色高级 | Apple 企业页面 | 企业 SaaS / 培训 | [light.md](light.md) |
| 9 | `fresh_green` | 浅色高级 | Aesop | 护肤 / 养生 / 食品 | [light.md](light.md) |
| 10 | `minimal_gray` | 浅色高级 | NYT Magazine | 学术 / 法务 / 咨询 | [light.md](light.md) |
| 11 | `mocha_editorial` | 浅色高级 | Anthropic / Pantone 2025 | AI 安全研究 / 出版 | [light.md](light.md) |
| 12 | `medical_pulse` | 浅色高级 | 医疗白蓝 + ECG | 医疗 / 医药 / 保险 | [light.md](light.md) |
| 13 | `earth_concrete` | 浅色高级 | Suisse Int'l | 建筑 / 工业 / 咖啡 | [light.md](light.md) |
| 14 | `champagne_gold` | 浅色高级 | 香槟金 | 婚庆 / 宴会 / 庆典 | [light.md](light.md) |
| 15 | `liquid_glass` | 浅色高级 | iOS 26 / visionOS | XR / AR / 苹果生态 | [light.md](light.md) |
| 16 | `vibrant_rainbow` | 活力鲜明 | Stripe Sessions | 营销 / 创作者 | [vibrant.md](vibrant.md) |
| 17 | `kindergarten_pop` | 活力鲜明 | Quicksand 童趣 | 儿童教育 / 启蒙 | [vibrant.md](vibrant.md) |
| 18 | `bauhaus_block` | 活力鲜明 | Bauhaus / Swiss | 教育 / 创意品牌 | [vibrant.md](vibrant.md) |
| 19 | `candy_pastel` | 活力鲜明 | 马卡龙糖果 | 甜品 / 烘焙 / 零食 | [vibrant.md](vibrant.md) |
| 20 | `royal_red` | 东方文化 | 北京冬奥开幕式 | 中国风 / 政务 / 文化 | [cultural.md](cultural.md) |
| 21 | `sakura_wabi` | 东方文化 | 日本侘寂 | 日系 / 茶道 / 酒店 | [cultural.md](cultural.md) |
| 22 | `ink_jade` | 东方文化 | 墨色+浅米+朱红 | 国潮 / 茶饮 / 古风 | [cultural.md](cultural.md) |
| 23 | `botanic_forest` | 自然/复古 | 深绿森林秘境 | 户外 / 可持续 / 林产 | [natural.md](natural.md) |
| 24 | `safari_savanna` | 自然/复古 | 萨凡纳暖橙 | 旅行 / 探险 / 纪录片 | [natural.md](natural.md) |
| 25 | `retro_70s` | 自然/复古 | 70 年代复古 | 独立咖啡 / 唱片 / 复古 | [natural.md](natural.md) |
| 26 | `gov_authority` | 自然/复古 | 国徽 / 国宴 | 党政 / 重大会议 / 严肃 | [natural.md](natural.md) |

---

## 2. 板块决策矩阵

按主题关键词快速匹配板块:

| 主题关键词 | 推荐板块 | 默认风格 |
|-----------|---------|---------|
| AI / SaaS / 开发者 / 大模型 / 数据 | 暗色专业 | `dark_tech` |
| 硬件 / 手机 / IoT / 汽车 / 智能家居 | 暗色专业 | `xiaomi_orange` |
| 奢侈品 / 时尚 / 高端品牌 | 暗色专业 | `luxury_purple` 或 `noir_film` |
| 游戏 / 电竞 / Web3 | 暗色专业 | `cyberpunk_neon` 或 `chrome_y2k` |
| 企业 / 培训 / 商务 / 金融 | 浅色高级 | `blue_white` |
| 学术 / 研究 / 白皮书 / 法务 | 浅色高级 | `minimal_gray` 或 `mocha_editorial` |
| 医疗 / 医药 / 健康 | 浅色高级 | `medical_pulse` |
| 建筑 / 工业 / 制造 | 浅色高级 | `earth_concrete` |
| 婚礼 / 庆典 / 颁奖 | 浅色高级 | `champagne_gold` |
| 苹果生态 / XR / AR / VR | 浅色高级 | `liquid_glass` |
| 环保 / 自然 / 护肤 / 养生 | 浅色高级 | `fresh_green` |
| 营销 / 推广 / 创作者 / 社交 | 活力鲜明 | `vibrant_rainbow` |
| 儿童 / 教育 / 启蒙 / 亲子 | 活力鲜明 | `kindergarten_pop` |
| 创意品牌 / 独立设计 | 活力鲜明 | `bauhaus_block` |
| 甜品 / 烘焙 / 烘焙店 | 活力鲜明 | `candy_pastel` |
| 中国风 / 政务 / 党建 / 文化 | 东方文化 | `royal_red` |
| 日系 / 茶道 / 民宿 / 侘寂 | 东方文化 | `sakura_wabi` |
| 国潮 / 茶饮 / 古风文创 | 东方文化 | `ink_jade` |
| 户外 / 林业 / 露营 | 自然/复古 | `botanic_forest` |
| 旅行 / 探险 / 自驾 | 自然/复古 | `safari_savanna` |
| 复古 / 黑胶 / 独立咖啡 | 自然/复古 | `retro_70s` |
| 党政 / 重大会议 / 国家级活动 | 自然/复古 | `gov_authority` |
| **未匹配的通用主题** | — | `blue_white`(最通用) |

---

## 3. 风格 JSON Schema

每个风格在板块文件中按以下 JSON Schema 定义:

```json
{
  "style_id": "dark_tech",
  "style_name": "暗黑科技 (Dark Tech)",
  "category": "dark_professional",

  "inspiration": "Linear.app",
  "mood_keywords": ["深空冷寂", "精密仪器", "微光脉搏", "数据洪流", "未来感"],
  "design_soul": "天文台穹顶内部,深蓝黑幕中冷青的仪器扫描光有节奏地划过 -- 精密、冷寂、但每一次扫描都暗含脉搏。",
  "variation_strategy": "数据页用网格点阵+角标装饰线(紧张高密度),章节封面用大面积深空留白+单一光晕(释放),产品页用全屏暗底+中央悬浮发光数据面板(聚焦)",

  "decoration_dna": {
    "signature_move": "网格点阵底纹 + L 形角标装饰线 + 极光辉光",
    "forbidden": ["渐变色块", "叶片装饰", "波浪分隔线", "马卡龙糖果色", "serif 杂志感"],
    "recommended_combos": [
      "网格点阵 + 角标 + 大号水印数字",
      "光晕效果 + 脉冲圆点 + 半透明数字水印"
    ]
  },

  "background": {
    "primary": "#050b1f",
    "gradient_to": "#0a1f3d",
    "texture": { "type": "grid_dot", "size": 80, "opacity": 0.015 },
    "glow": [
      { "x": "80%", "y": "30%", "color": "#6366f1", "opacity": 0.35, "blur": 60 },
      { "x": "20%", "y": "70%", "color": "#22D3EE", "opacity": 0.25, "blur": 60 }
    ]
  },

  "card": {
    "gradient_from": "#1E293B",
    "gradient_to": "#0F172A",
    "border": "rgba(255,255,255,0.05)",
    "border_radius": 12,
    "backdrop_blur": 10
  },

  "text": {
    "primary": "#FFFFFF",
    "secondary": "rgba(255,255,255,0.7)",
    "title_size": 28,
    "body_size": 14,
    "card_title_size": 20
  },

  "accent": {
    "primary": ["#22D3EE", "#3B82F6"],
    "secondary": ["#FDE047", "#F59E0B"]
  },

  "typography": {
    "display_font": "'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif",
    "body_font": "'Inter', -apple-system, BlinkMacSystemFont, sans-serif",
    "serif_italic_font": "'Instrument Serif', 'Fraunces', Georgia, serif",
    "mono_font": "'JetBrains Mono', 'DM Mono', 'Courier New', monospace",
    "display_letter_spacing": "-0.045em",
    "headline_letter_spacing": "-0.015em",
    "body_letter_spacing": "-0.005em",
    "label_letter_spacing": "0.18em",
    "feature_settings": "'ss01', 'cv11', 'calt', 'kern', 'liga'",
    "tabular_nums": true
  },

  "decorations": {
    "label_anchor": "dot_pulse",
    "title_serif_italic": true,
    "corner_lines": true,
    "vertical_divider": false,
    "drop_cap": false,
    "masthead": false
  },

  "font_imports": [
    "https://fonts.googleapis.com/css2?family=Inter+Tight:wght@500;600;700;800&family=Instrument+Serif:ital@0;1&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap"
  ]
}
```

### 字段定义

| 字段 | 必填 | 说明 |
|------|------|------|
| `style_id` | ✓ | 唯一英文 ID(snake_case) |
| `style_name` | ✓ | 人类可读名(中文+英文括号)|
| `category` | ✓ | 5 板块之一:`dark_professional` / `light_premium` / `vibrant` / `cultural_oriental` / `natural_retro` |
| `inspiration` | ✓ | 灵感来源(品牌/网站名)|
| `mood_keywords` | ✓ | 3-5 个情绪标签 |
| `design_soul` | ✓ | 一句话设计灵魂(诗意描述) |
| `variation_strategy` | ✓ | 跨页面节奏策略 |
| `decoration_dna.signature_move` | ✓ | 招牌动作(一句话)|
| `decoration_dna.forbidden` | ✓ | 明确禁用的元素 |
| `decoration_dna.recommended_combos` | ✓ | 推荐组合 |
| `background` | ✓ | 背景定义(含 texture / glow)|
| `card` | ✓ | 卡片定义 |
| `text` | ✓ | 文字定义 |
| `accent` | ✓ | 强调色(primary 2 色 + secondary 2 色)|
| `typography` | ✓ | 字体栈 + 字距 + OpenType 特性 |
| `decorations` | ✓ | 签名手法清单(boolean 开关) |
| `font_imports` | ✓ | Google Fonts URL 数组 |

---

## 4. 从风格 JSON 到 CSS 变量

style.json 就是选中风格的完整 JSON。写 HTML 时把它映射成 `:root` 里的 12 个标准变量(代码实现是 `scripts/contracts.py` 的 `style_css_variables`):

| CSS 变量 | 取自 |
|---------|------|
| `--bg-primary` / `--bg-secondary` | `background.primary` / `background.gradient_to` |
| `--card-bg-from` / `--card-bg-to` / `--card-border` / `--card-radius` | `card.gradient_from` / `gradient_to` / `border` / `border_radius` |
| `--text-primary` / `--text-secondary` | `text.primary` / `text.secondary` |
| `--accent-1` / `--accent-2` | `accent.primary[0]` / `[1]` |
| `--accent-3` / `--accent-4` | `accent.secondary[0]` / `[1]` |
| `--display-font` / `--body-font` / `--serif-italic-font` / `--mono-font` | `typography.*_font` |

图表模板只认这些变量名。风格可以另外定义自己的变量(如 `--gold`),但标准变量必须齐全。

## 5. 自定义风格

26 个预置风格是经过验证的起点,不是固定制服。用户给了品牌色、或没有一个预置风格贴合主题时,按同样的 JSON 结构自定义:

1. **提炼 3-5 个情绪关键词**——用通感体验词("精密仪器""宫墙黄昏"),不用"蓝色""深色"这种色彩描述词
2. **从情绪推导色彩**——情绪 -> 场景联想 -> 颜色("精密仪器" -> 天文台穹顶 -> 深蓝黑底 + 冷青扫描光)
3. **写一句 `design_soul`**——要有画面感。"蓝色科技风格,专业商务"是坏例子,它只会得到千篇一律的蓝色方块
4. **写 `variation_strategy`**——描述页与页之间变化的节奏型,而不是"每页用不同装饰"
5. **选最接近的预置风格作起点**,再换 accent 色、换色温或翻转明暗,输出完整 JSON

硬底线:文字与背景对比度 >= 4.5:1;背景 60% / 卡片 30% / 强调色 10%;同页强调色不超过 2 种;卡片背景与页面背景有可感知的明度差。用 `python3 scripts/validate.py style OUTPUT_DIR/style.json` 检查能否推出全部 CSS 变量。

---

## 6. 新增预置风格的自检

每个风格定义完成后,对照以下 7 条自检:

- [ ] 完整 7 大字段(style_id / style_name / category / inspiration / mood_keywords / design_soul / decoration_dna)
- [ ] CSS 变量完整(bg/card/text/accent 全有)
- [ ] 字体栈三层降级(商业/Google/系统)
- [ ] `decoration_dna.forbidden` 明确列出至少 3 个禁用项
- [ ] `font_imports` Google Fonts URL 正确
- [ ] 配套 mock HTML 在 1280×720 画布中渲染正确(无控制台错误)
- [ ] 板块数量变化时同步 `scripts/contracts.py` 的 `STYLE_CATEGORIES`
- [ ] `python3 scripts/smoke_test.py styles mocks` 通过,再跑 `python3 scripts/gallery.py --screenshots` 与 `python3 scripts/build_hero.py`
canvas-designanthropics/skillsCreate beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
docxanthropics/skillsUse 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.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
pdfanthropics/skillsUse 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.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
pptxanthropics/skillsUse 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.Stars: 198kUpdated Claude CodeCodexVerifiedInstall