mck-ppt-design
VerifiedCreate professional, consultant-grade PowerPoint presentations from scratch using MckEngine (python-pptx wrapper) with McKinsey-style design. Use when user asks to create slides, pitch decks, business presentations, strategy decks, quarterly reviews, board meeting slides, or any professional PPTX. AI calls eng.cover(), eng.donut(), eng.timeline() etc — 62 active layout methods across 8 categories (structure, data, framework, comparison, narrative, timeline, team, charts, images, advanced viz, dashboards, visual storytelling), consistent typography, zero file-corruption issues, BLOCK_ARC native shapes for circular charts (donut, pie, gauge), production-hardened guard rails for spacing, overflow, legend consistency, title style uniformity, dynamic sizing for variable-count layouts, horizontal item overflow protection, chart rendering, and AI-generated cover images via Tencent Hunyuan 2.0 with professional cutout, cool grey-blue tint, and McKinsey-style Bézier ribbon decoration.
references/team/presentation-convention.md
View on GitHub# Presentation Convention — McKinsey PPT Design
> 团队级汇报体例规范。适用于所有 PPT 项目。
## Slide Dimensions
```python
prs.slide_width = Inches(13.333) # 宽屏 16:9
prs.slide_height = Inches(7.5)
```
## Standard Margins
| Position | Size | Usage |
|----------|------|-------|
| Left margin (LM) | 0.8" | 默认左边距 |
| Right margin | 0.8" | 默认右边距 |
| Content width (CW) | 11.733" | LM 到右边距 |
| Content start (below title) | 1.3–1.4" | 内容区上边界 |
| Source line | 7.05" | 出处文字基线 |
| Action title top | 0.15" | 标题顶部 |
| Action title height | 0.9" | 标题栏高度 |
## Mandatory Slide Elements
每个内容页(除 Cover 和 Closing 外)**必须**包含:
| 元素 | 方法 | 位置 |
|------|------|------|
| Action Title | `add_action_title()` / `aat()` | 顶部 0.15" |
| 标题分隔线 | Action title 自动包含 | 1.05" |
| 内容区 | 版式相关 | 1.3"–6.5" |
| Source 出处 | `add_source()` | 7.05" |
| 页码 | `add_page_number(n, total)` | 右下角 |
## Title Style Rule
**唯一标准**:所有内容页使用 `add_action_title()` (白底+黑字+下划线)。
**已废弃**:`add_navy_title_bar()` (深蓝底+白字) — 禁止在内容页使用。
## Source Attribution
每个内容页必须有 source,格式:`Source: [来源机构/报告 年份]`
## Page Numbering
```python
def add_page_number(slide, num, total):
add_text(slide, Inches(12.2), Inches(7.1), Inches(1), Inches(0.3),
f"{num}/{total}", font_size=Pt(9), font_color=MED_GRAY,
alignment=PP_ALIGN.RIGHT)
```
## Slide Count Guidelines
- **标准汇报**:10–12页
- **简短汇报**:6–8页
- **最少**:8页(实质性主题)
- **时长约束**:约 1 分钟/页
## File Delivery
Python 引擎路径:`~/.workbuddy/skills/mck-ppt-design`
```python
import sys, os
sys.path.insert(0, os.path.expanduser('~/.workbuddy/skills/mck-ppt-design'))
from mck_ppt import MckEngine
```
`eng.save()` 自动执行三层 XML 清理,无需手动调用 `full_cleanup()`。
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| 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: 198k | Updated | Claude CodeCodex | Verified | Install |
| 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: 198k | Updated | Claude CodeCodex | Verified | Install |
| 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: 198k | Updated | Claude CodeCodex | Verified | Install |
| 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: 198k | Updated | Claude CodeCodex | Verified | Install |