fk-pipeline

A command that checks a video project's current state and runs the appropriate remaining production stages, either continuing an unfinished project or starting a full run.

In plain words
What is it for?
It is for running video workflows that may include upscaling, text-to-speech narration, downloading completed files, joining scenes, and Telegram progress updates.
Why use it?
It avoids manually deciding which stages to run and supports batching, parallel work, retries, downloads, narration, and notifications.

Command for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/crisng95/flowkit/fk-pipeline
Clone the repo
git clone --depth 1 https://github.com/crisng95/flowkit

Made for: Claude Code.

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 4,481 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. Scan, not verified.
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 $0.00000 $0.04481
Opus 5 $0.00000 $0.02240
Sonnet 5 $0.00000 $0.00896
Haiku 4.5 $0.00000 $0.00448

Measured 2d ago against content hash ddfab9922c7d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

fk-pipeline scanned grade C with 2 findings 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 2d 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.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

VID=$(curl -s "http://127.0.0.1:8100/api/videos?project_id=<PID>" | python3 -c "import sys,json; print(json.load(sys.stdin)[0]['id'])")

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/projects
.claude/commands/fk-pipeline.md · 490 lines

How it starts

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

fk-pipeline — Smart Full-Pipeline Orchestrator

Auto-detect project state and run the correct stages (continuation or full run). Handles batching, parallelism, retries, downloads, TTS, and Telegram notifications.

Usage: /fk-pipeline [project_id] [orientation] [options]

Options:

  • --upscale — include 4K upscale stage (TIER_TWO only)
  • --tts — include TTS narration stage (parallel with upscale)
  • --download — auto-download 4K files as upscales complete
  • --concat — run concat after all stages done
  • --notify — send Telegram notifications at milestones
  • --interval N — poll interval in seconds (default: 15)
  • --orientation H|V — HORIZONTAL or VERTICAL (auto-detected from video.orientation if omitted)

Examples:

  • /fk-pipeline — detect state and continue most recent project
  • /fk-pipeline --upscale --tts --download --notify — full run with all options
  • /fk-pipeline <project_id> HORIZONTAL --upscale --download — explicit project + orientation

When to Use

  • Starting a new project from scratch (after scenes are created)
  • Resuming a partially-complete project
  • Batch-running all remaining stages hands-free
  • Want TTS + upscale to run simultaneously
  • Want 4K downloads to roll in as each upscale completes

Step 1: Resolve Project and State

1a. Fetch project

# Most recent project
curl -s http://127.0.0.1:8100/api/projects
# Use last item → {id, name}

# Get video + scenes
VID=$(curl -s "http://127.0.0.1:8100/api/videos?project_id=<PID>" | python3 -c "import sys,json; print(json.load(sys.stdin)[0]['id'])")
curl -s "http://127.0.0.1:8100/api/scenes?video_id=$VID" > /tmp/fk_scenes.json
curl -s "http://127.0.0.1:8100/api/projects/<PID>/characters" > /tmp/fk_chars.json
curl -s "http://127.0.0.1:8100/api/projects/<PID>/output-dir" > /tmp/fk_outdir.json

1b. Derive slug and output dir

import json

outdir_meta = json.load(open('/tmp/fk_outdir.json'))
SLUG = outdir_meta['slug']
OUTDIR = outdir_meta['path']

Read the full file on GitHub · 490 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. 2d ago First seen · 490 lines · 0 tokens per session scan C ddfab9922c7d

Subscribe to this mod's changes

fk-pipeline is a command published in the GitHub repository crisng95/flowkit (620 stars, last pushed 15d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 4,481 tokens. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.