From example-skills
Creates, edits, extracts from, and QA's PPTX presentations using Python tools, pptxgenjs, design guidelines, and validation workflows.
npx claudepluginhub joshuarweaver/cascade-code-general-misc-3 --plugin marcelleon-skills-zhThis skill uses the workspace's default tool permissions.
| 任务 | 指引 |
LICENSE.txtediting.mdpptxgenjs.mdscripts/__init__.pyscripts/add_slide.pyscripts/clean.pyscripts/office/helpers/__init__.pyscripts/office/helpers/merge_runs.pyscripts/office/helpers/simplify_redlines.pyscripts/office/pack.pyscripts/office/schemas/ISO-IEC29500-4_2016/dml-chart.xsdscripts/office/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsdscripts/office/schemas/ISO-IEC29500-4_2016/dml-diagram.xsdscripts/office/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsdscripts/office/schemas/ISO-IEC29500-4_2016/dml-main.xsdscripts/office/schemas/ISO-IEC29500-4_2016/dml-picture.xsdscripts/office/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsdscripts/office/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsdscripts/office/schemas/ISO-IEC29500-4_2016/pml.xsdscripts/office/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsdApplies Acme Corporation brand guidelines including colors, fonts, layouts, and messaging to generated PowerPoint, Excel, and PDF documents.
Builds DCF models with sensitivity analysis, Monte Carlo simulations, and scenario planning for investment valuation and risk assessment.
Calculates profitability (ROE, margins), liquidity (current ratio), leverage, efficiency, and valuation (P/E, EV/EBITDA) ratios from financial statements in CSV, JSON, text, or Excel for investment analysis.
| 任务 | 指引 |
|---|---|
| 读取/分析内容 | python -m markitdown presentation.pptx |
| 在现有模板上编辑 | 先读 editing.md |
| 从零创建新稿 | 先读 pptxgenjs.md |
# 文本抽取
python -m markitdown presentation.pptx
# 幻灯片缩略图总览
python scripts/thumbnail.py presentation.pptx
# 原始 XML
python scripts/office/unpack.py presentation.pptx unpacked/
完整细节在 editing.md。默认执行顺序:
thumbnail.py 先理解模板结构与视觉密度unpack -> 调整页面结构/对象 -> 内容替换 -> clean -> pack完整约束在 pptxgenjs.md。
没有模板且用户要全新设计时,按该文档执行。
每页至少有一个视觉锚点(图、图标、图表、几何块),不要纯文字页。
常用结构:
数据展示建议:
默认假设首版一定有问题,目标是“找 bug”,不是“证明没问题”。
python -m markitdown output.pptx
检查:
xxxx、lorem ipsum)python -m markitdown output.pptx | grep -iE "xxxx|lorem|ipsum|this.*(page|slide).*layout"
先转图片再审:
python scripts/office/soffice.py --headless --convert-to pdf output.pptx
pdftoppm -jpeg -r 150 output.pdf slide
重点检查:
python scripts/office/soffice.py --headless --convert-to pdf output.pptx
pdftoppm -jpeg -r 150 output.pdf slide
只重渲某一页:
pdftoppm -jpeg -r 150 -f N -l N output.pdf slide-fixed
pip install "markitdown[pptx]":文本抽取pip install Pillow:缩略图工具npm install -g pptxgenjs:从零生成scripts/office/soffice.py 做 PDF 转换pdftoppm 导出图片