name: PPT Layout Matcher description: | Intelligent PPT layout matching system based on a 45-page design layout library (16:9). Analyzes input content and automatically recommends the best slide layout from 10 categories. Trigger when user says: "做PPT", "创建PPT", "生成PPT", "版式匹配", "选版式", "PPT排版", or provides content that needs to be turned into presentation slides. Core capability: analyze content → match layout → create slides with python-pptx. agent_created: true tags: - ppt - presentation - layout - design - template - slide - 16:9 version: 1.0.0
7w4.net小葱技能。
Intelligent layout matching for PowerPoint presentations based on a 45-page professional design layout library.
Extract key features from user input: - Number of items (3 key metrics? 4 steps? 2 comparisons?) - Content nature (data/metrics, process/steps, comparison, gallery, list) - Presence of numbers/charts/images - Timeline/step indicators
Execute the bundled script to get layout recommendations:
python3 ppt_layout_matcher.py
Or use the Python API:
from ppt_layout_matcher import recommend_layout
results = recommend_layout("user content here", top_k=3)
for template, score, analysis in results:
print(f"{template.name} (Slide {template.slide_ref}) - Score: {score}")
Show: - Layout name and reference slide number - Match score - Structure description - Why this layout was recommended
Let the user confirm before creating.
Once confirmed, create the slide:
- 16:9 dimensions (13.33" × 7.50")
- Dark theme (deep blue/gray background)
- White text, accent colors for data highlights
- Follow the reference layout structure from references/layout_templates.md
Verify with markitdown:
python -m markitdown output.pptx | head -100
| Category | Count | Use Case |
|---|---|---|
| A-Cover | 2 | Report cover, proposal front page |
| B-Divider | 2 | Section transitions |
| C-Data Display | 9 | Metrics, charts, data highlights |
| D-Process/Steps | 6 | STEP flows, development stages |
| E-Comparison | 5 | A/B comparison, multi-solution, SWOT |
| F-Grid/Cards | 8 | 2×2, 3×2, 4×N card grids |
| G-Gallery | 1 | Image gallery, timeline |
| H-List/Points | 4 | Numbered lists, text+image lists |
| I-Infographic | 1 | One Pager overview |
| J-Special | 7 | Radial, wraparound, mixed layouts |
Full layout library documentation: references/layout_templates.md
这个工具能帮你根据内容快速找到合适的PPT版式,45种模板覆盖主流场景,使用简单直观。但它只推荐版式,不会自动生成PPT文件;匹配结果受限于你输入的文字表述,复杂或模糊的内容可能推荐不准。如果你只需要选版式参考,它很实用;但要真正做出PPT,还需要自己动手排版。