claude-ai-music-skills
CLAUDE.md531 starsChanged 10 months agoCC0-1.0View on GitHub
This is an AI music generation workflow using Suno. Skills contain domain expertise; this file contains workflow rules and structure that apply every session. WHENEVER the user mentions an album name, use the resume skill: If skill unavailable, manual approach: 1. Read ~/.bitwize-music/cache/state.json — search state.albums keys (case-insensitive) 2. If cache missing/stale: read config → glob {content_root}/artists/{artist}/albums/*/*/README.md → rebuild cache with rebuild_state() MCP tool DO NOT: search from cwd, use complex globs, assume paths, or use ls/find. Album slugs are…
- Commits and pushes
In this repository53 other files it gives its agents.
- aboutSkill
- album-art-directorSkill
- album-conceptualizerSkill
- album-dashboardSkill
- album-ideasSkill
- clipboardSkill
- cloud-uploaderSkill
- configureSkill
- document-hunterSkill
- explicit-checkerSkill
- genre-creatorSkill
- health-checkSkill
- helpSkill
- import-artSkill
- import-audioSkill
- import-trackSkill
- lyric-refinerSkill
- lyric-reviewerSkill
- lyric-writerSkill
- mastering-engineerSkill
- mix-engineerSkill
- new-albumSkill
- next-stepSkill
- plagiarism-checkerSkill
- pre-generation-checkSkill
- promo-directorSkill
- promo-reviewerSkill
- promote-ideaSkill
- promo-writerSkill
- pronunciation-specialistSkill
- release-directorSkill
- renameSkill
- researchers-biographicalSkill
- researchers-financialSkill
- researchers-govSkill
- researchers-historicalSkill
- researchers-journalismSkill
- researcherSkill
- researchers-legalSkill
- researchers-primary-sourceSkill
- researchers-securitySkill
- researchers-techSkill
- researchers-verifierSkill
- resumeSkill
- session-startSkill
- setupSkill
- sheet-music-publisherSkill
- suno-engineerSkill
- testSkill
- tutorialSkill
- validate-albumSkill
- verify-sourcesSkill
- voice-checkerSkill
The file
Show its rules and text
We split this CLAUDE.md into the rules it gives an agent
16 rules. About 0 are common, 3 are distinctive, and 13 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
13
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 15
Read ~/.bitwize-music/cache/state.json — search state.albums keys (case-insensitive)
- Very specific: line 16
If cache missing/stale: read config → glob {content_root}/artists/{artist}/albums/*/*/README.md → rebuild cache with rebuild_state() MCP …
- Very specific: line 18
DO NOT: search from cwd, use complex globs, assume paths, or use ls/find.
- Very specific: line 78
If config missing → suggest: /bitwize-music:configure
- Very specific: line 79
Don't proceed with session start until setup is complete 1.5.
- Very specific: line 100
If MCP returns errors about missing/stale cache → rebuild_state() MCP tool 4.5.
- Very specific: line 104
Never clear migrations by rebuilding state — a rebuild preserves pending status.
- Very specific: line 115
No albums → suggest /bitwize-music:tutorial
- Very specific: line 179
After adding sources → status: ❌ Pending → human verifies via /bitwize-music:verify-sources → ✅ Verified (DATE)
- Very specific: line 213
When all tracks are Final → album advances to Complete
- Distinctive: line 219
When a user rejects a generated track (doesn't like the result, wrong style, pronunciation issues, etc.):
- Distinctive: line 221
Log the rejection: Add a row in the Generation Log with the reason (e.g., "wrong tempo", "vocal too high", "mispronounced name")
- Very specific: line 282
Co-author line: use the model actually running the session, e.g.
- Very specific: line 286
Release process: Update CHANGELOG.md [Unreleased] → [0.x.0 - DATE], update version in both plugin files, update README "What's New" table …
- Distinctive: line 302
Lessons learned protocol: When you discover a technical issue during production (pronunciation error, rhyme violation, wrong assumption):
- Very specific: line 307
Self-updating skills: When a skill discovers something new, it adds to the relevant reference file.
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AI Music Skills - Claude Instructions
This is an AI music generation workflow using Suno. Skills contain domain expertise; this file contains workflow rules and structure that apply every session.
⚠️ CRITICAL: Finding Albums When User Mentions Them
WHENEVER the user mentions an album name, use the resume skill:
/bitwize-music:resume my-albumIf skill unavailable, manual approach:
- Read
~/.bitwize-music/cache/state.json— searchstate.albumskeys (case-insensitive) - If cache missing/stale: read config → glob
{content_root}/artists/{artist}/albums/*/*/README.md→ rebuild cache withrebuild_state()MCP tool
DO NOT: search from cwd, use complex globs, assume paths, or use ls/find.
Album slugs are globally unique across genres; if health_check reports a slug collision, resolve it (rename or move the directory, then rebuild) before trusting lookups.
Configuration & Path Resolution
Config is always at: ~/.bitwize-music/config.yaml
ALWAYS read config fresh before moving/creating files, resolving path variables, or using artist name in paths. Never assume or remember values.
Path variables (from config):
{content_root}=paths.content_root{audio_root}=paths.audio_root{documents_root}=paths.documents_root{tools_root}=~/.bitwize-music{plugin_root}= the directory containing this CLAUDE.md file (=${CLAUDE_PLUGIN_ROOT}in skills)[artist]=artist.name
IMPORTANT — Mirrored path structure:
{content_root}/artists/[artist]/albums/[genre]/[album]/ # Album files (in git)
{audio_root}/artists/[artist]/albums/[genre]/[album]/ # Mastered audio
{documents_root}/artists/[artist]/albums/[genre]/[album]/ # PDFs (not in git)Audio and document paths include [artist]/ after the root. Common mistake: omitting the artist folder.
First-time setup: cp config/config.example.yaml ~/.bitwize-music/config.yaml — see config/README.md.
MCP Server — Preferred Data Access
The bitwize-music-mcp server is the preferred way to query project state. Use MCP tools instead of reading files directly — they're faster (single call vs multiple file reads) and return structured data.
Use MCP tools for:
- Albums/tracks →
list_albums,find_album,get_track(not reading state.json or globbing for READMEs) - Skills →
list_skills,get_skill(not reading individual SKILL.md files) - Ideas →
get_ideas(not reading IDEAS.md) - Pending verifications →
get_pending_verifications - Config →
get_config(not reading config.yaml for simple lookups) - Session context →
get_session,update_session - Cross-scope search →
search - Stale cache →
rebuild_state
Fall back to direct file access only when: MCP server is unavailable, you need to edit files (MCP is read-only), or you need raw file content not exposed through MCP (e.g., full lyrics, research docs).
Session Start
At the beginning of a fresh session:
- Verify setup — Quick dependency check:
~/.bitwize-music/venv/bin/python3 -c "import mcp.server.mcpserver" 2>/dev/null || ~/.bitwize-music/venv/bin/python3 -c "import mcp.server.fastmcp" 2>/dev/null && echo "✅ MCP ready" || echo "❌ MCP unusable" # macOS/Linux/WSL ~/.bitwize-music/venv/Scripts/python.exe -c "import mcp.server.mcpserver" 2>/dev/null || ~/.bitwize-music/venv/Scripts/python.exe -c "import mcp.server.fastmcp" 2>/dev/null && echo "✅ MCP ready" || echo "❌ MCP unusable" # Windows (Git Bash; cmd/PowerShell: %USERPROFILE%\.bitwize-music\venv\Scripts\python.exe)- If MCP unusable → Stop immediately and suggest:
/bitwize-music:setup mcp(the SDK is missing or predates 1.28.1). Probe both server modules, never bareimport mcp: 2.x servesMCPServerfrommcp.server.mcpserverand 1.x servesFastMCPfrommcp.server.fastmcp, and the server accepts either — but a bareimport mcpsucceeds even when neither module is present, reporting healthy on an install the server cannot boot on - If config missing → suggest:
/bitwize-music:configure - Don't proceed with session start until setup is complete
1.5. Health check — Use
health_checkMCP tool (checks venv + skill registration): - Venv
status: "ok"→ continue silently - Venv
status: "stale"→ warn with mismatches and fix command, continue session - Venv
status: "no_venv"→ stop and suggest/bitwize-music:setup - Venv
status: "error"→ warn and continue - Skills
status: "ok"→ continue silently - Skills
status: "stale"→ warn with missing/ghost skill names and fix message, continue session - Skills
status: "no_cache"→ warn (plugin may not be installed via marketplace), continue - Collisions
status: "collision"→ warn listing each slug + genres and the fix (rename one album with/bitwize-music:renameor move the directory, thenrebuild_state), continue session
- If MCP unusable → Stop immediately and suggest:
- Load config — Read
~/.bitwize-music/config.yaml. If missing, tell user to run/bitwize-music:configure. - Load overrides — Check
paths.overrides(default:{content_root}/overrides):{overrides}/CLAUDE.md→ incorporate instructions{overrides}/pronunciation-guide.md→ merge with base guide- Skip silently if missing (overrides are optional)
- Load state via MCP — Use MCP tools to query project state:
get_config→ verify config is loadedlist_albums→ get album statusesget_ideas→ get idea countsget_pending_verifications(summary_only=True)→ check for pending source verifications (count only)get_session→ resume last session context- If MCP returns errors about missing/stale cache →
rebuild_state()MCP tool 4.5. Check for plugin upgrades — Call theget_pending_migrationsMCP tool (compares the installed version against state'slast_migrated_version, notplugin_version): pendingempty (reason: "current", or"unknown"when plugin.json is unreadable) → no actionpendingnon-empty (reason: "upgrade"or"untracked") → process each note's actions in order, then callacknowledge_migrationsto record them as done- Never clear migrations by rebuilding state — a rebuild preserves pending status; only
acknowledge_migrationsadvanceslast_migrated_version
- (Removed — skills use tier aliases (
opus/sonnet/haiku) that auto-track the frontier model, and the test suite (/bitwize-music:test) enforces model/effort hygiene, so no action is needed on new releases.) - Report from MCP state:
- Health warnings (from step 1.5 — omit if ok):
- Venv stale: "⚠️ Venv has N outdated package(s): pkg1 (1.0.0 → 1.1.0), ... Run:
<venv check's fix field from health_check>" (already the correct command for the user's OS) - Skills stale: "⚠️ N skill(s) missing from Claude Code, N ghost — run:
claude plugin update bitwize-music"
- Venv stale: "⚠️ Venv has N outdated package(s): pkg1 (1.0.0 → 1.1.0), ... Run:
- Album ideas (from
get_ideas) - In-progress albums (status: "In Progress", "Research Complete", "Complete")
- Pending source verifications (from
get_pending_verifications(summary_only=True)) - Last session context (from
get_session)
- Health warnings (from step 1.5 — omit if ok):
- Show contextual tips based on state:
- No albums → suggest
/bitwize-music:tutorial - Ideas exist → suggest
/bitwize-music:album-ideas list - In-progress albums → suggest
/bitwize-music:resume [album-name] - Overrides loaded → note it; missing → suggest creating them (see
config/README.mdfor override file reference) - Pending verifications → warn and suggest
/bitwize-music:verify-sources - One contextual tip from: resume, researcher, pronunciation, clipboard, mastering (pick based on most relevant album state)
- No albums → suggest
- Ask: "What would you like to work on?"
Core Principles
Be a collaborator, not a yes-man. Push back when ideas don't work. The goal is good music, not agreement.
Preserve exact casing and spelling. "bitwize" stays "bitwize" — never auto-capitalize user-provided names, titles, or text.
Ask when unsure. Word choice, style, structure, Suno settings — don't guess.
Pronunciation hard rule: Suno CANNOT infer pronunciation from context. When any homograph is found (live, read, lead, wound, close, bass, tear, wind, etc.), ASK the user which pronunciation is intended — never assume. Fix with phonetic spelling in Suno lyrics only. See /skills/lyric-writer/SKILL.md and /reference/suno/pronunciation-guide.md for full rules.
After writing or revising lyrics, run the 13-point quality checklist from /skills/lyric-writer/SKILL.md. Report violations without being asked.
When user says "let's work on [track]", scan full lyrics for issues BEFORE doing anything else: weak lines, prosody problems, POV/tense inconsistencies, twin verses, missing hook, factual errors, flow/pronunciation risks.
Workflow Overview
Concept → Research → Write (+Suno Prompt) → [Refine] → QC/Verify → Generate → [Polish] → Master → Promo Videos (optional) → Promo Copy (optional) → Release
Critical: Research must complete before writing for source-based content. Human source verification is required before generation — never skip this gate.
Key Routing Rules
- Album mentioned →
/bitwize-music:resume - "Make a new album" → IMMEDIATELY use
/bitwize-music:new-albumBEFORE any discussion - "Turn idea into album" / "promote [idea]" →
/bitwize-music:promote-idea "<idea title>"(one-shot: creates album from a Pending idea, injects concept, updates status) - Writing lyrics → apply
/bitwize-music:lyric-writerexpertise (auto-invokes suno-engineer) - Refining/polishing lyrics →
/bitwize-music:lyric-refiner(post-writing multi-pass refinement) - Planning album → apply
/bitwize-music:album-conceptualizer(7 planning phases required) - Suno prompts → apply
/bitwize-music:suno-engineerexpertise (usually auto-invoked by lyric-writer; use directly only for re-prompting) - Research needed → apply
/bitwize-music:researcherstandards - Polishing audio / fixing Suno artifacts → apply
/bitwize-music:mix-engineerexpertise - Mastering audio → polish first via
/bitwize-music:mix-engineer, then apply/bitwize-music:mastering-engineerstandards. Skip polish only if: (a) user says "master only", "skip polish", or "already polished"; or (b) polished audio already exists at{audio_root}/artists/[artist]/albums/[genre]/[album]/polished/. Applies equally to single-track and whole-album mastering. - Album art → apply
/bitwize-music:album-art-director - Writing promo copy → apply
/bitwize-music:promo-writerexpertise - Releasing → apply
/bitwize-music:release-director - Checking for plagiarism →
/bitwize-music:plagiarism-checker(web search + LLM knowledge) - Checking voice/authenticity →
/bitwize-music:voice-checker(detect AI-sounding patterns) - Verifying sources →
/bitwize-music:verify-sources(human verification gate) - "What skills do X?" →
list_skills/get_skillMCP tools (not reading SKILL.md files)
Skills contain the deep expertise. See /reference/SKILL_INDEX.md for the full decision tree.
Duration Planning
Album target duration set during Phase 3 (Sonic Direction). Tracks inherit unless overridden.
Lookup: Track Target Duration → Album Target Duration → Genre default (craft-reference.md)
Source Verification Gate
- Capture sources FIRST — every source must be a clickable markdown link
[Name](URL) - Save RESEARCH.md and SOURCES.md to album directory (never cwd)
- After adding sources → status:
❌ Pending→ human verifies via/bitwize-music:verify-sources→✅ Verified (DATE) - Block generation if verification incomplete —
/bitwize-music:pre-generation-checkenforces this
Status Tracking
Track statuses (in order):
Not Started → Sources Pending → Sources Verified → In Progress → Generated → Final
Not Started: No work begun on this trackSources Pending: Sources gathered, awaiting human verificationSources Verified: Human confirmed all sources via/bitwize-music:verify-sourcesIn Progress: Lyrics being written or revisedGenerated: Track generated on Suno, audio exists. User listens and either approves (mark ✓ in Generation Log → advance toFinal) or rejects (see Regeneration Workflow below)Final: Approved and ready for mastering
Album statuses — two flows depending on album type:
Documentary/true-story albums (full flow):
Concept → Research Complete → Sources Verified → In Progress → Complete → Released
Standard albums (non-documentary, skip research statuses):
Concept → In Progress → Complete → Released
Concept: Initial planning, album README createdResearch Complete: All research done, sources gathered (documentary albums only)Sources Verified: Human verified all track sources (documentary albums only)In Progress: Active writing/generation workComplete: All tracks Final, ready for mastering/releaseReleased: Published to streaming platforms
Transition rules: Album status advances when ALL tracks reach the corresponding level. A single unverified track keeps the album from advancing past "Research Complete".
Auto-advancement: Skills that complete a phase should advance the album status automatically:
/bitwize-music:verify-sources→ when all tracks verified, advance album toSources Verified- When all tracks are
Final→ album advances toComplete
Batch operations: To mark all Generated tracks as Final after QA, use update_track_field(album_slug, track_slug, "status", "Final") for each track via MCP, or ask Claude to batch-approve all tracks when all have ✓ in their Generation Logs.
Regeneration Workflow
When a user rejects a generated track (doesn't like the result, wrong style, pronunciation issues, etc.):
- Log the rejection: Add a row in the Generation Log with the reason (e.g., "wrong tempo", "vocal too high", "mispronounced name")
- Decide the fix path:
- Style issue (wrong genre, tempo, mood) → Revise Style Box via
/bitwize-music:suno-engineer, then regenerate on Suno - Lyrics issue (wrong words, pronunciation) → Fix lyrics via
/bitwize-music:lyric-writer, re-run/bitwize-music:pronunciation-specialist, then regenerate - Suno interpretation (right prompt, wrong result) → Regenerate on Suno with same settings (Suno is non-deterministic)
- Style issue (wrong genre, tempo, mood) → Revise Style Box via
- Regenerate: Generate again on Suno, log the new attempt
- When satisfied: Mark the keeper with ✓ in the Generation Log Rating column, then advance Status to
Final
Status stays Generated during regeneration — no backward transition needed. The Generation Log tracks all attempts. A track is only Final when it has a ✓ in the Rating column.
Quick reference: resume and next-step detect Generated tracks without a ✓ rating and recommend the appropriate regeneration action.
See /reference/workflows/error-recovery.md for detailed recovery procedures.
See /reference/state-schema.md for the full state cache schema.
Content Structure
Albums: {content_root}/artists/[artist]/albums/[genre]/[album]/
Templates: {plugin_root}/templates/ — use for all new content
Research staging: {content_root}/research/ (move to album directory once album exists)
Album directory layout:
{album}/
├── README.md
├── SOURCES.md # (documentary albums)
├── RESEARCH.md # (documentary albums)
├── tracks/
│ ├── 01-track-name.md
│ └── ...
└── promo/ # Social media copy
├── campaign.md
├── twitter.md
├── instagram.md
├── tiktok.md
├── facebook.md
└── youtube.mdTrack files: zero-padded (01-, 02-). Import with /bitwize-music:import-track, /bitwize-music:import-audio.
promo_videos/ in {audio_root} holds video files (unchanged). promo/ in album directory holds social media copy (text).
Currently supports Suno (default). Service-specific template sections marked with <!-- SERVICE: suno -->.
Versioning & Development
Semantic Versioning with Conventional Commits.
| Prefix | Version Bump |
feat: | MINOR |
fix: | PATCH |
feat!: | MAJOR |
docs:, chore: | None |
Co-author line: use the model actually running the session, e.g. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Version files (must stay in sync): .claude-plugin/plugin.json and .claude-plugin/marketplace.json
Release process: Update CHANGELOG.md [Unreleased] → [0.x.0 - DATE], update version in both plugin files, update README "What's New" table if notable. Commit: chore: release 0.x.0
Development workflow: Feature branch off develop → Conventional Commits → /bitwize-music:test all → PR into develop → Release: merge develop → main. See CONTRIBUTING.md for details.
Release PRs use a merge commit — never squash or rebase. When merging develop → main, use a merge commit. Squashing collapses develop's history into a single new commit on main, permanently diverging the two branches so every subsequent release PR conflicts. (Feature PRs into develop may squash freely.) If develop and main have already diverged from a past squash, reconcile on develop with git merge -s ours origin/main (keeps develop's tree, records main as an ancestor) before merging.
Pre-push gate: ALWAYS run make check before git push. This runs the same ruff + bandit + mypy + pytest suite that CI runs in the Lint and Tests jobs (see Makefile + .github/workflows/test.yml). make lint alone is fine for a quick type-check. Running targeted pytest tests/unit/… and file-scoped ruff check is NOT equivalent — make spins up .venv from requirements.txt + requirements-test.txt so mypy sees real (not stubbed) third-party types, which is what CI sees. If make check fails, fix the root cause; do not push and hope CI catches a different picture.
External contributor PRs: When the user mentions merging, reviewing, or having merged a PR from a non-maintainer (anyone other than @bitwize-music), check the Contributors section of README.md. If the PR author is not listed, proactively offer to add them using the same <a href> avatar block format as existing entries. Do this without being asked.
Mid-Session Rules
Workflow file changes take effect immediately. Re-read after any edit to CLAUDE.md or templates.
Lessons learned protocol: When you discover a technical issue during production (pronunciation error, rhyme violation, wrong assumption):
- Fix the immediate issue
- Sweep the album for the same issue
- Propose a rule to prevent recurrence: "I found [issue]. Here's a rule: [rule]. Should I add it to [location]?"
Self-updating skills: When a skill discovers something new, it adds to the relevant reference file. User-specific content (pronunciations) goes to {overrides}/ directory.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

