---
name: wise-ppt
description: 把 PDF、文章、链接、口语稿、提纲或现有演示材料整理成 16:9 离线网页 PPT 和同源 PDF，也用于诊断、重做或修改 Wise PPT。默认走已审核结构的 standard；只有用户明确批准突破该结构后，才在隔离副本中执行 experimental。
title: wise-ppt
canonical_url: https://skilld.dev/gh/wisewong6/wise-ppt
last_updated: 2026-11-12T06:01:42.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> 250 supporting files sit beside this SKILL.md. When the Skill refers to one, fetch https://skilld.dev/api/skills-raw/wisewong6/wise-ppt/wise-ppt/PATH with PATH replaced.
>
> If the user asked to install this Skill, run `npx skilld install wisewong6/wise-ppt/wise-ppt`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/wise-ppt`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/wisewong6/wise-ppt/wise-ppt) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/wise-ppt`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/wise-ppt --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/wise-ppt --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# Wise PPT

HTML 渲染、PDF 同源；Catalog 是资产选择唯一权威。

## 运行前检查

macOS/Windows 仅支持 Node 22/24 LTS 与 Google Chrome 132+。使用或更新后运行：

```text
node <skill>/bin/wise-ppt.mjs doctor
```

`doctor` 只检查不下载，失败即停；不额外安装依赖。缺字体由 `build` 下载校验。Chrome 打开 `references/catalog.html`；示例不定页数。详见 [指南](https://skilld.dev/api/skills-raw/wisewong6/wise-ppt/wise-ppt/USER-GUIDE.md)。

## 先决定模式

1. 诊断、审查、规划只分析。
2. 不改已审核结构走 `standard`，只编辑 `deck-spec.json` 和公开槽；组件容量变更须 registry 已登记且用户批准。
3. 改结构、组件、分栏、阅读顺序或用未审核能力，按[实验授权](https://skilld.dev/api/skills-raw/wisewong6/wise-ppt/wise-ppt/references/experimental.md#授权)核对范围，获批后在副本执行 `experimental`。
4. Catalog、registry、runtime、主题或资产有缺陷，停止并登记修复。

## 完成标准

`standard` 只输入 `deck-spec.json`，生成物无手改且四道命令全通过。`experimental` 隔离创建，只改获批页。

## 按阶段读取

| 阶段 | 必读文件 | 唯一职责 |
|---|---|---|
| 内容分页 | [references/pagination.md](https://skilld.dev/api/skills-raw/wisewong6/wise-ppt/wise-ppt/references/pagination.md) | claim 与页数 |
| 判断页型和关系 | [references/page-routing.md](https://skilld.dev/api/skills-raw/wisewong6/wise-ppt/wise-ppt/references/page-routing.md) | `page_kind → page_role → relation_key` |
| 查询骨架 | [references/layouts.md](https://skilld.dev/api/skills-raw/wisewong6/wise-ppt/wise-ppt/references/layouts.md) | 选择完整骨架 |
| 选择主题与主次 | [references/themes.md](https://skilld.dev/api/skills-raw/wisewong6/wise-ppt/wise-ppt/references/themes.md)、[颜色语义](https://skilld.dev/api/skills-raw/wisewong6/wise-ppt/wise-ppt/references/color-semantics.md) | deck 外观与逐页主次 |
| 写 standard JSON | [16:9](https://skilld.dev/api/skills-raw/wisewong6/wise-ppt/wise-ppt/references/deck-spec.md) | 公开槽与版式账本 |
| 检查交付 | [references/checklist.md](https://skilld.dev/api/skills-raw/wisewong6/wise-ppt/wise-ppt/references/checklist.md) | 验证边界 |
| 申请/执行实验 | [references/experimental.md](https://skilld.dev/api/skills-raw/wisewong6/wise-ppt/wise-ppt/references/experimental.md) | 授权与隔离重绘 |

## 1. 整理材料并分页

读取分页合同。提取事实、数字、来源和 must。材料不足时询问是否允许联网补充；已授权不再问。获准后仅用 Agent 宿主自带的网页搜索工具；补充事实按外部来源登记并与原材料区分，否则不编造或另接工具。

署名、配色、字体缺省不暂停：不署名，主题取 `themes/registry.json.default_theme_id`，字体取默认模式；品牌方向冲突时带推荐询问。署名不代填。写 thesis；页数只由用户约束或不可合并的 claim 推导，不用固定值、随机数或示例页数。同等必要的角色或关系拆页。此时不写 spec、不猜骨架。

图片、Logo、旧 PDF/PPT 可用于主题取证，但不复制进成品、不调用生图，也不成为 payload。插画只替换已审核槽。

## 2. 判断页型和关系

读取路由合同。先选 `page_kind` 和一个 `page_role`；关系页再选唯一 `relation_key`。路由来自 claim，不来自形状。

## 3. 查询并选择完整骨架

整副路由写入计划，运行 `layouts plan <绝对路径> --agent-brief`。新聊天加 `--new-session` 并保存 `selection_seed`；后续承接 `deck-plan.json.layout_session.post_usage`。按页序更新 usage；改建议时整副填 `selected_layout_id` 后再运行。多 Agent 不并行定版。少用→久未用→seed 哈希→registry 排序；rank>1 才写 `layout_override`。不适配依次减字、换骨架、拆页，改结构才申请实验。

## 4. 选择整副主题

读取主题与颜色语义文件，固定 deck 级主题和字体模式；主题不改路由、骨架或内容。

沿用旧材料从代表页取证；仅有 Logo 不虚构复杂轴。生成 `wise-ppt-theme@5` 后 resolve、preview，只接管显式语义。换色先查 `themes/core-colors.json`：广义色用 `themes recolor --core`，明确 HEX 用 `--hex`，RGB 只等值转写；不吸附，表外名称无色值就询问。直接使用命令输出的完整 `deck.theme`；纸墨单独选择，橙蓝为 registered，其余为白底 inline。封面、身份、强调和锁定规则均按主题与颜色语义文件执行；不在本文件复制算法。

## 5. 一次写完 spec 和 payload

填完 `deck-spec.json` 公开槽。标题、底部论点不重复。默认开启强调色；逐页从 `emphasis.targets` 选支撑 claim 的对象并写原因，无则不填。不得整副默认不选或强求每页都有，不得新增能力。

## 6. 构建与交付

16:9 命令（`<skill>` 为技能根目录）：

```text
node <skill>/bin/wise-ppt.mjs preflight <deck-spec.json 绝对路径> --all-errors
node <skill>/bin/wise-ppt.mjs build <deck-spec.json 绝对路径> --out <deck 绝对目录>
node <skill>/bin/wise-ppt.mjs validate <deck 绝对目录>
node <skill>/bin/wise-ppt.mjs deliver <deck 绝对目录>
```

写 spec 前的主题命令：

```text
node <skill>/bin/wise-ppt.mjs themes resolve <theme.json 绝对路径>
node <skill>/bin/wise-ppt.mjs themes preview <已有 deck 绝对目录> --theme <theme.json 绝对路径> --out <预览绝对目录>
```

`preflight` 问题须修完；任一步非零都未完成。改 spec 或资产后从头重来；禁改 HTML/PDF 或绕过 validate。

成品输出后复核 claim、阅读顺序、主次、固定组件语义；不匹配则列 `page_id` 及证据，依实验合同核对授权。未批准不改成品；目录见 deck-spec。

## 7. 获批隔离实验

按实验合同和 prepare 简报重绘获批正文；页眉、页码、底部论点与主题锁定。恢复 standard 回原目录。

## 交付回报

说明模式、改动、页数依据、命令结果、build-id、绝对路径、风险和临时产物。standard 报骨架复用理由；experimental 写明“非 standard”、变化页和原成品未变；诊断或规划写“未生成或修改成品”。
