flowkit: Command for Claude Code

.claude/commands/fk-gen-chain-videos.md

fk-gen-chain-videos is a command for Claude Code from crisng95/flowkit. It costs 0 tokens per session (1,544 once invoked), scanned A, original, MIT.

A video-generation command that links scenes by using the next scene’s image as the current scene’s ending frame.

In plain words
What is it for?
Use it to generate a sequence of related video scenes from a project and video definition, with automatic transitions between parent and child scenes.
Why use it?
It keeps consecutive scenes visually connected, so joining the generated clips does not create a mismatch at the cut.

Command for Claude Code

Written for Claude Code: installed under .claude/.

This is crisng95/flowkit's own configuration. It tells Claude Code how to work on flowkit itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything flowkit configures →

Reuse

Borrowing it

Nothing to install: this file belongs to crisng95/flowkit. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/crisng95/flowkit/main/.claude/commands/fk-gen-chain-videos.md
Clone the repo
git clone --depth 1 https://github.com/crisng95/flowkit

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for fk-gen-chain-videos

README.md
[![agentmods](https://agentmods.dev/badge/commands/crisng95/flowkit/fk-gen-chain-videos.svg)](https://agentmods.dev/commands/crisng95/flowkit/fk-gen-chain-videos)
Your own site
<a href="https://agentmods.dev/commands/crisng95/flowkit/fk-gen-chain-videos"><img src="https://agentmods.dev/badge/commands/crisng95/flowkit/fk-gen-chain-videos.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,544 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.01544
Opus 5 $0.00000 $0.00772
Sonnet 5 $0.00000 $0.00309
Haiku 4.5 $0.00000 $0.00154

Measured 8d ago against content hash ae7ea7073876, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

fk-gen-chain-videos scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s "http://127.0.0.1:8100/api/scenes?video_id=<VID>"
.claude/commands/fk-gen-chain-videos.md · 114 lines

How it starts

The opening of the file, as written. The whole thing — 114 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Generate videos with automatic scene chaining (start+end frame transitions).

Usage: /gen-chain-videos <project_id> <video_id>

This creates smooth transitions between scenes in a chain by using the NEXT scene's image as the endImage of the current scene's video, so the last frame of scene N matches the first frame of scene N+1 → seamless concat.

How chaining works

For any scene that has a CHILD in the chain (i.e. some other scene with parent_scene_id == this.id):

Scene N (chain head or middle): startImage = sceneN.image, endImage = sceneN+1.image
                                → video plays FROM sceneN.image TO sceneN+1.image (the next scene's image)

Scene N+1 (next in chain):      startImage = sceneN+1.image, endImage = sceneN+2.image (if N+2 exists)
                                → continues the chain

Last scene in chain (no child): startImage = lastScene.image, NO endImage
                                → plain frame_2_video, no chained transition

Key invariant: at the cut between two consecutive chain scenes, sceneN.video.last_frame == sceneN+1.image == sceneN+1.video.first_frameconcat is seamless.

The endImage is the CHILD scene's image (the next scene's image_media_id), NOT the parent's. Chain heads (ROOT scenes that have a child) DO need an endImage; only chain tails (last scene in chain) and standalone ROOT scenes leave endImage null.

Step 1: Pre-check

# All scene images must be ready with UUID media_ids
curl -s "http://127.0.0.1:8100/api/scenes?video_id=<VID>"

ABORT if any scene is missing ${ori}_image_media_id (UUID).

Step 2: Set up end_scene_media_ids for chaining

For each scene that has a CHILD in the chain (i.e. some other scene's parent_scene_id == this.id), set its ${ori}_end_scene_media_id to that child scene's ${ori}_image_media_id:

curl -X PATCH http://127.0.0.1:8100/api/scenes/<SID> \
  -H "Content-Type: application/json" \
  -d '{"${ori}_end_scene_media_id": "<child_scene_image_media_id>"}'

Read the full file on GitHub · 114 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 114 lines · 0 tokens per session scan A ae7ea7073876

Subscribe to this mod's changes

fk-gen-chain-videos is a command published in the GitHub repository crisng95/flowkit (629 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,544 tokens. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.