Skip to main content

wzq-ppt-build · PyPI 技能包

wzq-ppt-build —— 块级语义增强的 PPT-Master 提示词引擎。 以《最终版.pptx》(2026 产教融合赛道现场汇报)的 cxfusion 蓝橙设计语言为主导, 输入 textbook 后自动完成:① 生成 PPT 页面设计表 → 用户确认门禁 → ② 解析 → ③ 块级提示词 → ④ 驱动 PPT-Master 生成原生可编辑 PPTX

特性

  • 四步工作流:设计表 + 用户确认门禁(Q1 设计表可否 + Q2 资源图)→ 解析 → 块级提示词 → PPT-Master 生成
  • 块级六要素契约:每页拆 1-3 个 visual block,每块带「拓扑 + 表达内容 + 表达目标 + 形态方案 + 设计元素 + 成品态描述」
  • 88 拓扑真源:动态导入 ppt-blueprint-builder 拓扑正典(182 词条)
  • 39 形态方案库:morph_dict.json 数据化,同一拓扑跨页强制换形态
  • 导航三规则:顶栏标题 28-36pt / 顶栏 tab 每章节名称动态联动 / 左栏章卡全栏等高
  • 用户约束优先:用户手工页面设计表(xlsx)为权威约束
  • 资源图嵌入:SVG <image> → finalize 自动 base64 内嵌
  • 双保险策略:wzq-ppt 原版技能保持不动,本包独立发布

依赖

  • ppt-master(WorkBuddy 技能,~/.workbuddy/skills/ppt-master,必须)
  • ppt-blueprint-builder(88 拓扑真源,缺失时降级内置 24 拓扑)
  • Python: python-pptx / openpyxl / PyYAML / Pillow

快速开始

安装即部署为 WorkBuddy 技能(自动)

pip install wzq-ppt-build

安装后自动生效(无需手动复制):

  • 任意 import wzq_ppt_build 时自动把技能文件同步到 ~/.workbuddy/skills/wzq-ppt-build/(幂等:已是最新则零操作;包升级自动覆盖同步)
  • 或手动执行一次:wzq-ppt-build-install--force 强制覆盖)

生成 PPT(wzq-ppt-build 三步脚本链路)

# 1. 解析 textbook 页面结构
python3 extract_pages.py "<textbook.md>" -o extract.json --textbook "<textbook.md>"

# 2. 生成块级蓝图(每页块数/拓扑/表达内容)
python3 build_block_blueprint.py extract.json -o "<工作目录>" --textbook "<textbook.md>"

# 3. 生成 PPT 页面设计表(6 列 xlsx)→ 请用户确认(Q1 设计表可否 + Q2 资源图)
python3 build_design_table.py "<block_blueprint.json>" \
    -o "PPT页面设计表_《课件名》.xlsx" --title "<课件名>" [--template "<模板.xlsx>"]

# 4. 组装 wzq_prompt.md(L0 全局 + L1 页面类型 + L2 块级契约 + L3 硬底线)
#    驱动 PPT-Master 生成(routing → design_spec → SVG → finalize → svg_to_pptx)

包内容

wzq_ppt_build/
├── __init__.py                  import 钩子:自动部署技能(幂等)
├── _auto_install.py             部署逻辑 + wzq-ppt-build-install 命令
├── SKILL.md                     技能入口 · 四步工作流 · 硬规则
├── references/                 设计契约 / 页面类型 / 块级规范 / 提示词规范 / 设计表规范 / 形态库
├── scripts/                     extract_pages / build_block_blueprint / build_design_table
└── docs/                        技能全解析文档(PDF)

文档

  • docs/wzq-ppt-build-全解析.pdf:技术路径 / 文档结构 / 应用步骤与方法(图文并茂)

License

MIT © 吴振谦(wuzhenqian6611)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wzq_ppt_build-1.3.1.tar.gz (1.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wzq_ppt_build-1.3.1-py3-none-any.whl (1.5 MB view details)

Uploaded Python 3

File details

Details for the file wzq_ppt_build-1.3.1.tar.gz.

File metadata

  • Download URL: wzq_ppt_build-1.3.1.tar.gz
  • Upload date:
  • Size: 1.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.9

File hashes

Hashes for wzq_ppt_build-1.3.1.tar.gz
Algorithm Hash digest
SHA256 ab6d57eb14f78fbeff77a19c46c4c5e4e9dc83c9f4ee3139d0375454e175648d
MD5 4fb8dffc09ea5c80e9220c7c3d56016b
BLAKE2b-256 9cb2bacb8cb0ae78d3bb4e0d0fafb12a3fc5111058712c16cc317ccad074b112

See more details on using hashes here.

File details

Details for the file wzq_ppt_build-1.3.1-py3-none-any.whl.

File metadata

  • Download URL: wzq_ppt_build-1.3.1-py3-none-any.whl
  • Upload date:
  • Size: 1.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.9

File hashes

Hashes for wzq_ppt_build-1.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c93479551d32bfe6e19c695608e6711f6494d8c7d05175a4631531a1ce882471
MD5 a5f3fccf6ef9c9c0ad38d03d5d57fcd6
BLAKE2b-256 313d5243354bcfdab2ea247222e679d87f3309ea3c5d3edad08dd5792a02bd04

See more details on using hashes here.

Release history Release notifications | RSS feed

1.5.1

2 files

1.5.0

2 files

1.4.0

2 files

This release

1.3.1 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page