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/charts/index.md

View on GitHub
# 图表系统索引(18 种 / 3 层级)

> 所有图表纯 HTML/CSS/SVG 实现,**不引入 ECharts 等运行时**(幻灯片必须是静态 HTML)。模板只用保持矢量的写法,进 PPTX 后图形和数字都可编辑;标签用 HTML 元素叠在 SVG 上,不写 SVG `<text>`(见 [pipeline-compat.md](../pipeline-compat.md))。

---

## 1. 18 种图表全景

策划稿里在卡片上写 `chart_type`,Step 5c 用 `scripts/resource_loader.py resolve` 取到对应模板。注册表在 `scripts/contracts.py` 的 `CHARTS`。

| # | 图表 | `chart_type` | 层级 | 文件 | 何时用 |
|---|------|--------------|------|------|-------|
| 1 | 进度条 | `progress_bar` | 基础 | [basic.md](basic.md) | 单一百分比 / 完成度 |
| 2 | 对比柱 | `comparison_bar` | 基础 | [basic.md](basic.md) | 2-6 项对比 |
| 3 | 环形图 | `ring` | 基础 | [basic.md](basic.md) | 百分比 + 中心 KPI |
| 4 | 迷你折线 | `sparkline` | 基础 | [basic.md](basic.md) | 趋势方向 |
| 5 | 点阵图 | `waffle` | 基础 | [basic.md](basic.md) | 比例直觉化(10×10)|
| 6 | KPI 指标卡 | `kpi` | 基础 | [basic.md](basic.md) | 大数字 + 趋势箭头 |
| 7 | 指标行 | `metric_row` | 基础 | [basic.md](basic.md) | 多指标垂直堆叠 |
| 8 | 评分指示器 | `rating` | 基础 | [basic.md](basic.md) | 5 分制 / 半星 |
| 9 | 雷达图 | `radar` | 进阶 | [advanced.md](advanced.md) | 多维度对比(5-8 维)|
| 10 | 时间线 | `timeline` | 进阶 | [advanced.md](advanced.md) | 历史 / 路线图 / 流程 |
| 11 | 漏斗图 | `funnel` | 进阶 | [advanced.md](advanced.md) | 转化率 / 流失分析 |
| 12 | 仪表盘 | `gauge` | 进阶 | [advanced.md](advanced.md) | KPI 评级 / 健康度 |
| 13 | 多组对比柱 | `grouped_bar` | 进阶 | [advanced.md](advanced.md) | 多类别 × 多组对比;堆叠变体写 `stacked_bar` 亦可 |
| 14 | 简单地理 | `simple_map` | 进阶 | [advanced.md](advanced.md) | 城市点 / 区域分布 |
| 15 | 世界地图 | `world_choropleth` | 复杂 | [complex.md](complex.md) | 全球数据可视化 |
| 16 | 关系网络 | `network_graph` | 复杂 | [complex.md](complex.md) | 节点 + 连线 |
| 17 | 桑基图 | `sankey_flow` | 复杂 | [complex.md](complex.md) | 流量 / 转化路径 |
| 18 | 热力日历 | `heatmap_calendar` | 复杂 | [complex.md](complex.md) | 365 天数据密度 |

模板标题里的旧叫法(`compare_bar` / `ring_chart` / `waffle_chart` / `kpi_card`)作为别名仍被接受。

---

## 2. 决策矩阵

按数据特征快速选图:

| 数据类型 | 推荐图表 | 备选 |
|---------|---------|------|
| 单一百分比 | 进度条 / 环形图 | KPI 指标卡 |
| 两项对比 | 对比柱 | 多组对比柱 |
| 3-8 个并列指标 | KPI 卡组 / 指标行 | 雷达图 |
| 多维度评估 | 雷达图 | 评分指示器 |
| 时间趋势 | 迷你折线 | 时间线 |
| 比例直觉化 | 点阵图 | 环形图 |
| 转化漏斗 | 漏斗图 | 桑基图 |
| KPI 评级(如健康度)| 仪表盘 | 评分指示器 |
| 多类别对比(如年度对比)| 多组对比柱 | — |
| 地理分布(中国/世界)| 简单地理 / 世界地图 | — |
| 关系网络(如组织架构)| 关系网络 | — |
| 复杂流量分析 | 桑基图 | 漏斗图 |
| 连续日期数据 | 热力日历 | 迷你折线 |

---

## 3. 图表通用规范

### 3.1 数据格式

所有图表的 HTML 模板都接受简单的 inline data,无运行时依赖。例如:

```html
<!-- 进度条 -->
<div class="chart-progress" data-value="87" data-label="完成度">
  <div class="bar"><div class="fill" style="width:87%"></div></div>
  <span class="value">87%</span>
</div>
```

### 3.2 颜色映射

所有图表必须用 CSS 变量 (`--accent-1`, `--accent-2`, etc.),不硬编码颜色。这样 26 风格自动适配。

### 3.3 数字格式

所有数据数字必须 `font-variant-numeric: tabular-nums proportional-nums`。

### 3.4 SVG 内禁止 `<text>`

所有文字标注(数据标签、x 轴、图例、中心数字)用 HTML `<div>` / `<span>` 绝对定位叠加在 SVG 上方。

### 3.5 ECharts 兼容性

复杂图表(世界地图、关系网络、桑基图、热力日历)的实现策略:
- **不引入 ECharts 运行时**
- 用纯 SVG path 数据 + 静态计算
- 需要真实地理边界时,离线把 GeoJSON 简化成 SVG path 再内联

### 3.6 风格适配

每种图表在每个风格下应自动适配:
- 暗色风格:用 `--accent-1` 高亮主色,`--card-border` 做线条
- 浅色风格:用 `--accent-1` 描边,`--card-bg-from` 填充
- 文化风格(royal_red 等):用 `--accent-1`(金色)+ `--accent-3`(朱红)双色调

### 3.7 自检清单

每个图表 HTML 模板自检:

- [ ] 用 CSS 变量,不硬编码颜色
- [ ] 数字 tabular-nums
- [ ] SVG 内无 `<text>`
- [ ] 不用 conic-gradient(环形图用 SVG circle + dasharray)
- [ ] 不用 mask-image / mix-blend-mode
- [ ] 至少有一个示例数据
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