Pre-flight cost approval gate for any paid AI API call (image / 3D / audio / video / text generation services). Forces explicit 4-point disclosure (call type / cost estimate / purpose / use) before invocation. Use before any Suno/ElevenLabs/Midjourney/OpenAI/Tripo/etc. paid call. Use when user says 'check cost first', 'cost gate', 'approve API call'.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-code-game-studios:api-cost-gate <service-name> <call-description><service-name> <call-description>This skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Solo developers and small teams using paid AI APIs (Suno, ElevenLabs, Midjourney, OpenAI, Tripo, etc.) face two failure modes:
Solo developers and small teams using paid AI APIs (Suno, ElevenLabs, Midjourney, OpenAI, Tripo, etc.) face two failure modes:
This skill enforces a pre-flight 4-point disclosure before any paid call. The agent cannot invoke the API until the user has reviewed and approved:
Auto-mode does not override this gate. Even when the agent is running autonomously, paid API calls require explicit user OK each time.
From $ARGUMENTS:
$1 = service name (e.g. suno, elevenlabs, midjourney, openai)$2 = brief description (e.g. combat-bgm-30s, npc-dialogue-line, concept-art-key-visual)If args missing, ask the user what call they intend to make.
Produce a short, unambiguous block:
=== Paid API Call — Approval Required ===
1. Call type:
<service> <endpoint> — <model> <mode>
Example: Suno /api/v1/generate — V5, custom mode, instrumental
2. Cost estimate:
~<N> <unit> (current balance: <M>)
Example: ~12 credits (current balance: 486)
3. Purpose:
<what + why, 1-2 sentences>
Example: Voice-of-Peace BGM bed for chapter 1 radio segment.
First sample to lock chapter 1 musical tone.
4. Use plan:
<where it lives + how it's evaluated + acceptance criteria>
Example: Lands in Tools/SunoAPI/output/ as workshop. If A/B-compared
against existing anchor (or pilot-anchored if first), promote
to Documents/AudioDesign/Anchors/ with prompt.txt.
→ Approve? (Y / N / modify)
The 4-point block is engine-agnostic / service-agnostic. The pattern works for any paid API.
Do not make the API call until the user responds with explicit approval. Acceptable approvals:
Y / OK / 진행 / approved / go — proceed.N / cancel / stop — abort.modify <change> — adjust the call per change, re-show the 4-point block, wait again.Treat ambiguous responses (silence, unrelated message, maybe) as not approved — do not call.
If $ARGUMENTS was originated by the user themselves with full intent (e.g. they typed /api-cost-gate suno combat-bgm-30s and immediately follow with Y in the same message), the gate is satisfied — but only if all 4 points are still presented and acknowledged.
After approval, append to a project-level cost log:
Documents/api-cost-log.md
| Date | Service | Call | Cost | Result |
|------------|-------------|-----------------------|--------|-----------------------------------------|
| 2026-05-03 | Suno | combat-bgm-30s V5 | 12 cr | Tools/SunoAPI/output/<id>/ — pending |
This makes monthly billing reconcilable and surfaces calls that produced no kept output — a useful signal for prompt iteration efficiency.
Once approved, invoke the API call via whatever mechanism the project uses (CLI script, MCP tool, HTTP). Treat the call's output handling as a separate concern — this skill is only the gate, not the entire workflow.
Confirmed services where this gate has prevented surprise spend or wasted output:
| Service | Unit | Notes |
|---|---|---|
| Suno (music) | credits | 1 call ≈ 10-20 credits, 2 variants per call |
| ElevenLabs (TTS / SFX / music) | characters | TTS ≈ 1 char / char, SFX ≈ 100 char/sec, Music ≈ 1000 char/sec |
| Midjourney / Stable Diffusion (image) | seconds / generations | varies by tier |
| Tripo (3D) | credits | varies by mesh complexity |
| OpenAI / Anthropic (text) | tokens | input + output, varies by model |
Add your service to the table when adopted. The 4-point disclosure works identically for all of them.
npx claudepluginhub dawn840705/claude-code-game-studios --plugin claude-code-game-studiosGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.