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.
- package/package.json +1 -1
- package/skills/airunway-aks-setup/SKILL.md +73 -0
- package/skills/algorithmic-art/SKILL.md +405 -0
- package/skills/appinsights-instrumentation/SKILL.md +76 -0
- package/skills/azure-ai/SKILL.md +71 -0
- package/skills/azure-aigateway/SKILL.md +129 -0
- package/skills/azure-cloud-migrate/SKILL.md +52 -0
- package/skills/azure-compliance/SKILL.md +108 -0
- package/skills/azure-compute/SKILL.md +46 -0
- package/skills/azure-cost/SKILL.md +45 -0
- package/skills/azure-deploy/SKILL.md +97 -0
- package/skills/azure-diagnostics/SKILL.md +151 -0
- package/skills/azure-enterprise-infra-planner/SKILL.md +54 -0
- package/skills/azure-hosted-copilot-sdk/SKILL.md +89 -0
- package/skills/azure-kubernetes/SKILL.md +153 -0
- package/skills/azure-kusto/SKILL.md +231 -0
- package/skills/azure-messaging/SKILL.md +57 -0
- package/skills/azure-prepare/SKILL.md +165 -0
- package/skills/azure-quotas/SKILL.md +276 -0
- package/skills/azure-rbac/SKILL.md +17 -0
- package/skills/azure-reliability/SKILL.md +387 -0
- package/skills/azure-resource-lookup/SKILL.md +108 -0
- package/skills/azure-resource-visualizer/SKILL.md +183 -0
- package/skills/azure-storage/SKILL.md +100 -0
- package/skills/azure-upgrade/SKILL.md +91 -0
- package/skills/azure-validate/SKILL.md +72 -0
- package/skills/brainstorming/SKILL.md +159 -0
- package/skills/brand-guidelines/SKILL.md +73 -0
- package/skills/brandkit/SKILL.md +798 -0
- package/skills/brutalist-skill/SKILL.md +92 -0
- package/skills/canvas-design/SKILL.md +130 -0
- package/skills/cavecrew/SKILL.md +82 -0
- package/skills/caveman-commit/SKILL.md +65 -0
- package/skills/caveman-help/SKILL.md +63 -0
- package/skills/caveman-review/SKILL.md +55 -0
- package/skills/caveman-stats/SKILL.md +10 -0
- package/skills/claude-api/SKILL.md +356 -0
- package/skills/composition-patterns/SKILL.md +89 -0
- package/skills/decision-mapping/SKILL.md +84 -0
- package/skills/deploy-to-vercel/SKILL.md +296 -0
- package/skills/design-an-interface/SKILL.md +94 -0
- package/skills/design-doc-mermaid/SKILL.md +498 -0
- package/skills/develop-userscripts/SKILL.md +84 -0
- package/skills/doc-coauthoring/SKILL.md +375 -0
- package/skills/documentation/SKILL.md +109 -0
- package/skills/docx/SKILL.md +590 -0
- package/skills/edit-article/SKILL.md +15 -0
- package/skills/entra-agent-id/SKILL.md +356 -0
- package/skills/entra-app-registration/SKILL.md +191 -0
- package/skills/faceless-explainer/SKILL.md +202 -0
- package/skills/fastify/SKILL.md +75 -0
- package/skills/general-video/SKILL.md +143 -0
- package/skills/git-guardrails-claude-code/SKILL.md +95 -0
- package/skills/github-actions-docs/SKILL.md +98 -0
- package/skills/gpt-tasteskill/SKILL.md +74 -0
- package/skills/grill-me/SKILL.md +7 -0
- package/skills/grilling/SKILL.md +10 -0
- package/skills/handoff/SKILL.md +16 -0
- package/skills/hyperframes/SKILL.md +152 -0
- package/skills/hyperframes-animation/SKILL.md +82 -0
- package/skills/hyperframes-cli/SKILL.md +109 -0
- package/skills/hyperframes-core/SKILL.md +78 -0
- package/skills/hyperframes-creative/SKILL.md +68 -0
- package/skills/hyperframes-media/SKILL.md +97 -0
- package/skills/image-to-code-skill/SKILL.md +1228 -0
- package/skills/imagegen-frontend-mobile/SKILL.md +1465 -0
- package/skills/imagegen-frontend-web/SKILL.md +987 -0
- package/skills/implement/SKILL.md +15 -0
- package/skills/init/SKILL.md +91 -0
- package/skills/internal-comms/SKILL.md +32 -0
- package/skills/lark-approval/SKILL.md +56 -0
- package/skills/lark-base/SKILL.md +157 -0
- package/skills/lark-doc/SKILL.md +81 -0
- package/skills/lark-shared/SKILL.md +168 -0
- package/skills/lark-workflow-meeting-summary/SKILL.md +122 -0
- package/skills/linting-neostandard-eslint9/SKILL.md +64 -0
- package/skills/loop-me/SKILL.md +32 -0
- package/skills/microsoft-foundry/SKILL.md +262 -0
- package/skills/migrate-to-shoehorn/SKILL.md +118 -0
- package/skills/minimalist-skill/SKILL.md +85 -0
- package/skills/motion-graphics/SKILL.md +170 -0
- package/skills/music-to-video/SKILL.md +197 -0
- package/skills/node/SKILL.md +94 -0
- package/skills/nodejs-core/SKILL.md +156 -0
- package/skills/oauth/SKILL.md +186 -0
- package/skills/obsidian-vault/SKILL.md +59 -0
- package/skills/octocat/SKILL.md +93 -0
- package/skills/openclaw-secure-linux-cloud/SKILL.md +157 -0
- package/skills/opensource-guide-coach/SKILL.md +218 -0
- package/skills/output-skill/SKILL.md +49 -0
- package/skills/pdf/SKILL.md +314 -0
- package/skills/pptx/SKILL.md +232 -0
- package/skills/pr-to-video/SKILL.md +235 -0
- package/skills/product-launch-video/SKILL.md +205 -0
- package/skills/python-appservice-deploy/SKILL.md +36 -0
- package/skills/qa/SKILL.md +130 -0
- package/skills/react-best-practices/SKILL.md +149 -0
- package/skills/react-native-skills/SKILL.md +121 -0
- package/skills/react-view-transitions/SKILL.md +320 -0
- package/skills/readme-i18n/SKILL.md +176 -0
- package/skills/redesign-skill/SKILL.md +178 -0
- package/skills/remotion/SKILL.md +364 -0
- package/skills/request-refactor-plan/SKILL.md +68 -0
- package/skills/resolving-merge-conflicts/SKILL.md +14 -0
- package/skills/running-claude-code-via-litellm-copilot/SKILL.md +263 -0
- package/skills/scaffold-exercises/SKILL.md +106 -0
- package/skills/secure-linux-web-hosting/SKILL.md +162 -0
- package/skills/setup-pre-commit/SKILL.md +91 -0
- package/skills/shadcn/SKILL.md +267 -0
- package/skills/simple/SKILL.md +52 -0
- package/skills/skill-creator/SKILL.md +485 -0
- package/skills/skill-optimizer/SKILL.md +47 -0
- package/skills/skills-cli/SKILL.md +281 -0
- package/skills/slack-gif-creator/SKILL.md +254 -0
- package/skills/snipgrapher/SKILL.md +58 -0
- package/skills/soft-skill/SKILL.md +98 -0
- package/skills/stitch-skill/SKILL.md +184 -0
- package/skills/supabase/SKILL.md +135 -0
- package/skills/supabase-postgres-best-practices/SKILL.md +64 -0
- package/skills/systematic-debugging/SKILL.md +296 -0
- package/skills/talking-head-recut/SKILL.md +1191 -0
- package/skills/taste-skill/SKILL.md +1206 -0
- package/skills/taste-skill-v1/SKILL.md +226 -0
- package/skills/tdd/SKILL.md +108 -0
- package/skills/teach/SKILL.md +140 -0
- package/skills/test-driven-development/SKILL.md +371 -0
- package/skills/theme-factory/SKILL.md +59 -0
- package/skills/to-prd/SKILL.md +75 -0
- package/skills/typescript-magician/SKILL.md +117 -0
- package/skills/tzst/SKILL.md +68 -0
- package/skills/ubiquitous-language/SKILL.md +93 -0
- package/skills/use-my-browser/SKILL.md +110 -0
- package/skills/using-superpowers/SKILL.md +121 -0
- package/skills/vercel-cli-with-tokens/SKILL.md +353 -0
- package/skills/vercel-optimize/SKILL.md +322 -0
- package/skills/viral-instagram-reels/SKILL.md +180 -0
- package/skills/viral-short-form/SKILL.md +147 -0
- package/skills/viral-short-form-ideas/SKILL.md +184 -0
- package/skills/viral-tiktok-content/SKILL.md +180 -0
- package/skills/web-artifacts-builder/SKILL.md +74 -0
- package/skills/web-design-guidelines/SKILL.md +39 -0
- package/skills/webapp-testing/SKILL.md +96 -0
- package/skills/website-to-video/SKILL.md +145 -0
- package/skills/writing-beats/SKILL.md +67 -0
- package/skills/writing-fragments/SKILL.md +79 -0
- package/skills/writing-great-skills/SKILL.md +82 -0
- package/skills/writing-guidelines/SKILL.md +39 -0
- package/skills/writing-plans/SKILL.md +174 -0
- package/skills/writing-shape/SKILL.md +79 -0
- package/skills/xdrop/SKILL.md +78 -0
- package/skills/xget/SKILL.md +87 -0
- package/skills/xlsx/SKILL.md +292 -0
- package/src/tools/browser_use.js +2 -1
- package/src/tools/skills_download.js +217 -0
- package/src/utils/tools.js +2 -2
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: faceless-explainer
|
|
3
|
+
description: "turn arbitrary text — an article, notes, a topic, a brief — into a faceless explainer video, up to ~3 min (sweet spot 30-90s), where every visual is invented (typography, abstract graphics, diagrams, data-viz) rather than captured. There is no URL, no website capture, and no real assets. Use this skill for topic explainers, concept breakdowns, how-tos, listicles, and narrative explainers. Do not use it for a product launch/promo (use /product-launch-video), a tour of a real website (use /website-to-video), a GitHub PR (use /pr-to-video), 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
|
+
# Faceless Explainer to HyperFrames
|
|
9
|
+
|
|
10
|
+
Use this skill to turn a body of text into an explainer video: pick a design system, plan a teaching story, and build it frame by frame in HyperFrames. **Faceless** means every visual is invented downstream — there is no capture step and no real asset inventory.
|
|
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 **explaining a topic from text, with no product and no website to capture**. Route other intents elsewhere: a product launch/promo → `/product-launch-video`; a tour of a real site → `/website-to-video`; a GitHub PR → `/pr-to-video`; captions on existing footage → `/embedded-captions`; a short unnarrated motion graphic → `/motion-graphics`. 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 brief → `capture/extracted/`; 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 core video brief and create the HyperFrames project if needed.
|
|
23
|
+
|
|
24
|
+
Initialize only if `hyperframes.json` is missing. Name `<project>` from the topic in kebab-case, such as `compound-interest-explained`; never use workspace name or timestamp.
|
|
25
|
+
|
|
26
|
+
`npx hyperframes init "videos/<project>" --non-interactive --skip-skills --example=blank`
|
|
27
|
+
|
|
28
|
+
**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.
|
|
29
|
+
|
|
30
|
+
**Gate:** `hyperframes.json` exists, and angle, length, aspect ratio, and language are locked; sign-in status was shown (signed in, or continuing offline).
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
## Step 1: Brief (no capture)
|
|
35
|
+
|
|
36
|
+
Goal: Fold the user's text into the project as the source of information. There is **no website capture and no real assets** — this is a faceless explainer.
|
|
37
|
+
|
|
38
|
+
Save the user's full input verbatim, then create the synthetic capture package by hand:
|
|
39
|
+
|
|
40
|
+
- `capture/extracted/visible-text.txt` — the full article / notes / topic / brief, verbatim. This is the source of **information**, not a story template (Step 3 reshapes it).
|
|
41
|
+
- `capture/extracted/tokens.json` — `{ "title": "", "description": "", "colors": [], "fonts": [] }`. Fill `title`/`description` from the brief. Leave `colors`/`fonts` empty unless the user explicitly gave brand colors or fonts — then add them (the design preset supplies a complete palette regardless).
|
|
42
|
+
|
|
43
|
+
Do **not** run `npx hyperframes capture` (there is no URL). Do not create `asset-descriptions.md` or populate `capture/assets/` — faceless visuals are invented in Steps 4-5, not captured. The one exception: if the user supplied a real image, place it under `public/<basename>` and note it for Step 3.
|
|
44
|
+
|
|
45
|
+
**Gate:** `capture/extracted/visible-text.txt` and `capture/extracted/tokens.json` exist; you can state the explainer's topic and audience in one clear sentence.
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
## Step 2: Design System
|
|
50
|
+
|
|
51
|
+
Goal: Choose one shipped frame preset; a script turns it into this video's `frame.md` + caption skin.
|
|
52
|
+
|
|
53
|
+
You make the one judgment call — **which preset**. Read `../hyperframes-creative/references/design-spec.md` and browse `../hyperframes-creative/frame-presets/`; pick the preset whose look best fits the topic, tone, and audience. Then run:
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
node <SKILL_DIR>/scripts/build-frame.mjs --preset <name> --hyperframes .
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
The script does the rest deterministically: copies the preset's `FRAME.md` → `frame.md` and **remixes** it onto any brand tokens in `capture/extracted/tokens.json` (brand colors mapped onto the preset's color keys by role; the preset's display + body fonts swapped for the brand's), 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 of the spec.
|
|
60
|
+
|
|
61
|
+
A faceless explainer usually has **no brand colors/fonts** (`tokens.json` colors/fonts empty) → the script keeps the preset's own palette, a complete shippable design. Only when the user named brand colors/fonts add them to `tokens.json` before running, and only adjust `frame.md` by hand afterward if a mapping truly needs it.
|
|
62
|
+
|
|
63
|
+
**Gate:** `build-frame.mjs` exited 0 — `frame.md` exists from a named preset, and (when the preset ships one) `.hyperframes/caption-skin.html` exists as the caption skin source.
|
|
64
|
+
|
|
65
|
+
---
|
|
66
|
+
|
|
67
|
+
## Step 3: Storyboard and Script
|
|
68
|
+
|
|
69
|
+
Goal: Turn the text into an approved frame-by-frame teaching plan.
|
|
70
|
+
|
|
71
|
+
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`.
|
|
72
|
+
|
|
73
|
+
Use `story-design.md` for the explainer structure (concept / how-to / listicle / story), hook strategy, clarity techniques, emotional beats, the type-enum mapping, and `VO_MODE`. The video's sequence comes from **narrative design, not the input text's paragraph order** — reorder, merge, omit, compress. Faceless visuals are invented downstream, so frames do **not** carry an asset inventory: leave `asset_candidates` empty unless the user supplied a real `public/<basename>` image. Use the exact required fields from the storyboard and script references.
|
|
74
|
+
|
|
75
|
+
After drafting, show a frame-by-frame summary. In that same message ask the user two things: (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, and carry the preview choice to Step 6.
|
|
76
|
+
|
|
77
|
+
**Gate:** `STORYBOARD.md` exists, every frame has the required narrative fields, `SCRIPT.md` exists when narration is needed, and the user approved the frame-by-frame plan.
|
|
78
|
+
|
|
79
|
+
---
|
|
80
|
+
|
|
81
|
+
## Step 3.1: Audio
|
|
82
|
+
|
|
83
|
+
Goal: Generate narration, word timings, music, and audio metadata from the approved script.
|
|
84
|
+
|
|
85
|
+
Start audio after Step 3 approval. Run it in the background, then continue to Step 4. (Sign-in status was already shown in Step 0; the engine falls back automatically.)
|
|
86
|
+
|
|
87
|
+
`node <SKILL_DIR>/scripts/audio.mjs --script ./SCRIPT.md --storyboard ./STORYBOARD.md --hyperframes . --out ./audio_meta.json &`
|
|
88
|
+
|
|
89
|
+
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`.
|
|
90
|
+
|
|
91
|
+
If there is no narration and no `SCRIPT.md`, skip voice generation. BGM may still run if the storyboard has a music mood.
|
|
92
|
+
|
|
93
|
+
**Gate:** audio job has started, or the project is marked silent.
|
|
94
|
+
|
|
95
|
+
---
|
|
96
|
+
|
|
97
|
+
## Step 4: Frame Visual Design
|
|
98
|
+
|
|
99
|
+
Goal: Add the visual direction, layout intent, and motion choices to each storyboard frame.
|
|
100
|
+
|
|
101
|
+
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.
|
|
102
|
+
|
|
103
|
+
Read `references/visual-design.md`, `references/composition.md`, `references/motion-language.md`, and `../hyperframes-animation/`. Use `visual-design.md` for required frame fields and the required `## Video direction` block. Use `composition.md` for layout, hierarchy, focal points, and the invented-visual treatment. Use `motion-language.md` and `../hyperframes-animation/` for valid effects and blueprint IDs. Do not invent effect names or blueprint IDs.
|
|
104
|
+
|
|
105
|
+
For every frame, add required visual and motion fields, including `effects` and `focal` and/or `roles`. Because the explainer is faceless, `focal`/`roles` describe **invented visual elements** (a hero word, a diagram node, a data-viz series), not captured assets. Add one video-wide `## Video direction` block for overall visual direction, motion style, pacing, and design rules.
|
|
106
|
+
|
|
107
|
+
Do not change story, script, `transition_in`, or the source text. Do not write HTML in this step. There is **no asset-staging step** — faceless visuals are built by the workers in Step 5. If the user supplied a real `public/<basename>` image, reference it by path in the relevant frame's `focal`/`roles`; otherwise nothing to stage.
|
|
108
|
+
|
|
109
|
+
**Gate:** every frame has `effects` plus `focal` and/or `roles`; `## Video direction` exists.
|
|
110
|
+
|
|
111
|
+
---
|
|
112
|
+
|
|
113
|
+
## Step 5: Build Frames
|
|
114
|
+
|
|
115
|
+
Goal: Build every storyboard frame as an HTML composition and assemble the playable video.
|
|
116
|
+
|
|
117
|
+
Wait for Step 3.1 audio to finish if audio was started. Then sync durations and fetch SFX; skip both if silent.
|
|
118
|
+
|
|
119
|
+
`node <SKILL_DIR>/scripts/audio.mjs sync-durations --audio-meta ./audio_meta.json --storyboard ./STORYBOARD.md`
|
|
120
|
+
|
|
121
|
+
`node <SKILL_DIR>/scripts/audio.mjs fetch-sfx --storyboard ./STORYBOARD.md --hyperframes .`
|
|
122
|
+
|
|
123
|
+
Duration sync is mechanical: real voice duration wins; silent frames keep estimates; never hand-edit synced durations.
|
|
124
|
+
|
|
125
|
+
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.
|
|
126
|
+
|
|
127
|
+
Each worker context must include `PROJECT_DIR`, `frame_id`, canvas size, caption status and keep-out band if captions are enabled, and `ANIM_DIR` as the absolute path to `../hyperframes-animation/`. Each worker reads `frame.md`, its own `## Frame N` block from `STORYBOARD.md`, and the recipe body for each cited effect or blueprint ID. Each worker writes only `compositions/frames/NN-*.html`. Workers must never edit `STORYBOARD.md`.
|
|
128
|
+
|
|
129
|
+
As each worker returns, the orchestrator marks that frame as `animated` in `STORYBOARD.md`.
|
|
130
|
+
|
|
131
|
+
After audio timings exist, build captions in the background and assemble the index:
|
|
132
|
+
|
|
133
|
+
`node <SKILL_DIR>/scripts/captions.mjs build --storyboard ./STORYBOARD.md --audio-meta ./audio_meta.json --hyperframes . --out ./caption_groups.json &`
|
|
134
|
+
|
|
135
|
+
`node <SKILL_DIR>/scripts/assemble-index.mjs --storyboard ./STORYBOARD.md --hyperframes .`
|
|
136
|
+
|
|
137
|
+
`captions.mjs` uses the project's `.hyperframes/caption-skin.html` (copied in Step 2) as the caption look, injecting brand tokens from `frame.md`; with no skin present it renders the built-in default pill. `captions: skipped (<reason>)` is valid. Continue without captions when explicitly skipped.
|
|
138
|
+
|
|
139
|
+
**Gate:** every frame is marked `animated`, `index.html` exists, and captions are built or explicitly skipped.
|
|
140
|
+
|
|
141
|
+
---
|
|
142
|
+
|
|
143
|
+
## Step 6: Finalize
|
|
144
|
+
|
|
145
|
+
Goal: Verify the assembled video, get user approval, and render the final MP4.
|
|
146
|
+
|
|
147
|
+
Inject transitions, run checks, pause for review, then render.
|
|
148
|
+
|
|
149
|
+
`node <SKILL_DIR>/scripts/transitions.mjs inject --storyboard ./STORYBOARD.md --hyperframes .`
|
|
150
|
+
|
|
151
|
+
`node <SKILL_DIR>/scripts/transitions.mjs verify --storyboard ./STORYBOARD.md --index ./index.html`
|
|
152
|
+
|
|
153
|
+
`npx hyperframes lint`
|
|
154
|
+
|
|
155
|
+
`npx hyperframes validate`
|
|
156
|
+
|
|
157
|
+
`npx hyperframes inspect`
|
|
158
|
+
|
|
159
|
+
`npx hyperframes snapshot --at <frame-midpoints>`
|
|
160
|
+
|
|
161
|
+
`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.
|
|
162
|
+
|
|
163
|
+
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.
|
|
164
|
+
|
|
165
|
+
**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.
|
|
166
|
+
|
|
167
|
+
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, and do not ask again if they are already reviewing in Studio.
|
|
168
|
+
|
|
169
|
+
Preview: `npx hyperframes preview`
|
|
170
|
+
|
|
171
|
+
Render only after user approval:
|
|
172
|
+
|
|
173
|
+
`npx hyperframes render --skill=faceless-explainer --quality high --output renders/video.mp4`
|
|
174
|
+
|
|
175
|
+
Do not rerun `lint`, `validate`, `inspect`, or `snapshot` after rendering unless the user asks.
|
|
176
|
+
|
|
177
|
+
**Gate:** `lint`, `validate`, and `inspect` passed before render; user approved at the review pause; `renders/video.mp4` exists. Final reply states MP4 path and final duration.
|
|
178
|
+
|
|
179
|
+
---
|
|
180
|
+
|
|
181
|
+
## Quick Reference
|
|
182
|
+
|
|
183
|
+
**Formats:** landscape `1920x1080` by default; portrait `1080x1920`; square `1080x1080`. Set the format once in the storyboard frontmatter.
|
|
184
|
+
|
|
185
|
+
**Faceless deltas vs a captured-asset workflow:** no Step 1 capture (synthetic `tokens.json` + `visible-text.txt`); no `asset-descriptions.md` and no `capture/assets/`; no asset-staging in Step 4; `asset_candidates` empty by default; every visual is invented by the Step 5 workers (typography / abstract graphics / diagrams / data-viz). A user-supplied `public/<basename>` image is the only real asset path.
|
|
186
|
+
|
|
187
|
+
**Background scripts:** the workflow ships only these under `scripts/`: `build-frame` for adopting + brand-remixing a frame preset into `frame.md` (+ caption skin); `audio` for TTS, transcription, BGM, SFX, and duration syncing; `captions`; `transitions` for inject and verify; and `assemble-index`. Everything else is the `hyperframes` CLI.
|
|
188
|
+
|
|
189
|
+
| Read | When |
|
|
190
|
+
| ------------------------------------------------------------------------------------------------------------ | --------------------------------------------- |
|
|
191
|
+
| `[../hyperframes-creative/frame-presets/](../hyperframes-creative/frame-presets/)` | Step 2: choose and adopt a frame preset. |
|
|
192
|
+
| `[../hyperframes-creative/references/design-spec.md](../hyperframes-creative/references/design-spec.md)` | Step 2: apply brand tokens correctly. |
|
|
193
|
+
| `[references/story-design.md](references/story-design.md)` | Step 3: plan the explainer story. |
|
|
194
|
+
| `[../hyperframes-core/references/storyboard-format.md](../hyperframes-core/references/storyboard-format.md)` | Step 3: write `STORYBOARD.md`. |
|
|
195
|
+
| `[../hyperframes-core/references/script-format.md](../hyperframes-core/references/script-format.md)` | Step 3: write `SCRIPT.md`. |
|
|
196
|
+
| `[../hyperframes-media/references/tts.md](../hyperframes-media/references/tts.md)` | Step 3.1: choose or understand TTS providers. |
|
|
197
|
+
| `[references/visual-design.md](references/visual-design.md)` | Step 4: enrich the storyboard visually. |
|
|
198
|
+
| `[references/composition.md](references/composition.md)` | Step 4: judge composition. |
|
|
199
|
+
| `[references/motion-language.md](references/motion-language.md)` | Step 4: judge motion language. |
|
|
200
|
+
| `[../hyperframes-animation/](../hyperframes-animation/)` | Step 4: cite effect and blueprint IDs. |
|
|
201
|
+
| `[sub-agents/frame-worker.md](sub-agents/frame-worker.md)` | Step 5: dispatch per-frame workers. |
|
|
202
|
+
| `[../hyperframes-core/references/subagent-dispatch.md](../hyperframes-core/references/subagent-dispatch.md)` | Step 5: dispatch sub-agents safely. |
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: fastify-best-practices
|
|
3
|
+
description: "Guides development of Fastify Node.js backend servers and REST APIs using TypeScript or JavaScript. Use when building, configuring, or debugging a Fastify application — including defining routes, implementing plugins, setting up JSON Schema validation, handling errors, optimising performance, managing authentication, configuring CORS and security headers, integrating databases, working with WebSockets, and deploying to production. Covers the full Fastify request lifecycle (hooks, serialization, logging with Pino) and TypeScript integration via strip types. Trigger terms: Fastify, Node.js server, REST API, API routes, backend framework, fastify.config, server.ts, app.ts."
|
|
4
|
+
metadata:
|
|
5
|
+
tags: fastify, nodejs, typescript, backend, api, server, http
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## When to use
|
|
9
|
+
|
|
10
|
+
Use this skill when you need to:
|
|
11
|
+
- Develop backend applications using Fastify
|
|
12
|
+
- Implement Fastify plugins and route handlers
|
|
13
|
+
- Get guidance on Fastify architecture and patterns
|
|
14
|
+
- Use TypeScript with Fastify (strip types)
|
|
15
|
+
- Implement testing with Fastify's inject method
|
|
16
|
+
- Configure validation, serialization, and error handling
|
|
17
|
+
|
|
18
|
+
## Quick Start
|
|
19
|
+
|
|
20
|
+
A minimal, runnable Fastify server to get started immediately:
|
|
21
|
+
|
|
22
|
+
```ts
|
|
23
|
+
import Fastify from 'fastify'
|
|
24
|
+
|
|
25
|
+
const app = Fastify({ logger: true })
|
|
26
|
+
|
|
27
|
+
app.get('/health', async (request, reply) => {
|
|
28
|
+
return { status: 'ok' }
|
|
29
|
+
})
|
|
30
|
+
|
|
31
|
+
const start = async () => {
|
|
32
|
+
await app.listen({ port: 3000, host: '0.0.0.0' })
|
|
33
|
+
}
|
|
34
|
+
start()
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Recommended Reading Order for Common Scenarios
|
|
38
|
+
|
|
39
|
+
- **New to Fastify?** Start with `plugins.md` → `routes.md` → `schemas.md`
|
|
40
|
+
- **Adding authentication:** `plugins.md` → `hooks.md` → `authentication.md`
|
|
41
|
+
- **Improving performance:** `schemas.md` → `serialization.md` → `performance.md`
|
|
42
|
+
- **Setting up testing:** `routes.md` → `testing.md`
|
|
43
|
+
- **Going to production:** `logging.md` → `configuration.md` → `deployment.md`
|
|
44
|
+
|
|
45
|
+
## How to use
|
|
46
|
+
|
|
47
|
+
Read individual rule files for detailed explanations and code examples:
|
|
48
|
+
|
|
49
|
+
- [rules/plugins.md](rules/plugins.md) - Plugin development and encapsulation
|
|
50
|
+
- [rules/routes.md](rules/routes.md) - Route organization and handlers
|
|
51
|
+
- [rules/schemas.md](rules/schemas.md) - JSON Schema validation
|
|
52
|
+
- [rules/error-handling.md](rules/error-handling.md) - Error handling patterns
|
|
53
|
+
- [rules/hooks.md](rules/hooks.md) - Hooks and request lifecycle
|
|
54
|
+
- [rules/authentication.md](rules/authentication.md) - Authentication and authorization
|
|
55
|
+
- [rules/testing.md](rules/testing.md) - Testing with inject()
|
|
56
|
+
- [rules/performance.md](rules/performance.md) - Performance optimization
|
|
57
|
+
- [rules/logging.md](rules/logging.md) - Logging with Pino
|
|
58
|
+
- [rules/typescript.md](rules/typescript.md) - TypeScript integration
|
|
59
|
+
- [rules/decorators.md](rules/decorators.md) - Decorators and extensions
|
|
60
|
+
- [rules/content-type.md](rules/content-type.md) - Content type parsing
|
|
61
|
+
- [rules/serialization.md](rules/serialization.md) - Response serialization
|
|
62
|
+
- [rules/cors-security.md](rules/cors-security.md) - CORS and security headers
|
|
63
|
+
- [rules/websockets.md](rules/websockets.md) - WebSocket support
|
|
64
|
+
- [rules/database.md](rules/database.md) - Database integration patterns
|
|
65
|
+
- [rules/configuration.md](rules/configuration.md) - Application configuration
|
|
66
|
+
- [rules/deployment.md](rules/deployment.md) - Production deployment
|
|
67
|
+
- [rules/http-proxy.md](rules/http-proxy.md) - HTTP proxying and reply.from()
|
|
68
|
+
|
|
69
|
+
## Core Principles
|
|
70
|
+
|
|
71
|
+
- **Encapsulation**: Fastify's plugin system provides automatic encapsulation
|
|
72
|
+
- **Schema-first**: Define schemas for validation and serialization
|
|
73
|
+
- **Performance**: Fastify is optimized for speed; use its features correctly
|
|
74
|
+
- **Async/await**: All handlers and hooks support async functions
|
|
75
|
+
- **Minimal dependencies**: Prefer Fastify's built-in features and official plugins
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: general-video
|
|
3
|
+
description: >
|
|
4
|
+
The fallback workflow for authoring custom HyperFrames video compositions at
|
|
5
|
+
any length or format — longer or multi-scene pieces, brand / sizzle reels,
|
|
6
|
+
montages, title cards, static loops, and freeform compositions. Input- and
|
|
7
|
+
length-agnostic. If a specialized workflow clearly fits the input — a
|
|
8
|
+
marketed product, a website, a topic explainer, a GitHub PR, existing
|
|
9
|
+
footage, a short motion graphic, or a Remotion port — prefer it (see
|
|
10
|
+
/hyperframes); use this only as the general fallback when none fit.
|
|
11
|
+
metadata: { "tags": "orchestrator, general-video, fallback, freeform, composition-authoring" }
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
> **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.
|
|
15
|
+
|
|
16
|
+
# general-video — general video workflow
|
|
17
|
+
|
|
18
|
+
> **Confirm the route before you build.** This is the **fallback** for custom composition authoring. If the input clearly fits a specialized workflow, prefer it: marketed product → `/product-launch-video`; general site → `/website-to-video`; topic explainer → `/faceless-explainer`; GitHub PR → `/pr-to-video`; existing footage → `/embedded-captions` · `/talking-head-recut`; short unnarrated motion graphic → `/motion-graphics`; Remotion port → `/remotion-to-hyperframes`. **Out of scope**: live / at-render-time data, NLE-style editing of a finished video, or producing footage HyperFrames can't capture. Unsure? **Read `/hyperframes` first.**
|
|
19
|
+
|
|
20
|
+
**Build exactly what was asked.** A title card is a title card — not a title card + three supporting scenes + ambient music + captions. If extra scenes or elements would genuinely improve the piece, _propose_ them; don't add them silently. For small edits (fix a color, adjust one duration, add one element), skip the planning steps and go straight to the build.
|
|
21
|
+
|
|
22
|
+
## Approach
|
|
23
|
+
|
|
24
|
+
### Discovery — open-ended requests only
|
|
25
|
+
|
|
26
|
+
For vague, exploratory requests ("make something for our brand", "a cool intro") — understand intent before picking colors:
|
|
27
|
+
|
|
28
|
+
- **Audience** — who watches? developers / executives / general consumers?
|
|
29
|
+
- **Platform** — where does it play? social (15s) / website hero / product demo / internal?
|
|
30
|
+
- **Priority** — what matters most? motion quality / content accuracy / brand fidelity / speed?
|
|
31
|
+
- **Variations** — one best shot, or 2-3 meaningfully different options (different pacing, energy, or structure — not just color swaps)?
|
|
32
|
+
|
|
33
|
+
For specific requests ("add a title card", "fix the timing on scene 3"), skip discovery.
|
|
34
|
+
|
|
35
|
+
### Step 1 — Design system → `hyperframes-creative`
|
|
36
|
+
|
|
37
|
+
Establish the visual identity first. If the project has a design spec, read it (precedence `frame.md` → `design.md` → `DESIGN.md`; treat it as brand truth — exact colors, fonts, constraints).
|
|
38
|
+
|
|
39
|
+
**If no spec exists, you MUST read BOTH `hyperframes-creative/references/house-style.md` AND `hyperframes-creative/references/video-composition.md` before choosing any color or font.** `house-style.md` gives the "interpret the prompt / generate real content" opener, lazy-default list, and layer recipe; `video-composition.md` gives the video-medium density / scale / **foreground detailing** (data bars, registration marks, monospace metadata, "8-10 elements, two the user didn't ask for") that separates "produced" from "generated." Reading only one is the most common miss — `video-composition.md` is the one agents skip, and it is exactly the one that prevents flat, centered, web-page-looking output. Do not self-invent a palette and skip these; crossing into `hyperframes-creative` is mandatory here, not an optional branch. From there, also pull a named style/mood → `references/visual-styles.md`, or the interactive picker → `references/design-picker.md`, as needed. The spec/style defines the **brand**, not the composition rules.
|
|
40
|
+
|
|
41
|
+
**Find the angle (vague brief, no spec):** before picking colors, write ONE sentence — what does this name/word/topic evoke, and what visual _world_ (metaphor, setting, instrument, motif) expresses it? E.g. a cybersecurity tool → vault doors / perimeter scan lines / lock tumblers; a meditation app → tide, breath, slow light bloom. Read the _meaning_ of the subject, not just its letters; pick a concrete angle over a literal restyle. This is the cheap substitute for prompt expansion (Step 2) on single-scene pieces, where expansion is correctly skipped — and it is the difference between a designed concept and a generic logo-on-a-gradient.
|
|
42
|
+
|
|
43
|
+
<HARD-GATE>
|
|
44
|
+
Before writing ANY composition HTML, verify you have ALL FOUR:
|
|
45
|
+
1. **A visual identity** grounded in the spec or `house-style.md` — not invented on the spot. (Reaching for `#333`, `#3b82f6`, or `Roboto`? You skipped it.)
|
|
46
|
+
2. **A one-sentence concept angle** (the "find the angle" step) for anything beyond a trivial edit — not a literal restyle of the prompt words.
|
|
47
|
+
3. **A font pairing from the embed list** (`hyperframes-creative/references/typography.md` → "Fonts that embed") chosen on purpose — not `Inter`/`Helvetica Neue`/`system-ui` by default, and never an un-embedded display font you're just hoping renders (un-bundled names embed only if auto-captured locally — and cloud renders won't capture them).
|
|
48
|
+
4. **A foreground/density plan from `video-composition.md`** — the anchor-to-edges, 8-10-elements, foreground-metadata, background-texture rules. (Centered stack on a flat color with fewer than ~6 elements and no edge-anchored detail? You skipped it — that is the generic tell.)
|
|
49
|
+
</HARD-GATE>
|
|
50
|
+
|
|
51
|
+
### Step 2 — Prompt expansion → `hyperframes-creative`
|
|
52
|
+
|
|
53
|
+
Run for every multi-scene composition (skip for single-scene pieces and trivial edits). Ground the request against the design spec + house style into a consistent intermediate that downstream work reads the same way. See `hyperframes-creative/references/prompt-expansion.md`.
|
|
54
|
+
|
|
55
|
+
### Step 3 — Plan
|
|
56
|
+
|
|
57
|
+
Before writing HTML, think at a high level:
|
|
58
|
+
|
|
59
|
+
1. **What** — the viewer experience: narrative arc, key moments, emotional beats.
|
|
60
|
+
2. **Structure** — how many compositions, sub-comp vs inline, which tracks carry video / audio / overlays / captions. For the monolithic-single-file vs modular-sub-comp call, see `hyperframes-core/references/composition-patterns.md` § Two Architectures (rule of thumb: ≥3 hard scene cuts, or any reused scene → modularize; a short single-scene piece stays one file).
|
|
61
|
+
3. **Rhythm** — name the pattern before implementing (e.g. `fast-fast-SLOW-SHADER-hold`); see `hyperframes-creative/references/beat-direction.md`.
|
|
62
|
+
4. **Timing** — which clips drive duration, where transitions land, the pacing.
|
|
63
|
+
5. **Layout** — build the end state first (see below).
|
|
64
|
+
6. **Animate** — then add motion via `hyperframes-animation`.
|
|
65
|
+
|
|
66
|
+
## Layout Before Animation
|
|
67
|
+
|
|
68
|
+
Position every element where it sits at its **most visible moment** — fully entered, correctly placed, not yet exiting. Write that as static HTML + CSS first. **No GSAP yet.**
|
|
69
|
+
|
|
70
|
+
**Why:** if you position elements at their animated start state (offscreen, scaled to 0, opacity 0) and tween to where you _think_ they land, you are guessing the final layout — overlaps stay invisible until render. Build the end state first and you see and fix layout problems before adding motion.
|
|
71
|
+
|
|
72
|
+
1. **Identify the hero frame** for each scene — the moment the most elements are simultaneously visible. That is the layout you build.
|
|
73
|
+
2. **Write static CSS** for that frame. The content container must fill the scene with padding, not absolute offsets:
|
|
74
|
+
|
|
75
|
+
```css
|
|
76
|
+
.scene-content {
|
|
77
|
+
display: flex;
|
|
78
|
+
flex-direction: column;
|
|
79
|
+
justify-content: center;
|
|
80
|
+
width: 100%;
|
|
81
|
+
height: 100%;
|
|
82
|
+
padding: 120px 160px; /* padding positions content; fills any scene size */
|
|
83
|
+
gap: 24px;
|
|
84
|
+
box-sizing: border-box;
|
|
85
|
+
}
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
Never use `position: absolute; top: Npx` on a content container — it overflows when content is taller than the space. Reserve absolute positioning for decoratives.
|
|
89
|
+
|
|
90
|
+
> ⚠ **The `width/height: 100%` above only resolves if every ancestor has a resolved height.** The root `<div data-composition-id>` and any wrapper between it and `.scene-content` must be sized (`position: relative; width: 1920px; height: 1080px` on the root — see `hyperframes-core` → "Root must be sized"). Skip this and the flex container collapses to ~0, content piles into the **top-left corner**, and the first glyph clips at x=0 — while `lint`/`inspect` still report 0 issues. And **always keep the `padding`** (≥80px) on `.scene-content`: it is the title-safe margin. Never replace it with bare `gap`.
|
|
91
|
+
|
|
92
|
+
3. **Add entrances** — animate FROM offscreen/invisible TO the CSS position with `gsap.from()` (in sub-compositions prefer `gsap.fromTo()` so the start state is explicit; see `hyperframes-core/references/sub-compositions.md`). The CSS position is ground truth; the tween is the journey to it.
|
|
93
|
+
4. **Exits are transition-handled** — per the scene-transition rules in `hyperframes-animation/transitions/`, only the **final** scene animates elements out; between scenes the transition IS the exit.
|
|
94
|
+
|
|
95
|
+
**Shared space across time:** if element A exits before element B enters in the same area, both still need correct CSS positions for their respective hero frames — timeline ordering keeps them from coexisting, and the layout step catches accidental overlap. Layered glows/shadows and z-stacked depth are _intentional_ overlap; the step is about catching _unintentional_ collisions (two headlines on top of each other, content bleeding off-frame).
|
|
96
|
+
|
|
97
|
+
## Build — delegate to the domain skills
|
|
98
|
+
|
|
99
|
+
This maps the skill's full surface (see the `description`) to its references — non-exhaustive; when an intent isn't listed, route through `hyperframes-creative` (look/concept), `hyperframes-animation` (motion), `hyperframes-core` (contract), `hyperframes-media` (audio/captions). **The first row is ADDITIVE — read it AND your intent row, not one or the other.**
|
|
100
|
+
|
|
101
|
+
| Building… | Read first (in order) |
|
|
102
|
+
| --------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
103
|
+
| **ALWAYS — every non-trivial piece, on top of your intent row below** | `hyperframes-creative/references/house-style.md` + `references/video-composition.md` (also gated in Step 1 / HARD-GATE; the "produced, not generated" foreground detailing) |
|
|
104
|
+
| **Kinetic typography / text-forward** | `hyperframes-animation/techniques.md` (kinetic type) + `adapters/gsap-easing-and-stagger.md` + `rules/kinetic-beat-slam.md` |
|
|
105
|
+
| **Title card / lower-third / overlay / PiP / text-behind-subject** | `hyperframes-creative/references/composition-patterns.md` + (for the centered/sized frame) `hyperframes-core` → "Root must be sized" |
|
|
106
|
+
| **Logo / brand-mark reveal** | `hyperframes-animation/rules/svg-path-draw.md` (draw-on) + `rules/3d-text-depth-layers.md` + `rules/scale-swap-transition.md` |
|
|
107
|
+
| **Data / stats / numbers** | `hyperframes-animation/rules/counting-dynamic-scale.md` + `rules/stat-bars-and-fills.md` + `hyperframes-creative/references/data-in-motion.md` |
|
|
108
|
+
| **Product / app / UI demo** | `hyperframes-animation/rules/3d-page-scroll.md` + `rules/cursor-click-ripple.md` + `rules/press-release-spring.md` |
|
|
109
|
+
| **Audio-reactive / music-driven** | `hyperframes-creative/references/audio-reactive.md` (pre-extract bands; map to motion) |
|
|
110
|
+
| **Narrated / voiceover / music / SFX / captions** | `hyperframes-media` → the shared audio engine `scripts/audio.mjs` (one call = TTS + BGM + SFX → `audio_meta.json`); caption authoring + asset placement via `hyperframes-core`. See **Audio** below. |
|
|
111
|
+
| **Multi-scene / transitions** | `hyperframes-animation/transitions/overview.md` **then** `transitions/catalog.md` (you are not done after the overview — the GSAP recipe is in the catalog) |
|
|
112
|
+
| **Modular / sub-compositions** | `hyperframes-core/references/composition-patterns.md` + `references/sub-compositions.md` |
|
|
113
|
+
|
|
114
|
+
### Audio: one engine (TTS · BGM · SFX)
|
|
115
|
+
|
|
116
|
+
Only when the piece calls for it (per "build exactly what was asked" — no ambient music on a title card). Don't hand-roll TTS or vendor a copy: write a neutral `audio_request.json` and call the shared engine in `hyperframes-media`. It auto-degrades on one switch — HeyGen credential present → HeyGen TTS + music/SFX **retrieval**; absent → ElevenLabs/Kokoro TTS, Lyria/MusicGen BGM **generation**, and the bundled SFX library. Full flag list + request/meta schema: the header comment of `hyperframes-media/scripts/audio.mjs`.
|
|
117
|
+
|
|
118
|
+
```jsonc
|
|
119
|
+
// audio_request.json — one line per narrated segment; `id` is yours (joins audio_meta back)
|
|
120
|
+
{
|
|
121
|
+
"lines": [
|
|
122
|
+
{ "id": "s1", "text": "Your opening line.", "sfx": ["whoosh"] },
|
|
123
|
+
{ "id": "s2", "text": "The next beat." },
|
|
124
|
+
],
|
|
125
|
+
"bgm": { "query": "calm cinematic underscore" }, // omit "mode" → auto (retrieve if HeyGen, else generate); "none" to disable
|
|
126
|
+
}
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
```bash
|
|
130
|
+
# <MEDIA_DIR> = the installed hyperframes-media skill dir (sibling of this skill)
|
|
131
|
+
node <MEDIA_DIR>/scripts/audio.mjs --request ./audio_request.json --hyperframes . --out ./audio_meta.json
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
Then read `audio_meta.json`: mount each `voices[].path` + (`bgm.path`, `sfx[]`) as `<audio>` tracks and use `voices[].words` for captions, all per `hyperframes-core` (audio tracks + caption authoring). If BGM took the generate path (`bgm_pending: true`), run `hyperframes-media/scripts/wait-bgm.mjs` before final render.
|
|
135
|
+
|
|
136
|
+
## Output checklist → `hyperframes-cli`
|
|
137
|
+
|
|
138
|
+
- [ ] `npx hyperframes lint` and `npx hyperframes validate` pass (block on results)
|
|
139
|
+
- [ ] design adherence verified if a spec (`frame.md` / `design.md`) exists — checklist in `hyperframes-creative/references/design-adherence.md`
|
|
140
|
+
- [ ] `npx hyperframes inspect` passes, or every overflow is intentionally marked
|
|
141
|
+
- [ ] contrast warnings addressed; for multi-scene work, review the animation map (`hyperframes-animation/scripts/animation-map.mjs`)
|
|
142
|
+
- [ ] deliver the preview; render to MP4 only on explicit request
|
|
143
|
+
- [ ] surface the preview **only at handoff** (it is the stable, final preview); don't pop one mid-build — build-phase snapshots are headless
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: git-guardrails-claude-code
|
|
3
|
+
description: Set up Claude Code hooks to block dangerous git commands (push, reset --hard, clean, branch -D, etc.) before they execute. Use when user wants to prevent destructive git operations, add git safety hooks, or block git push/reset in Claude Code.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Setup Git Guardrails
|
|
7
|
+
|
|
8
|
+
Sets up a PreToolUse hook that intercepts and blocks dangerous git commands before Claude executes them.
|
|
9
|
+
|
|
10
|
+
## What Gets Blocked
|
|
11
|
+
|
|
12
|
+
- `git push` (all variants including `--force`)
|
|
13
|
+
- `git reset --hard`
|
|
14
|
+
- `git clean -f` / `git clean -fd`
|
|
15
|
+
- `git branch -D`
|
|
16
|
+
- `git checkout .` / `git restore .`
|
|
17
|
+
|
|
18
|
+
When blocked, Claude sees a message telling it that it does not have authority to access these commands.
|
|
19
|
+
|
|
20
|
+
## Steps
|
|
21
|
+
|
|
22
|
+
### 1. Ask scope
|
|
23
|
+
|
|
24
|
+
Ask the user: install for **this project only** (`.claude/settings.json`) or **all projects** (`~/.claude/settings.json`)?
|
|
25
|
+
|
|
26
|
+
### 2. Copy the hook script
|
|
27
|
+
|
|
28
|
+
The bundled script is at: [scripts/block-dangerous-git.sh](scripts/block-dangerous-git.sh)
|
|
29
|
+
|
|
30
|
+
Copy it to the target location based on scope:
|
|
31
|
+
|
|
32
|
+
- **Project**: `.claude/hooks/block-dangerous-git.sh`
|
|
33
|
+
- **Global**: `~/.claude/hooks/block-dangerous-git.sh`
|
|
34
|
+
|
|
35
|
+
Make it executable with `chmod +x`.
|
|
36
|
+
|
|
37
|
+
### 3. Add hook to settings
|
|
38
|
+
|
|
39
|
+
Add to the appropriate settings file:
|
|
40
|
+
|
|
41
|
+
**Project** (`.claude/settings.json`):
|
|
42
|
+
|
|
43
|
+
```json
|
|
44
|
+
{
|
|
45
|
+
"hooks": {
|
|
46
|
+
"PreToolUse": [
|
|
47
|
+
{
|
|
48
|
+
"matcher": "Bash",
|
|
49
|
+
"hooks": [
|
|
50
|
+
{
|
|
51
|
+
"type": "command",
|
|
52
|
+
"command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/block-dangerous-git.sh"
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
]
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
**Global** (`~/.claude/settings.json`):
|
|
62
|
+
|
|
63
|
+
```json
|
|
64
|
+
{
|
|
65
|
+
"hooks": {
|
|
66
|
+
"PreToolUse": [
|
|
67
|
+
{
|
|
68
|
+
"matcher": "Bash",
|
|
69
|
+
"hooks": [
|
|
70
|
+
{
|
|
71
|
+
"type": "command",
|
|
72
|
+
"command": "~/.claude/hooks/block-dangerous-git.sh"
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
}
|
|
76
|
+
]
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
If the settings file already exists, merge the hook into existing `hooks.PreToolUse` array — don't overwrite other settings.
|
|
82
|
+
|
|
83
|
+
### 4. Ask about customization
|
|
84
|
+
|
|
85
|
+
Ask if user wants to add or remove any patterns from the blocked list. Edit the copied script accordingly.
|
|
86
|
+
|
|
87
|
+
### 5. Verify
|
|
88
|
+
|
|
89
|
+
Run a quick test:
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
echo '{"tool_input":{"command":"git push origin main"}}' | <path-to-script>
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
Should exit with code 2 and print a BLOCKED message to stderr.
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: github-actions-docs
|
|
3
|
+
description: Use when users ask how to write, explain, customize, migrate, secure, or troubleshoot GitHub Actions workflows, workflow syntax, triggers, matrices, runners, reusable workflows, artifacts, caching, secrets, OIDC, deployments, custom actions, or Actions Runner Controller, especially when they need official GitHub documentation, exact links, or docs-grounded YAML guidance.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
GitHub Actions questions are easy to answer from stale memory. Use this skill to ground answers in official GitHub documentation and return the closest authoritative page instead of generic CI/CD advice.
|
|
7
|
+
|
|
8
|
+
## When to Use
|
|
9
|
+
|
|
10
|
+
Use this skill when the request is about:
|
|
11
|
+
|
|
12
|
+
- GitHub Actions concepts, terminology, or product boundaries
|
|
13
|
+
- Workflow YAML, triggers, jobs, matrices, concurrency, variables, contexts, or expressions
|
|
14
|
+
- GitHub-hosted runners, larger runners, self-hosted runners, or Actions Runner Controller
|
|
15
|
+
- Artifacts, caches, reusable workflows, workflow templates, or custom actions
|
|
16
|
+
- Secrets, `GITHUB_TOKEN`, OpenID Connect, artifact attestations, or secure workflow patterns
|
|
17
|
+
- Environments, deployment protection rules, deployment history, or deployment examples
|
|
18
|
+
- Migrating from Jenkins, CircleCI, GitLab CI/CD, Travis CI, Azure Pipelines, or other CI systems
|
|
19
|
+
- Troubleshooting workflow behavior when the user needs documentation, syntax guidance, or official references
|
|
20
|
+
|
|
21
|
+
Do not use this skill for:
|
|
22
|
+
|
|
23
|
+
- A specific failing PR check, missing workflow log, or CI failure triage. Use `gh-fix-ci`.
|
|
24
|
+
- General GitHub pull request, branch, or repository operations. Use `github`.
|
|
25
|
+
- CodeQL-specific configuration or code scanning guidance. Use `codeql`.
|
|
26
|
+
- Dependabot configuration, grouping, or dependency update strategy. Use `dependabot`.
|
|
27
|
+
|
|
28
|
+
## Workflow
|
|
29
|
+
|
|
30
|
+
### 1. Classify the request
|
|
31
|
+
|
|
32
|
+
Decide which bucket the question belongs to before searching:
|
|
33
|
+
|
|
34
|
+
- Getting started or tutorials
|
|
35
|
+
- Workflow authoring and syntax
|
|
36
|
+
- Runners and execution environment
|
|
37
|
+
- Security and supply chain
|
|
38
|
+
- Deployments and environments
|
|
39
|
+
- Custom actions and publishing
|
|
40
|
+
- Monitoring, logs, and troubleshooting
|
|
41
|
+
- Migration
|
|
42
|
+
|
|
43
|
+
If you need a quick starting point, load `references/topic-map.md` and jump to the closest section.
|
|
44
|
+
|
|
45
|
+
### 2. Search official GitHub docs first
|
|
46
|
+
|
|
47
|
+
- Treat `docs.github.com` as the source of truth.
|
|
48
|
+
- Prefer pages under <https://docs.github.com/en/actions>.
|
|
49
|
+
- Search with the user's exact terms plus a focused Actions phrase such as `workflow syntax`, `OIDC`, `reusable workflows`, or `self-hosted runners`.
|
|
50
|
+
- When multiple pages are plausible, compare 2-3 candidate pages and pick the one that most directly answers the user's question.
|
|
51
|
+
|
|
52
|
+
### 3. Open the best page before answering
|
|
53
|
+
|
|
54
|
+
- Read the most relevant page, and the exact section when practical.
|
|
55
|
+
- Use the topic map only to narrow the search space or surface likely starting pages.
|
|
56
|
+
- If a page appears renamed, moved, or incomplete, say that explicitly and return the nearest authoritative pages instead of guessing.
|
|
57
|
+
|
|
58
|
+
### 4. Answer with docs-grounded guidance
|
|
59
|
+
|
|
60
|
+
- Start with a direct answer in plain language.
|
|
61
|
+
- Include exact GitHub docs links, not just the docs homepage.
|
|
62
|
+
- Only provide YAML or step-by-step examples when the user asks for them or when the docs page makes an example necessary.
|
|
63
|
+
- Make any inference explicit. Good phrasing:
|
|
64
|
+
- `According to GitHub docs, ...`
|
|
65
|
+
- `Inference: this likely means ...`
|
|
66
|
+
|
|
67
|
+
## Answer Shape
|
|
68
|
+
|
|
69
|
+
Use a compact structure unless the user asks for depth:
|
|
70
|
+
|
|
71
|
+
1. Direct answer
|
|
72
|
+
2. Relevant docs
|
|
73
|
+
3. Example YAML or steps, only if needed
|
|
74
|
+
4. Explicit inference callout, only if you had to connect multiple docs pages
|
|
75
|
+
|
|
76
|
+
Keep citations close to the claim they support.
|
|
77
|
+
|
|
78
|
+
## Search and Routing Tips
|
|
79
|
+
|
|
80
|
+
- For concept questions, prefer overview or concept pages before deep reference pages.
|
|
81
|
+
- For syntax questions, prefer workflow syntax, events, contexts, variables, or expressions reference pages.
|
|
82
|
+
- For security questions, prefer `Secure use`, `Secrets`, `GITHUB_TOKEN`, `OpenID Connect`, and artifact attestation docs.
|
|
83
|
+
- For deployment questions, prefer environments and deployment protection docs before cloud-specific examples.
|
|
84
|
+
- For migration questions, prefer the migration hub page first, then a platform-specific migration guide.
|
|
85
|
+
- If the user asks for a beginner walkthrough, start with a tutorial or quickstart instead of a raw reference page.
|
|
86
|
+
|
|
87
|
+
## Common Mistakes
|
|
88
|
+
|
|
89
|
+
- Answering from memory without verifying the current docs
|
|
90
|
+
- Linking the GitHub Actions docs landing page when a narrower page exists
|
|
91
|
+
- Mixing up reusable workflows and composite actions
|
|
92
|
+
- Suggesting long-lived cloud credentials when OIDC is the better documented path
|
|
93
|
+
- Treating repo-specific CI debugging as a documentation question when it should be handed to `gh-fix-ci`
|
|
94
|
+
- Letting adjacent domains absorb the request when `codeql` or `dependabot` is the sharper fit
|
|
95
|
+
|
|
96
|
+
## Bundled Reference
|
|
97
|
+
|
|
98
|
+
Read `references/topic-map.md` only as a compact index of likely doc entry points. It is intentionally incomplete and should never replace the live GitHub docs as the final authority.
|