by SJY051
Modular music-composition skill for AI assistants — harmony, melody, form, 24+ genres.
# Add to your Claude Code skills
git clone https://github.com/SJY051/music-compositionGuides for using ai agents skills like music-composition.
music-composition is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by SJY051. Modular music-composition skill for AI assistants — harmony, melody, form, 24+ genres. It has 115 GitHub stars.
music-composition's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/SJY051/music-composition" and add it to your Claude Code skills directory (see the Installation section above). music-composition ships a SKILL.md manifest, so compatible agents can discover and load it automatically.
music-composition is primarily written in Python. It is open-source under SJY051 on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh music-composition against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
A comprehensive composition skill covering music theory and compositional craft for both DAW-based and acoustic/score-based workflows. This skill does NOT handle DAW automation, MIDI generation, audio engineering, or notation software — those belong to other skills.
Composition is a series of decisions, not a list of rules to follow. When advising:
production-aware/, but EQ, compression, and synthesis decisions are out of scope.references/instrument-idiom/, but this skill does not replace a private teacher, method book, or technique practice plan.The bulk of this skill lives in references/. Always start by reading references/00-navigation.md — it maps user requests to the specific reference files you need.
Don't load every reference. Load only what's directly relevant to the current question. For most requests, 1–3 reference files is enough. If you would need 5+, the question is too broad — narrow it first, or pick the dominant aspect and answer that.
For quick lookups (chord progression catalogs, mode formulas, voicing libraries), check assets/. Asset files are short and can be quoted directly. Reference files should be synthesized, not quoted.
references/
├── 00-navigation.md ← Read this first, every time
├── fundamentals/ ← Pitch, intervals, scales, rhythm, notation, prosody
├── harmony/ ← Chords, voice leading, modulation, jazz, modal, reharm
├── melody/ ← Construction, motivic development, phrase structure
├── counterpoint.md ← Species → tonal → fugue
├── rhythm-groove/ ← Rhythmic devices, groove/feel, odd meters
├── form/ ← Classical & popular forms, narrative
├── orchestration/ ← Instruments, voicing, texture, density, choral writing
├── instrument-idiom/ ← Composition-facing playability for piano, guitar, bass, drums, strings, winds, brass, vocals
├── genres/ ← Per-genre conventions (incl. Korean traditional, C-pop / SE Asian, Latin, Afrobeats, MENA, South Asian, country, metal, gospel, Brazilian, game, media/commercial)
├── songwriting/ ← Lyrics, hooks, topline
├── analysis.md ← Roman numeral, form, Schenker, set theory
├── techniques/ ← Theme & variation, 20th C., constraint-based, microtonal, algorithmic / AI-assisted
├── production-aware/ ← Pre-production, composition-mix interface, energy
├── research/ ← Web trends, user listening context, regional trend evolution, reference digging, style/copyright guardrails
├── creative-workflows/ ← Musical brainstorming, answer calibration, revision loops, and user-agent collaboration patterns
├── validation/ ← Release readiness, Phase B/C records, RC packaging, and prompt smoke tests
├── source-bibliography.md ← Maintainer-facing source map and verification guide
├── workflow.md ← Starting, revising, hybrid-genre advising
├── critique-and-feedback.md ← Evaluating user's existing work (critique mode)
└── teaching-composition.md ← Pedagogy mode, learning paths, exercises
scripts/
└── music_theory_sanity_check.py ← Optional validation and regression helper for maintainers
assets/
├── progressions-catalog.md
├── response-templates.md
├── diagnostic-checklists.md
├── trend-and-reference-matrices.md
├── musical-brainstorming-cards.md
├── session-brief-and-decision-log.md
├── web-search-cheatsheet.md
├── chord-symbol-ambiguity-and-parsing.md
├── scale-degree-spelling-cheatsheet.md
├── music-theory-audit-rubric.md
├── cadence-reference.md
├── modes-cheatsheet.md
├── intervals-and-scale-formulas.md
├── jazz-voicings.md
├── form-templates.md
└── chord-symbol-conventions.md
references/00-navigation.md to find the relevant reference files.iv–i–V–i, which is darker still").Use these consistently throughout the skill:
Cmaj7, Dm7, G7♭9, F♯dim7, B♭/D (slash chord), Cmaj7♯11.° = diminished, + = augmented; arabic for inversions and 7ths (I, vi, V7, ii⁶, V⁶/⁵, vii°⁷, iiø7); ♭ and ♯ prefix for chromatic alterations of scale degree (♭VI, ♯iv°); / for tonicization (V/V, V7/vi).♯, flat = ♭, double-sharp = 𝄪, double-flat = 𝄫.m2 M2 m3 M3 P4 A4 d5 P5 m6 M6 m7 M7 P8; "tritone" acceptable when style is informal.^1 ^2 ^3 ... when concise; "tonic / supertonic / mediant / subdominant / dominant / submediant / leading tone" in prose.120 BPM); ♩=120 when discussing notation.The same musical question has different answers in different genres. Before applying any technique, identify the genre frame:
If the user hasn't named one and context doesn't make it obvious, ask. Don't default silently — you'll give wrong-feeling advice.
This skill is designed to grow. To add new content:
references/genres/<name>.md, update 00-navigation.md's genre table.assets/, update 00-navigation.md's asset map.references/instrument-idiom/<instrument>.md, update instrument-idiom/overview.md and 00-navigation.md.references/research/, include a snapshot note, update 00-navigation.md, and link from related genre files.references/creative-workflows/, update 00-navigation.md, and add quick templates in assets/ if the workflow benefits from reusable cards. Use creative-workflows/answer-calibration.md for bounded variation, answer length, and loading discipline.references/validation/, update 00-navigation.md, RELEASE-ROADMAP.md if relevant, and add expected-file checks when it becomes release-critical. Ship KNOWN-LIMITATIONS.md or include its caveats in release validation reports.When adding files, keep them under ~600 lines (split if longer), one topic per file, descriptive names. Always update 00-navigation.md so the agent can find new content.
Recent expansion includes game/interactive scoring, microtonal/xenharmonic systems, choral writing, music for media, Korean traditional / K-trad fusion, C-pop / Southeast Asian pop, prosody, and algorithmic / AI-assisted composition. Recent expansion also includes response templates, diagnostic checklists, trend/reference matrices, musical brainstorming cards, session/decision-log templates, a web-search cheatsheet, style/copyright guardrails, user streaming-service listening context, regional trend-evolution analysis, regional scene starters, minor/microgenre handling, genre idiom files for Latin pop/reggaeton, Afrobeats/amapiano, South Asian film-pop, MENA pop, country/Americana, metal/punk/hardcore, gospel/CCM, and Brazilian pop/funk, plus composition-facing instrument-idiom/, creative-workflows/, and validation/ folders, release-readiness docs, Phase C smoke-test result recording, RC1 packaging guidance, known-limitations documentation, answer-calibration workflow guidance, chord-symbol/scale-degree audit assets, and a maintainer-facing source bibliography. Future additions should prioritize prompt-smoke-test runs, deeper regional genre idioms, instrument-family expansions where needed, style-specific reference libraries, and stronger automated validation; the Phase B correctness-prep checklist now lives in references/validation/phase-b-correctness-pass.md.
If a user asks about a topic this skill doesn't yet cover, say so explicitly: "This skill doesn't have a dedicated reference for [X] yet — I'll work from general principles and flag what I'm uncertain about." Then do that. Don't fabricate confident answers from gaps.
A modular knowledge and workflow skill for an AI music-composition assistant.
This repository is designed to help an agent turn vague creative requests — “make the chorus hit harder,” “give me a darker K-pop bridge,” “reharmonize this like jazz but not too dense,” “find reference tracks for my playlist” — into concrete musical decisions: chords, melody shapes, grooves, forms, arrangement moves, diagnostic feedback, and research workflows.
Current release: v1.0
Release date: 2026-04-27
The simplest way is via the skills CLI (requires Node.js):
npx skills add SJY051/music-composition
This installs to your current project's agent directory (e.g., .claude/skills/). Add -g for user-level (global) install, or --all -y to skip prompts.
For a manual install, clone the repository and point your agent at it (or copy SKILL.md and the relevant subdirectories into your agent's skill folder, such as ~/.claude/skills/ or .claude/skills/ in a project):
git clone https://github.com/SJY051/music-composition.git
The skill follows the open Agent Skills standard — the SKILL.md + YAML frontmatter format used by both Claude (Claude Code, Claude Agent SDK, Claude.ai skills) and OpenAI (Responses API tools[].environment.skills). It works on any harness that reads this format.
Two benchmarks ship with v1.0:
Approach 1 (system-prompt injection, GLM-5.1, blind eval). With SKILL.md prepended to the system prompt, the skill version wins 6 of 8 representative composition prompts in an author-bias-controlled blind comparison. The strongest signal is the boundary test (P8) — the skill version explicitly declines an out-of-scope mixing question while the baseline answers freely.

Approach 2 (native lazy loading, Claude Opus 4.7). With the skill installed via Claude Desktop's Skills feature, the model reads references on demand. Most striking: pansori OST advice cites yoseong, toeseong, chuseong with cents-and-milliseconds implementation values that exist only inside references/genres/korean-traditional.md — direct evidence the model used the skill's full content, not just SKILL.md.

Together: the skill content shapes behavior even on weaker setups, and content depth unlocks on stronger setups. Full methodology and per-prompt analysis: benchmarks/v1.0-eval.md, benchmarks/v1.0-claude.md.
Use this skill when an AI agent needs to help with:
The skill is not a DAW, audio engine, MIDI generator, transcription engine, legal service, or substitute for a human specialist in culturally specific traditions. It is a structured reference and workflow layer for an AI assistant.
The skill is built around a few practical principles:
Composition is decision-making, not rule-following.
Music theory is treated as a map of possible effects, not a list of commandments.
Give playable, actionable output.
Prefer concrete examples such as chord charts, scale-degree melodies, groove sketches, voicing suggestions, and revision blocks.
Preserve user agency.
Offer options, explain tradeoffs, and let the user choose a direction.
Use only the references needed.
The agent should usually start with SKILL.md, route through references/00-navigation.md, and load only the most relevant 1–3 files.
Treat current music trends as research tasks.
Static genre files provide stable craft conventions. Recent artists, charts, platform norms, and scene-specific references should be checked through active web research.
Avoid shallow cultural shortcuts.
Tradition-specific and region-specific music should not be reduced to generic “flavor.” The skill encourages naming the source tradition, function, language, rhythm system, instrumentation, and collaboration needs.
.
├── SKILL.md
├── MAINTENANCE.md
├── RELEASE-ROADMAP.md
├── KNOWN-LIMITATIONS.md
├── RELEASE-NOTES-v1.0.md
├── VALIDATION-v1.0.md
├── assets/
├── references/
│ ├── 00-navigation.md
│ ├── creative-workflows/
│ ├── form/
│ ├── fundamentals/
│ ├── genres/
│ ├── harmony/
│ ├── instrument-idiom/
│ ├── melody/
│ ├── orchestration/
│ ├── production-aware/
│ ├── research/
│ ├── rhythm-groove/
│ ├── songwriting/
│ ├── techniques/
│ └── validation/
└── scripts/
└── music_theory_sanity_check.py
| File | Purpose |
|---|---|
SKILL.md |
Root operating instructions for the agent. Start here. |
references/00-navigation.md |
Routing map for choosing the right reference files. |
assets/ |
Short cheat sheets and response templates for quick use. |
references/creative-workflows/ |
Brainstorming, revision, answer calibration, and user-agent collaboration. |
references/research/ |
Web trend research, reference-track digging, streaming-service-aware research, and style/copyright guardrails. |
references/genres/ |
Genre and regional starter guides. |
references/instrument-idiom/ |
Composition-facing playability and idiomatic writing guides. |
references/validation/ |
Release readiness, smoke tests, correctness passes, and packaging checklists. |
scripts/music_theory_sanity_check.py |
Regression checker for links, known theory errors, risky terminology, snapshot notes, and required files. |
For most user requests:
1. Read SKILL.md.
2. Use references/00-navigation.md to identify the smallest useful document set.
3. Load only the relevant reference files, usually 1–3.
4. Generate concrete musical output.
5. Explain why the choices work.
6. Offer a small number of next-step options.
For example:
| User request | Likely routing |
|---|---|
| “Give me a sad but not cliché progression.” | harmony/functional-harmony.md, harmony/modal-harmony.md, assets/progressions-catalog.md |
| “The chorus does not hit.” | assets/diagnostic-checklists.md, songwriting/hooks-and-memorability.md, production-aware/energy-and-dynamics.md |
| “Make this more playable on guitar.” | instrument-idiom/guitar.md, plus the relevant harmony or arrangement file |
| “Brainstorm three directions.” | creative-workflows/musical-brainstorming.md, assets/musical-brainstorming-cards.md |
| “Find current J-pop references.” | research/web-music-trend-research.md, research/reference-track-digging.md, assets/web-search-cheatsheet.md |
| “Use my playlist as a reference.” | research/user-listening-context-and-streaming-services.md, assets/trend-and-reference-matrices.md |
Some files include a snapshot note. These files contain information that can become outdated, especially around:
The snapshot note does not mean the file is permanently current. It means the file was last reviewed as of that snapshot date. For fresh claims, use the research documents and verify current sources.
Useful research files:
references/research/web-music-trend-research.md
references/research/reference-track-digging.md
references/research/user-listening-context-and-streaming-services.md
references/research/regional-trend-evolution-analysis.md
references/research/style-reference-and-copyright.md
assets/web-search-cheatsheet.md
This skill is intended to help generate original musical ideas. It should not be used to copy protected expression from existing songs or artists.
When a user asks for a specific artist or song style, the agent should translate the reference into craft variables such as:
The agent should avoid reproducing or imitating protected elements such as:
See:
references/research/style-reference-and-copyright.md
KNOWN-LIMITATIONS.md
The skill contains guides for traditional, regional, and hybrid styles. These are composition-facing starter references, not replacements for cultural expertise, native-language knowledge, or practi