generate-audio

generate-audio is a command for Claude Code from Comfy-Org/comfy-skills. It costs 12 tokens per session (1,912 once invoked), scanned A, original, MIT.

A command for generating speech, music, or sound effects from a description using Comfy Cloud workflows and connected partner services.

In plain words
What is it for?
Use it to create audio from text prompts, including spoken audio, music, and sound effects, then receive the generated files.
Why use it?
It removes the need to manually find an audio model or assemble a generation workflow from separate parts.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Part of the comfy-cloud plugin — 12 skills, 12 commands, 1 MCP server shipped together

Good fit Use it to create audio from text prompts, including spoken audio, music, and sound effects, then receive the generated files.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/comfy-org/comfy-skills/generate-audio
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.

Clone the repo
git clone --depth 1 https://github.com/Comfy-Org/comfy-skills

Made for: Claude Code.

Or install comfy-cloud, the plugin that ships this one along with the rest of its 12 skills, 12 commands, 1 MCP server.

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 generate-audio

README.md
[![agentmods](https://agentmods.dev/badge/commands/comfy-org/comfy-skills/generate-audio/github.svg)](https://agentmods.dev/commands/comfy-org/comfy-skills/generate-audio)
Your own site
<a href="https://agentmods.dev/commands/comfy-org/comfy-skills/generate-audio"><img src="https://agentmods.dev/badge/commands/comfy-org/comfy-skills/generate-audio/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 generate-audio

Your own site · 80×15
<a href="https://agentmods.dev/commands/comfy-org/comfy-skills/generate-audio"><img src="https://agentmods.dev/badge/commands/comfy-org/comfy-skills/generate-audio.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 12 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,912 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00012 $0.01912
Opus 5.5 $0.00005 $0.00765
Sonnet 5.5 $0.00002 $0.00382
Haiku 4.5 $0.00001 $0.00191

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

Security

Grade A, and why

generate-audio 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 20d 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.

claude-code/commands/generate-audio.md · 38 lines

How it starts

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

Generate audio using Comfy Cloud based on the user's description: $ARGUMENTS

Follow these steps exactly:

Step 0 — Route partner-API requests directly. If the user named a provider, model, or capability (e.g. "ElevenLabs", "Stability Audio", "Sonilo"), do one search_nodes lookup with the named term. partner_generate returns only the output, never a workflow: if the user asked to BUILD or CREATE a workflow (not just for an output), skip partner_generate and continue to Step 1, wiring the matching node into the workflow you build if its category starts with partner/ (an OSS match takes the normal steps below). If the matching node's category starts with partner/, try partner_generate first — its description names providers, not model ids, so pass type: "audio" plus your best-guess model slug (a wrong one rejects before queuing and bounces back naming the closest real slugs, Did you mean: …), prompt, and any optional fields (seed/duration/medias[]). On a bounce, first look for a run_template the bounce names (a "served by the bundled template … Do not retry this slug" reply): run that template instead of re-calling. Otherwise re-call once with the suggested slug only if it keeps the provider prefix of your guess (a kling/… suggestion for a kling/… guess) AND names the same product and shape the user asked for — a text-to-video slug is not a retry for an image-, reference- or first/last-frame-to-video request (-t2v for -i2v/-r2v/-flf2v), and a sound-effects slug is not a retry for speech; for those, find the family's own api_* template with search_templates and run_template it, or ask. If the bounce lists several slugs or several params.model tiers, pick the one that matches the user's request; if none clearly does, ask instead of re-calling (the re-call is the call that queues and charges, and tiers are priced differently). Pass a tier-shaped guess as params: {"model": "<tier>"} on the slug the bounce names rather than re-calling the bare slug (that runs the entry's default tier at a different price). Say which slug or tier you switched to. If that re-call bounces too, do not re-call again — handle it as "unknown model" with no close match named (below). The suggestions are ranked by token overlap across the whole registry, so one can belong to a provider the user never named — if none keeps your guess's provider prefix, do not re-call (the re-call is the call that queues and charges): stop and ask the user which model to use; inside submit_batch resend only the bounced item — its siblings may already be queued and charged. On success, return the artifact URL(s) and stop — do NOT continue with the workflow steps below. If partner_generate returns "unknown model" with no close match named, or "not yet implemented", or the matching node has no partner/ prefix (OSS model), continue to Step 1.

  1. Use search_templates with queries like "audio generation", "text to audio", "music generation", or "sound effects" and set media_type to "audio" to find a pre-built audio workflow template. If a good template exists, use it as the base workflow instead of building from scratch.

  2. If no suitable template was found, use search_nodes to find audio-related nodes. Search for "audio" to discover available audio generation and processing nodes. Use search_models to find audio models if needed.

  3. Build a ComfyUI API-format workflow JSON with the appropriate audio nodes. Audio workflows vary depending on the task (music generation, sound effects, text-to-speech, etc.) and available nodes. Give EVERY node a _meta.title that names its role in plain words (e.g. "Load driving video", "Remove background", "Overlay graphic 1", "Save video"). The canvas shows these titles; without them the user sees only class names.

  4. Validate the workflow has inputs and outputs before submitting. Confirm the JSON contains:

    • At least one input node carrying the user's intent (text prompt node, LoadAudio for audio-to-audio, etc.).
    • At least one output/save node wired to the final audio tensor (SaveAudioAdvanced or the partner node's own save output).

Read the full file on GitHub · 38 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. 20d ago Changed 28042111d488
  2. 21d ago Changed · +2 lines 2ed17f17f65e
  3. 1mo ago Changed · +2 lines 0dea7e0c96ef
  4. 3mo ago First seen · 34 lines · 12 tokens per session scan A 9ee6c630929a

Subscribe to this mod's changes

generate-audio is a command published in the GitHub repository Comfy-Org/comfy-skills (274 stars, last pushed today), licensed MIT. It adds 12 tokens to every session and 1,912 once invoked, about $0.0000 per session on Opus 5.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.

Related

generate-audio compared with commands from other repositories

generate-audio next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
generate-audioComfy-Org/comfy-skillsCommand274todayMITA12Claude Code
cancel-ralphanthropics/claude-plugins-officialCommand49ktodayApache-2.0A4Claude Code
constraintsvinvcn/addyosmani-agent-skills-zhCommand591mo agoMITA20Claude Code
releasekomunite/kalfaCommand2467mo agoMITA13Claude Code
rclone_config_dumpchaunsin/agent-skillsCommand212d agoApache-2.0A7Claude Code
checklistgithub/spec-kitCommand153ktodayMITA13Claude Code
clarifygithub/spec-kitCommand153ktodayMITA27Claude Code