Cinematic Assets
ASecurityPhase skill of portfolio-orchestrator. Produces and processes the portfolio's media. By default the hero is procedural (frames captured from the WebGL scene, zero credits); optional providers are a clip the user drops in (for example from Google Flow), a Blender render, or Higgsfield generation under the credit ledger. Inspects every asset, enforces the no-watermark and no-faces rules, and processes everything with ffmpeg (hero stills and scrub encodes, project screenshots and recordings, and...
- 2 stars
- 0 votes
- 0 copies
- 1 view
- Added November 26, 2026
Works with
Security analysis
100/100Pro scans all 6 files and shows the line behind each finding
npx -y skills add Divy547/portfolio-orchestrator --skill cinematic-assets --agent claude-codeAre you the author of Cinematic Assets?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/divy547-cinematic-assets)---
name: cinematic-assets
description: Phase skill of portfolio-orchestrator. Produces and processes the portfolio's media. By default the hero is procedural (frames captured from the WebGL scene, zero credits); optional providers are a clip the user drops in (for example from Google Flow), a Blender render, or Higgsfield generation under the credit ledger. Inspects every asset, enforces the no-watermark and no-faces rules, and processes everything with ffmpeg (hero stills and scrub encodes, project screenshots and recordings, and the user's real portrait without any generative step) into public/media plus an asset manifest. Use when the orchestrator reaches an assets-* step, or when the user asks to add, redo or re-encode portfolio media.
---
# Cinematic Assets
**First, which provider?** `runstate.mjs meta-get heroProvider` (default `procedural`). The orchestrator skipped the steps your provider does not need. Read `references/providers.md` for the provider you are running, `references/media-notes.md` before processing, and `references/prompt-laws.md` before writing or editing any generation prompt (it applies to every generative provider).
**Hard rules, every provider**
- **Never crop, blur, mask, inpaint or otherwise remove a watermark, logo or provenance mark.** A clip with a visible one is rejected, and the provider falls back to `procedural`. (Example: Google AI Pro Flow output carries a visible "Veo" mark bottom-right; it fails.)
- **No generated asset contains a face or human figure.** The portrait is the user's real photo and never goes to any generator.
- **Raw and review files stay in `.portfolio/raw/` and `.portfolio/review/`**, never in `public/`.
- Anything that spends money goes through the ledger (higgsfield provider only).
Scripts (`$A` = this skill's folder, `$O` = `../portfolio-orchestrator/scripts`):
```bash
node $A/scripts/media.mjs <inspect|frame|sequence|scrub|hero-still|still|portrait|recording|manifest> --root $SITE [...]
node $O/ledger.mjs <intent|submitted|settle|summary> --root $SITE [...]
node $O/runstate.mjs <start|done|skip|block|fail> <step> --root $SITE
```
## Procedural provider (default): nothing to generate
- `assets-frame`, `assets-video`, `assets-stills` are skipped.
- `hero-capture` (run by the build skill) leaves `poster-1920.png` (scroll position 0) and `ending-1920.png` (position 1) in `.portfolio/raw/hero-capture/`.
- In `assets-process`: `media.mjs hero-still --poster .portfolio/raw/hero-capture/poster-1920.png --ending .portfolio/raw/hero-capture/ending-1920.png --mode procedural`, then the zero-credit lane below, then `media.mjs manifest --hero-mode procedural`. If the captures are missing the manifest command refuses; either rerun `hero-capture` or use `--hero-mode css` for the code-drawn SVG hero.
## Optional providers
### file-drop (a clip from a web tool such as Google Flow)
1. **creative-direction wrote the prompts** into `.portfolio/prompts/` (start-image prompt for the user's image generator and the motion prompt). Hand the user those files plus the settings checklist in `providers.md`.
2. The user drops `start-frame.<ext>` and `clip.mp4` into `.portfolio/inbox/`. Run `assets-frame` (check the image: no text, no people, 16:9, calm sides) and `assets-video`.
3. `media.mjs inspect --in <clip>`; **look** at the three frames and at `watermark-corners.png`. Facts to confirm: at least 1080p, at least 5 seconds, starts on the user's image, no visible watermark in any corner, no cuts, no text or faces. Any watermark: reject, tell the user plainly, `runstate.mjs provider procedural`.
4. Pass: `media.mjs scrub --in <clip> --confirm-clean --provenance file-drop` (it refuses without `--confirm-clean`). Optionally `--trim <sec>` from `inspect`'s `suggestTrim`.
### blender
The user renders in Blender (their own scene). Frame sequence: `media.mjs sequence --dir <frames> --fps 24` makes a mezzanine mp4; then `inspect`, then `scrub --confirm-clean --provenance blender`. See `providers.md` for the render settings that scrub well.
### higgsfield (paid, under the ledger)
Everything in "The paid-call wrapper" below. Only when the provider is `higgsfield`.
## The paid-call wrapper (higgsfield provider only; every generation, no exceptions)
1. `runstate.mjs start <step>` (refuses without approval, cap and bound tools).
2. Read the balance with `meta.higgsfield.tools.balance`.
3. `ledger.mjs intent --asset <id> --balance <n>` (add `--reroll --reason "<failed hard check>" --prompt-file .portfolio/review/<id>-v2.txt` for a re-roll). Exit 3 or 4 means stop: report to the orchestrator, do not work around it.
4. Call the bound generation tool with the plan's exact prompt, model and params (or the prompt file). Decline generator presets and resend your literal prompt.
5. The moment a job id comes back: `ledger.mjs submitted --intent <id> --job <jobId>`.
6. Wait for the job (renders take minutes; say so once). A call that hangs with no response twice is the two-hang rule, not a slow render. On a timeout, do NOT resubmit: resolve via `../portfolio-orchestrator/references/run-protocol.md`.
7. Download the result immediately into `.portfolio/raw/<folder>/` (`start-frame/`, `video/`, `stills/`).
8. Read the balance again and `ledger.mjs settle --intent <id> --balance-after <n> --status ok|failed|flagged --file <path>`.
9. Inspect (below). Pass: `runstate.mjs done <step>`. Hard-check failure: one re-roll if the ledger allows, else `fail` with the reason.
## Inspection (hard checks decide re-rolls and rejections)
- **Any image:** no text, letters or logos; no faces or human figures; composition matches the plan (action lane clear, calm regions where captions go, no literal black side panels).
- **Any clip:** `media.mjs inspect` gives frames, the corner sheet and the motion curve. The ending should rest (`rests: true`); if not, try `--trim` first. Chained segments: see `prompt-laws.md` (full-quality PNG bridge, seam law).
- **Gifts count too:** if the footage improves on the plan, tell the orchestrator so creative-direction can flex the band map.
- **Strict gates mode:** if the user asked for it, show them every external clip before `assets-process`.
## Zero-credit lane (every provider)
- **Portrait (`assets-portrait`):** `media.mjs portrait --in .portfolio/inbox/<photo> [--crop w:h:x:y]`. Crop and resize only, metadata stripped (no GPS leaks), WebP and JPEG (AVIF when ffmpeg can also read it back) at 640 and 1200 wide, then SSIM against the source: every shipped file 0.98 or higher. The photo never goes to Higgsfield or any other generator, for any reason. Missing photo: `runstate.mjs block assets-portrait --reason "portrait pending"`. Adding it later: drop it in the inbox, `invalidate assets-portrait`, rerun.
- **Project media:** screenshots `media.mjs still --in <file> --id <project>-shot-1 --kind ui`; recordings `media.mjs recording --in <file> --id <project>-demo`.
- **Manifest last:** `media.mjs manifest --hero-mode <procedural|video|still|css> [--provenance <name>]`, then `validate-contracts.mjs --stage assets-process`, then `runstate.mjs done assets-process`.
## When something breaks
`references/troubleshooting.md`.
Files in this skill
- SKILL.md
- references/media-notes.md
- references/prompt-laws.md
- references/providers.md
- references/troubleshooting.md
- scripts/media.mjs
Attribution
Related skills
View all in ai-agents →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.