skills/lyrics-validator/SKILL.md
Verify translated lyrics against musical constraints including syllable counts, rhyme scheme, and syllable patterns. Use after translating lyrics to check quality.
npx skillsauth add guan404ming/blt-skills lyrics-validatorInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Verify that translated lyrics meet all musical constraints at once.
python skills/lyrics-validator/scripts/validate.py "<language>" '<target_syllables_json>' "<line1>" "<line2>" ...
Example:
python skills/lyrics-validator/scripts/validate.py cmn '[5,7,5]' "随风而去吧" "在那遥远的天边飞" "随它去吧"
Output is JSON with:
syllables: actual syllable counts per linesyllables_match: whether all match targetsrhyme_endings: detected rhyme endingsrhymes_valid: whether rhyme scheme is satisfiedfeedback: human-readable constraint feedbackfrom validate import verify_all_constraints
result = verify_all_constraints(
lines=["line1", "line2"],
language="cmn",
target_syllables=[5, 7],
rhyme_scheme="AA",
target_patterns=[[2, 3], [3, 4]],
)
testing
Analyze word-level syllable distribution in text lines. Get syllable patterns, compare against targets, and score pattern quality. Use when matching word rhythm in lyrics translation.
testing
Count syllables in text for any supported language. Use when checking syllable counts for lyrics translation, poetry, or rhythm analysis.
testing
Extract rhyme endings, check if texts rhyme, and detect rhyme schemes. Use when analyzing or preserving rhyme in lyrics translation or poetry.
testing
Convert text to IPA (International Phonetic Alphabet) and calculate phonetic similarity between texts. Use when analyzing pronunciation, comparing sounds across languages, or checking phonetic distance.