puntorigen/avatar-skills / bg-music-hq
bg-music-hq
VerifiedGenerate high-quality background music and jingles using MiniMax Music 2.5 on Replicate. Supports structure tags, lyrics, 27 mood presets including pet-content moods (pet-playful, pet-heartfelt, pet-adventure, pet-chill, pet-regal, pet-goofy, pet-transformation, pet-daily, pet-epic, pet-lullaby, pet-trendy) plus presentation/podcast moods. Configurable sample rate/bitrate, WAV output for production, and fade-in/fade-out. Ideal for presentations, podcast jingles, keynote backing tracks, branded per-pet social media music, reel background tracks, and professional audio content. Use when the user asks to generate high-quality music, presentation music, podcast jingles, keynote tracks, pet-branded background music, reel music for pets, or any professional-grade musical audio content.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 15.7 KB |
| scripts/generate_bgm_hq.py | script | 16.5 KB |
| scripts/moods.json | config | 16.2 KB |
| scripts/requirements.txt | manifest | 10 B |
| scripts/setup_key.py | script | 3.1 KB |
scripts/setup_key.py
View on GitHub#!/usr/bin/env python3
"""Store the Replicate API token for the bg-music-hq skill.
Usage:
python3 setup_key.py YOUR_REPLICATE_API_TOKEN
python3 setup_key.py --show
python3 setup_key.py # auto-import from other skills
"""
import json
import sys
from pathlib import Path
CONFIG_FILE = Path(__file__).parent.parent / "config.json"
FALLBACK_CONFIGS = [
Path.home() / ".cursor/skills/bg-music/config.json",
Path.home() / ".cursor/skills/sound-effects/config.json",
Path.home() / ".cursor/skills/avatar-video-reel/config.json",
Path.home() / ".cursor/skills/brand-asset-studio/config.json",
]
DEFAULTS = {
"default_mood": "presentation",
"default_sample_rate": 44100,
"default_bitrate": 256000,
"default_format": "mp3",
}
def load_config():
if CONFIG_FILE.exists():
return json.loads(CONFIG_FILE.read_text(encoding="utf-8"))
return {}
def save_config(config):
CONFIG_FILE.write_text(json.dumps(config, indent=2) + "\n", encoding="utf-8")
def find_existing_token():
for path in FALLBACK_CONFIGS:
if path.exists():
try:
cfg = json.loads(path.read_text(encoding="utf-8"))
token = cfg.get("replicate_api_token", "")
if token:
return token, path
except (json.JSONDecodeError, KeyError):
continue
return None, None
def main():
if len(sys.argv) >= 2 and sys.argv[1] == "--show":
config = load_config()
token = config.get("replicate_api_token", "")
if token:
masked = token[:5] + "..." + token[-4:]
print(f"Token: {masked}")
else:
print("No token configured in this skill.")
existing, source = find_existing_token()
if existing:
masked = existing[:5] + "..." + existing[-4:]
print(f"Found token in {source}: {masked}")
print(f"Config: {json.dumps(config, indent=2)}")
return
if len(sys.argv) < 2:
existing, source = find_existing_token()
if existing:
config = load_config()
config["replicate_api_token"] = existing
for k, v in DEFAULTS.items():
config.setdefault(k, v)
save_config(config)
print(f"Replicate API token imported from {source}")
print(f"Config saved to {CONFIG_FILE}")
return
print("Usage: python3 setup_key.py YOUR_REPLICATE_API_TOKEN")
print("\nGet your token at: https://replicate.com/account/api-tokens")
print("\nOr run without arguments to auto-import from another skill.")
sys.exit(1)
token = sys.argv[1].strip()
if not token.startswith("r8_"):
print("Warning: Replicate tokens usually start with 'r8_'. Proceeding anyway.",
file=sys.stderr)
config = load_config()
config["replicate_api_token"] = token
for k, v in DEFAULTS.items():
config.setdefault(k, v)
save_config(config)
print(f"Replicate API token saved to {CONFIG_FILE}")
print("You can now use the bg-music-hq skill.")
if __name__ == "__main__":
main()
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |