flowkit: Command for Claude Code

.claude/commands/fk-monitor.md

fk-monitor is a command for Claude Code from crisng95/flowkit. It costs 0 tokens per session (3,591 once invoked), scanned A, original, MIT.

A monitor for long-running image, video, and upscaling pipelines. It repeatedly checks project stages, reports changes through Telegram, and can download completed 4K upscales.

In plain words
What is it for?
Use it to watch the most recent or specified project, choose horizontal or vertical output, set a polling interval, receive Telegram updates, and download completed upscales.
Why use it?
Long jobs are inconvenient to check manually, and stalled or failed stages can go unnoticed. The monitor provides progress notifications and can retrieve finished files automatically.

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-monitor.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-monitor

README.md
[![agentmods](https://agentmods.dev/badge/commands/crisng95/flowkit/fk-monitor/github.svg)](https://agentmods.dev/commands/crisng95/flowkit/fk-monitor)
Your own site
<a href="https://agentmods.dev/commands/crisng95/flowkit/fk-monitor"><img src="https://agentmods.dev/badge/commands/crisng95/flowkit/fk-monitor/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for fk-monitor

Your own site · 80×15
<a href="https://agentmods.dev/commands/crisng95/flowkit/fk-monitor"><img src="https://agentmods.dev/badge/commands/crisng95/flowkit/fk-monitor.svg" alt="Reviewed on agentmods" width="80" 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 3,591 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.03591
Opus 5 $0.00000 $0.01795
Sonnet 5 $0.00000 $0.00718
Haiku 4.5 $0.00000 $0.00359

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

Security

Grade A, and why

fk-monitor 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 10d 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/health
.claude/commands/fk-monitor.md · 416 lines

How it starts

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

fk-monitor — Full Pipeline Monitor

Poll project pipeline status every N seconds, detect state changes across all stages, send Telegram notifications, and optionally auto-download completed upscales.

Usage: /fk-monitor [project_id] [orientation] [--download] [--interval N]

  • project_id — omit to use most recently active project
  • orientationHORIZONTAL or VERTICAL (auto-detected from video.orientation if omitted)
  • --download — auto-download new upscales to output/{slug}/4k/
  • --interval N — poll interval in seconds (default: 30)

When to Use

  • Long-running batch: submitted image/video/upscale jobs and want to be notified when stages complete
  • Unattended generation: step away and get Telegram pings at milestones
  • Debugging: spot stalled workers or failed requests early
  • Auto-download: pull 4K upscales as they finish without manual polling

Prerequisites

curl -s http://127.0.0.1:8100/health
# extension_connected must be true

Telegram notifications require the mcp__telegram__reply tool to be available in this session.


Step 1: Resolve project and slug

If no project_id supplied, fetch the most recent project:

curl -s http://127.0.0.1:8100/api/projects
# Use the last item in the array → id, name

Derive slug from project name:

import unicodedata, re

def slugify(name):
    # Strip diacritics
    normalized = unicodedata.normalize('NFD', name)
    ascii_only = normalized.encode('ascii', 'ignore').decode()
    # Lowercase, replace non-alphanum with underscore
    slug = re.sub(r'[^a-z0-9]+', '_', ascii_only.lower())
    # Collapse and trim
    slug = re.sub(r'_+', '_', slug).strip('_')
    return slug

Examples:

  • "My Project - Edition" → my_project_edition
  • "Chiến dịch giải cứu F-15E" → chien_dich_giai_cuu_f_15e

Get output dir (also creates directory structure):

curl -s http://127.0.0.1:8100/api/projects/<PID>/output-dir
# Returns: {"slug": "...", "path": "output/...", "meta": {...}}

Read the full file on GitHub · 416 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. 10d ago First seen · 416 lines · 0 tokens per session scan A b2df5f581b9b

Subscribe to this mod's changes

fk-monitor is a command published in the GitHub repository crisng95/flowkit (639 stars, last pushed 3d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 3,591 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.