kennethreitz/pytheory/chord-lab-with-pytheory
- community
Checking that the SKILL.md file is still in the repository.
Build, voice, and analyze individual chords with PyTheory. Use when the user asks about a single chord — its notes/intervals, inversions or drop-2/drop-3/ open voicings, the tritone substitution, what extensions it can take, how tense or dissonant it is, its Forte number / pitch-class set, figured bass, or the voice-leading between two chords. For progressions and keys use the keys-and-harmony skill; for fingerings/tab use the guitar skill.
Install
npx vskill@latest install kennethreitz/pytheory/chord-lab-with-pytheorySKILL.md
Chord Lab
Everything about a single chord — construction, voicing, and analysis.
Build a chord
A Chord has .symbol, .tones (list of Tone), .root, and .transpose(semitones).
Voicings
inversion, drop2, drop3, and open_voicing return a new Chord. The chord symbol stays the same — the change is in the tones (order/octave), so inspect .tones:
drop3() exists too. Use these to spread a close voicing for piano/strings/guitar.
Analysis
Pitch-class-set toolkit
Reharmonization & voice leading
Neo-Riemannian (P/L/R) — chromatic triad moves
The P/L/R transformations move a single voice to flip a major/minor triad into another — the engine behind Tonnetz harmony and a lot of film-score chromaticism. Each is its own inverse; together they reach all 24 triads.
Part-writing checker (parallels / crossing)
check_voice_leading flags the common-practice no-no's across a sequence of voicings. Each voicing's tones are read low-to-high as the voices (so a 4-note chord gets bass/tenor/alto/soprano labels):
It catches parallel fifths, parallel octaves, and voice crossing; clean part-writing returns [].
Chord-scale theory (what to solo with)
chord_scales ranks scales by fit (quality alone, or the diatonic mode first when you pass a key); avoid_notes flags scale tones a half-step above a chord tone.
Tips
- Voicing methods change
.tones, not.symbol— compare the tone lists. tensionreturns a dict;tension["score"]is the scalar.- To identify a chord from notes or fret positions, that's the guitar skill
(Fingering.identify()) or Chord(...).identify().
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugin/plugins/composing-with-pytheory/skills/chord-lab-with-pytheory/SKILL.md
Popularity
- Repository stars
- 1,629
- Repository forks
- 82
- 7-day trend score
- 37
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/kennethreitz/pytheory/chord-lab-with-pytheory)