mood-music

mood-music is a skill for Claude Code, Codex from StrinGhost/gemma-skills. It costs 37 tokens per session (501 once invoked), scanned A, original, Apache-2.0.

A music assistant that suggests or generates tracks based on a user's mood, image, or audio. It matches the request to music genres currently supported by the Loudly service.

In plain words
What is it for?
Use it to identify a suitable genre and energy level from text or media, then request a mood-matched track.
Why use it?
It turns an abstract feeling or the atmosphere of media into a concrete musical direction. Checking the available genres first helps keep the generated request valid.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to identify a suitable genre and energy level from text or media, then request a mood-matched track.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/stringhost/gemma-skills/mood-music
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.

Any agent
npx skills add StrinGhost/gemma-skills --skill mood-music
Clone the repo
git clone --depth 1 https://github.com/StrinGhost/gemma-skills

Made for: Claude Code, Codex.

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 mood-music

README.md
[![agentmods](https://agentmods.dev/badge/skills/stringhost/gemma-skills/mood-music.svg)](https://agentmods.dev/skills/stringhost/gemma-skills/mood-music)
Your own site
<a href="https://agentmods.dev/skills/stringhost/gemma-skills/mood-music"><img src="https://agentmods.dev/badge/skills/stringhost/gemma-skills/mood-music.svg" alt="Measured on agentmods" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 501 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.00037 $0.00501
Opus 5 $0.00018 $0.00251
Sonnet 5 $0.00007 $0.00100
Haiku 4.5 $0.00004 $0.00050

Measured 8d ago against content hash 9cf0b4112a2f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

mood-music 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 8d 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.

skills/mood-music/SKILL.md · 41 lines

What it actually says

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.
Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 8d ago First seen · 41 lines · 37 tokens per session scan A 9cf0b4112a2f

Subscribe to this mod's changes

mood-music is a skill published in the GitHub repository StrinGhost/gemma-skills (54 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 37 tokens to every session and 501 once invoked, about $0.0002 per session on Opus 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.