fk-gen-music

fk-gen-music is a command for Claude Code from crisng95/flowkit. It costs 0 tokens per session (2,264 once invoked), scanned C, original, MIT.

A command that creates background music or songs for video projects through the Suno music-generation service. It can use song templates or supplied lyrics and style details.

In plain words
What is it for?
Use it to browse music templates and generate tracks in styles such as cinematic, pop, rock, electronic, or country, with custom lyrics when needed.
Why use it?
It removes the need to create or source a soundtrack separately for a video. Templates can provide a starting style and example lyrics.

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-gen-music
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-music

README.md
[![agentmods](https://agentmods.dev/badge/commands/crisng95/flowkit/fk-gen-music.svg)](https://agentmods.dev/commands/crisng95/flowkit/fk-gen-music)
Your own site
<a href="https://agentmods.dev/commands/crisng95/flowkit/fk-gen-music"><img src="https://agentmods.dev/badge/commands/crisng95/flowkit/fk-gen-music.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 2,264 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.02264
Opus 5 $0.00000 $0.01132
Sonnet 5 $0.00000 $0.00453
Haiku 4.5 $0.00000 $0.00226

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

Security

Grade C, and why

fk-gen-music 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 5d 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.

curl -s http://127.0.0.1:8100/api/music/templates | python3 -m json.tool

Makes network callslowCapability

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

- GLA server running: `curl http://127.0.0.1:8100/health`
.claude/commands/fk-gen-music.md · 245 lines

How it starts

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

fk-gen-music — Generate Music via Suno

Generate background music or songs for video projects using the Suno API (sunoapi.org).

Prerequisites

  • GLA server running: curl http://127.0.0.1:8100/health
  • Suno API key configured: export SUNO_API_KEY=your-key
  • Get API key at https://sunoapi.org/api-key

Workflow

Step 1: Choose a Template (Optional)

Browse available song templates to find the right style:

# List all templates
curl -s http://127.0.0.1:8100/api/music/templates | python3 -m json.tool

# Get a specific template (see style, tags, example lyrics)
curl -s http://127.0.0.1:8100/api/music/templates/cinematic_epic

Available categories: Children & Family, Love & Romance, Pop, Rock, Hip-Hop, Electronic, Country & Folk, Cinematic, Motivational.

Step 2: Generate Music

Three modes:

Mode A: Template-based (recommended for video projects)

Use a template to auto-fill style tags. Provide custom lyrics or let the template's example lyrics run:

# With custom lyrics + template style
curl -X POST http://127.0.0.1:8100/api/music/generate \
  -H "Content-Type: application/json" \
  -d '{
    "template_id": "cinematic_epic",
    "prompt": "[Verse]\nFrom the shadows they emerge\nAcross the ancient sea\n[Chorus]\nRise, rise to glory\nThe world will hear our story",
    "title": "Rise to Glory",
    "poll": true
  }'

# Template defaults (uses example lyrics + suno_tags)
curl -X POST http://127.0.0.1:8100/api/music/generate \
  -H "Content-Type: application/json" \
  -d '{
    "template_id": "lullaby_gentle",
    "title": "Goodnight Luna",
    "poll": true
  }'
Mode B: Custom (full control)

Provide your own lyrics and style tags:

curl -X POST http://127.0.0.1:8100/api/music/generate \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "[Verse]\nWalking through the rain\nSearching for the light\n[Chorus]\nWe will find our way\nThrough the darkest night",
    "style": "lo-fi hip hop, chill, piano, rainy, 90 BPM",
    "title": "Rainy Night",
    "poll": true
  }'

Read the full file on GitHub · 245 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. 5d ago First seen · 245 lines · 0 tokens per session scan C 8cd3f9b0dba2

Subscribe to this mod's changes

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