pocket-nexus/pocketjs/pocketjs-video-outro
Claude Code and agent skill by pocket-nexus/pocketjs
- community
Checking that the SKILL.md file is still in the repository.
Append a short PocketJS or Pocket3D animated end card to a local video (screen recording, demo capture, phone clip). Preserves the full source before transitioning to a card in the look of the pocketjs.dev and 3d.pocket.nexus heroes, with the mark, wordmark, a kicker row, the hero headline in Inter Tight and the site's address. Use when asked to add an outro / end card / 片尾, brand a recording, or produce a shareable PocketJS or Pocket3D clip.
Install
npx vskill@latest install pocket-nexus/pocketjs/pocketjs-video-outroSKILL.md
The same SKILL.md was published earlier as pocket-nexus/pocketjs/pocketjs-video-outro.
PocketJS Video Outro
Overview
Turns any local video into a shareable clip that ends on the PocketJS or the Pocket3D card. The card is drawn the way the two homepages draw their heroes (site/assets/landing.css, site/pocket3d/public/index.html): the near-black #0b0a10 ground with three soft glows in the mark's hues, the product's mark with its name in Inter Tight 700 as the sites' headers set it, a kicker row of coloured dots and uppercase labels, and the headline in Inter Tight 800: the first line in white, every following line in the hero's gradient. The site's address sits at the foot in muted Inter Tight.
--brand | Mark | Headline | Kicker | Gradient | Footer | |
|---|---|---|---|---|---|---|
pocketjs (default) | site/assets/favicon.svg | Modern UI. / Minimal footprint. | Solid · Vue Vapor · Octane | yellow → pink → cyan | pocketjs.dev | |
pocket3d | site/pocket3d/mark.svg | Create 3D for / every machine / you love | PSP · Nintendo 3DS · PS Vita | gold → orange → pink | 3d.pocket.nexus |
Use pocket3d for a recording of a Pocket3D game (Pocket Tokyo, Pocket New York, OpenStrike, Pocket Atlas) and pocketjs for an app or interface recording.
The marks and the face are bundled with the skill (tests/video-outro.test.ts holds the marks equal to the sites' own files and checks that Inter Tight is the only face the template loads), so rendering makes no network request. Headless Chrome renders the layers, then ffmpeg appends the card and animates it in. The default ending adds 2 seconds after the full source, including a 0.35-second crossfade from its held final frame. Use this ending unless the user requests another duration; --outro and --xfade remain available for that choice.
Design choices baked into the pipeline:
- Preserve the source ending. Play every source frame before starting the
transition. Hold the final frame during the appended crossfade; do not dim or consume the source's last moments to make room for the card.
- Crossfade first, text second. The held final frame dissolves into the
empty branded background; the type only starts animating once the transition has settled, so it never fights the crossfade.
- Staggered rise. Logo, kicker and URL start 0.12 seconds apart after the
crossfade; the headline's lines rise in one after another inside the kicker's slot, 0.06 seconds apart, and the last lands with the URL. Each layer starts a few pixels below its place, eases out (cubic) to rest, and fades in over the first half of its slot. The default card settles at 0.79 seconds and holds for 1.21 seconds. Short custom cards compress the entrance to leave at least half the time after the transition for the complete lockup.
- The hero's headline. Inter Tight 800 with tight letter-spacing, sentence
case as authored; the first line in white and every following line in the brand's gradient, as the two heroes set it. Each authored line stays one line; pass explicit line breaks instead of letting the browser choose the lockup.
- Audio is the source's, never synthesized. The card is silent; the original
track is preserved and faded out by the original source's end (no voiceover).
- Shareable SDR output. HLG/PQ phone footage is perceptually tone-mapped to
BT.709 before compositing, and the browser-rendered sRGB card is converted into the same color space. This avoids mixing an SDR card directly into HDR code values.
Requirements
ffmpeg/ffprobeon PATH. HDR inputs require FFmpeg 8+ for swscale's
transfer/primaries conversion and perceptual tone mapping; SDR inputs do not.
- A Chromium-family browser (Google Chrome, Chromium, Edge, or Brave) — used only
to screenshot the card layers. The script auto-detects it.
Standard workflow
One Bun command produces the finished file (the driver is Bun TypeScript — this repo keeps command wrappers in Bun, not shell scripts):
If the user supplies different positioning, preserve that copy exactly. Pass explicit line breaks when the lockup requires them; the template keeps them:
For an X upload, enable the compatibility mode. It produces 30 fps CFR video, uses a conventional 30 kHz track timebase, closes GOPs, caps bitrate, and scales landscape/portrait footage within 1920x1080 or 1080x1900:
For X-mode verification, both reported rates must be 30/1, the timebase must be 1/30000, and the dimensions must stay within the orientation-aware 1080p bounds:
Do not report a finished video from command success alone. Verify five independent properties: full-file decode, delivery metadata, the source ending, the visible card and its entrance, and body-versus-tail audio. Choose a body sample that contains source sound. The render log gives the crossfade offset, which must match the source duration. Subtract it from the final probed duration to check that the default ending adds 2 seconds, allowing one frame for rounding. A ten-second source produces about 12 seconds in total.
Inspect both images. The final frame must show the requested copy in Inter Tight without clipping, with the right mark; the motion sheet must show the source at full brightness through its end, followed by the crossfade and the logo → kicker → lines → URL stagger. Compare the source's last frames against the export before the transition; for HDR, apply the same tone mapping to the reference. HDR inputs must finish as tv, yuv420p, and bt709/bt709/bt709. The body sample must retain audio and the final 0.7 seconds must be effectively silent with the defaults. For a shorter custom card, sample only the tail after the original source has ended.
Options
| Flag | Default | Purpose | |
|---|---|---|---|
-i / --input | — (required) | input video | |
-o / --output | <input>_outro.mp4 next to input | output path (_outro_x.mp4 with --x) | |
--brand | pocketjs | pocketjs or pocket3d: mark, wordmark, kicker, gradient, default headline and URL | |
--tagline | the brand's headline | headline; each newline starts a line, and each line enters on its own | |
--url | the brand's site | footer line; pass --url "" to hide it | |
--outro | 2 | appended end-card length in seconds, including the transition | |
--xfade | 0.35 | crossfade length; must be shorter than the card; 0 cuts to it | |
--crf / --preset | 18 / medium | x264 quality/speed | |
--x / --x-compatible | off | emit an X-safe 30fps CFR social upload |
How it adapts to the input
- Probes width/height/fps/duration; VFR inputs use
avg_frame_raterather than
treating r_frame_rate as the real cadence. The selected rational rate is passed directly to FFmpeg, avoiding floating-point timebases.
- By default the card uses the source's native resolution and selected frame rate.
--x switches to 30 fps CFR and orientation-aware 1920x1080/1080x1900 bounds.
- The crossfade starts at the source duration, using cloned final frames for its
full requested length even when the source is shorter than the transition.
- Display-matrix rotation is applied to the probed dimensions before rendering the
card, matching FFmpeg's default autorotation for portrait phone footage.
- Color: SDR inputs keep the existing path. HLG and PQ inputs (including the
HLG base layer in iPhone Dolby Vision clips) are tone-mapped to 8-bit BT.709 SDR; Dolby Vision metadata is intentionally not carried into the shareable H.264 file.
- Type scales with
scale = min(W,H)/1080, so 720p, 1080p, and 4K all look
proportional. The default headline keeps its three authored lines; custom copy preserves explicit newlines and still wraps before the frame edge.
- Audio: maps the source's first audio stream (
0:a:0) and downmixes to
stereo. This is deliberate — iPhone .mov captures carry an extra multi-channel spatial-audio track plus several data streams; a:0 is the standard stereo mix. If the source has no audio, the output is video-only.
Publishing a video on pocketjs.dev
There is no separate upload step — videos ship with the site deploy as static Worker assets (Cloudflare, site/wrangler.jsonc; keep each file well under the 25 MiB per-asset limit):
- Commit the mp4 into git at
site/assets/<name>.mp4(existing examples:
pocketjs-hardware-demo.mp4, pocketjs-demo-wall.mp4).
- Add a
copy(SITE + "assets/<name>.mp4", "assets/<name>.mp4")line in
site/build.ts step 4, next to the other mp4 copies. Files under site/assets/blog/ (e.g. poster frames) are directory-copied automatically and need no explicit line.
- Embed with a raw
<video>tag in the page or post markdown. House
classes: class="w-full rounded-xl border border-line". Silent loops use autoplay muted loop playsinline; anything with a soundtrack must use controls playsinline preload="metadata" plus a poster (browsers block un-muted autoplay). Bake the poster with ffmpeg -ss <t> -i in.mp4 -frames:v 1 -q:v 3 site/assets/blog/<name>-poster.jpg.
- Verify locally with
bun run site:build, then merge to main —
.github/workflows/deploy.yml runs site:build and bunx wrangler deploy -c site/wrangler.jsonc. Manual deploy is those same two commands.
Customization & internals
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/pocketjs-video-outro/SKILL.md
Popularity
- Repository stars
- 1,692
- Repository forks
- 98
- Repository npm downloads, 7 days
- 67
- 7-day trend score
- 50
Stars and forks are for the whole GitHub repository, not this skill alone. Downloads are for the repository's npm package. Refreshed 4 Oct 2026, a month ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/pocket-nexus/pocketjs/pocketjs-video-outro)