Skip to content
Productivity
Skill

/mood-music

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.

From plugin
box
1k14 skills

Claude Code

$ npx -y skills add jegly/Box --skill mood-music --agent claude-code

SKILL.md

mood-music.SKILL.md
name: mood-music
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.
metadata:
  require-secret: true
  require-secret-description: you can get api key from https://www.loudly.com/developers/apps after registering an account
  homepage: https://github.com/google-ai-edge/gallery/tree/main/skills/featured/mood-music

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.
Read more
@jegly
Ships withbox

What makes Box unique? You can sit at your desk, tap two buttons, and have a real flowing voice conversation with an AI — no wake word, no account, no server, no subscription.

Stars on GitHub

Momentum

stars in total
1.0k
Star history of jegly/Box on GitHub, a chart by star-history.com

Other skills on box.

budget-tracker

budget-tracker

Track daily expenses and income. Use when the user wants to log spending, record a purchase, add income, or see a budget summary.

@jegly@jeglyInstall Skill
calculate-hash

calculate-hash

Calculate the cryptographic hash of a given text. Supports SHA-1, SHA-256, SHA-384, and SHA-512.

@jegly@jeglyInstall Skill
mood-tracker

mood-tracker

A simple mood tracking skill that stores your daily mood and comments. Use this when the user wants to log their mood, track how…

@jegly@jeglyInstall Skill
password-generator

password-generator

Generate a secure random password. Use when the user asks to generate, create, or make a password.

@jegly@jeglyInstall Skill

More skills from other plugins.

i-have-adhd

i-have-adhd

Shape output for a reader with ADHD: lead with the next action, number multi-step work, restate state across turns, suppress…

@ayghri@ayghriInstall Skill
ab-test-analysis

ab-test-analysis

Analyze A/B test results with statistical significance, sample size validation, confidence intervals, and ship/extend/stop…

pm-skills11d28k
@phuryn@phurynInstall Skill
distilly

distilly

Set up the owner profile so a personal agent knows who it works for (first-run setup, \"get to know me\"), or distill colleague,…

Questions about mood-music.

Which coding agents can use mood-music?
mood-music installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.