Agent Skillsjegly/Box › mood-music

mood-music

GitHub

根据用户情绪或媒体内容生成音乐的技能。通过查询Loudly API获取支持的流派,将文本或图像/音频输入映射为具体流派和能量等级,调用接口生成符合氛围的音乐曲目。

skills/featured/mood-music/SKILL.md jegly/Box

Trigger Scenarios

用户询问特定情绪的推荐音乐 用户请求基于某种氛围的歌单建议 用户上传图片或音频并要求匹配音乐

Install

npx skills add jegly/Box --skill mood-music -g -y
More Options

Non-standard path

npx skills add https://github.com/jegly/Box/tree/main/skills/featured/mood-music -g -y

Use without installing

npx skills use jegly/Box@mood-music

指定 Agent (Claude Code)

npx skills add jegly/Box --skill mood-music -a claude-code -g -y

安装 repo 全部 skill

npx skills add jegly/Box --all -g -y

预览 repo 内 skill

npx skills add jegly/Box --list

SKILL.md

Frontmatter
{
    "name": "mood-music",
    "metadata": {
        "homepage": "https:\/\/github.com\/google-ai-edge\/gallery\/tree\/main\/skills\/featured\/mood-music",
        "require-secret": true,
        "require-secret-description": "you can get api key from https:\/\/www.loudly.com\/developers\/apps after registering an account"
    },
    "description": "A skill to suggest or play music based on the user's mood, including analyzing images or audio, by querying available genres and generating music via the Loudly API."
}

Mood Music

Instructions

You MUST use a strict two-step process to generate music. This ensures you only request musical genres that are currently supported by the Loudly API.

Step 1: Fetch Available Genres

Call the run_js tool with get_genres.html as the script name and an empty JSON payload ({}).

  • This will return a list of currently available genres and their descriptions.
  • You MUST review this list to understand the available musical palettes.

Step 2: Analyze and Generate

Once you have the valid genres, map the user's request to the best fit and call run_js with index.html to generate the track.

Handling Inputs:

  • Text Inputs: Translate abstract mood requests into a concrete, matching genre from the fetched list, along with an appropriate energy level.
  • Media Inputs (Images/Audio): If the user provides an image or audio clip, analyze the media to determine its underlying mood, atmosphere, or vibe. Translate this analysis strictly into one of the fetched genres.

Generation Payload (for index.html): Your JSON payload for index.html MUST strictly use these text fields to represent the vibe:

  • genre: String, Required. MUST be an exact match to a genre name retrieved in Step 1.
  • genre_blend: String, Optional. A secondary genre to blend (also from Step 1).
  • duration: Integer, Optional. Length in seconds (30-420). Default is 120.
  • energy: String, Optional. Vibe ("low", "high", "original").
  • bpm: Integer, Optional. Specific tempo in Beats Per Minute.

Invocation Triggers

You should invoke this skill when the user:

  • Asks for music for a specific mood.
  • Asks for playlist ideas for a vibe.
  • Uploads an image or audio clip and asks for music to match it.

Version History

  • 7897895 Current 2026-07-24 17:00

Same Skill Collection

skills/built-in/calculate-hash/SKILL.md
skills/built-in/interactive-map/SKILL.md
skills/built-in/kitchen-adventure/SKILL.md
skills/built-in/mood-tracker/SKILL.md
skills/built-in/translator/SKILL.md
skills/featured/restaurant-roulette/SKILL.md
skills/built-in/query-wikipedia/SKILL.md
skills/built-in/send-email/SKILL.md
skills/featured/virtual-piano/SKILL.md
skills/built-in/qr-code/SKILL.md
skills/built-in/text-spinner/SKILL.md

Metadata

Files
0
Version
8785970
Hash
9cf0b411
Indexed
2026-07-24 17:00

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-28 18:48
浙ICP备14020137号-1 $Carte des visiteurs$