natureco-cli 5.18.2 → 5.19.0

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 (155) hide show
  1. package/package.json +1 -1
  2. package/skills/airunway-aks-setup/SKILL.md +73 -0
  3. package/skills/algorithmic-art/SKILL.md +405 -0
  4. package/skills/appinsights-instrumentation/SKILL.md +76 -0
  5. package/skills/azure-ai/SKILL.md +71 -0
  6. package/skills/azure-aigateway/SKILL.md +129 -0
  7. package/skills/azure-cloud-migrate/SKILL.md +52 -0
  8. package/skills/azure-compliance/SKILL.md +108 -0
  9. package/skills/azure-compute/SKILL.md +46 -0
  10. package/skills/azure-cost/SKILL.md +45 -0
  11. package/skills/azure-deploy/SKILL.md +97 -0
  12. package/skills/azure-diagnostics/SKILL.md +151 -0
  13. package/skills/azure-enterprise-infra-planner/SKILL.md +54 -0
  14. package/skills/azure-hosted-copilot-sdk/SKILL.md +89 -0
  15. package/skills/azure-kubernetes/SKILL.md +153 -0
  16. package/skills/azure-kusto/SKILL.md +231 -0
  17. package/skills/azure-messaging/SKILL.md +57 -0
  18. package/skills/azure-prepare/SKILL.md +165 -0
  19. package/skills/azure-quotas/SKILL.md +276 -0
  20. package/skills/azure-rbac/SKILL.md +17 -0
  21. package/skills/azure-reliability/SKILL.md +387 -0
  22. package/skills/azure-resource-lookup/SKILL.md +108 -0
  23. package/skills/azure-resource-visualizer/SKILL.md +183 -0
  24. package/skills/azure-storage/SKILL.md +100 -0
  25. package/skills/azure-upgrade/SKILL.md +91 -0
  26. package/skills/azure-validate/SKILL.md +72 -0
  27. package/skills/brainstorming/SKILL.md +159 -0
  28. package/skills/brand-guidelines/SKILL.md +73 -0
  29. package/skills/brandkit/SKILL.md +798 -0
  30. package/skills/brutalist-skill/SKILL.md +92 -0
  31. package/skills/canvas-design/SKILL.md +130 -0
  32. package/skills/cavecrew/SKILL.md +82 -0
  33. package/skills/caveman-commit/SKILL.md +65 -0
  34. package/skills/caveman-help/SKILL.md +63 -0
  35. package/skills/caveman-review/SKILL.md +55 -0
  36. package/skills/caveman-stats/SKILL.md +10 -0
  37. package/skills/claude-api/SKILL.md +356 -0
  38. package/skills/composition-patterns/SKILL.md +89 -0
  39. package/skills/decision-mapping/SKILL.md +84 -0
  40. package/skills/deploy-to-vercel/SKILL.md +296 -0
  41. package/skills/design-an-interface/SKILL.md +94 -0
  42. package/skills/design-doc-mermaid/SKILL.md +498 -0
  43. package/skills/develop-userscripts/SKILL.md +84 -0
  44. package/skills/doc-coauthoring/SKILL.md +375 -0
  45. package/skills/documentation/SKILL.md +109 -0
  46. package/skills/docx/SKILL.md +590 -0
  47. package/skills/edit-article/SKILL.md +15 -0
  48. package/skills/entra-agent-id/SKILL.md +356 -0
  49. package/skills/entra-app-registration/SKILL.md +191 -0
  50. package/skills/faceless-explainer/SKILL.md +202 -0
  51. package/skills/fastify/SKILL.md +75 -0
  52. package/skills/general-video/SKILL.md +143 -0
  53. package/skills/git-guardrails-claude-code/SKILL.md +95 -0
  54. package/skills/github-actions-docs/SKILL.md +98 -0
  55. package/skills/gpt-tasteskill/SKILL.md +74 -0
  56. package/skills/grill-me/SKILL.md +7 -0
  57. package/skills/grilling/SKILL.md +10 -0
  58. package/skills/handoff/SKILL.md +16 -0
  59. package/skills/hyperframes/SKILL.md +152 -0
  60. package/skills/hyperframes-animation/SKILL.md +82 -0
  61. package/skills/hyperframes-cli/SKILL.md +109 -0
  62. package/skills/hyperframes-core/SKILL.md +78 -0
  63. package/skills/hyperframes-creative/SKILL.md +68 -0
  64. package/skills/hyperframes-media/SKILL.md +97 -0
  65. package/skills/image-to-code-skill/SKILL.md +1228 -0
  66. package/skills/imagegen-frontend-mobile/SKILL.md +1465 -0
  67. package/skills/imagegen-frontend-web/SKILL.md +987 -0
  68. package/skills/implement/SKILL.md +15 -0
  69. package/skills/init/SKILL.md +91 -0
  70. package/skills/internal-comms/SKILL.md +32 -0
  71. package/skills/lark-approval/SKILL.md +56 -0
  72. package/skills/lark-base/SKILL.md +157 -0
  73. package/skills/lark-doc/SKILL.md +81 -0
  74. package/skills/lark-shared/SKILL.md +168 -0
  75. package/skills/lark-workflow-meeting-summary/SKILL.md +122 -0
  76. package/skills/linting-neostandard-eslint9/SKILL.md +64 -0
  77. package/skills/loop-me/SKILL.md +32 -0
  78. package/skills/microsoft-foundry/SKILL.md +262 -0
  79. package/skills/migrate-to-shoehorn/SKILL.md +118 -0
  80. package/skills/minimalist-skill/SKILL.md +85 -0
  81. package/skills/motion-graphics/SKILL.md +170 -0
  82. package/skills/music-to-video/SKILL.md +197 -0
  83. package/skills/node/SKILL.md +94 -0
  84. package/skills/nodejs-core/SKILL.md +156 -0
  85. package/skills/oauth/SKILL.md +186 -0
  86. package/skills/obsidian-vault/SKILL.md +59 -0
  87. package/skills/octocat/SKILL.md +93 -0
  88. package/skills/openclaw-secure-linux-cloud/SKILL.md +157 -0
  89. package/skills/opensource-guide-coach/SKILL.md +218 -0
  90. package/skills/output-skill/SKILL.md +49 -0
  91. package/skills/pdf/SKILL.md +314 -0
  92. package/skills/pptx/SKILL.md +232 -0
  93. package/skills/pr-to-video/SKILL.md +235 -0
  94. package/skills/product-launch-video/SKILL.md +205 -0
  95. package/skills/python-appservice-deploy/SKILL.md +36 -0
  96. package/skills/qa/SKILL.md +130 -0
  97. package/skills/react-best-practices/SKILL.md +149 -0
  98. package/skills/react-native-skills/SKILL.md +121 -0
  99. package/skills/react-view-transitions/SKILL.md +320 -0
  100. package/skills/readme-i18n/SKILL.md +176 -0
  101. package/skills/redesign-skill/SKILL.md +178 -0
  102. package/skills/remotion/SKILL.md +364 -0
  103. package/skills/request-refactor-plan/SKILL.md +68 -0
  104. package/skills/resolving-merge-conflicts/SKILL.md +14 -0
  105. package/skills/running-claude-code-via-litellm-copilot/SKILL.md +263 -0
  106. package/skills/scaffold-exercises/SKILL.md +106 -0
  107. package/skills/secure-linux-web-hosting/SKILL.md +162 -0
  108. package/skills/setup-pre-commit/SKILL.md +91 -0
  109. package/skills/shadcn/SKILL.md +267 -0
  110. package/skills/simple/SKILL.md +52 -0
  111. package/skills/skill-creator/SKILL.md +485 -0
  112. package/skills/skill-optimizer/SKILL.md +47 -0
  113. package/skills/skills-cli/SKILL.md +281 -0
  114. package/skills/slack-gif-creator/SKILL.md +254 -0
  115. package/skills/snipgrapher/SKILL.md +58 -0
  116. package/skills/soft-skill/SKILL.md +98 -0
  117. package/skills/stitch-skill/SKILL.md +184 -0
  118. package/skills/supabase/SKILL.md +135 -0
  119. package/skills/supabase-postgres-best-practices/SKILL.md +64 -0
  120. package/skills/systematic-debugging/SKILL.md +296 -0
  121. package/skills/talking-head-recut/SKILL.md +1191 -0
  122. package/skills/taste-skill/SKILL.md +1206 -0
  123. package/skills/taste-skill-v1/SKILL.md +226 -0
  124. package/skills/tdd/SKILL.md +108 -0
  125. package/skills/teach/SKILL.md +140 -0
  126. package/skills/test-driven-development/SKILL.md +371 -0
  127. package/skills/theme-factory/SKILL.md +59 -0
  128. package/skills/to-prd/SKILL.md +75 -0
  129. package/skills/typescript-magician/SKILL.md +117 -0
  130. package/skills/tzst/SKILL.md +68 -0
  131. package/skills/ubiquitous-language/SKILL.md +93 -0
  132. package/skills/use-my-browser/SKILL.md +110 -0
  133. package/skills/using-superpowers/SKILL.md +121 -0
  134. package/skills/vercel-cli-with-tokens/SKILL.md +353 -0
  135. package/skills/vercel-optimize/SKILL.md +322 -0
  136. package/skills/viral-instagram-reels/SKILL.md +180 -0
  137. package/skills/viral-short-form/SKILL.md +147 -0
  138. package/skills/viral-short-form-ideas/SKILL.md +184 -0
  139. package/skills/viral-tiktok-content/SKILL.md +180 -0
  140. package/skills/web-artifacts-builder/SKILL.md +74 -0
  141. package/skills/web-design-guidelines/SKILL.md +39 -0
  142. package/skills/webapp-testing/SKILL.md +96 -0
  143. package/skills/website-to-video/SKILL.md +145 -0
  144. package/skills/writing-beats/SKILL.md +67 -0
  145. package/skills/writing-fragments/SKILL.md +79 -0
  146. package/skills/writing-great-skills/SKILL.md +82 -0
  147. package/skills/writing-guidelines/SKILL.md +39 -0
  148. package/skills/writing-plans/SKILL.md +174 -0
  149. package/skills/writing-shape/SKILL.md +79 -0
  150. package/skills/xdrop/SKILL.md +78 -0
  151. package/skills/xget/SKILL.md +87 -0
  152. package/skills/xlsx/SKILL.md +292 -0
  153. package/src/tools/browser_use.js +2 -1
  154. package/src/tools/skills_download.js +217 -0
  155. package/src/utils/tools.js +2 -2
@@ -0,0 +1,232 @@
1
+ ---
2
+ name: pptx
3
+ description: "Use this skill any time a .pptx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates, layouts, speaker notes, or comments. Trigger whenever the user mentions \"deck,\" \"slides,\" \"presentation,\" or references a .pptx filename, regardless of what they plan to do with the content afterward. If a .pptx file needs to be opened, created, or touched, use this skill."
4
+ license: Proprietary. LICENSE.txt has complete terms
5
+ ---
6
+
7
+ # PPTX Skill
8
+
9
+ ## Quick Reference
10
+
11
+ | Task | Guide |
12
+ |------|-------|
13
+ | Read/analyze content | `python -m markitdown presentation.pptx` |
14
+ | Edit or create from template | Read [editing.md](editing.md) |
15
+ | Create from scratch | Read [pptxgenjs.md](pptxgenjs.md) |
16
+
17
+ ---
18
+
19
+ ## Reading Content
20
+
21
+ ```bash
22
+ # Text extraction
23
+ python -m markitdown presentation.pptx
24
+
25
+ # Visual overview
26
+ python scripts/thumbnail.py presentation.pptx
27
+
28
+ # Raw XML
29
+ python scripts/office/unpack.py presentation.pptx unpacked/
30
+ ```
31
+
32
+ ---
33
+
34
+ ## Editing Workflow
35
+
36
+ **Read [editing.md](editing.md) for full details.**
37
+
38
+ 1. Analyze template with `thumbnail.py`
39
+ 2. Unpack → manipulate slides → edit content → clean → pack
40
+
41
+ ---
42
+
43
+ ## Creating from Scratch
44
+
45
+ **Read [pptxgenjs.md](pptxgenjs.md) for full details.**
46
+
47
+ Use when no template or reference presentation is available.
48
+
49
+ ---
50
+
51
+ ## Design Ideas
52
+
53
+ **Don't create boring slides.** Plain bullets on a white background won't impress anyone. Consider ideas from this list for each slide.
54
+
55
+ ### Before Starting
56
+
57
+ - **Pick a bold, content-informed color palette**: The palette should feel designed for THIS topic. If swapping your colors into a completely different presentation would still "work," you haven't made specific enough choices.
58
+ - **Dominance over equality**: One color should dominate (60-70% visual weight), with 1-2 supporting tones and one sharp accent. Never give all colors equal weight.
59
+ - **Dark/light contrast**: Dark backgrounds for title + conclusion slides, light for content ("sandwich" structure). Or commit to dark throughout for a premium feel.
60
+ - **Commit to a visual motif**: Pick ONE distinctive element and repeat it — rounded image frames, icons in colored circles, thick single-side borders. Carry it across every slide.
61
+
62
+ ### Color Palettes
63
+
64
+ Choose colors that match your topic — don't default to generic blue. Use these palettes as inspiration:
65
+
66
+ | Theme | Primary | Secondary | Accent |
67
+ |-------|---------|-----------|--------|
68
+ | **Midnight Executive** | `1E2761` (navy) | `CADCFC` (ice blue) | `FFFFFF` (white) |
69
+ | **Forest & Moss** | `2C5F2D` (forest) | `97BC62` (moss) | `F5F5F5` (cream) |
70
+ | **Coral Energy** | `F96167` (coral) | `F9E795` (gold) | `2F3C7E` (navy) |
71
+ | **Warm Terracotta** | `B85042` (terracotta) | `E7E8D1` (sand) | `A7BEAE` (sage) |
72
+ | **Ocean Gradient** | `065A82` (deep blue) | `1C7293` (teal) | `21295C` (midnight) |
73
+ | **Charcoal Minimal** | `36454F` (charcoal) | `F2F2F2` (off-white) | `212121` (black) |
74
+ | **Teal Trust** | `028090` (teal) | `00A896` (seafoam) | `02C39A` (mint) |
75
+ | **Berry & Cream** | `6D2E46` (berry) | `A26769` (dusty rose) | `ECE2D0` (cream) |
76
+ | **Sage Calm** | `84B59F` (sage) | `69A297` (eucalyptus) | `50808E` (slate) |
77
+ | **Cherry Bold** | `990011` (cherry) | `FCF6F5` (off-white) | `2F3C7E` (navy) |
78
+
79
+ ### For Each Slide
80
+
81
+ **Every slide needs a visual element** — image, chart, icon, or shape. Text-only slides are forgettable.
82
+
83
+ **Layout options:**
84
+ - Two-column (text left, illustration on right)
85
+ - Icon + text rows (icon in colored circle, bold header, description below)
86
+ - 2x2 or 2x3 grid (image on one side, grid of content blocks on other)
87
+ - Half-bleed image (full left or right side) with content overlay
88
+
89
+ **Data display:**
90
+ - Large stat callouts (big numbers 60-72pt with small labels below)
91
+ - Comparison columns (before/after, pros/cons, side-by-side options)
92
+ - Timeline or process flow (numbered steps, arrows)
93
+
94
+ **Visual polish:**
95
+ - Icons in small colored circles next to section headers
96
+ - Italic accent text for key stats or taglines
97
+
98
+ ### Typography
99
+
100
+ **Choose an interesting font pairing** — don't default to Arial. Pick a header font with personality and pair it with a clean body font.
101
+
102
+ | Header Font | Body Font |
103
+ |-------------|-----------|
104
+ | Georgia | Calibri |
105
+ | Arial Black | Arial |
106
+ | Calibri | Calibri Light |
107
+ | Cambria | Calibri |
108
+ | Trebuchet MS | Calibri |
109
+ | Impact | Arial |
110
+ | Palatino | Garamond |
111
+ | Consolas | Calibri |
112
+
113
+ | Element | Size |
114
+ |---------|------|
115
+ | Slide title | 36-44pt bold |
116
+ | Section header | 20-24pt bold |
117
+ | Body text | 14-16pt |
118
+ | Captions | 10-12pt muted |
119
+
120
+ ### Spacing
121
+
122
+ - 0.5" minimum margins
123
+ - 0.3-0.5" between content blocks
124
+ - Leave breathing room—don't fill every inch
125
+
126
+ ### Avoid (Common Mistakes)
127
+
128
+ - **Don't repeat the same layout** — vary columns, cards, and callouts across slides
129
+ - **Don't center body text** — left-align paragraphs and lists; center only titles
130
+ - **Don't skimp on size contrast** — titles need 36pt+ to stand out from 14-16pt body
131
+ - **Don't default to blue** — pick colors that reflect the specific topic
132
+ - **Don't mix spacing randomly** — choose 0.3" or 0.5" gaps and use consistently
133
+ - **Don't style one slide and leave the rest plain** — commit fully or keep it simple throughout
134
+ - **Don't create text-only slides** — add images, icons, charts, or visual elements; avoid plain title + bullets
135
+ - **Don't forget text box padding** — when aligning lines or shapes with text edges, set `margin: 0` on the text box or offset the shape to account for padding
136
+ - **Don't use low-contrast elements** — icons AND text need strong contrast against the background; avoid light text on light backgrounds or dark text on dark backgrounds
137
+ - **NEVER use accent lines under titles** — these are a hallmark of AI-generated slides; use whitespace or background color instead
138
+
139
+ ---
140
+
141
+ ## QA (Required)
142
+
143
+ **Assume there are problems. Your job is to find them.**
144
+
145
+ Your first render is almost never correct. Approach QA as a bug hunt, not a confirmation step. If you found zero issues on first inspection, you weren't looking hard enough.
146
+
147
+ ### Content QA
148
+
149
+ ```bash
150
+ python -m markitdown output.pptx
151
+ ```
152
+
153
+ Check for missing content, typos, wrong order.
154
+
155
+ **When using templates, check for leftover placeholder text:**
156
+
157
+ ```bash
158
+ python -m markitdown output.pptx | grep -iE "xxxx|lorem|ipsum|this.*(page|slide).*layout"
159
+ ```
160
+
161
+ If grep returns results, fix them before declaring success.
162
+
163
+ ### Visual QA
164
+
165
+ **⚠️ USE SUBAGENTS** — even for 2-3 slides. You've been staring at the code and will see what you expect, not what's there. Subagents have fresh eyes.
166
+
167
+ Convert slides to images (see [Converting to Images](#converting-to-images)), then use this prompt:
168
+
169
+ ```
170
+ Visually inspect these slides. Assume there are issues — find them.
171
+
172
+ Look for:
173
+ - Overlapping elements (text through shapes, lines through words, stacked elements)
174
+ - Text overflow or cut off at edges/box boundaries
175
+ - Decorative lines positioned for single-line text but title wrapped to two lines
176
+ - Source citations or footers colliding with content above
177
+ - Elements too close (< 0.3" gaps) or cards/sections nearly touching
178
+ - Uneven gaps (large empty area in one place, cramped in another)
179
+ - Insufficient margin from slide edges (< 0.5")
180
+ - Columns or similar elements not aligned consistently
181
+ - Low-contrast text (e.g., light gray text on cream-colored background)
182
+ - Low-contrast icons (e.g., dark icons on dark backgrounds without a contrasting circle)
183
+ - Text boxes too narrow causing excessive wrapping
184
+ - Leftover placeholder content
185
+
186
+ For each slide, list issues or areas of concern, even if minor.
187
+
188
+ Read and analyze these images:
189
+ 1. /path/to/slide-01.jpg (Expected: [brief description])
190
+ 2. /path/to/slide-02.jpg (Expected: [brief description])
191
+
192
+ Report ALL issues found, including minor ones.
193
+ ```
194
+
195
+ ### Verification Loop
196
+
197
+ 1. Generate slides → Convert to images → Inspect
198
+ 2. **List issues found** (if none found, look again more critically)
199
+ 3. Fix issues
200
+ 4. **Re-verify affected slides** — one fix often creates another problem
201
+ 5. Repeat until a full pass reveals no new issues
202
+
203
+ **Do not declare success until you've completed at least one fix-and-verify cycle.**
204
+
205
+ ---
206
+
207
+ ## Converting to Images
208
+
209
+ Convert presentations to individual slide images for visual inspection:
210
+
211
+ ```bash
212
+ python scripts/office/soffice.py --headless --convert-to pdf output.pptx
213
+ pdftoppm -jpeg -r 150 output.pdf slide
214
+ ```
215
+
216
+ This creates `slide-01.jpg`, `slide-02.jpg`, etc.
217
+
218
+ To re-render specific slides after fixes:
219
+
220
+ ```bash
221
+ pdftoppm -jpeg -r 150 -f N -l N output.pdf slide-fixed
222
+ ```
223
+
224
+ ---
225
+
226
+ ## Dependencies
227
+
228
+ - `pip install "markitdown[pptx]"` - text extraction
229
+ - `pip install Pillow` - thumbnail grids
230
+ - `npm install -g pptxgenjs` - creating from scratch
231
+ - LibreOffice (`soffice`) - PDF conversion (auto-configured for sandboxed environments via `scripts/office/soffice.py`)
232
+ - Poppler (`pdftoppm`) - PDF to images
@@ -0,0 +1,235 @@
1
+ ---
2
+ name: pr-to-video
3
+ description: "turn a GitHub pull request (a PR URL like github.com/<owner>/<repo>/pull/<N>, an <owner>/<repo>#<N> ref, or 'this PR' in a checked-out repo) into a code-change explainer video, up to ~3 min (sweet spot 30-90s) — changelog, feature reveal, fix, or refactor walkthrough, rendered from the diff / commits / files. The input is a CODE CHANGE read via the gh CLI; there is no website capture. Use this skill for a GitHub PR. Do not use it for a product launch/promo (use /product-launch-video), a tour of a real website (use /website-to-video), a topic explainer with no PR (use /faceless-explainer), captions on existing footage (use /embedded-captions), or a short unnarrated motion graphic (use /motion-graphics). If the intent is unclear, route through /hyperframes first."
4
+ ---
5
+
6
+ > **media-use**: Before sourcing audio/images, call `/media-use` to resolve BGM/SFX/images from the HeyGen catalog. Run `--adopt` first to register existing assets. See `/media-use` skill.
7
+
8
+ # PR to HyperFrames
9
+
10
+ Use this skill to ingest a GitHub pull request, understand the change, plan a code-change explainer, and build it frame by frame in HyperFrames. The input is a **code change** (read via `gh`), not a website — there is **no capture step and no real assets** beyond the contributors' avatars.
11
+
12
+ > **Confirm the route before Step 0.** You are the orchestrator. Run each step, verify its gate, and only then continue. This skill is for a **GitHub pull request** (a code change). Route other intents elsewhere: a product launch/promo → `/product-launch-video`; a general website tour → `/website-to-video`; a topic explainer with no PR → `/faceless-explainer`; captions on existing footage → `/embedded-captions`; a short unnarrated motion graphic → `/motion-graphics`; a whole-repo or multi-PR release walkthrough → `/general-video`. **Out of scope:** live / at-render-time data — PR facts are read once at author time and baked in. If the user says only "make a video" or the route is uncertain, read `/hyperframes` first.
13
+
14
+ You are the orchestrator. Work in `videos/<project>/`. Run steps in order and pass each gate before continuing. User-gated steps are Step 0, Step 3, and Step 6. Do every step yourself except Step 5, where you dispatch one sub-agent per frame. Do not put design or motion rules here; those live in the frame-worker sub-agent, `hyperframes-creative`, and `hyperframes-animation`.
15
+
16
+ Workflow: Step 0 setup → `hyperframes.json`; Step 1 ingest → `capture/extracted/` + `assets/<login>.png`; Step 2 design system → `frame.md`; Step 3 storyboard/script → `STORYBOARD.md` and `SCRIPT.md`; Step 3.1 audio → `audio_meta.json`; Step 4 visual design → enriched `STORYBOARD.md`; Step 5 frames → `compositions/frames/NN-*.html` and `index.html`; Step 6 final render → `renders/video.mp4`.
17
+
18
+ ---
19
+
20
+ ## Step 0: Setup and Brief
21
+
22
+ Goal: Lock the PR reference and the core video brief, and create the HyperFrames project if needed.
23
+
24
+ Get the **PR reference** (a full URL, an `<owner>/<repo>#<N>` ref, or "this PR" in a checked-out repo) and, in one message, confirm the brief — lead with a recommended default for each and pre-fill anything `/hyperframes` already set: **angle** (changelog / feature-reveal / fix-explainer / refactor-walkthrough — default: infer from the PR), **audience** (default: developers), **length** (default: **scale to the PR's change size** — see below), **aspect** (default 16:9), **language**. The style is always **claude**. Proceed only after the user replies; a "go" accepts the defaults.
25
+
26
+ **Recommend the length from the PR's change size**, not a fixed guess. Before confirming the brief, peek at the PR once — a read-only call that also grounds the angle (Step 1 still does the full deterministic fetch):
27
+
28
+ ```bash
29
+ gh pr view <PR_REF> --json title,additions,deletions,changedFiles
30
+ ```
31
+
32
+ Pick the tier from `additions + deletions` (nudged up by `changedFiles`) and lead with it as the default (the user can override; hard cap ~3 min):
33
+
34
+ | PR change size | Recommended length |
35
+ | --------------------------------- | ------------------ |
36
+ | trivial (≲ 50 lines changed) | ~20–40s |
37
+ | focused (~50–200 lines) | ~40–70s |
38
+ | substantial (~200–600 lines) | ~70–110s |
39
+ | large (≳ 600 lines, or 25+ files) | ~110–180s |
40
+
41
+ State the basis in one phrase when you propose it (e.g. "~40s — small change, +44/−13 across 12 files"). A huge PR doesn't mean a long video — if the story is one headline change, keep it tight and say so.
42
+
43
+ Initialize only if `hyperframes.json` is missing. Name `<project>` from the PR in kebab-case, such as `acme-sdk-pr-1842`; never use the workspace name or a timestamp.
44
+
45
+ `npx hyperframes init "videos/<project>" --non-interactive --skip-skills --example=blank`
46
+
47
+ **Show sign-in status before the brief** — run `npx hyperframes auth status` and **relay its output verbatim (don't paraphrase or rewrite it).** It reports whether voice/BGM will use HeyGen or local engines and, when not signed in, how to sign in. **If not signed in, STOP and wait for the user to choose — sign in, or say "go"/"offline" to continue with local engines — before asking the brief or anything else.** Treat it as a real decision point, not a passing note; don't fold the choice into the brief question, and don't write keys into a per-repo `.env`. (In autonomous mode, note the status and continue offline.) See `../hyperframes-media` → Preflight for the canonical guidance.
48
+
49
+ **Gate:** `hyperframes.json` exists; the PR ref is captured; angle, length, aspect ratio, and language are locked; sign-in status was shown (signed in, or continuing offline).
50
+
51
+ ---
52
+
53
+ ## Step 1: Ingest the PR (no capture)
54
+
55
+ Goal: Fetch the PR's facts and fold them into the project as the source of information. There is **no website capture**. `fetch-pr.mjs` runs `gh` deterministically — completing the files list via paginated `gh api` so a large PR doesn't truncate at ~100 files, and writing only `capture/pr.json` + `capture/diff.patch` (no scratch dir). Then `ingest.mjs` folds that into the synthetic capture package offline.
56
+
57
+ ```bash
58
+ PR="<url | owner/repo#N | N>"
59
+
60
+ # Fetch the PR deterministically: runs gh, completes the files list via paginated
61
+ # gh api (so a big PR doesn't truncate at ~100 files), writes only capture/pr.json +
62
+ # capture/diff.patch — no scratch dir. gh auth / not-found / private errors exit 1 here.
63
+ (cd "videos/<project>" && node <SKILL_DIR>/scripts/fetch-pr.mjs --pr "$PR" --out-dir ./capture)
64
+
65
+ # Offline transform → capture/extracted/{tokens.json (colors:[] → claude palette),
66
+ # visible-text.txt (the brief), people.json (contributors, bot-filtered, avatarFile=assets/<login>.png)}.
67
+ (cd "videos/<project>" && node <SKILL_DIR>/scripts/ingest.mjs \
68
+ --pr-json ./capture/pr.json --diff ./capture/diff.patch --out-dir ./capture/extracted)
69
+
70
+ # The people front's one network step — download each contributor's GitHub avatar to
71
+ # assets/<login>.png for an optional credits close. Best-effort; always exits 0.
72
+ (cd "videos/<project>" && node <SKILL_DIR>/scripts/fetch-people-avatars.mjs \
73
+ --people ./capture/extracted/people.json)
74
+ ```
75
+
76
+ If `fetch-pr.mjs` exits 1 (gh auth / not found / private), report its stderr and stop — **do not fabricate PR contents**. If `ingest.mjs` exits 1, read its stderr (usually a malformed `pr.json`), fix, and rerun (deterministic). `fetch-people-avatars.mjs` always exits 0; missing avatars just mean no credits close to author.
77
+
78
+ **Gate:** `capture/pr.json`, `capture/diff.patch`, `capture/extracted/tokens.json`, `capture/extracted/visible-text.txt`, and `capture/extracted/people.json` exist; you can state the PR's change in one clear sentence. `assets/<login>.png` is best-effort — its absence is not a failure.
79
+
80
+ ---
81
+
82
+ ## Step 2: Design System
83
+
84
+ Goal: Adopt the claude frame preset; a script turns it into this video's `frame.md` + caption skin.
85
+
86
+ The style is fixed — **claude** (warm editorial; a navy code surface built for diffs). Run:
87
+
88
+ ```bash
89
+ node <SKILL_DIR>/scripts/build-frame.mjs --preset claude --hyperframes .
90
+ ```
91
+
92
+ The script copies the claude preset's `FRAME.md` → `frame.md`, remixes it onto any brand tokens in `capture/extracted/tokens.json` (a PR has none → `colors:[]`/`fonts:[]` keeps claude's own palette, a complete design), copies the preset's caption skin to `.hyperframes/caption-skin.html`, and self-validates (exits 1 on a broken mapping). Proceed as soon as it exits 0 — no hand-editing.
93
+
94
+ **Gate:** `build-frame.mjs` exited 0 — `frame.md` exists from the claude preset, and `.hyperframes/caption-skin.html` exists as the caption skin source.
95
+
96
+ ---
97
+
98
+ ## Step 3: Storyboard and Script
99
+
100
+ Goal: Turn the PR into an approved frame-by-frame explanation plan.
101
+
102
+ Read `references/story-design.md`, `../hyperframes-core/references/storyboard-format.md`, and `../hyperframes-core/references/script-format.md`. Use them to write `STORYBOARD.md` and, when narration is needed, `SCRIPT.md`.
103
+
104
+ Use `story-design.md` for the PR archetype (changelog / feature-reveal / fix-explainer / refactor-walkthrough), the PR-native frame types, hook, persuasion, beats, the per-frame word budget, and the optional credits close. The sequence comes from **narrative design, not the diff's file order** — explain the change, don't read the diff aloud. Feature 2–4 real diff hunks (from `capture/diff.patch`), each a small legible snippet; name the `code-*` block each wants in the frame's `scene`. Frames carry no `asset_candidates` except an optional `credits` close (2–6 `assets/<login>.png` avatars). Use the exact required fields from the storyboard and script references.
105
+
106
+ After drafting, show a frame-by-frame summary. In that same message ask the user (a) to approve or request changes, and (b) whether they want a live preview of the storyboard scaffold (`npx hyperframes preview`) — open it only on a yes. Iterate until approved; carry the preview choice to Step 6.
107
+
108
+ **Gate:** `STORYBOARD.md` exists, every frame has the required narrative fields, `SCRIPT.md` exists when narration is needed, and the user approved the plan.
109
+
110
+ ---
111
+
112
+ ## Step 3.1: Audio
113
+
114
+ Goal: Generate narration, word timings, music, and audio metadata from the approved script.
115
+
116
+ Start audio after Step 3 approval. Run it in the background, then continue to Step 4.
117
+
118
+ `node <SKILL_DIR>/scripts/audio.mjs --script ./SCRIPT.md --storyboard ./STORYBOARD.md --hyperframes . --out ./audio_meta.json &`
119
+
120
+ The audio script handles narration, word timings, BGM lookup from HeyGen's music library, and timing metadata. BGM mood comes from the storyboard's `music:` field. This uses the HeyGen Audio API for retrieval, not generation, and the same `~/.heygen` credential as TTS. For provider details, read `../hyperframes-media/references/tts.md`.
121
+
122
+ If there is no narration and no `SCRIPT.md`, skip voice generation. BGM may still run if the storyboard has a music mood.
123
+
124
+ **Gate:** audio job has started, or the project is marked silent.
125
+
126
+ ---
127
+
128
+ ## Step 4: Frame Visual Design
129
+
130
+ Goal: Add the visual direction, layout intent, and motion choices to each storyboard frame.
131
+
132
+ Edit `STORYBOARD.md` in place. Do not create another storyboard. Use `frame.md` as the source of truth for color, type, layout feel, and style.
133
+
134
+ Read `references/visual-design.md`, `references/composition.md`, `references/motion-language.md`, `references/code-vocabulary.md`, and `../hyperframes-animation/`. Use `visual-design.md` for required frame fields and the required `## Video direction` block, and for how a code beat names a `code-*` block as its `focal`. Use `code-vocabulary.md` to pick the right block per beat (diff = `code-diff`, refactor = `code-morph`, new code = `code-typing`, …). Use `composition.md` for layout/hierarchy/focal points and `motion-language.md` + `../hyperframes-animation/` for valid effect and blueprint IDs. Do not invent effect names or block/blueprint IDs.
135
+
136
+ For every frame, add required visual and motion fields, including `effects` and `focal` and/or `roles`. For a code beat, name the `code-*` block as the `focal` and let `effects` choreograph the surrounding claude Code Surface (not the code animation, which the block owns). Add one video-wide `## Video direction` block.
137
+
138
+ Do not change story, script, `transition_in`, `asset_candidates`, or the PR source. Do not write HTML in this step. There is **no asset-staging step** — the only real assets are the credits avatars, already in `assets/`.
139
+
140
+ **Gate:** every frame has `effects` plus `focal` and/or `roles`; code frames name a `code-*` block; `## Video direction` exists.
141
+
142
+ ---
143
+
144
+ ## Step 5: Build Frames
145
+
146
+ Goal: Build every storyboard frame as an HTML composition and assemble the playable video.
147
+
148
+ Wait for Step 3.1 audio to finish if audio was started. Then sync durations and fetch SFX; skip both if silent.
149
+
150
+ `node <SKILL_DIR>/scripts/audio.mjs sync-durations --audio-meta ./audio_meta.json --storyboard ./STORYBOARD.md`
151
+
152
+ `node <SKILL_DIR>/scripts/audio.mjs fetch-sfx --storyboard ./STORYBOARD.md --hyperframes .`
153
+
154
+ Duration sync is mechanical: real voice duration wins; silent frames keep estimates; never hand-edit synced durations.
155
+
156
+ **Pre-install the registry blocks** named across `STORYBOARD.md` once, before dispatch, so parallel workers don't race on the registry:
157
+
158
+ `for b in <each registry block named in the storyboard>; do npx hyperframes add "$b"; done`
159
+
160
+ Before dispatch, read `sub-agents/frame-worker.md` and `../hyperframes-core/references/subagent-dispatch.md`. Dispatch one sub-agent per frame, in parallel if possible; otherwise run workers in waves. Each worker gets exactly one frame. Each worker's context must include `PROJECT_DIR`, `frame_id`, canvas size, caption status and keep-out band if captions are enabled, `ANIM_DIR` (absolute path to `../hyperframes-animation/`), and the absolute path to `references/code-vocabulary.md`. Each worker reads `frame.md`, its own `## Frame N` block, the recipe body for each cited effect/blueprint ID, and — for a code beat — `code-vocabulary.md` for the named block's inputs. Each worker writes only `compositions/frames/NN-*.html`; workers never edit `STORYBOARD.md`.
161
+
162
+ As each worker returns, mark that frame `animated` in `STORYBOARD.md`.
163
+
164
+ After audio timings exist, build captions in the background and assemble the index:
165
+
166
+ `node <SKILL_DIR>/scripts/captions.mjs build --storyboard ./STORYBOARD.md --audio-meta ./audio_meta.json --hyperframes . --out ./caption_groups.json &`
167
+
168
+ `node <SKILL_DIR>/scripts/assemble-index.mjs --storyboard ./STORYBOARD.md --hyperframes .`
169
+
170
+ `captions.mjs` uses the project's `.hyperframes/caption-skin.html` (claude's, copied in Step 2), injecting brand tokens from `frame.md`; `captions: skipped (<reason>)` is valid. `assemble-index.mjs` stages the credits avatars from `assets/` as an idempotent backstop.
171
+
172
+ **Gate:** every frame is marked `animated`, `index.html` exists, and captions are built or explicitly skipped.
173
+
174
+ ---
175
+
176
+ ## Step 6: Finalize
177
+
178
+ Goal: Verify the assembled video, get user approval, and render the final MP4.
179
+
180
+ Inject transitions, run checks, pause for review, then render.
181
+
182
+ `node <SKILL_DIR>/scripts/transitions.mjs inject --storyboard ./STORYBOARD.md --hyperframes .`
183
+
184
+ `node <SKILL_DIR>/scripts/transitions.mjs verify --storyboard ./STORYBOARD.md --index ./index.html`
185
+
186
+ `npx hyperframes lint`
187
+
188
+ `npx hyperframes validate`
189
+
190
+ `npx hyperframes inspect`
191
+
192
+ `npx hyperframes snapshot --at <frame-midpoints>`
193
+
194
+ `snapshot` stitches the captured frames into one contact sheet (`snapshots/contact-sheet.jpg`). Glance at it; if nothing is obviously broken, move on — don't linger here.
195
+
196
+ If a command fails, surface stderr and stop — don't pile on recovery commands. Fix it yourself: the cheapest safe edit to `compositions/frames/NN-*.html`, then rerun the failed check.
197
+
198
+ **Known false-positive — do not chase it.** `inspect` may report a handful of `text_box_overflow` errors of ~1–4px on the **caption** highlight words (selector `#caption-word-*` / `.caption-line`). The caption pill uses a deliberately snug `line-height` (set once in `scripts/captions.mjs`) and has **no `overflow:hidden`**, so a heavy display glyph's ink spills a few px into the pill's own padding — nothing is actually clipped. Treat these as expected and proceed. Do **not** inflate the caption `line-height` (it balloons the pill, which is worse). Only act on a `text_box_overflow` when it names a **frame** element (`#el-NN-*`), not a caption word.
199
+
200
+ After checks pass, pause for user review. The video is assembled, viewable, and editable in Studio. Manage preview only once across Step 3 and Step 6: open it if the user asked earlier, offer it if they declined earlier, do not ask again if they are already reviewing in Studio.
201
+
202
+ Preview: `npx hyperframes preview`
203
+
204
+ Render only after user approval:
205
+
206
+ `npx hyperframes render --skill=pr-to-video --quality high --output renders/video.mp4`
207
+
208
+ Do not rerun `lint`, `validate`, `inspect`, or `snapshot` after rendering unless the user asks.
209
+
210
+ **Gate:** `lint`, `validate`, and `inspect` passed before render; user approved at the review pause; `renders/video.mp4` exists. Final reply states the MP4 path and final duration.
211
+
212
+ ---
213
+
214
+ ## Quick Reference
215
+
216
+ **Formats:** landscape `1920x1080` by default; portrait `1080x1920`; square `1080x1080`. Set the format once in the storyboard frontmatter.
217
+
218
+ **PR deltas vs a captured-asset workflow:** no Step 1 capture (the `gh` CLI ingests the PR into a synthetic `capture/extracted/` package — `tokens.json` + `visible-text.txt` + `people.json`); the only real assets are the contributors' `assets/<login>.png` avatars (an optional credits close); no `asset-descriptions.md`, no asset-staging step. Code beats are rendered by the `code-*` registry blocks on claude's navy Code Surface; the style is always **claude**.
219
+
220
+ **Background scripts:** the workflow ships these under `scripts/`: `fetch-pr` (PR → `capture/pr.json` + `diff.patch` via `gh`; large-PR-safe, no scratch), `ingest` (→ synthetic capture package; offline), and `fetch-people-avatars` (contributor avatars → `assets/`); plus the shared engine — `build-frame` (adopt + brand-remix a preset into `frame.md` + caption skin), `audio` (TTS, BGM, SFX, duration sync), `captions`, `transitions` (inject + verify), and `assemble-index`. Everything else is the `hyperframes` CLI. Code blocks install via `npx hyperframes add <name>`.
221
+
222
+ | Read | When |
223
+ | ---------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------- |
224
+ | `[references/story-design.md](references/story-design.md)` | Step 3: plan the PR explanation. |
225
+ | `[../hyperframes-core/references/storyboard-format.md](../hyperframes-core/references/storyboard-format.md)` | Step 3: write `STORYBOARD.md`. |
226
+ | `[../hyperframes-core/references/script-format.md](../hyperframes-core/references/script-format.md)` | Step 3: write `SCRIPT.md`. |
227
+ | `[../hyperframes-media/references/tts.md](../hyperframes-media/references/tts.md)` | Step 3.1: choose or understand TTS providers. |
228
+ | `[references/visual-design.md](references/visual-design.md)` | Step 4: enrich the storyboard visually. |
229
+ | `[references/code-vocabulary.md](references/code-vocabulary.md)` | Step 4 + 5: pick + fill the `code-*` block for a code beat. |
230
+ | `[references/composition.md](references/composition.md)` | Step 4: judge composition. |
231
+ | `[references/motion-language.md](references/motion-language.md)` | Step 4: judge motion language. |
232
+ | `[../hyperframes-animation/](../hyperframes-animation/)` | Step 4: cite effect and blueprint IDs. |
233
+ | `[sub-agents/frame-worker.md](sub-agents/frame-worker.md)` | Step 5: dispatch per-frame workers. |
234
+ | `[../hyperframes-core/references/subagent-dispatch.md](../hyperframes-core/references/subagent-dispatch.md)` | Step 5: dispatch sub-agents safely. |
235
+ | `[../hyperframes-creative/frame-presets/claude/FRAME.md](../hyperframes-creative/frame-presets/claude/FRAME.md)` | Step 2: the claude preset (fixed style). |