zcode-app-cli 3.8.1-15 → 3.9.1-16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (149) hide show
  1. package/bin/zcode.js +92 -47
  2. package/package.json +2 -2
  3. package/vendor/extraction.json +131 -5
  4. package/vendor/node_modules/@zcode/tui/dist/index.js +35 -4
  5. package/vendor/packages/browser-use-plugin/.zcode-plugin/plugin.json +1 -1
  6. package/vendor/packages/browser-use-plugin/dist/mcp/server.js +12880 -10408
  7. package/vendor/packages/browser-use-plugin/package.json +1 -1
  8. package/vendor/packages/document-skills-plugin/.mcp.json +13 -0
  9. package/vendor/packages/document-skills-plugin/.zcode-plugin/plugin.json +19 -6
  10. package/vendor/packages/document-skills-plugin/package.json +3 -3
  11. package/vendor/packages/document-skills-plugin/skills/docx/SKILL.md +6 -2
  12. package/vendor/packages/document-skills-plugin/skills/docx/env_setup/env_check.sh +0 -0
  13. package/vendor/packages/document-skills-plugin/skills/docx/env_setup/setup_mac_linux.sh +0 -0
  14. package/vendor/packages/document-skills-plugin/skills/docx/setup.sh +0 -0
  15. package/vendor/packages/document-skills-plugin/skills/pdf/SKILL.md +39 -20
  16. package/vendor/packages/document-skills-plugin/skills/pdf/briefs/academic.md +39 -47
  17. package/vendor/packages/document-skills-plugin/skills/pdf/briefs/creative.md +11 -3
  18. package/vendor/packages/document-skills-plugin/skills/pdf/briefs/poster.md +3 -0
  19. package/vendor/packages/document-skills-plugin/skills/pdf/briefs/process.md +3 -0
  20. package/vendor/packages/document-skills-plugin/skills/pdf/briefs/report.md +41 -62
  21. package/vendor/packages/document-skills-plugin/skills/pdf/env_setup/env_check.sh +23 -15
  22. package/vendor/packages/document-skills-plugin/skills/pdf/env_setup/setup.md +37 -19
  23. package/vendor/packages/document-skills-plugin/skills/pdf/env_setup/setup_mac_linux.sh +0 -0
  24. package/vendor/packages/document-skills-plugin/skills/pdf/env_setup/setup_windows.ps1 +17 -19
  25. package/vendor/packages/document-skills-plugin/skills/pdf/scripts/cover_render.py +487 -0
  26. package/vendor/packages/document-skills-plugin/skills/pdf/scripts/html2poster.js +43 -11
  27. package/vendor/packages/document-skills-plugin/skills/pdf/scripts/pdf.py +145 -50
  28. package/vendor/packages/document-skills-plugin/skills/pdf/scripts/setup.sh +23 -21
  29. package/vendor/packages/document-skills-plugin/skills/pdf/typesetting/cover-backgrounds.md +1 -1
  30. package/vendor/packages/document-skills-plugin/skills/pdf/typesetting/cover.md +139 -1347
  31. package/vendor/packages/document-skills-plugin/skills/pptx/LICENSE.txt +13 -0
  32. package/vendor/packages/document-skills-plugin/skills/pptx/SKILL.md +146 -179
  33. package/vendor/packages/document-skills-plugin/skills/xlsx/SKILL.md +6 -2
  34. package/vendor/packages/document-skills-plugin/skills/xlsx/env_setup/env_check.sh +0 -0
  35. package/vendor/packages/document-skills-plugin/skills/xlsx/env_setup/setup_mac_linux.sh +0 -0
  36. package/vendor/packages/document-skills-plugin/skills/xlsx/setup.sh +0 -0
  37. package/vendor/packages/zcode-cua-plugin/.zcode-plugin/plugin.json +19 -0
  38. package/vendor/packages/zcode-cua-plugin/dist/mcp/server.js +68498 -0
  39. package/vendor/packages/zcode-cua-plugin/node_modules/@img/colour/color.cjs +1596 -0
  40. package/vendor/packages/zcode-cua-plugin/node_modules/@img/colour/index.cjs +1 -0
  41. package/vendor/packages/zcode-cua-plugin/node_modules/@img/colour/package.json +58 -0
  42. package/vendor/packages/zcode-cua-plugin/node_modules/@img/sharp-libvips-linux-x64/lib/glib-2.0/include/glibconfig.h +221 -0
  43. package/vendor/packages/zcode-cua-plugin/node_modules/@img/sharp-libvips-linux-x64/lib/index.js +1 -0
  44. package/vendor/packages/zcode-cua-plugin/node_modules/@img/sharp-libvips-linux-x64/lib/libvips-cpp.so.8.17.3 +0 -0
  45. package/vendor/packages/zcode-cua-plugin/node_modules/@img/sharp-libvips-linux-x64/package.json +42 -0
  46. package/vendor/packages/zcode-cua-plugin/node_modules/@img/sharp-libvips-linux-x64/versions.json +30 -0
  47. package/vendor/packages/zcode-cua-plugin/node_modules/@img/sharp-linux-x64/LICENSE +191 -0
  48. package/vendor/packages/zcode-cua-plugin/node_modules/@img/sharp-linux-x64/lib/sharp-linux-x64.node +0 -0
  49. package/vendor/packages/zcode-cua-plugin/node_modules/@img/sharp-linux-x64/package.json +46 -0
  50. package/vendor/packages/zcode-cua-plugin/node_modules/detect-libc/LICENSE +201 -0
  51. package/vendor/packages/zcode-cua-plugin/node_modules/detect-libc/lib/detect-libc.js +313 -0
  52. package/vendor/packages/zcode-cua-plugin/node_modules/detect-libc/lib/elf.js +39 -0
  53. package/vendor/packages/zcode-cua-plugin/node_modules/detect-libc/lib/filesystem.js +51 -0
  54. package/vendor/packages/zcode-cua-plugin/node_modules/detect-libc/lib/process.js +24 -0
  55. package/vendor/packages/zcode-cua-plugin/node_modules/detect-libc/package.json +44 -0
  56. package/vendor/packages/zcode-cua-plugin/node_modules/semver/LICENSE +15 -0
  57. package/vendor/packages/zcode-cua-plugin/node_modules/semver/bin/semver.js +191 -0
  58. package/vendor/packages/zcode-cua-plugin/node_modules/semver/classes/comparator.js +143 -0
  59. package/vendor/packages/zcode-cua-plugin/node_modules/semver/classes/index.js +7 -0
  60. package/vendor/packages/zcode-cua-plugin/node_modules/semver/classes/range.js +557 -0
  61. package/vendor/packages/zcode-cua-plugin/node_modules/semver/classes/semver.js +333 -0
  62. package/vendor/packages/zcode-cua-plugin/node_modules/semver/functions/clean.js +8 -0
  63. package/vendor/packages/zcode-cua-plugin/node_modules/semver/functions/cmp.js +54 -0
  64. package/vendor/packages/zcode-cua-plugin/node_modules/semver/functions/coerce.js +62 -0
  65. package/vendor/packages/zcode-cua-plugin/node_modules/semver/functions/compare-build.js +9 -0
  66. package/vendor/packages/zcode-cua-plugin/node_modules/semver/functions/compare-loose.js +5 -0
  67. package/vendor/packages/zcode-cua-plugin/node_modules/semver/functions/compare.js +7 -0
  68. package/vendor/packages/zcode-cua-plugin/node_modules/semver/functions/diff.js +60 -0
  69. package/vendor/packages/zcode-cua-plugin/node_modules/semver/functions/eq.js +5 -0
  70. package/vendor/packages/zcode-cua-plugin/node_modules/semver/functions/gt.js +5 -0
  71. package/vendor/packages/zcode-cua-plugin/node_modules/semver/functions/gte.js +5 -0
  72. package/vendor/packages/zcode-cua-plugin/node_modules/semver/functions/inc.js +21 -0
  73. package/vendor/packages/zcode-cua-plugin/node_modules/semver/functions/lt.js +5 -0
  74. package/vendor/packages/zcode-cua-plugin/node_modules/semver/functions/lte.js +5 -0
  75. package/vendor/packages/zcode-cua-plugin/node_modules/semver/functions/major.js +5 -0
  76. package/vendor/packages/zcode-cua-plugin/node_modules/semver/functions/minor.js +5 -0
  77. package/vendor/packages/zcode-cua-plugin/node_modules/semver/functions/neq.js +5 -0
  78. package/vendor/packages/zcode-cua-plugin/node_modules/semver/functions/parse.js +18 -0
  79. package/vendor/packages/zcode-cua-plugin/node_modules/semver/functions/patch.js +5 -0
  80. package/vendor/packages/zcode-cua-plugin/node_modules/semver/functions/prerelease.js +8 -0
  81. package/vendor/packages/zcode-cua-plugin/node_modules/semver/functions/rcompare.js +5 -0
  82. package/vendor/packages/zcode-cua-plugin/node_modules/semver/functions/rsort.js +5 -0
  83. package/vendor/packages/zcode-cua-plugin/node_modules/semver/functions/satisfies.js +12 -0
  84. package/vendor/packages/zcode-cua-plugin/node_modules/semver/functions/sort.js +5 -0
  85. package/vendor/packages/zcode-cua-plugin/node_modules/semver/functions/valid.js +8 -0
  86. package/vendor/packages/zcode-cua-plugin/node_modules/semver/index.js +91 -0
  87. package/vendor/packages/zcode-cua-plugin/node_modules/semver/internal/constants.js +37 -0
  88. package/vendor/packages/zcode-cua-plugin/node_modules/semver/internal/debug.js +11 -0
  89. package/vendor/packages/zcode-cua-plugin/node_modules/semver/internal/identifiers.js +29 -0
  90. package/vendor/packages/zcode-cua-plugin/node_modules/semver/internal/lrucache.js +42 -0
  91. package/vendor/packages/zcode-cua-plugin/node_modules/semver/internal/parse-options.js +17 -0
  92. package/vendor/packages/zcode-cua-plugin/node_modules/semver/internal/re.js +223 -0
  93. package/vendor/packages/zcode-cua-plugin/node_modules/semver/package.json +78 -0
  94. package/vendor/packages/zcode-cua-plugin/node_modules/semver/preload.js +4 -0
  95. package/vendor/packages/zcode-cua-plugin/node_modules/semver/range.bnf +16 -0
  96. package/vendor/packages/zcode-cua-plugin/node_modules/semver/ranges/gtr.js +6 -0
  97. package/vendor/packages/zcode-cua-plugin/node_modules/semver/ranges/intersects.js +9 -0
  98. package/vendor/packages/zcode-cua-plugin/node_modules/semver/ranges/ltr.js +6 -0
  99. package/vendor/packages/zcode-cua-plugin/node_modules/semver/ranges/max-satisfying.js +27 -0
  100. package/vendor/packages/zcode-cua-plugin/node_modules/semver/ranges/min-satisfying.js +26 -0
  101. package/vendor/packages/zcode-cua-plugin/node_modules/semver/ranges/min-version.js +63 -0
  102. package/vendor/packages/zcode-cua-plugin/node_modules/semver/ranges/outside.js +82 -0
  103. package/vendor/packages/zcode-cua-plugin/node_modules/semver/ranges/simplify.js +49 -0
  104. package/vendor/packages/zcode-cua-plugin/node_modules/semver/ranges/subset.js +249 -0
  105. package/vendor/packages/zcode-cua-plugin/node_modules/semver/ranges/to-comparators.js +10 -0
  106. package/vendor/packages/zcode-cua-plugin/node_modules/semver/ranges/valid.js +13 -0
  107. package/vendor/packages/zcode-cua-plugin/node_modules/sharp/LICENSE +191 -0
  108. package/vendor/packages/zcode-cua-plugin/node_modules/sharp/install/build.js +38 -0
  109. package/vendor/packages/zcode-cua-plugin/node_modules/sharp/install/check.js +14 -0
  110. package/vendor/packages/zcode-cua-plugin/node_modules/sharp/lib/channel.js +177 -0
  111. package/vendor/packages/zcode-cua-plugin/node_modules/sharp/lib/colour.js +195 -0
  112. package/vendor/packages/zcode-cua-plugin/node_modules/sharp/lib/composite.js +212 -0
  113. package/vendor/packages/zcode-cua-plugin/node_modules/sharp/lib/constructor.js +499 -0
  114. package/vendor/packages/zcode-cua-plugin/node_modules/sharp/lib/index.js +16 -0
  115. package/vendor/packages/zcode-cua-plugin/node_modules/sharp/lib/input.js +809 -0
  116. package/vendor/packages/zcode-cua-plugin/node_modules/sharp/lib/is.js +143 -0
  117. package/vendor/packages/zcode-cua-plugin/node_modules/sharp/lib/libvips.js +207 -0
  118. package/vendor/packages/zcode-cua-plugin/node_modules/sharp/lib/operation.js +1016 -0
  119. package/vendor/packages/zcode-cua-plugin/node_modules/sharp/lib/output.js +1666 -0
  120. package/vendor/packages/zcode-cua-plugin/node_modules/sharp/lib/resize.js +595 -0
  121. package/vendor/packages/zcode-cua-plugin/node_modules/sharp/lib/sharp.js +121 -0
  122. package/vendor/packages/zcode-cua-plugin/node_modules/sharp/lib/utility.js +291 -0
  123. package/vendor/packages/zcode-cua-plugin/node_modules/sharp/package.json +202 -0
  124. package/vendor/packages/zcode-cua-plugin/node_modules/sharp/src/binding.gyp +298 -0
  125. package/vendor/packages/zcode-cua-plugin/node_modules/sharp/src/common.cc +1130 -0
  126. package/vendor/packages/zcode-cua-plugin/node_modules/sharp/src/common.h +402 -0
  127. package/vendor/packages/zcode-cua-plugin/node_modules/sharp/src/metadata.cc +346 -0
  128. package/vendor/packages/zcode-cua-plugin/node_modules/sharp/src/metadata.h +90 -0
  129. package/vendor/packages/zcode-cua-plugin/node_modules/sharp/src/operations.cc +499 -0
  130. package/vendor/packages/zcode-cua-plugin/node_modules/sharp/src/operations.h +137 -0
  131. package/vendor/packages/zcode-cua-plugin/node_modules/sharp/src/pipeline.cc +1814 -0
  132. package/vendor/packages/zcode-cua-plugin/node_modules/sharp/src/pipeline.h +408 -0
  133. package/vendor/packages/zcode-cua-plugin/node_modules/sharp/src/sharp.cc +43 -0
  134. package/vendor/packages/zcode-cua-plugin/node_modules/sharp/src/stats.cc +186 -0
  135. package/vendor/packages/zcode-cua-plugin/node_modules/sharp/src/stats.h +62 -0
  136. package/vendor/packages/zcode-cua-plugin/node_modules/sharp/src/utilities.cc +288 -0
  137. package/vendor/packages/zcode-cua-plugin/node_modules/sharp/src/utilities.h +22 -0
  138. package/vendor/packages/zcode-cua-plugin/package.json +31 -0
  139. package/vendor/packages/zcode-cua-plugin/scripts/build-mcp.mjs +58 -0
  140. package/vendor/packages/zcode-cua-plugin/scripts/bump-zcode-cua-producer.mjs +291 -0
  141. package/vendor/packages/zcode-cua-plugin/scripts/check-cua-baseline.mjs +155 -0
  142. package/vendor/packages/zcode-cua-plugin/scripts/check-version-coherence.mjs +478 -0
  143. package/vendor/packages/zcode-cua-plugin/scripts/sync-cache.mjs +100 -0
  144. package/vendor/packages/zcode-cua-plugin/scripts/sync-skill-from-zcode-cua.mjs +115 -0
  145. package/vendor/packages/zcode-cua-plugin/skills/zcode-computer-use/SKILL.md +129 -0
  146. package/vendor/zcode.cjs +752 -743
  147. package/zcode-runtime.lock.json +3 -3
  148. package/vendor/packages/document-skills-plugin/skills/pptx/assets/font_list.txt +0 -80
  149. package/vendor/packages/document-skills-plugin/skills/pptx/scripts/general_judge.py +0 -529
@@ -0,0 +1,13 @@
1
+ Copyright (c) 2026 Z.ai All rights reserved.
2
+
3
+ Permission is granted for personal, educational, and non-commercial use only.
4
+
5
+ Commercial use is strictly prohibited without prior written permission from the author.
6
+
7
+ Unauthorized copying, modification, or distribution of the software for commercial purposes is prohibited.
8
+
9
+ The author reserves the right to make the final determination of what constitutes "commercial use".
10
+
11
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
12
+
13
+ IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY ARISING FROM THE USE OF THE SOFTWARE.
@@ -2,7 +2,7 @@
2
2
  name: pptx
3
3
  metadata:
4
4
  author: Z.AI
5
- version: "1.0"
5
+ version: "1.1"
6
6
  description: "creat and edit pptx file via pptxgenjs/python-pptx"
7
7
  license: Proprietary. LICENSE.txt has complete terms
8
8
  ---
@@ -12,10 +12,12 @@ In one sentence: **don't make boring slides.** Bullet points on a white backgrou
12
12
 
13
13
  But "not boring" is not "flashy." The goal is a deck that looks **ready to use in real life** — the kind you could drop into a real meeting, class, or client pitch without editing.
14
14
 
15
+ **Substance comes before styling:** every slide must carry one specific, concrete claim — real numbers, names and mechanisms, and the "so what" behind them — not a topic label or generic filler. Depth is not density: it comes from picking the sharpest fact and cutting the rest, never from more text.
16
+
15
17
  ## 1. Decide three things before you start
16
18
 
17
19
  **① Pick a content-informed color palette**
18
- The palette should feel designed *for this topic*. A good test: if you could drop your colors into a completely unrelated deck and it would still "work," your choices aren't specific enough. For a deck about Changsha, "chili red + warm gold + deep ink" beats a generic blue.
20
+ The palette should feel designed *for this topic*. A good test: if you could drop your colors into a completely unrelated deck and it would still "work," your choices aren't specific enough. Derive the hues from the subject itself — its place, industry, brand, or mood — rather than reaching for a default.
19
21
 
20
22
  **② Dominance, not equality**
21
23
  One color should dominate 60–70% of the visual weight, supported by 1–2 secondary tones and one sharp accent. **Never give all colors equal weight.**
@@ -23,125 +25,130 @@ One color should dominate 60–70% of the visual weight, supported by 1–2 seco
23
25
  **③ Dark/light contrast + a visual motif**
24
26
 
25
27
  - "Sandwich" structure: **dark backgrounds** for the title and closing slides, **light backgrounds** for content slides. Or commit to dark throughout for a premium feel.
26
- - Pick **one** signature motif and repeat it on every slide: rounded image frames, icons/numbers/single characters inside colored circles, etc.
28
+ - Pick **one** signature motif and repeat it on every slide: rounded image frames, oversized numbers, a consistent card treatment, etc.
27
29
  - ⚠️ **Do NOT** use a "color bar / accent stripe / sidebar strip" as your motif — that's a hallmark of AI-generated slides (see the avoid list).
28
30
 
29
- ## 2. Color palette reference (don't default to blue)
31
+ ## 2. Color
30
32
 
31
- **Prefer deriving your own topic-specific palette** (per §1 ① — content-informed colors beat generic ones). The table below is **inspiration, not a menu**: it illustrates the dominance + contrast principle. Feel free to invent other palettes that fit your topic — or, when the topic is generic or you want a safe start, pick a row directly.
33
+ Build the palette on the **BACKGROUND → PRIMARY → ACCENT** model, and reuse those exact same three roles on every single slide:
32
34
 
33
- | Theme | Primary | Secondary | Accent |
34
- | ------------------ | --------------------- | --------------------- | ------------------- |
35
- | Midnight Executive | `1E2761` navy | `CADCFC` ice blue | `FFFFFF` white |
36
- | Forest & Moss | `2C5F2D` forest | `97BC62` moss | `F5F5F5` cream |
37
- | Coral Energy | `F96167` coral | `F9E795` gold | `2F3C7E` navy |
38
- | Warm Terracotta | `B85042` terracotta | `E7E8D1` sand | `A7BEAE` sage |
39
- | Ocean Gradient | `065A82` deep blue | `1C7293` teal | `21295C` midnight |
40
- | Charcoal Minimal | `36454F` charcoal | `F2F2F2` off-white | `212121` black |
41
- | Teal Trust | `028090` teal | `00A896` seafoam | `02C39A` mint |
42
- | Berry & Cream | `6D2E46` berry | `A26769` dusty rose | `ECE2D0` cream |
43
- | Sage Calm | `84B59F` sage | `69A297` eucalyptus | `50808E` slate |
44
- | Cherry Bold | `990011` cherry | `FCF6F5` off-white | `2F3C7E` navy |
35
+ - **BACKGROUND** — a neutral or near-neutral surface (off-white, warm grey, deep navy, near-black) that carries 60–70% of the slide
36
+ - **PRIMARY** — the brand/topic color used for headers, key shapes, chart bars and structural elements
37
+ - **ACCENT** — ONE saturated color, used sparingly (roughly 5–10% of the slide) on the single most important element: a headline number, a highlighted bar, an underline
38
+ - **Define the palette once as constants at the top of the script** (e.g. `BG`, `PRIMARY`, `ACCENT`, plus `TEXT` and `MUTED`) and reference only those constants — never hand-pick ad-hoc colors slide by slide.
39
+ - Be **restrained and consistent**: no loud, garish, neon or clashing colors, no rainbow palettes, no slide that introduces a color the rest of the deck never uses. Slide-to-slide color shifts should be limited to the background/text inversion of the sandwich structure.
40
+ - Prefer **tints and shades of the primary** (lighter/darker variants) over adding new hues when you need more differentiation — including in charts.
41
+ - High contrast between text and background: dark text on light backgrounds **or** light text on dark backgrounds.
45
42
 
46
43
  ## 3. Layout for each slide
47
44
 
48
- **Every slide needs a visual element** — image, chart, icon, or shape. Text-only slides are forgettable.
49
-
50
- **Layout options (vary them across slides):**
51
-
52
- - Two columns (text left, illustration/figure right)
53
- - Icon + text rows (icon in a colored circle, bold header, description below)
54
- - 2×2 or 2×3 grid (image on one side, grid of content blocks on the other)
55
- - Half-bleed image (full left/right side) with content overlay
56
-
57
- **Data display:**
58
-
59
- - Large stat callouts (numbers 60–72pt with a small label below)
60
- - Comparison columns (before/after, pros/cons, side-by-side options)
61
- - Timeline / process flow (numbered steps, arrows)
62
-
63
- **Visual polish:**
45
+ **Every slide needs a visual element** — image, chart, diagram, or shape. Text-only slides are forgettable.
64
46
 
65
- - Small colored circle + icon next to section headers
66
- - Italic accent text for key stats or taglines
47
+ **Every slide needs ONE clear visual focal point** — an oversized number, a chart, an image, a single bold statement — that dominates the composition. Everything else is subordinate to it.
67
48
 
68
- ## 4. Typography
49
+ **Prefer container-free grouping — use it on the majority of slides.** Grouping comes from alignment, spacing and weight, not from drawing a box around things:
69
50
 
70
- **Key insight:** the font names you write into the `.pptx` are rendered by the **user's PowerPoint**, not by your build environment. If you preview via LibreOffice, it substitutes fonts it doesn't have — and some substitutes have different character widths, so the preview's "overflow / fits" can disagree with the real deck.
51
+ - **Hairline separators** (one 1px rule between items, never thickened, never shadowed) / **row list** (full-width rows, no container, separated by generous line spacing and a bold lead-in phrase) / **outline box** (1px stroke, no fill) / **tinted band** (a horizontal band of very light tint bleeding to both slide edges — no rounded corners, no border, no shadow)
52
+ - Icon + text rows (icon at the row's left, bold header, description below — set the icon on the bare background or in a square/rounded-square holder, not a circle)
71
53
 
72
- - **Safe fonts** (render true-to-width in preview *and* ship with Office): **Arial, Calibri, Cambria, Times New Roman, Courier New, Bookman Old Style, Century Schoolbook**. Use these for body text and anything where fit matters.
73
- - **Headers with personality at zero risk**: pair a safe serif header (Cambria / Bookman Old Style / Century Schoolbook) with a safe sans body (Calibri / Arial) — contrast without losing reliable overflow checks.
74
- - **Preview-unreliable fonts** (substitute has different widths — overflow checks can be wrong): Georgia, Trebuchet MS, Impact, Arial Black, Garamond, Consolas, Palatino Linotype, Calibri Light. Fine for titles/accents with ~10% slack; don't trust the preview's apparent fit.
75
- - **Never default to Aptos** (Office's post-2023 default) — no metric-compatible substitute in the preview environment, and missing from older Office installs, so it's unreliable on both ends.
54
+ **Pick layouts that serve each slide's purpose:**
76
55
 
77
- | Element | Size |
78
- | -------------- | -------------- |
79
- | Slide title | 36–44pt bold |
80
- | Section header | 20–24pt bold |
81
- | Body text | 14–16pt |
82
- | Captions | 10–12pt muted |
56
+ - Opening / closing → bold title layouts
57
+ - Processes / workflows → numbered step visuals
58
+ - Comparisons → side-by-side or table layouts
59
+ - Data / metrics → chart-centric layouts with oversized figures
60
+ - Key insights → single-statement emphasis layouts
61
+ - Team / people → side-by-side card row (parallel cards in one row, not a grid)
83
62
 
84
- > **CJK note (added practice):** for Chinese/Japanese/Korean text, use a widely available font like **Microsoft YaHei** (present on all Windows, has a Mac substitute). But python-pptx / pptxgenjs set only the Latin face `<a:latin>` by default; For previews, installing **Noto Sans CJK SC** displays Chinese correctly — and since CJK glyphs are essentially full-width/monospaced, preview widths closely match YaHei, so overflow checks are fairly trustworthy.
63
+ **Data display:** (point sizes here and throughout assume the 13.33 × 7.5" canvas — see §6)
85
64
 
86
- ## 5. Spacing
65
+ - Large stat callouts (numbers 60–72pt with a small label below)
66
+ - Comparison columns (before/after, pros/cons, side-by-side options)
67
+ - Timeline / process flow (numbered steps, arrows)
68
+ - Keep metrics short and punchy — "$87B TAM" beats "Total Addressable Market is $87 billion"
69
+
70
+ **Density & rhythm:**
71
+
72
+ - **One key message per slide** — never overcrowd. Visual hierarchy: title → subtitle → body → supporting detail.
73
+ - **Control the amount of text per slide.** Too much text is the most common cause of overflow. Keep bullets concise (a short phrase, not a full sentence), avoid dense paragraphs, and if a slide is getting text-heavy, trim it or split it across two slides. The goal is comfortable density, not empty slides — just don't overpack.
74
+ - **Leave breathing room** — give each text box enough width/height that the text fits comfortably at its font size with margin to spare, rather than filling the box edge-to-edge.
75
+ - **Vary the rhythm** — alternate between text-driven, image-driven, and data-driven slides.
76
+ - **No large blank areas.** Don't leave a big region of the canvas empty. Resolve it with CONTENT — enlarge the type or the focal element, widen the chart or image, tighten the grid and margins, or promote real content (a pull quote, a caption, a supporting figure) into that space.
77
+ - **Never fill space with content-free decoration** — no filler bars, strips, rules, or flat color blocks whose only purpose is to occupy emptiness. A graphic element must separate, group, or emphasize real content; otherwise leave the space alone.
78
+ - A region occupied by a **photo is NOT empty**. If a photo area reads as a dark void, the overlay is too heavy or the photo too dark — lighten the overlay or pick a brighter image rather than stacking decoration on top of it.
79
+ - **Sanity check per slide:** is there an obvious focal point, and is nothing overflowing?
80
+
81
+ ## 4. Diagrams, flowcharts & data charts (strongly preferred)
82
+
83
+ - **Favor visual explanation over prose.** Whenever content can be shown as a diagram, show it as a diagram — a bulleted list is the fallback, not the default.
84
+ - Reach for these first: schematic/concept diagrams (boxes + connectors for architecture or relationships), flowcharts and numbered process chains (chevrons, arrows, timelines), comparison matrices, and data charts (bar, column, line, stacked, donut) for anything quantitative.
85
+ - Aim for a diagram, flowchart, or chart on a substantial share of the content slides — **a deck that is all text blocks is a failed deck**.
86
+ - Build them **natively** (`addChart` / `add_chart` with `CategoryChartData`, or composed shapes + connectors + text boxes) so they inherit the palette and cost zero image calls.
87
+ - **Label everything**: axis titles, units, categories, and direct value labels on bars/points. Drop chart junk — no 3D, no gradients, no unnecessary gridlines or legends when direct labels suffice.
88
+ - **Cite the source for every key figure and every chart**: a small source line (10–12pt, muted) at the bottom of the slide, e.g. "Source: IDC Worldwide Tracker, 2025" or "Source: company 10-K, FY2024".
89
+ - Never present an invented number as sourced. If a figure is an estimate or illustrative, label it as such ("illustrative", "est.").
90
+
91
+ ## 5. Image + text layering (critical)
92
+
93
+ - **NEVER place text directly on a full-bleed image** — it will be unreadable.
94
+ - When using a background image, ALWAYS add a semi-transparent overlay between the image and the text:
95
+ 1. Add the image (full-bleed, send to back)
96
+ 2. Add a dark overlay rectangle (full-bleed, ~60–80% opacity) on top of the image
97
+ 3. Then add text on top of the overlay
98
+ - **Alternative (preferred):** instead of full-bleed images, place the image in a bounded region (e.g. the right half) and keep text in the other region on a solid background.
99
+ - If an image is decorative, keep it small and positioned where it won't collide with text.
100
+ - Test mentally: *"if I printed this slide in grayscale, could I still read every word?"*
101
+
102
+ ## 6. Typography
103
+
104
+ - **Deliberately CHOOSE a font pairing that suits the scenario, and name the choice in your plan** — a geometric/neo-grotesque sans for corporate, tech and data decks; a serif for editorial, academic, legal or heritage topics; a high-contrast display face for the cover only. **Never leave the library's default font in place.**
105
+ - **Set the font explicitly on every run/paragraph** (`run.font.name` in python-pptx, `fontFace` in pptxgenjs) — do not rely on inherited theme fonts.
106
+ - **Cover/title type:** large (44–72pt), bold, impactful. **Content slides:** readable body text, ~24pt preferred. (All sizes in this skill assume the default **13.33 × 7.5"** canvas — set it explicitly, and if you deliberately target a 10"-wide layout scale every size down by ×0.75.)
107
+ - The **smallest text on any slide** (captions, axis labels, footnotes, source lines) must still be legible: never below 12pt, and keep it high-contrast against its background.
108
+ - **Legibility beats decoration:** no thin/light weights on colored or image backgrounds, no all-caps for long strings, no letter-spacing so tight that glyphs collide.
109
+ - **Limit to 2 font families maximum**, and create hierarchy with **size and weight**, not by swapping faces.
110
+ - **No emoji in slide content.**
111
+
112
+ > **Preview caveat:** the font names you write into the `.pptx` are rendered by the **user's PowerPoint**, not by your build environment. If you preview via LibreOffice, it substitutes any font it doesn't have — and substitutes with different character widths make the preview's "overflow / fits" verdict disagree with the real deck. Prefer faces that both ship with Office and render true-to-width locally; where you can't, leave ~10% slack instead of trusting the preview.
113
+
114
+ ## 7. Spacing
87
115
 
88
116
  - Minimum margins **0.5"**
89
117
  - **0.3–0.5"** between content blocks
118
+ - Consistent margins and spacing across all slides
90
119
  - Leave breathing room — don't fill every inch
91
120
 
92
- ## 6.Fonts
93
-
94
- CJK fonts are required for Chinese documents (without them Chinese renders as boxes □).
95
-
96
- **CJK font principles:**
121
+ ## 8. CJK fonts
122
+ - **Name a face the viewer's PowerPoint actually ships**: 微软雅黑 / 等线 (Windows), 苹方 PingFang SC (macOS). A face that only exists on the build machine (Noto Sans SC, 思源黑体, LXGW 文楷 …) silently substitutes on the user's machine — use it only as the fallback, not the only name.
123
+ - **Sans for the deck, serif for editorial weight**: 微软雅黑 / 苹方 for corporate, tech and data decks; 思源宋体 / 宋体 only for cultural, academic or heritage topics, and mainly on titles. **Never** use 楷体 / 行楷 / 隶书 / 艺术字体 for body text.
124
+ - **Avoid Light/Thin CJK weights** — Chinese glyphs have far more strokes than Latin, so hairline weights turn to mud on a projector. Regular for body, Bold/Semibold for titles; build hierarchy with size and weight, not with a third face.
125
+ - Chinese text has no spaces to break on, so a long run wraps mid-phrase — keep lines short and give CJK boxes ~15% more width than the Latin equivalent. Upside: CJK glyphs are full-width, so overflow checks on Chinese text are fairly trustworthy.
126
+ - Default to 宋体 or the library default and the deck instantly reads as a Word document — pick the face deliberately, same as §6 requires.
97
127
 
98
- - Use **at most two Chinese families** per deck — one sans as the workhorse, plus at most one serif/handwriting face as accent.
99
- - **Create hierarchy with weight, not by swapping fonts** — Noto Sans SC ships the full weight range; use bold for titles, regular for body.
100
- - **Default to a sans (e.g. Noto Sans SC) for serious office / reporting decks**; reserve handwriting/楷体 faces (e.g. LXGW WenKai) for covers, pull-quotes, or educational accents — never for body paragraphs.
101
- - Always keep a CJK fallback (e.g. WenQuanYi Zen Hei) so missing glyphs never render as boxes □.
102
-
103
- ### Install fonts (portable)
104
-
105
- **Linux server (recommended)** — the OS package manager installs Noto CJK etc. straight into
106
- `/usr/share/fonts` where the manifest expects them:
107
-
108
- ```bash
109
- sudo apt-get install -y fonts-noto-cjk fonts-noto-cjk-extra fonts-noto-color-emoji \
110
- fonts-dejavu fonts-liberation fonts-freefont-ttf
111
- sudo apt-get install -y fonts-lxgw-wenkai || true # optional
112
- fc-cache -f
113
- fc-list :lang=zh | head # verify CJK coverage
114
- ```
115
-
116
- **macOS:** `brew install --cask font-noto-sans-cjk-sc font-noto-serif-cjk-sc` (or drop TTFs
117
- into `~/Library/Fonts`).
118
-
119
- **CDN fallback** (per-file, if a package is unavailable): base
120
- `https://z-cdn.chatglm.cn/office-skill/fonts/` — encode `[`/`]` as `%5B`/`%5D`. Note the CDN
121
- has drifted; `chinese/NotoSansSC%5Bwght%5D.ttf` (variable, full CJK coverage) is the reliable
122
- one. Prefer the OS package manager on servers.
123
-
124
- ## 7. Avoid list (sources of an "AI-generated" look)
128
+ ## 9. Avoid list (sources of an "AI-generated" look)
125
129
 
126
130
  - ❌ **Don't reuse the same layout on every slide** — vary between columns, cards, and callouts
131
+ - ❌ **Don't overuse grid layouts** — card/tile grids (2×2, 3×2, 4-up …) are a strong AI-slide tell when repeated. Cap them at roughly **1 in 5 content slides**, never on consecutive slides, and only when the content is genuinely a set of peer items (team, feature matrix). For everything else use a focal-point, column, timeline, or diagram layout instead
127
132
  - ❌ **Don't center body text** — left-align paragraphs and lists; center only titles
128
- - ❌ **Make size contrast big enough** — titles need 36pt+ to stand out from 14–16pt body
133
+ - ❌ **Make size contrast big enough** — titles need 36pt+ to stand out from body text
129
134
  - ❌ **Don't default to blue** — choose colors that reflect the topic
130
135
  - ❌ **Don't mix spacing randomly** — pick 0.3" or 0.5" and use it consistently
131
136
  - ❌ **Don't style one slide and leave the rest plain** — commit fully or keep it simple throughout
132
- - ❌ **Don't create text-only slides** — add images/icons/charts/shapes
137
+ - ❌ **Don't create text-only slides** — add images, charts, diagrams, or shapes
133
138
  - ❌ **Mind text-box padding** — to align text with shapes/lines, set the text box `margin` to 0 (or offset the shape to compensate)
134
- - ❌ **Don't use low contrast** — icons and text both need strong contrast against the background; avoid light-on-light or dark-on-dark
139
+ - ❌ **Don't use low contrast** — text and graphics both need strong contrast against the background; avoid light-on-light or dark-on-dark
135
140
  - 🚫 **Never add a decorative underline under titles** — a classic AI-slide tell; use whitespace or background color instead
136
- - 🚫 **Never add decorative color bars / accent stripes** — including full-width header/footer bands, vertical sidebar strips, thin colored strips along a card edge, and "single-side borders" on rectangles. To set a card apart, use a **subtle background tint / shadow / icon**, not an edge stripe
141
+ - 🚫 **Never add decorative color bars / accent stripes** — including full-width header/footer bands, vertical sidebar strips, thin colored strips along a card edge, and "single-side borders" on rectangles. To set a card apart, use a **subtle background tint or shadow**, not an edge stripe. In particular, never run the same edge-bar treatment on several consecutive slides
137
142
  - ❌ **Don't default to cream/beige backgrounds** — when unspecified, use white `FFFFFF` or your brand color; avoid warm-neutral defaults like `F5F5DC`, `FAF0E6`, `FAEBD7`, `FFF8E1`
138
143
  - ❌ **Don't let text overflow its shape** — if it doesn't fit, reduce the font, split across slides, or enlarge the container; never leave content cut off or spilling out
139
144
 
140
- ## 8. QA (recommended)
145
+ ## 10. QA (recommended)
141
146
 
142
147
  **Content QA:** check for missing content, typos, wrong order; when using a template, grep for leftover placeholders (`xxx`, `lorem`, `TODO`, `[insert`, etc.).
143
148
 
144
- VIsual QA when needed: find and fix overlaps, overflow, misalignment). Find and fix those, then stop — don't chase pixel-level "perfection."
149
+ **Code QA:** run a short `python-pptx` script over the finished deck to flag text overflow (estimated text height/width vs. the shape box, plus boxes outside the slide) and overlap (bounding-box intersection between two text-bearing shapes), then fix the real hits and re-run.
150
+
151
+ Do not call external vlm to check slides for visual QA
145
152
 
146
153
  ---
147
154
 
@@ -159,26 +166,31 @@ npm install -g pptxgenjs
159
166
  const pptxgen = require("pptxgenjs");
160
167
 
161
168
  let pres = new pptxgen();
162
- pres.layout = 'LAYOUT_16x9'; // or LAYOUT_16x10 / LAYOUT_4x3 / LAYOUT_WIDE
169
+ pres.layout = 'LAYOUT_WIDE'; // 13.33 × 7.5" — the default for this skill (see below)
163
170
  pres.author = 'Your Name';
164
171
  pres.title = 'Presentation Title';
165
172
 
173
+ // Canvas constants — derive every position from these, never hardcode 10 or 13.33
174
+ const W = 13.33, H = 7.5, M = 0.5; // width, height, margin (true width is 13.333"; 13.33 keeps you inside it)
175
+
166
176
  let slide = pres.addSlide();
167
- slide.addText("Hello World!", { x: 0.5, y: 0.5, fontSize: 36, color: "363636" });
177
+ slide.addText("Hello World!", { x: M, y: M, w: W - 2 * M, fontSize: 36, color: "363636" });
168
178
 
169
179
  pres.writeFile({ fileName: "Presentation.pptx" }).then(() => console.log("done"));
170
180
  ```
171
181
 
172
- > ⚠️ pptxgenjs writes an **uncompressed ZIP** (with empty directory stubs), which bloats the file; its `compression: true` option has no effect. Recompress (rezip) the output once after writing.
173
182
 
174
183
  ## Layout dimensions
175
184
 
176
- | Layout | Size (inches) |
177
- | ---------------- | --------------------- |
178
- | `LAYOUT_16x9` | 10 × 5.625 (default) |
179
- | `LAYOUT_16x10` | 10 × 6.25 |
180
- | `LAYOUT_4x3` | 10 × 7.5 |
181
- | `LAYOUT_WIDE` | 13.3 × 7.5 |
185
+
186
+ | Layout | Size (inches) |
187
+ | ---------------- | --------------------------------- |
188
+ | `LAYOUT_WIDE` | **13.33 × 7.5 — use this** |
189
+ | `LAYOUT_16x9` | 10 × 5.625 (pptxgenjs default) |
190
+ | `LAYOUT_16x10` | 10 × 6.25 |
191
+ | `LAYOUT_4x3` | 10 × 7.5 |
192
+
193
+ > ⚠️ **Set `LAYOUT_WIDE` explicitly on every deck.** pptxgenjs defaults to `LAYOUT_16x9`, which is only **10 × 5.625"** — but every type size in this skill (§6: 44–72pt titles, ~24pt body; §3: 60–72pt stat callouts) is tuned for a **13.33 × 7.5"** canvas. Leaving the default gives you a canvas 25% narrower and 25% shorter with type sized for the big one, which overflows systematically — the exact failure §3, §9 and §10 all tell you to avoid. If you deliberately target a 10"-wide layout, scale every font size and the 0.5" margins down by the same factor (×0.75).
182
194
 
183
195
  ## Text & formatting
184
196
 
@@ -283,14 +295,15 @@ slide.addShape(pres.shapes.RECTANGLE, {
283
295
 
284
296
  **Shadow options:**
285
297
 
286
- | Property | Range / notes |
287
- | ----------- | --------------------------------------------------------------------------------------- |
288
- | `type` | `"outer"` / `"inner"` |
289
- | `color` | 6-char hex (no`#`, no 8-char hex) |
298
+
299
+ | Property | Range / notes |
300
+ | ----------- | ----------------------------------------------------------------------------------------- |
301
+ | `type` | `"outer"` / `"inner"` |
302
+ | `color` | 6-char hex (no`#`, no 8-char hex) |
290
303
  | `blur` | 0–100 pt |
291
- | `offset` | 0–200 pt,**must be non-negative** (negatives corrupt the file) |
304
+ | `offset` | 0–200 pt,**must be non-negative** (negatives corrupt the file) |
292
305
  | `angle` | 0–359°, clockwise from 3 o'clock (45 = bottom-right, 135 = bottom-left, 270 = upward) |
293
- | `opacity` | 0.0–1.0 (use this for transparency, never encode it in`color`) |
306
+ | `opacity` | 0.0–1.0 (use this for transparency, never encode it in`color`) |
294
307
 
295
308
  > To cast a shadow upward (e.g., a card near the bottom), use `angle: 270` + a positive offset — **not** a negative offset.
296
309
  > Gradient fills are not natively supported — use a gradient image as the background instead.
@@ -316,41 +329,40 @@ slide.addImage({
316
329
  { sizing: { type: 'cover', w: 4, h: 3 } } // fill area, preserve ratio (may crop)
317
330
  { sizing: { type: 'crop', x: 0.5, y: 0.5, w: 2, h: 2 } } // cut a specific portion
318
331
 
319
- // Compute size from aspect ratio and center it
332
+ // Compute size from aspect ratio and center it (W = the canvas-width constant, never a literal)
320
333
  const origW = 1978, origH = 923, maxH = 3.0;
321
334
  const calcW = maxH * (origW / origH);
322
- const centerX = (10 - calcW) / 2;
335
+ const centerX = (W - calcW) / 2;
323
336
  slide.addImage({ path: "image.png", x: centerX, y: 1.2, w: calcW, h: maxH });
324
337
  ```
325
338
 
326
339
  Supports PNG / JPG / GIF / SVG (SVG works in modern PowerPoint / Microsoft 365).
327
340
 
328
- ## Icons (react-icons → rasterized PNG)
329
-
330
- ```bash
331
- npm install -g react-icons react react-dom sharp
332
- ```
333
-
334
- ```javascript
335
- const React = require("react");
336
- const ReactDOMServer = require("react-dom/server");
337
- const sharp = require("sharp");
338
- const { FaCheckCircle, FaChartLine } = require("react-icons/fa");
339
-
340
- async function iconToBase64Png(IconComponent, color, size = 256) {
341
- const svg = ReactDOMServer.renderToStaticMarkup(
342
- React.createElement(IconComponent, { color, size: String(size) })
343
- );
344
- const png = await sharp(Buffer.from(svg)).png().toBuffer();
345
- return "image/png;base64," + png.toString("base64");
346
- }
347
-
348
- const iconData = await iconToBase64Png(FaCheckCircle, "#4472C4", 256);
349
- slide.addImage({ data: iconData, x: 1, y: 1, w: 0.5, h: 0.5 });
341
+ ## No `outEnd` labels on stacked bar charts
342
+ OOXML restricts `c:dLblPos` by grouping: **stacked / percentStacked only allow
343
+ `ctr` / `inBase` / `inEnd`** — `outEnd` is valid only for `clustered` (line: ctr/l/r/t/b;
344
+ pie/doughnut: bestFit/ctr/inEnd/outEnd).
345
+
346
+ pptxgenjs won't stop you from writing `barGrouping: "stacked"` +
347
+ `dataLabelPosition: "outEnd"`, and LibreOffice renders it fine — only PowerPoint rejects it,
348
+ triggers "repair", and drops the chart.
349
+
350
+ **To highlight a single bar, use per-point colors instead:**
351
+
352
+ ```js
353
+ slide.addChart(p.charts.BAR, [{
354
+ name: "series",
355
+ labels: ["A", "B", "C"],
356
+ values: [10, 20, 30],
357
+ }], {
358
+ barDir: "col",
359
+ varyColors: true, // per-point coloring
360
+ chartColors: ["17457E", "17457E", "E8590C"], // highlight the 3rd bar
361
+ showValue: true,
362
+ dataLabelPosition: "outEnd", // valid under clustered grouping
363
+ });
350
364
  ```
351
365
 
352
- Icon sets: `react-icons/fa` (Font Awesome), `/md` (Material), `/hi` (Heroicons), `/bi` (Bootstrap). Use size ≥ 256 for crisp icons (size controls rasterization resolution; display size is set by w/h).
353
-
354
366
  ## Backgrounds
355
367
 
356
368
  ```javascript
@@ -470,8 +482,9 @@ Route here when the user supplies a .pptx and wants a NEW deck built on it. Work
470
482
 
471
483
  **1. Decide the mode — "use as template" hides two different jobs:**
472
484
 
473
- | Mode | User signal | Build |
474
- | ---------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
485
+
486
+ | Mode | User signal | Build |
487
+ | ------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ |
475
488
  | **Clone & fill** | new outline or free structure — "做成这个风格" / "用这个模板做一份 X" | clone template pages and fill them; pick which pages to reuse by role and shape your outline around what the template offers |
476
489
  | **Fill-in** | new content maps ≈1:1 onto the template's pages (换数据 / 换客户) | in-place replacement — Approach A of the Editing section |
477
490
 
@@ -486,13 +499,14 @@ Both modes edit the .pptx natively and output an editable PowerPoint — **never
486
499
  **3. Plan, then build — always on a COPY of the user's file:**
487
500
  • Write a short plan first: final page order; each page's template source (slide index to clone, or layout name) chosen by ROLE; replacement text written WITHIN the budget. If the user's outline and the template's structure conflict, surface the trade-off instead of improvising. (Clone & fill: since structure is free, let the template's available page roles drive the outline rather than forcing a shape the template can't carry.)
488
501
  • Fill-in: follow the Editing section's Approach A as written.
489
- • Clone & fill: materialize pages first — `add_slide` + fill placeholders when layouts are real; otherwise clone the slide at XML level (copy the slide part + its `.rels`, re-register media rIds, add to `sldIdLst` and `[Content_Types].xml`; `unpack.py` → edit → `pack.py` is often the clearest route). Then replace content page by page (scope mappings per slide — clones share identical source text), swap images by replacing the image part bytes (keep the shape and rId), and delete unused template pages LAST, high-index first. Never hand-build a from-scratch page next to template pages — a foreign page is instantly visible.
502
+ • Clone & fill: materialize pages first — `add_slide` + fill placeholders when layouts are real; otherwise clone the slide at XML level (copy the slide part + its `.rels`, re-register media rIds, add to `sldIdLst` and `[Content_Types].xml`). **No helper scripts ship with this skill — write the clone yourself**, either in-process (`copy.deepcopy(src.slides[i]._element)` + `prs.part.relate_to(...)` to rebuild each rel) or by unpacking the file with `zipfile` (`ZipFile.extractall` → edit the XML → repack: write `[Content_Types].xml` as the first entry, use `ZIP_DEFLATED`, and add no directory entries). Then replace content page by page (scope mappings per slide — clones share identical source text), swap images by replacing the image part bytes (keep the shape and rId), and delete unused template pages LAST, high-index first. Never hand-build a from-scratch page next to template pages — a foreign page is instantly visible.
490
503
 
491
504
  **4. Verify (mandatory before reporting done) — programmatic checks, no rendering:**
492
505
  The whole checklist is decidable without an image; run these and fix until clean:
493
506
  • **Page order & count** — count `sldIdLst` against the plan.
494
507
  • **Leftover placeholders** — grep the slide XML for `Click to add`, `xxx`, `lorem`, `TODO`, `[insert`.
495
- • **Broken images** — confirm every image rId on a cloned page resolves to a real media part (empty frames come from dangling rels); `ooxml/scripts/validate.py` for spot checks, and `pack.py` validates the XML on pack.
508
+ • **Broken images** — confirm every image rId on a cloned page resolves to a real media part (empty frames come from dangling rels): for each slide walk `slide.part.rels` and assert every non-external rel has a `target_part` with a non-empty `.blob`.
509
+ • **File still opens** — reopen the saved copy with `Presentation(path)` and walk every slide's shapes. A dangling rel or malformed slide XML raises here; this load-and-walk is the XML validity check (there is no `validate.py` in this skill).
496
510
  • **Fonts & colors unchanged** — diff the run/theme font+color against the original rather than eyeballing it.
497
511
  • **Overflow / collision** — re-check the "Budget every shape" rule (`len ≤ orig_len × 1.1`) on the final text and compare each `left+width` against its neighbor. A passing budget is the overflow guard here — treat any shape over budget as a real defect and fix it (trim, widen, or shrink per the Editing rules).
498
512
 
@@ -618,56 +632,9 @@ Required dependencies (should already be installed):
618
632
  - **markitdown**: `pip install "markitdown[pptx]"` (text extraction)
619
633
  - **pptxgenjs**: `npm install -g pptxgenjs` (creating presentations)
620
634
  - **playwright**: `npm install -g playwright@1.50.0` (HTML rendering)
621
- - **react-icons**: `npm install -g react-icons react react-dom` (icons)
622
635
  - **sharp**: `npm install -g sharp` (SVG rasterization and image processing)
623
636
  - **LibreOffice**: `sudo apt-get install libreoffice` (PDF conversion)
624
637
  - **Poppler**: `sudo apt-get install poppler-utils` (pdftoppm)
625
638
  - **defusedxml**: `pip install defusedxml` (secure XML parsing)
626
639
 
627
640
  ---
628
-
629
- ## Final response citations
630
-
631
- Place `::zcode-file-citation{...}` inline in prose, not in a trailing list. Use `purpose="source"` for Q&A/no-op and `purpose="output"` for create/edit.
632
-
633
- - [HARD REQUIREMENT] Create/edit: cite each final file exactly once with a plain output citation. Summarize representative changes; do not cite every section/page or add a separate filename, path, or Markdown link. Example: `Created ::zcode-file-citation{path="/abs/path/launch-plan.docx" purpose="output"}, highlighting the rollout and owners.`
634
- - Q&A: do not edit/re-export.
635
-
636
- ### Document
637
-
638
- For page-specific evidence, use a page number verified against the latest render/inspection.
639
-
640
- Locators support only `page_number`; otherwise use a plain citation. Do not guess or add object, label, paragraph, table, or cell IDs. Do not cite intermediates unless asked. Inspect complete relevant pages and preserve material headings, question/table labels, footnotes, sources, and sample sizes; cite each needed page once.
641
-
642
- ```text
643
- ::zcode-file-citation{path="/abs/path/file.docx" purpose="source" artifact_kind="document" page_number=4}
644
- ```
645
-
646
- ### PDF
647
- Citations currently support only plain file citations. Do not add `artifact_kind`, `page_number`, or other locators. Never cite rendered PNGs, scratch files, builders, or QA intermediates unless asked. Inspect the complete relevant pages, preserve material headings, table/figure labels, footnotes, sources, and sample sizes, and cite each source PDF once with a plain source citation.
648
-
649
- ### Presentation
650
-
651
- inspect the complete relevant slide, including callouts, question wording, chart/table titles, totals/sample sizes, and source/methodology footers. Answer directly, group same-slide claims, and cite that slide once. For concrete chart/table/image/diagram/callout evidence, include exact inspected `slide_id`, `object_id`, and a useful label when available.
652
-
653
- For non-in-place edits, preserve the source and export a copy; if unchanged, cite the source plainly.
654
-
655
- Use only locators verified against the latest render/inspection:
656
-
657
- ```text
658
- ::zcode-file-citation{path="/abs/path/deck.pptx" purpose="source" artifact_kind="presentation" slide_number=3}
659
- ::zcode-file-citation{path="/abs/path/deck.pptx" purpose="source" artifact_kind="presentation" slide_number=1 slide_id="sl/gs5z1kshq0xv" object_id="ch/pz9t1r3ka8vn" label="ARR by segment chart"}
660
- ```
661
-
662
- If IDs are not exact, stop at `slide_number`; never guess or cite intermediates unless asked.
663
-
664
- ### Spreadsheets
665
-
666
- - Cite whole-workbook claims plainly; otherwise use the narrowest reliable `sheet` + `range` (the exact cell for a discrete value). Cite discontiguous cells separately. For objects, use `sheet` + exact inspected `object_id`; add `object_kind`/`label` only when useful. Never cite a sheet alone or guess locators.
667
- - Calculations: cite only distinct inputs, drivers, formulas, or results the answer needs.
668
-
669
- ```text
670
- ::zcode-file-citation{path="/abs/path/book.xlsx" purpose="source" artifact_kind="workbook" sheet="Revenue Model" range="C27"}
671
- ```
672
-
673
- Never cite intermediates unless asked.
@@ -2,7 +2,7 @@
2
2
  name: xlsx
3
3
  metadata:
4
4
  author: Z.AI
5
- version: "1.0"
5
+ version: "1.1"
6
6
  description: "Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .csv, or .tsv file; create a new spreadsheet from scratch or from other data sources; analyze data and output results as an Excel file with charts; convert between tabular file formats (CSV/JSON/PDF → XLSX or vice versa); clean, merge, pivot, or transform tabular data. Trigger especially when the user references a spreadsheet file by name or path, says 'make a table/report/model', mentions Excel/CSV/数据分析/报表/汇总, or wants data visualization inside a spreadsheet."
7
7
  license: Proprietary. LICENSE.txt has complete terms
8
8
  ---
@@ -26,6 +26,10 @@ This auto-detects and exports `XLSX_SKILL_DIR` and `FONT_DIR`. No manual variabl
26
26
  | `XLSX_SKILL_DIR` | skill root directory | Parent of this file |
27
27
  | `FONT_DIR` | macOS: `~/Library/Fonts`, Linux: `/usr/share/fonts` | Font base directory |
28
28
 
29
+ > **Local-font-first.** Inspect fonts available in the user's local environment and prefer a suitable
30
+ > installed font. Use bundled or downloaded fonts only as fallbacks; do not install fonts without the
31
+ > user's confirmation.
32
+
29
33
  ---
30
34
  ## Pre-Flight: Intent Gate
31
35
 
@@ -284,4 +288,4 @@ If IDs are not exact, stop at `slide_number`; never guess or cite intermediates
284
288
  ::zcode-file-citation{path="/abs/path/book.xlsx" purpose="source" artifact_kind="workbook" sheet="Revenue Model" range="C27"}
285
289
  ```
286
290
 
287
- Never cite intermediates unless asked.
291
+ Never cite intermediates unless asked.
@@ -0,0 +1,19 @@
1
+ {
2
+ "name": "zcode-cua",
3
+ "version": "0.5.10",
4
+ "description": "Automate desktop apps: the agent drives your mouse, keyboard, and UI elements to finish real tasks.",
5
+ "author": {
6
+ "name": "Z.ai"
7
+ },
8
+ "license": "MIT",
9
+ "skills": "skills",
10
+ "mcpServers": {
11
+ "computer-use": {
12
+ "command": "node",
13
+ "timeoutMs": 90000,
14
+ "args": [
15
+ "${ZCODE_PLUGIN_ROOT}/dist/mcp/server.js"
16
+ ]
17
+ }
18
+ }
19
+ }