add-music

add-music is a command for coding agents from DojoCodingLabs/remotion-superpowers. It costs 45 tokens per session (597 once invoked), scanned A, original, MIT.

A command for generating background music and adding it to a Remotion video project. It uses Suno to create a track from a description such as genre, mood, tempo, and vocals.

In plain words
What is it for?
Use it to make and integrate instrumental or vocal background music with fade-in and fade-out handling.
Why use it?
It removes the need to create a music file separately and then connect it to the video by hand.

Command

Part of the remotion-superpowers plugin — 2 skills, 13 commands, 3 agents, 2 hooks, 5 MCP servers shipped together

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/dojocodinglabs/remotion-superpowers/add-music
Clone the repo
git clone --depth 1 https://github.com/DojoCodingLabs/remotion-superpowers

Or install remotion-superpowers, the plugin that ships this one along with the rest of its 2 skills, 13 commands, 3 agents, 2 hooks, 5 MCP servers.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/dojocodinglabs/remotion-superpowers/add-music.svg)](https://agentmods.dev/commands/dojocodinglabs/remotion-superpowers/add-music)
Your own site
<a href="https://agentmods.dev/commands/dojocodinglabs/remotion-superpowers/add-music"><img src="https://agentmods.dev/badge/commands/dojocodinglabs/remotion-superpowers/add-music.svg" alt="Measured on agentmods" height="20"></a>
Per session 45 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 597 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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.1 $0.00045 $0.00597
Opus 5 $0.00023 $0.00298
Sonnet 5 $0.00009 $0.00119
Haiku 4.5 $0.00005 $0.00060

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

Security

Grade A, and why

add-music scanned grade A with 0 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 6d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/add-music.md · 71 lines

How it starts

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

Add Music — Generate & Integrate Background Music

You are helping the user add background music to their Remotion project.

Load the remotion-production skill for the music-scoring and audio-integration rules.

Workflow

1. Understand the Mood

If not already described, ask the user:

  • Genre — Electronic, jazz, classical, lo-fi, ambient, rock, orchestral, pop?
  • Mood — Upbeat, calm, dramatic, inspiring, playful, cinematic?
  • Tempo — Fast, medium, slow?
  • Vocals — Instrumental only (recommended for background), or with vocals?

2. Generate Music

Craft a descriptive prompt and generate:

Use remotion-media generate_music:
- prompt: "[genre] background music, [mood], [tempo], no vocals, [additional descriptors]"
- project_path: [project root path]

Good prompt examples:

  • "upbeat electronic background music, energetic, no vocals, modern tech startup vibe"
  • "calm acoustic guitar, warm and friendly, no vocals, coffee shop atmosphere"
  • "epic cinematic orchestral, building tension and release, no vocals, trailer style"
  • "chill lo-fi hip hop beats, relaxed and dreamy, no vocals, study music vibe"

3. Wire into Composition

Add with fade in/out:

import { Audio, interpolate, staticFile, useCurrentFrame, useVideoConfig } from "remotion";

const frame = useCurrentFrame();
const { durationInFrames, fps } = useVideoConfig();

const musicVolume = interpolate(
  frame,
  [0, fps, durationInFrames - 2 * fps, durationInFrames],
  [0, 0.25, 0.25, 0],
  { extrapolateLeft: "clamp", extrapolateRight: "clamp" }
);

<Audio src={staticFile("[returned-file-path]")} volume={musicVolume} />

4. Adjust for Voiceover (if present)

If the project has a voiceover, implement volume ducking — lower music to 0.1 during narration, 0.3 during silent parts. See audio-integration rule for the pattern.

5. Preview

Tell the user to check the audio in the Remotion preview (npm run dev).

Offer adjustments:

  • Volume too loud/quiet?
  • Wrong mood? Regenerate with a different prompt.
  • Music too short? Use <Loop> to repeat it.
  • Need different music for different sections? Generate multiple tracks.

Read the full file on GitHub · 71 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. 6d ago First seen · 71 lines · 45 tokens per session scan A 79c1d38ffdf9

Subscribe to this mod's changes

add-music is a command published in the GitHub repository DojoCodingLabs/remotion-superpowers (116 stars, last pushed 6mo ago), licensed MIT. It adds 45 tokens to every session and 597 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.