dashi-ppt
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseDashi PPT
Dashi PPT
Dashi PPT 生成静态 HTML 横向翻页 PPT。使用本 skill 时,先把用户的自然语言需求整理成 JSON 计划,再调用本地项目生成器输出 和 。
index.htmlassets/Dashi PPT generates static HTML horizontal-sliding PPTs. When using this skill, first organize the user's natural language requirements into a JSON plan, then call the local project generator to output and .
index.htmlassets/版本
Version
当前版本:
0.4.11每次完成用户请求、准备最终回复前,运行:
bash
node <skill-root>/scripts/check_latest_version.mjs如果脚本有输出,把输出内容附在最终回复末尾提醒用户更新;如果脚本无输出或检查失败,保持静默,不要提版本检查。
Current version:
0.4.11Before completing a user request and preparing the final response, run:
bash
node <skill-root>/scripts/check_latest_version.mjsIf the script outputs content, append the output to the end of the final response to remind the user to update; if there is no output or the check fails, remain silent and do not mention the version check.
Skill 目录
Skill Directory
当前 所在目录就是 Skill 根目录,下文记为 。
SKILL.md<skill-root>内置生成器目录:
<skill-root>/project渲染脚本:
- macOS / Linux:
<skill-root>/scripts/render_goal_deck.sh - Windows PowerShell:
<skill-root>/scripts/render_goal_deck.ps1
版本检查脚本:
<skill-root>/scripts/check_latest_version.mjsThe directory where the current resides is the Skill root directory, referred to as below.
SKILL.md<skill-root>Built-in generator directory:
<skill-root>/projectRender scripts:
- macOS / Linux:
<skill-root>/scripts/render_goal_deck.sh - Windows PowerShell:
<skill-root>/scripts/render_goal_deck.ps1
Version check script:
<skill-root>/scripts/check_latest_version.mjs生成原则
Generation Principles
本 Skill 为每个逻辑页生成 3 个模板方案和 1 个 Agent 定制方案,输出可离线打开的 HTML PPT。
前三个模板方案使用“锁模板填文案”:保留所选页面组件的原始视觉、结构、数量、显隐、强调、配色、图表类型和图片槽位,只替换可见文字内容。除非用户明确要求调整页面属性,不要改任何非文案 props。第四个方案由 Agent 在当前主题视觉语言内按本页内容定制,不属于模板候选。
成果验收是默认流程。每次生成后都要判断最终产物是否达到用户目标;默认检查目标、内容、结构、明显可见问题和交付完整性,不做截图审美精修,不因普通断行反复返工。用户明确要求“视觉精修”“100% 检查”“帮我调到满意”时,再扩展为视觉 QA。
This Skill generates 3 template solutions and 1 Agent-customized solution for each logical page, outputting HTML PPTs that can be opened offline.
The first three template solutions follow the principle of "lock the template and fill in the copy": retain the original visuals, structure, quantity, visibility, emphasis, color scheme, chart type, and image slots of the selected page components, only replacing visible text content. Do not modify any non-copy props unless the user explicitly requests to adjust page properties. The fourth solution is customized by the Agent within the visual language of the current theme based on the page content, and is not a template candidate.
Result acceptance is a default process. After each generation, judge whether the final product meets the user's goal; by default, check the goal, content, structure, obvious visible issues, and delivery completeness, do not perform screenshot aesthetic retouching, and do not rework repeatedly due to ordinary line breaks. Only expand to visual QA when the user explicitly requests "visual retouching", "100% check", or "adjust until I'm satisfied".
使用规则
Usage Rules
- 运行生成器需要 Node.js 20+ 和 npm;首次生成时渲染脚本会在 Skill 内置 目录安装依赖。Windows 用
project/(直接 PowerShell,不经 WSL/bash);macOS / Linux 用render_goal_deck.ps1。render_goal_deck.sh - 风格选择提问:用户可见回复必须嵌入 的 Markdown 图片,先展开绝对路径;这是回复展示用内置风格图,不可写入
<skill-root>/assets/skill/theme-style-grid.png或任何 media 字段;列出当前可选风格和极简“适合/人群”,不能只在内部进度提示中提到风格图。goal.json - 开工前确认两件事:主题风格、是否需要图片/视频。用户未明确表达且非整体委托时,先提问等答复,不得代选;无法提问的环境(脚本/批处理)才自选,并在交付说明中列出所选与理由。
- 委托模式:仅当用户对整体明确委托(“都你来定”“不用问,直接开干”)时,才自选主题、默认 HTML、默认不使用 image-gen,最终说明假设。用户只说内容/文案“随意”“自拟”时,仅自拟内容;风格、页数、媒体等已给的不得擅自改变,未给的按上一条先问。
- 非交互/一次性执行(无法追问)时:未指定风格按内容主题自选已验收主题;无真实素材且不能生图时优先选无媒体页,不调 image-gen;最终说明全部假设。
- Deck 语言跟随用户沟通语言:非中文用户在 顶层加
goal.json;全部文案字段用目标语言撰写,页面自带的默认中文文案(含结尾页“感谢阅读”类装饰字段)一律覆盖,不得残留中文。编辑器界面语言自动跟随打开者的系统语言,右上角可手动切换,无需在生成时处理。"language": "en" - 交付格式:默认 HTML;“生成 PPT”“做 PPT”“做一个 PPT”“制作 ppt”表示 PPT 呈现形态。只有明确 、
PPTX、PowerPoint、可编辑 PPTX、导出 PPTX或“格式/文件类型为 PPT/PPTX”时才交付 PPTX 文件。PPT 格式 - PPTX 文件:仍先生成 HTML 并启动本机预览服务,再调用本机 HTTP 导出服务;最终只给 PPTX 文件路径或下载结果。
- 当前可选风格: 轻拟态风、
theme01炫光紫绿风、theme02深浅代码风、theme03玻璃糖果风、theme04色谱图表风、theme05深色图谱风、theme06冷白调研风、theme07黑金实验风、theme08深蓝杂志风、theme09金色指数风、theme10高能增长风、theme11声波霓虹风。theme12 - 普通自动选择不选 ;只有用户明确指定,或金融/投资指数内容强相关且 inspect 确认可填时才用。
theme10
- 轻拟态风 | 适合: 产品介绍 / 企业汇报 | 人群: 创业团队 / 产品经理
theme01 - 炫光紫绿风 | 适合: 科技发布会 / AI/自动驾驶/机器人主题 | 人群: 科技公司创始人 / 技术负责人
theme02 - 深浅代码风 | 适合: 技术方案 / 开发者大会 | 人群: 工程师 / 技术管理者
theme03 - 玻璃糖果风 | 适合: 年轻化品牌 / 消费产品 | 人群: 品牌团队 / 设计师
theme04 - 色谱图表风 | 适合: 数据报告 / 市场分析 | 人群: 数据分析师 / 咨询顾问
theme05 - 深色图谱风 | 适合: 高密度数据展示 / 战略分析 | 人群: 战略团队 / 投资人
theme06 - 冷白调研风 | 适合: 调研报告 / 白皮书 | 人群: 研究机构 / 咨询团队
theme07 - 黑金实验风 | 适合: 高端发布 / 品牌提案 | 人群: 高端品牌 / 创意总监
theme08 - 深蓝杂志风 | 适合: 品牌故事 / 人物访谈 | 人群: 公关团队 / 媒体编辑
theme09 - 金色指数风 | 适合: 金融数据 / 投资报告 | 人群: 投资机构 / 金融分析师
theme10 - 高能增长风 | 适合: 增长复盘 / 商业计划 | 人群: 创业者 / 增长团队
theme11 - 声波霓虹风 | 适合: 音乐娱乐 / 潮流活动 | 人群: 娱乐品牌 / 活动策划
theme12
- 不使用旧 token、旧主题、旧媒体槽、旧风格分支或旧入场动画控制。
- 先冻结本页 ,再按真实容量传入
slide.content.presentation、--title-chars、--summary-chars、--takeaway-chars、--item-count、--value-item-count、--raw-numeric-item-count、--textual-value-item-count和--nested-depth,例如--priority。标题、items、npm --prefix <skill-root>/project run layout:query -- --theme <themePack> --item-count 4 --value-item-count 4 --textual-value-item-count 4 --priority metrics --limit 12 --seed <randomSeed>:slide-<n>和明确媒体是硬条件;摘要、结论、detail、unit、focus 和 role 只影响排序。每页选择 3 个结构家族不同的 layout,整份 deck 统一分配,不重复同一组三布局。需要媒体槽时加value/displayValue、--needs-media、--planned-images <n>或--provided-images <n>。--image-gen - 字段不清楚、对象/数组/count、图片/媒体:先运行 检查该页 3 个模板方案。scaffold 同时识别数组容器和重复标量槽组,只把完整
npm --prefix <skill-root>/project run inspect:layout -- --compact <layout...>投影到唯一主容器;辅助可见容器可隐藏时设为 0,不能隐藏且没有合法支持内容时该 layout 退出候选。不要让 Agent 手写 30 份items;只有用户显式指定复杂 layout 时才按contentMap补该页映射。写对象、数组、数量或图片 props:运行goal.fill-plan.json,整份 goal 用props:safe。props:safe -- --goal <file> --write - 把 /
layout:query的 JSON 管道给程序解析时,改用inspect:layout/node <skill-root>/project/scripts/layout-query.mjs:node <skill-root>/project/scripts/inspect-layout.mjs会在 stdout 前打印生命周期 banner,污染 JSON。npm run - 长 deck:先写逐页 brief JSON,每页包含 、
role和唯一的priority,再用content。scaffold 按内容容量和字段能力选 3 个模板,并追加可直接渲染的主题化 v4 初稿。npm --prefix <skill-root>/project run goal:scaffold -- --title <title> --goal <goal> --theme <themePack> --pages <n> --content-briefs <briefs.json> --layout-variants 3 --seed <randomSeed> --workflow-run-id <workflowRunId> --chunk-size 5 --out output/<deck-name>/goal.json - 文案长度和数组数量:优先按 、
fillPlan.text[].maxChars、fillPlan.arrays[].visibleCount写;fillPlan.arrays[].nestedArrays/display字段只写短词、短句或数字。metric - Html 字段(如 /
headlineHtml)写文案只用quoteHtml换行加<br>/<b>行内强调,禁止<em>等自由 HTML;主题默认值里的<span>依赖主题 CSS,只是占位,不要照抄。<span class>会拦截自由 HTML。validate:goal-spec - 可见数组项必须写实文案;被 count/显隐控制隐藏的尾项可保留“请输入文本”占位。
- 元素出现动画使用页面组件自带的原生效果。
- 页面切换动画可以在预览控制面板里调整。
- 面向用户交付的 deck 默认不显示风格/主题切换选项;风格切换只保留在内部调试 demo 页面。用户明确要求保留主题切换时,在 goal 顶层写 。
preview: {"themeSwitcher": true} - 不手写自由 HTML slide。新生成 deck 使用 ;每个逻辑页只保存一份
schemaVersion: 2,前三项是content,第四项是{kind:"template", layout, props, contentMap},且 v4 不写{kind:"bespoke", adjustable:false, composition, contentMap}、layout或props。旧 deck 的单 layout 和 3 候选仍可读取。controls - 每套主题的前 5 页 到
themeXX_page001都是封面候选。一个 deck 只能有 1 个逻辑封面页,其 3 个模板方案都从前 5 页选择;正文模板方案从第 6 页以后选择。themeXX_page005 - 同一逻辑页内 3 个 template layout 必须互不重复且优先来自不同结构家族;整稿先使用尚未出现的 layout 和结构指纹,候选确实不足时才复用,相邻页不循环同一组视觉骨架。
- 面向用户交付的 deck 不能只写 后依赖页面默认文案。每一页先在
role写真实内容,模板 props 只保留非内容配置。slide.content - 每个逻辑页先写一份 文案包,包含
slide.content.presentation、title/titleShort、summary/summaryShort和可选takeaway/items;每个 item 使用稳定structure。v1-v3 共享页面意图、核心结论、全部 required facts、关键数字及其单位,只选择长短文案、排序、分组和视觉层级,不分别创作三套故事。简单数组映射使用id/label/value/displayValue/detail/unit/required/priority。{source:"presentation.items",fields:{目标字段:"label"}} - v4 必须独立分析用户目标、受众、本页叙事作用和重点信息后设计;允许从同一事实源重组、聚焦或改写表达,但不新增事实。只使用当前主题 runtime 暴露的字体层级、页框、色带、线条、卡片和图表 recipe,不得另写 raw CSS,也不是前三个模板的小改。
- Codex 环境提供 时,v4 设计前先读取该 Skill,用其设计论点、视觉焦点、节奏和构图方法完成整稿艺术指导;当前主题 runtime 视为 binding design system,最终只落成受约束
baoyu-design,不输出独立 HTML/CSS。未提供该 Skill 时沿用同一艺术指导标准。composition - v4 使用 scaffold 已分配的
composition.designIntent.compositionFamily;页面几何必须明显实现该家族,不能把不同家族都画成标题加卡片墙。整稿同一家族不连续出现,卡片网格最多占正文 v4 的三分之一。hero/split/metric-spotlight/chart-led/timeline/matrix/editorial/comparison/process - v4 使用主题背景语义和 12×8 网格元素;元素类型只用
composition/text/metric/list/quote/media/shape。图表型页面以数据图形为主视觉,时间线/流程页以方向和连接关系为主视觉,split/editorial 页面用非对称层级,不把标签换色当成设计。chart - v4 从 scaffold 的完整主题化 composition 初稿上优化;保留已分配的构图家族和主题 recipe,只重组真正改善表达的页面,不要清空 后重新批量生成同一套卡片。
elements - 3 个模板方案各自的 /
copyKeys文案槽必须由 canonical content 覆盖;唯一主数组或标量槽组消费完整fillPlan.text,辅助内容容器只能合法隐藏或使 layout 退出候选。items与title属于同一标题语义家族。titleShort - 优先只写 /
layout:query暴露的文案字段。字段是对象或数组时按inspect:layout和fillPlan填内部 key。propShapes已展开嵌套路径(如copyKeys、copy.quote),按列出的路径直接填。items[].label - 标
inspect:layout的页正文由组件固定、props 填不进:换一页能填正文的布局,或仅当用户接受其默认正文时使用。数组按contentLocked: true填满可见项;fillPlan.arrays[].visibleCount是装饰位,不要填。decorativeKeys - 不要改页面元数据、组件源码、className、CSS、样式字段或默认视觉结构来完成内容填充。只在 内填写内容和用户明确要求的页面属性。
props - 允许用顶层 覆盖可见文字槽位,但只用于替换文字内容。不要在普通生成中启动浏览器批量抽取全页面文本槽位;只有用户明确要求“彻底清除所有模板默认文案/逐页校对可见文案”时才做运行时槽位抽取。
text - 禁止复用 里已有的旧
output/或旧 HTML。每次请求都新建本次输出目录和本次 JSON 计划。goal.json - 输出目录写在当前会话工作目录,不要写入 。
<skill-root>/project/output - HTML 交付:给用户的预览地址只给 (不给 https 或 .local 变体);本机 HTTP 可导出 HTML/PDF/PPTX,本地 HTML 或
http://127.0.0.1:<port>/不能导出可编辑 PPTX。不要返回file://。在自带浏览器的 Agent APP(如 Codex)里生成时,提醒用户导出 PDF/PPTX 前把该地址在系统浏览器中打开。theme-preview - PPTX 交付:调用 ;最终只给 PPTX 文件路径或下载结果。
/api/export-editable-pptx - 无浏览器会话、脚本直调、或预览导出接口返回 403/5xx 时:改用 (PDF 用
npm run export:pptx -- <deck>/ppt <out.pptx>)直接产出文件,不需要先起浏览器会话。export:pdf - 如果输出正文里出现与用户主题无关的默认文案,例如 AI Capital / 投融资 / SoundWave / 声浪 / Key Metrics / Roadmap / End of Report 等,必须重写 JSON 后重新渲染,不能交付。
- Node.js 20+ and npm are required to run the generator; the render script will install dependencies in the Skill's built-in directory during the first generation. Use
project/for Windows (directly in PowerShell, not via WSL/bash); userender_goal_deck.ps1for macOS / Linux.render_goal_deck.sh - Style selection question: The user-visible response must embed the Markdown image of , first expand the absolute path; this is the built-in style image for response display, and cannot be written into
<skill-root>/assets/skill/theme-style-grid.pngor any media field; list the currently available styles and minimal "suitable scenarios/audiences", and do not only mention the style image in internal progress prompts.goal.json - Confirm two things before starting: theme style, whether images/videos are needed. When the user does not clearly express this and it is not an overall commission, ask for confirmation first and wait for a reply, do not make selections on behalf of the user; only make selections on your own in non-interactive environments (scripts/batch processing), and list the selected options and reasons in the delivery instructions.
- Commission mode: Only when the user explicitly delegates the whole task ("you decide everything", "don't ask, just start") can you select the theme, default to HTML, and default to not using image-gen, and finally explain the assumptions. When the user only says the content/copy is "random" or "feel free to draft", only draft the content; do not change the given style, page count, media, etc. without permission, and follow the previous rule to ask first for unspecified items.
- For non-interactive/one-time execution (cannot follow up): If no style is specified, select an accepted theme based on the content theme; if there is no real material and image generation is not possible, prioritize pages without media slots and do not use image-gen; finally explain all assumptions.
- Deck language follows the user's communication language: For non-Chinese users, add at the top level of
"language": "en"; write all copy fields in the target language, and overwrite all default Chinese copy on the page (including decorative fields like "Thank you for reading" on the ending page), no Chinese content shall remain. The editor interface language automatically follows the system language of the opener, and can be manually switched in the upper right corner, no need to handle it during generation.goal.json - Delivery format: Default is HTML; "Generate PPT", "Make a PPT", "Create a PPT", "Make ppt" mean PPT presentation format. Only deliver PPTX files when the user explicitly specifies ,
PPTX,PowerPoint,Editable PPTX,Export PPTX, or "Format/file type is PPT/PPTX".PPT format - PPTX files: Still generate HTML first and start the local preview service, then call the local HTTP export service; finally only provide the PPTX file path or download result.
- Currently available styles: Neumorphism Style,
theme01Glowing Purple-Green Style,theme02Light/Dark Code Style,theme03Glass Candy Style,theme04Color Spectrum Chart Style,theme05Dark Atlas Style,theme06Cool White Research Style,theme07Black Gold Experimental Style,theme08Deep Blue Magazine Style,theme09Golden Index Style,theme10High-Energy Growth Style,theme11Sound Wave Neon Style.theme12 - Do not select for ordinary automatic selection; only use it when the user explicitly specifies it, or when the content is strongly related to financial/investment indexes and inspect confirms it can be filled.
theme10
- Neumorphism Style | Suitable for: Product introduction / Enterprise reporting | Audience: Startup teams / Product managers
theme01 - Glowing Purple-Green Style | Suitable for: Tech conferences / AI/Autonomous driving/Robot themes | Audience: Tech company founders / Technical leaders
theme02 - Light/Dark Code Style | Suitable for: Technical solutions / Developer conferences | Audience: Engineers / Technical managers
theme03 - Glass Candy Style | Suitable for: Youthful brands / Consumer products | Audience: Brand teams / Designers
theme04 - Color Spectrum Chart Style | Suitable for: Data reports / Market analysis | Audience: Data analysts / Consultants
theme05 - Dark Atlas Style | Suitable for: High-density data display / Strategic analysis | Audience: Strategic teams / Investors
theme06 - Cool White Research Style | Suitable for: Research reports / White papers | Audience: Research institutions / Consulting teams
theme07 - Black Gold Experimental Style | Suitable for: High-end launches / Brand proposals | Audience: High-end brands / Creative directors
theme08 - Deep Blue Magazine Style | Suitable for: Brand stories / Interviews | Audience: PR teams / Media editors
theme09 - Golden Index Style | Suitable for: Financial data / Investment reports | Audience: Investment institutions / Financial analysts
theme10 - High-Energy Growth Style | Suitable for: Growth reviews / Business plans | Audience: Entrepreneurs / Growth teams
theme11 - Sound Wave Neon Style | Suitable for: Music entertainment / Trend events | Audience: Entertainment brands / Event planners
theme12
- Do not use old tokens, old themes, old media slots, old style branches, or old entrance animation controls.
- First freeze the of the page, then pass
slide.content.presentation,--title-chars,--summary-chars,--takeaway-chars,--item-count,--value-item-count,--raw-numeric-item-count,--textual-value-item-count, and--nested-depthaccording to the actual capacity, for example--priority. Title, items,npm --prefix <skill-root>/project run layout:query -- --theme <themePack> --item-count 4 --value-item-count 4 --textual-value-item-count 4 --priority metrics --limit 12 --seed <randomSeed>:slide-<n>, and explicit media are hard conditions; summary, conclusion, detail, unit, focus, and role only affect sorting. Select 3 layouts from different structure families for each page, assign them uniformly for the entire deck, and do not repeat the same set of three layouts. Addvalue/displayValue,--needs-media,--planned-images <n>, or--provided-images <n>when media slots are needed.--image-gen - For unclear fields, object/array/count, images/media: First run to check the 3 template solutions for the page. Scaffold recognizes both array containers and repeated scalar slot groups, and only projects the complete
npm --prefix <skill-root>/project run inspect:layout -- --compact <layout...>to the unique main container; set auxiliary visible containers to 0 when they can be hidden, and the layout exits the candidate when it cannot be hidden and has no valid supporting content. Do not let the Agent write 30 copies ofitems; only fill the page mapping according tocontentMapwhen the user explicitly specifies a complex layout. When writing object, array, count, or image props: Rungoal.fill-plan.json, and useprops:safefor the entire goal.props:safe -- --goal <file> --write - When piping the JSON of /
layout:queryto the program for parsing, useinspect:layout/node <skill-root>/project/scripts/layout-query.mjsinstead:node <skill-root>/project/scripts/inspect-layout.mjswill print a lifecycle banner before stdout, which pollutes the JSON.npm run - For long decks: First write page-by-page brief JSON, each page containing ,
role, and uniquepriority, then usecontent. Scaffold selects 3 templates based on content capacity and field capabilities, and appends a theme-based v4 draft that can be directly rendered.npm --prefix <skill-root>/project run goal:scaffold -- --title <title> --goal <goal> --theme <themePack> --pages <n> --content-briefs <briefs.json> --layout-variants 3 --seed <randomSeed> --workflow-run-id <workflowRunId> --chunk-size 5 --out output/<deck-name>/goal.json - Copy length and array count: Prioritize writing according to ,
fillPlan.text[].maxChars,fillPlan.arrays[].visibleCount; write only short words, short sentences, or numbers infillPlan.arrays[].nestedArrays/displayfields.metric - For Html fields (such as /
headlineHtml), only usequoteHtmlfor line breaks and<br>/<b>for inline emphasis when writing copy; prohibit free HTML like<em>; the<span>in theme default values depends on theme CSS and is only a placeholder, do not copy it.<span class>will block free HTML.validate:goal-spec - Visible array items must contain real copy; the hidden tail items controlled by count/visibility can retain the placeholder "Please enter text".
- Use the native effects of page components for element appearance animations.
- Page switching animations can be adjusted in the preview control panel.
- The deck delivered to users does not display style/theme switching options by default; style switching is only retained in the internal debugging demo page. When the user explicitly requests to keep the theme switcher, write at the top level of the goal.
preview: {"themeSwitcher": true} - Do not write free HTML slides. Newly generated decks use ; each logical page only saves one copy of
schemaVersion: 2, the first three items arecontent, the fourth item is{kind:"template", layout, props, contentMap}, and v4 does not write{kind:"bespoke", adjustable:false, composition, contentMap},layout, orprops. Old decks with single layout and 3 candidates can still be read.controls - The first 5 pages to
themeXX_page001of each theme are cover candidates. A deck can only have 1 logical cover page, and its 3 template solutions are all selected from the first 5 pages; the template solutions for the main body are selected from page 6 onwards.themeXX_page005 - The 3 template layouts within the same logical page must be mutually exclusive and preferably from different structure families; first use layouts and structure fingerprints that have not appeared in the entire draft, and reuse only when candidates are insufficient, do not cycle the same set of visual skeletons on adjacent pages.
- The deck delivered to users cannot only write and rely on the default page copy. Write real content in
rolefor each page first, and only retain non-content configurations in the template props.slide.content - First write a copy package for each logical page, including
slide.content.presentation,title/titleShort,summary/summaryShort, and optionaltakeaway/items; each item uses stablestructure. v1-v3 share page intent, core conclusions, all required facts, key numbers and their units, only select long/short copy, sorting, grouping, and visual hierarchy, do not create three sets of stories separately. Useid/label/value/displayValue/detail/unit/required/priorityfor simple array mapping.{source:"presentation.items",fields:{target field:"label"}} - v4 must be designed after independently analyzing the user's goal, audience, narrative role of the page, and key information; it is allowed to reorganize, focus, or rewrite expressions from the same fact source, but do not add new facts. Only use the font hierarchy, page frames, color bands, lines, cards, and chart recipes exposed by the current theme runtime, do not write raw CSS, and it is not a minor modification of the first three templates.
- When is provided in the Codex environment, read this Skill before designing v4, use its design arguments, visual focus, rhythm, and composition methods to complete the artistic direction of the entire draft; the current theme runtime is regarded as the binding design system, and only the constrained
baoyu-designis finally implemented, no independent HTML/CSS is output. Follow the same artistic direction standards when this Skill is not provided.composition - v4 uses the
composition.designIntent.compositionFamilyassigned by scaffold; the page geometry must clearly implement this family, do not draw different families as title plus card walls. The same family does not appear consecutively in the entire draft, and card grids account for at most one-third of the main body v4.hero/split/metric-spotlight/chart-led/timeline/matrix/editorial/comparison/process - v4 uses theme background semantics and 12×8 grid elements; only use element types
composition/text/metric/list/quote/media/shape. Chart-type pages take data graphics as the main visual, timeline/process pages take direction and connection relationships as the main visual, split/editorial pages use asymmetric hierarchy, do not treat label color change as design.chart - v4 is optimized based on the complete theme-based composition draft of scaffold; retain the assigned composition family and theme recipe, only reorganize pages that truly improve expression, do not clear and then re-generate the same set of cards in batches.
elements - The /
copyKeyscopy slots of the 3 template solutions must be covered by canonical content; the unique main array or scalar slot group consumes the completefillPlan.text, and auxiliary content containers can only be legally hidden or make the layout exit the candidate.itemsandtitlebelong to the same title semantic family.titleShort - Prioritize writing only the copy fields exposed by /
layout:query. When a field is an object or array, fill in the internal keys according toinspect:layoutandfillPlan.propShapeshas expanded nested paths (such ascopyKeys,copy.quote), fill in directly according to the listed paths.items[].label - Pages marked by
contentLocked: truehave fixed main content by components and cannot be filled with props: switch to a layout that can fill the main content, or use it only when the user accepts its default main content. Fill the visible items according toinspect:layout;fillPlan.arrays[].visibleCountare decorative positions, do not fill in.decorativeKeys - Do not modify page metadata, component source code, className, CSS, style fields, or default visual structure to complete content filling. Only fill in content and page properties explicitly requested by the user in .
props - It is allowed to use the top-level to overwrite visible text slots, but only for replacing text content. Do not start the browser to batch extract all page text slots in ordinary generation; only perform runtime slot extraction when the user explicitly requests "completely clear all template default copy/proofread visible copy page by page".
text - Forbid reusing old or old HTML in
goal.json. Create a new output directory and JSON plan for each request.output/ - Write the output directory in the current session working directory, do not write to .
<skill-root>/project/output - HTML delivery: Only provide the preview address to the user (do not provide https or .local variants); the local HTTP service can export HTML/PDF/PPTX, while local HTML or
http://127.0.0.1:<port>/cannot export editable PPTX. Do not returnfile://. When generating in an Agent APP with a built-in browser (such as Codex), remind the user to open the address in the system browser before exporting PDF/PPTX.theme-preview - PPTX delivery: Call ; finally only provide the PPTX file path or download result.
/api/export-editable-pptx - When there is no browser session, direct script call, or the preview export interface returns 403/5xx: Use (use
npm run export:pptx -- <deck>/ppt <out.pptx>for PDF) to directly generate the file, no need to start a browser session first.export:pdf - If default copy unrelated to the user's theme appears in the output content, such as AI Capital / Investment and Financing / SoundWave / Key Metrics / Roadmap / End of Report, etc., rewrite the JSON and re-render, do not deliver it.
媒体工作流
Media Workflow
- 媒体字段只写 的槽,按该槽
mediaSlots[].canPresetMedia: true/presetProp写路径;fieldPath只引用 deck 内相对媒体路径,不可引用临时目录、外部绝对路径、goal.json或远程 URL。file:// - 视觉素材任务先判断意图:无图但需要视觉素材时先问是否预留图片槽;无真实素材且不能生图时优先选无媒体页。用户提供素材库/素材目录路径即视为有图意图:至少选 2 个带媒体槽页面并填入合适素材。素材路径不可访问时改选无媒体页并在交付说明中告知,不在页面内留占位提示文字。用户同意用 /
--planned-images <n>,用户给素材用--needs-media/--provided-images <n>,用户明确要求原创视觉图/生图时,Codex 环境用 image-gen 生成图片并加--provided-media;未明确生图时先询问用户。--image-gen/plannedImages/needsVisual只表示选页意图,除非用户明确选择预留空槽,交付前必须写入真实媒体路径,不能交付空媒体槽或伪造路径。imageGen - 用户本地图片/视频先运行 ,使用返回的
npm --prefix <skill-root>/project run media:stage -- <deck-output-dir-or-ppt-dir> <media-file...>路径;AVIF 会转成浏览器可用格式。image-gen 输出也先落到本次 deck 目录。relative - 渲染后核对 goal 引用的每个图片/视频:存在且 HTML 包含文件名;缺失时只补最终
ppt/<relative>并重跑校验。图片/视频素材每个最多使用一次;同一逻辑页的 4 个方案共用同一份素材,算 1 次逻辑使用,不同逻辑页不要重复填充同一素材。素材用完后,媒体插槽留空或改选无媒体插槽页面。ppt/assets - 需要 image-gen 生成 2 张以上独立图片时,用多个 subagent 并行生成,不要串行逐张等待;每张图独立生成,不要用一张拼图/素材板再拆分。subagent 只用于生图,不用于选题、文案、选页或校验。
- Only write slots with in media fields, write paths according to the slot's
mediaSlots[].canPresetMedia: true/presetProp;fieldPathonly references relative media paths within the deck, cannot reference temporary directories, external absolute paths,goal.json, or remote URLs.file:// - First judge the intention for visual material tasks: When no images are available but visual materials are needed, first ask whether to reserve image slots; when there is no real material and image generation is not possible, prioritize pages without media slots. When the user provides a material library/material directory path, it is regarded as having the intention to use images: select at least 2 pages with media slots and fill in appropriate materials. If the material path is inaccessible, switch to pages without media slots and inform the user in the delivery instructions, do not leave placeholder prompt text in the page. When the user agrees to use /
--planned-images <n>, use--needs-media/--provided-images <n>when the user provides materials, use image-gen to generate images and add--provided-mediawhen the user explicitly requests original visual images/image generation; ask the user first when image generation is not explicitly requested.--image-gen/plannedImages/needsVisualonly indicate page selection intention, unless the user explicitly chooses to reserve empty slots, write real media paths before delivery, do not deliver empty media slots or fake paths.imageGen - For user's local images/videos, first run , use the returned
npm --prefix <skill-root>/project run media:stage -- <deck-output-dir-or-ppt-dir> <media-file...>path; AVIF will be converted to a browser-compatible format. Image-gen output also falls into the current deck directory first.relative - After rendering, check each image/video referenced in the goal: exists and the HTML contains the file name; if missing, only supplement the final
ppt/<relative>and re-run the verification. Each image/video material can be used at most once; the 4 solutions of the same logical page share the same material, which counts as 1 logical use, do not fill the same material in different logical pages. After the materials are used up, leave the media slots empty or switch to pages without media slots.ppt/assets - When image-gen is needed to generate more than 2 independent images, use multiple subagents to generate in parallel, do not wait serially one by one; generate each image independently, do not use a single puzzle/material board and then split it. Subagents are only used for image generation, not for topic selection, copy writing, page selection, or verification.
工作流
Workflow
- 提炼用户目标: 、
title、goal、audience、页数、内容重点和最终产物格式;同时形成验收清单,记录用户显式要求、已确认选项和必要假设。用户未指定页数时默认 10 页左右,不少于 8 页。owner - 确认 。用户未指定时先询问风格;用户选定后生成
themePack和本次任务唯一的randomSeed,例如workflowRunId,保证随机选页可复现;同一任务重试复用该 run ID,新任务生成新 ID。<主题>-<日期>-<3位随机词> - 判断图片意图:无图但需要视觉素材时先问是否预留图片槽;用户给本地素材先 ;明确生图时用 image-gen。
media:stage - 一次写完整份 deck 的逐页 brief 和 文案包;前三个模板共享 required facts 和关键数字,标题/摘要提供 full/short 两档。把硬容量和软偏好一次传给
content.presentation,不逐页试错换主题。goal:scaffold - scaffold 对整份 deck 一次完成候选查询、唯一主容器投影、辅助容器处理、三布局组合分配和 v4 主题化初稿;3 个模板直接物化同一文案包,不逐页手工补 。Agent 使用
contentMap先定整稿设计论点、节奏和每页视觉焦点,再在既有baoyu-design与主题 recipe 上批量绘制 v4,禁止清空初稿后逐页临时都退化成卡片网格。compositionFamily - 把 schema v2 JSON 写入本次工作目录的 ;每页写
output/<deck-name>/goal.json和恰好 3 template + 1 bespoke。渲染前运行selectedVariant: "v1"和 goal spec 校验。npm --prefix <skill-root>/project run props:safe -- --goal output/<deck-name>/goal.json --write后核对 3 个模板方案的--write;不认可替换就改回并换页。layoutChanges - 图表页填入自己的数据后,页内 insight/读图/结论类文案字段必须据新数据一并改写,不保留默认结论。
- 运行渲染脚本输出 ;脚本会使用 Skill 内置生成器,不要切回外部项目目录。
output/<deck-name>/ppt/index.html - 渲染后核对素材路径,缺失时补最终 。
ppt/assets - 确认脚本完成 、
validate:swiss和validate:goal-copy校验;后者在同一浏览器会话批量检查并截图每页 v4。一次用户生成任务只创建一个validate:four-variant-quality,所有 scaffold attempts 和后续阶段复用它。workflowRunId - 渲染脚本会启动本地 HTTP 预览服务并输出 ;需要指定端口时设置
http://127.0.0.1:<port>/后再运行脚本(端口用 5200-5999 段,4178/4300/4400 为用户保留端口不可用)。只能用该预览服务,不得用DASHI_PPT_PREVIEW_PORT、python -m http.server等静态服务器替代:静态服务器没有导出和自动保存接口。预览服务下编辑自动保存到npx serve本体;index.html打开的本地文件不自动保存,交付前需导出。file:// - 对最终产物执行成果验收:模板方案只做一次批量内容映射、尺寸和运行时检查;浏览器视觉验收一次查看全部 v4 截图。
- v4 待修正时只修改失败页并重新渲染一次;不重新选模板,不重写其余页面,不重复整稿视觉检查。
- 运行 做静默版本检查。
node <skill-root>/scripts/check_latest_version.mjs - 验收通过后按交付格式回复:HTML 只给 ;PPTX 调用
http://127.0.0.1:<port>/后只给文件路径或下载结果。/api/export-editable-pptx
- Refine user goals: ,
title,goal,audience, page count, content focus, and final product format; at the same time form an acceptance checklist, recording the user's explicit requirements, confirmed options, and necessary assumptions. When the user does not specify the page count, default to about 10 pages, no less than 8 pages.owner - Confirm . When the user does not specify it, first ask about the style; after the user selects it, generate a
themePackand a uniquerandomSeedfor this task, such asworkflowRunId, to ensure that random page selection is reproducible; reuse this run ID for retries of the same task, generate a new ID for new tasks.<theme>-<date>-<3 random words> - Judge image intention: When no images are available but visual materials are needed, first ask whether to reserve image slots; when the user provides local materials, first run ; use image-gen when image generation is explicitly requested.
media:stage - Write the page-by-page brief and copy package for the entire deck at one time; the first three templates share required facts and key numbers, and provide full/short versions for title/summary. Pass the hard capacity and soft preferences to
content.presentationat one time, do not try and switch themes page by page.goal:scaffold - Scaffold completes candidate query, unique main container projection, auxiliary container processing, three-layout combination allocation, and v4 theme-based draft for the entire deck at one time; the 3 templates directly materialize the same copy package, do not manually fill page by page. The Agent uses
contentMapto first determine the design arguments, rhythm, and visual focus of each page for the entire draft, then batch draws v4 based on the existingbaoyu-designand theme recipe, prohibits clearing the draft and then degenerating into card grids page by page temporarily.compositionFamily - Write the schema v2 JSON into in the current working directory; write
output/<deck-name>/goal.jsonand exactly 3 template + 1 bespoke for each page. Before rendering, runselectedVariant: "v1"and goal spec verification. Afternpm --prefix <skill-root>/project run props:safe -- --goal output/<deck-name>/goal.json --write, check the--writeof the 3 template solutions; if you do not approve the replacement, change it back and switch pages.layoutChanges - After filling in the data for chart pages, the insight/chart reading/conclusion copy fields within the page must be rewritten according to the new data, do not retain the default conclusion.
- Run the render script to output ; the script will use the Skill's built-in generator, do not switch back to the external project directory.
output/<deck-name>/ppt/index.html - After rendering, check the material paths, supplement the final if missing.
ppt/assets - Confirm that the script has completed ,
validate:swiss, andvalidate:goal-copyverification; the latter checks and screenshots each page's v4 in batches in the same browser session. Only onevalidate:four-variant-qualityis created for one user generation task, and all scaffold attempts and subsequent stages reuse it.workflowRunId - The render script will start a local HTTP preview service and output ; to specify a port, set
http://127.0.0.1:<port>/before running the script (use ports in the 5200-5999 range, ports 4178/4300/4400 are reserved for users and cannot be used). Only use this preview service, do not replace it with static servers likeDASHI_PPT_PREVIEW_PORTorpython -m http.server: static servers do not have export and auto-save interfaces. Editing under the preview service is automatically saved to thenpx serveitself; local files opened viaindex.htmlare not automatically saved, need to be exported before delivery.file:// - Perform result acceptance on the final product: Only perform one batch of content mapping, size, and runtime checks for template solutions; perform visual acceptance for v4 by viewing all screenshots at once.
- When v4 needs correction, only modify the failed pages and re-render once; do not re-select templates, rewrite other pages, or repeat the visual check of the entire draft.
- Run for silent version check.
node <skill-root>/scripts/check_latest_version.mjs - After passing the acceptance, reply according to the delivery format: Only provide for HTML; after calling
http://127.0.0.1:<port>/for PPTX, only provide the file path or download result./api/export-editable-pptx
成果验收与返工
Result Acceptance and Rework
机器校验通过只是技术基线,不等于成果达标。最终验收以用户原始需求、已确认选项、明示假设和最终渲染产物为准:
- 目标一致性:Deck 回答用户的核心问题,重点、结论和语气适合目标受众。
- 内容覆盖:指定的主题、必含要点、页数、风格、语言、媒体和产物格式都已落实,无跑题、缺项或无关模板文案。
- 逐页检查:每页都服务于整体目标;标题、正文、数据、图表和 insight 相互一致,没有重复、断层、空白页或明显不匹配的 layout。
- 方案检查:v1-v3 共享页面意图、required facts 和关键数字,整稿不循环同一组三布局;v4 基于同一事实源按用户目标重新组织表达,并在几何上实现已分配的 compositionFamily。模板完成运行时检查,bespoke 完成视觉检查。
- 叙事完整性:开场、论证/展开和结论/行动顺序清晰,页与页之间有逻辑承接。
- 交付完整性:最终文件存在且能打开,页数和格式正确,素材可用,首尾页非空白。
有浏览器能力时,最终一轮批量打开 v4,检查内容可见、媒体正常,无明显溢出、遮挡或裁切;模板不做截图审美复查。
验收状态只有“通过”“待修正”“阻塞”。v4 不合格时只修正对应 composition,必要时更换 layout,然后重新渲染并复验这些页面一次;仍不通过则标记“阻塞”并说明未达标项。
示例命令(macOS / Linux):
bash
<skill-root>/scripts/render_goal_deck.sh \
output/client-review/goal.json \
output/client-review/ppt/index.htmlWindows PowerShell:
powershell
& "<skill-root>/scripts/render_goal_deck.ps1" `
"output/client-review/goal.json" `
"output/client-review/ppt/index.html"Machine verification passing is only a technical baseline, not equivalent to passing the result. The final acceptance is based on the user's original requirements, confirmed options, explicit assumptions, and final rendered product:
- Goal consistency: The Deck answers the user's core question, and the focus, conclusion, and tone are suitable for the target audience.
- Content coverage: The specified theme, mandatory points, page count, style, language, media, and product format are all implemented, no off-topic, missing items, or unrelated template copy.
- Page-by-page check: Each page serves the overall goal; title, main body, data, charts, and insight are consistent with each other, no repetition, disconnection, blank pages, or obviously mismatched layout.
- Solution check: v1-v3 share page intent, required facts, and key numbers, and the entire draft does not cycle the same set of three layouts; v4 reorganizes the expression based on the same fact source according to the user's goal, and geometrically implements the assigned compositionFamily. Templates complete runtime checks, bespoke completes visual checks.
- Narrative integrity: The order of opening, argumentation/expansion, and conclusion/action is clear, and there is logical connection between pages.
- Delivery completeness: The final file exists and can be opened, the page count and format are correct, materials are usable, and the first and last pages are not blank.
When browser capability is available, open all v4 pages in batches in the final round, check that content is visible, media works normally, no obvious overflow, occlusion, or cropping; do not perform screenshot aesthetic review for templates.
The acceptance status is only "Passed", "To be corrected", or "Blocked". When v4 is unqualified, only modify the corresponding composition, replace the layout if necessary, then re-render and re-check these pages once; if still not passed, mark it as "Blocked" and explain the unqualified items.
Example command (macOS / Linux):
bash
<skill-root>/scripts/render_goal_deck.sh \
output/client-review/goal.json \
output/client-review/ppt/index.htmlWindows PowerShell:
powershell
& "<skill-root>/scripts/render_goal_deck.ps1" `
"output/client-review/goal.json" `
"output/client-review/ppt/index.html"JSON 结构
JSON Structure
json
{
"schemaVersion": 2,
"title": "美国 AI 融资调研",
"goal": "面向投资团队汇报 2024-2026 年美国 AI 大额融资结构、资本流向和后续判断",
"audience": "投资团队 / 产业研究团队",
"owner": "研究团队",
"randomSeed": "ai-funding-20260609-a7k",
"workflowRunId": "20260609T120000000-a7k9m3x2",
"pageCount": 1,
"themePack": "theme01",
"variantOutputMode": "comparison",
"slides": [
{
"id": "s1",
"content": {
"presentation": {
"title": "美国 AI 融资调研",
"summary": "2024-2026 年大额融资结构、资本流向与后续判断",
"takeaway": "为投资决策建立统一研究范围",
"items": []
},
"media": [],
"meta": {
"brand": "研究团队",
"pageLabel": "2026",
"panelTitle": "融资调研"
}
},
"selectedVariant": "v1",
"variants": [
{"id": "v1", "kind": "template", "layout": "theme01_page001", "props": {}, "contentMap": {"kicker": "meta.panelTitle", "titleTop": "presentation.title", "titleBottom": "presentation.summary", "lead": "presentation.takeaway"}},
{"id": "v2", "kind": "template", "layout": "theme01_page002", "props": {}, "contentMap": {"enKicker": "meta.panelTitle", "titleTop": "presentation.title", "titleBottom": "presentation.summary", "subtitle": "presentation.takeaway"}},
{"id": "v3", "kind": "template", "layout": "theme01_page003", "props": {}, "contentMap": {"kicker": "meta.panelTitle", "titleTop": "presentation.title", "titleBottom": "presentation.summary", "bigNumber": "meta.pageLabel"}},
{
"id": "v4",
"kind": "bespoke",
"adjustable": false,
"composition": {
"designIntent": {
"objective": "快速建立调研范围",
"audience": "投资团队",
"narrativeRole": "封面定调",
"emphasis": "研究对象与决策价值",
"rationale": "用单一标题中心和三项范围提示缩短理解路径",
"compositionFamily": "hero"
},
"background": "dark",
"elements": [
{"id": "title", "type": "text", "grid": {"column": 1, "row": 1, "width": 10, "height": 2}, "role": "title", "text": ""},
{"id": "summary", "type": "text", "grid": {"column": 1, "row": 4, "width": 7, "height": 2}, "role": "body", "text": ""}
]
},
"contentMap": {"elements[0].text": "presentation.title", "elements[1].text": "presentation.summary"}
}
]
}
]
}如果 为空, 只适合临时草稿预览。新生成 deck 面向用户交付前必须落成 schema v2 的 3 template + 1 bespoke;旧单版式和旧 3 候选 goal 仍可读取。
slidespageCountjson
{
"schemaVersion": 2,
"title": "US AI Funding Research",
"goal": "Report to the investment team on the structure of large AI funding in the US from 2024-2026, capital flow, and subsequent judgments",
"audience": "Investment team / Industry research team",
"owner": "Research team",
"randomSeed": "ai-funding-20260609-a7k",
"workflowRunId": "20260609T120000000-a7k9m3x2",
"pageCount": 1,
"themePack": "theme01",
"variantOutputMode": "comparison",
"slides": [
{
"id": "s1",
"content": {
"presentation": {
"title": "US AI Funding Research",
"summary": "Structure of Large Funding, Capital Flow and Subsequent Judgments (2024-2026)",
"takeaway": "Establish a unified research scope for investment decisions",
"items": []
},
"media": [],
"meta": {
"brand": "Research team",
"pageLabel": "2026",
"panelTitle": "Funding Research"
}
},
"selectedVariant": "v1",
"variants": [
{"id": "v1", "kind": "template", "layout": "theme01_page001", "props": {}, "contentMap": {"kicker": "meta.panelTitle", "titleTop": "presentation.title", "titleBottom": "presentation.summary", "lead": "presentation.takeaway"}},
{"id": "v2", "kind": "template", "layout": "theme01_page002", "props": {}, "contentMap": {"enKicker": "meta.panelTitle", "titleTop": "presentation.title", "titleBottom": "presentation.summary", "subtitle": "presentation.takeaway"}},
{"id": "v3", "kind": "template", "layout": "theme01_page003", "props": {}, "contentMap": {"kicker": "meta.panelTitle", "titleTop": "presentation.title", "titleBottom": "presentation.summary", "bigNumber": "meta.pageLabel"}},
{
"id": "v4",
"kind": "bespoke",
"adjustable": false,
"composition": {
"designIntent": {
"objective": "Quickly establish research scope",
"audience": "Investment team",
"narrativeRole": "Cover page positioning",
"emphasis": "Research object and decision value",
"rationale": "Shorten the understanding path with a single central title and three scope prompts",
"compositionFamily": "hero"
},
"background": "dark",
"elements": [
{"id": "title", "type": "text", "grid": {"column": 1, "row": 1, "width": 10, "height": 2}, "role": "title", "text": ""},
{"id": "summary", "type": "text", "grid": {"column": 1, "row": 4, "width": 7, "height": 2}, "role": "body", "text": ""}
]
},
"contentMap": {"elements[0].text": "presentation.title", "elements[1].text": "presentation.summary"}
}
]
}
]
}If is empty, is only suitable for temporary draft preview. Newly generated decks must be implemented as schema v2 with 3 template + 1 bespoke before delivery to users; old goal files with single layout and old 3 candidates can still be read.
slidespageCount页面角色
Page Roles
rolelayoutreferences/layout-roles.mdlayout:querycoverimagemediamediaSlotsambient可以直接指定页面:
json
{"layout": "theme01_page030", "props": {"title": "典型案例"}}rolelayoutreferences/layout-roles.mdlayout:querycoverimagemediamediaSlotsambientYou can directly specify a page:
json
{"layout": "theme01_page030", "props": {"title": "Typical Cases"}}交付能力
Delivery Capabilities
编辑器和左侧目录始终只显示 N 个逻辑页,同页候选切换不改变逻辑页码。右侧面板可切换或标记 4 个方案;前三个模板方案可调 props,v4 为固定的 Agent 定制方案。仅在 的导出阶段派生 4N 页(PDF/PPTX 和用户明确要求的比较稿使用此模式); 导出 N 页。面向用户交付的页面底部不显示页码标识、翻页引导、圆点导航或索引提示。
variantOutputMode:"comparison""selected-only"The editor and left directory always only display N logical pages, switching candidates on the same page does not change the logical page number. The right panel can switch or mark 4 solutions; the first three template solutions can adjust props, v4 is a fixed Agent-customized solution. Only derive 4N pages during the export phase when (used for PDF/PPTX and comparison drafts explicitly requested by users); export N pages when . The bottom of pages delivered to users does not display page number identifiers, page-turning guides, dot navigation, or index prompts.
variantOutputMode:"comparison""selected-only"页面属性契约
Page Attribute Contract
普通生成不要读 。先用 输出的候选摘要。只有需要更细契约时,再用 看页面契约:
layout-manifest.jsonlayout:querynpm --prefix <skill-root>/project run inspect:layout -- --compact <layout...>- : 可安全改写的文案/数据字段。
copyKeys - : 文案长度预算;
copyBudgets/display超长会被 goal spec 拦截。metric - :
propShapes/ 数组字段的内部形状;写copyKeys、copy、cells、items等对象字段时只使用这里列出的 key。rows - : 该字段为结构枚举,只能从列出的值中选,不是自由文案。
fillPlan.arrays[].itemFields[].enum - : 图片/视频写入字段、count key、默认数量和最大数量。
mediaSlots - : 数量参数与数组字段的绑定。
countBindings - 里数值字段看
fillPlan填数:numericBounds是提示、真实数据可超出,enforced:false必须遵守,enforced:true填 0-1 比例;定长嵌套数组看semantics:'normalized'/fixedLength按下标填,不试错。fixedLengths - : 右侧面板可操作字段,不是普通内容填充清单;仅用户明确要求调整页面属性时使用。默认只填
controlKeys、可见数组和真实媒体槽。copyKeys
Do not read for ordinary generation. First use the candidate summary output by . Only use to view the page contract when more detailed contracts are needed:
layout-manifest.jsonlayout:querynpm --prefix <skill-root>/project run inspect:layout -- --compact <layout...>- : Copy/data fields that can be safely rewritten.
copyKeys - : Copy length budget;
copyBudgets/displayfields that are too long will be intercepted by goal spec.metric - : Internal shapes of
propShapes/ array fields; only use the keys listed here when writing object fields such ascopyKeys,copy,cells,items.rows - : This field is a structural enumeration, can only be selected from the listed values, not free copy.
fillPlan.arrays[].itemFields[].enum - : Fields for writing images/videos, count key, default quantity, and maximum quantity.
mediaSlots - : Binding between quantity parameters and array fields.
countBindings - For numeric fields in , fill in numbers according to
fillPlan:numericBoundsis a hint, real data can exceed it,enforced:falsemust be followed,enforced:truefill in 0-1 ratio; for fixed-length nested arrays, fill in according to the index based onsemantics:'normalized'/fixedLength, do not try and error.fixedLengths - : Fields operable in the right panel, not a normal content filling list; only use them when the user explicitly requests to adjust page properties. By default, only fill in
controlKeys, visible arrays, and real media slots.copyKeys
校验
Validation
- 渲染前必须运行 。
validate:goal-spec - 输出后必须运行 。
validate:swiss - 输出后必须运行 。
validate:goal-copy - 改动展示 demo 后运行 。
npm run showcase:update
- Must run before rendering.
validate:goal-spec - Must run after output.
validate:swiss - Must run after output.
validate:goal-copy - Run after modifying the demo display.
npm run showcase:update