用 python-pptx 生成暗色科技风演示文稿。
用户描述 PPT 内容后,生成 Python 脚本并执行,产出 .pptx 文件。
scripts/ppt_lib.py(核心工具库).pptxlightclaw_upload_file 发送给用户类型函数用途封面页make_cover_slide()标题+副标题+日期章节页make_section_slide()章节标题+要点列表内容页make_content_slide()标题+2x2卡片网格对比页make_compare_slide()左右两栏对比架构页make_arch_slide()三列流程+底部补充卡片页make_cards_slide()灵活卡片网格总结页make_summary_slide()价值总结+收尾
python
DARK_BG = (0x1A, 0x1A, 0x2E) # 背景
ACCENT = (0x00, 0xD2, 0xFF) # 科技蓝
ACCENT2 = (0x7C, 0x3A, 0xED) # 紫色
ACCENT3 = (0x10, 0xB9, 0x81) # 绿色
ACCENT4 = (0xF5, 0x9E, 0x0B) # 橙色
WHITE = (0xFF, 0xFF, 0xFF)
LIGHT_GRAY = (0xCC, 0xCC, 0xCC)
CARD_BG = (0x25, 0x25, 0x40) # 卡片背景
bash
pip install python-pptx
text
skills/ppt-generator/
├── SKILL.md # 本文件
└── scripts/
└── ppt_lib.py # 核心工具库(模板函数+调色板)