Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Nested swiss-knife reference for composing one music track that resonates with a project journal entry, on demand. Walks the user's saved presets to find a usable media-creation provider (MiniMax, etc.), reads the journal at ~/.lingtai-tui/brief/projects/<hash>/journal.md, picks a genre that fits the day, generates the audio, and saves it next to the journal under music/ with an index entry. Read this when the user asks for music for a journal day, a project's vibe, session mood, or a specific g
.claude/skills/lingtai-ai-dj/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-22 | ✗→✓ | ▲ Improved | 3% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 45% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 41% | 0% |
| case-09 | ✗→✓ | ▲ Improved | 29% | 0% |
| case-10 | ✗→✓ | ▲ Improved | 31% | 0% |
A nested swiss-knife reference for composing one music track per project journal entry. Use this when the user asks for music tied to what they've been working on — "make a track for today's journal", "give me a bossa nova for last week", "the journal mentioned X — try a piece in style Y".
This skill assumes you already have file/bash/skills capabilities. It does not install or configure any media provider — it discovers what is available in your skills catalog and composes via whichever skill matches the user's saved presets.
If the request is ambiguous (which journal? which genre? which project?), ask first. Don't guess and burn a generation call.
Before composing, you need to know what providers you can actually reach. Run this the first time the user asks for music in a session, and re-run when the request would use a media path you haven't tried this session.
Step A — enumerate available media-creation skills. Look in your skills catalog for skills tagged media-creation. If your catalog only shows name + description, the description still mentions "media-creation" for tagged skills — grep that.
If you want the canonical list, walk the configured skills paths shown by the skills catalog:
bashfor path in <skills paths from skills(action="info")>; do for skill in "$path"/*/SKILL.md; do [ -f "$skill" ] || continue grep -l -E '(^|, )media-creation(,|]| )' "$skill" 2>/dev/null done done
For each one, the skill itself is the source of truth on what providers it talks to and what env-var key it expects. For MiniMax specifically, load the sibling Swiss Knife minimax-cli reference (../minimax-cli/SKILL.md); it is the canonical provider reference and explains how to scan TUI presets recursively, pick the declared MiniMax slot, export it without printing the key, and match the region.
Step B — cross-check against the user's saved presets. Each media-creation skill expects an API key. Scan ~/.lingtai-tui/presets/**/*.json recursively for each preset's manifest.llm provider + api_key_env (slot name) — the sibling ../minimax-cli/SKILL.md §3 carries the canonical JSONC-safe scanner; reuse it rather than re-implementing the comment-stripper here. The saved keys themselves live in ~/.lingtai-tui/.env; list key names only, never values:
bashgrep -E '^[A-Z0-9_]+_API_KEY=' ~/.lingtai-tui/.env | cut -d= -f1
Step C — intersect. A media-creation skill is usable only if (a) its provider matches a saved preset's provider AND (b) its expected env-var key is present in .env. Build the list of usable providers.
Step D — decide.
sk-cp-… key — this will populate that preset's slot in ~/.lingtai-tui/.env and unlock the minimax-cli skill." Do not produce a fake track. Do not pretend.Start from this palette unless the user specifies otherwise:
The user may request anything outside this palette — Ravel, Coltrane, City Pop, 戏曲, gamelan, anything. Honor specific requests. The palette is a starting point, not a fence.
~/.lingtai-tui/brief/projects/<hash>/journal.md. The brief.md / profile.md files in the same tree give you context on the user. If the user points at a specific date or hour, also consult the matching history/<YYYY-MM-DD-HH>.md. Distill: what did the user do? What was the emotional arc? What instrumentation, tempo, key, mood would honor this session?SKILL.md from the skills catalog. For MiniMax, this is the sibling Swiss Knife minimax-cli reference (../minimax-cli/SKILL.md); use its preflight instead of inventing credential or region rules here. Follow the provider skill's live-doc / --help guidance so you have the current schema, model list, response shape, and expected wait time.mmx music ... via minimax-cli; for other providers, whatever their skill documents). If the response is a URL, curl -o it down; if a base64 blob, decode to file; if the CLI writes an output directory, move/copy the final audio into place. Save to ~/.lingtai-tui/brief/projects/<hash>/music/<YYYY-MM-DD>-<genre-slug>-<short-title-slug>.<ext>. Create the music/ folder if it doesn't exist. Do not overwrite an existing track for the same journal date — append a counter (-2, -3) if the user asks for another take.~/.lingtai-tui/brief/projects/<hash>/music/index.md:markdown
2026-04-29 · gentle syncopation for a clean refactor dayCreate the index file if it doesn't exist.
> Found a bug or issue? If you encounter any problems with this skill, load the lingtai-issue-report skill and follow its instructions to report it.
Other measured skills in the registry, with their headline benchmark lift.