Skip to content
Agentmart
Submit a tool

lyrics-translator

Translate lyrics while preserving musical constraints (syllable counts, rhyme scheme, syllable patterns).

Skill by guan404ming

IndexedApache-2.0★ 1
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/guan404ming-lyrics-translator

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Translate lyrics while preserving musical constraints (syllable counts, rhyme scheme, syllable patterns). Use when the user wants to translate song lyrics from one language to another while maintaining singability.

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/lyrics-translator

What's inside

Skill name
lyrics-translator
Description
Translate lyrics while preserving musical constraints (syllable counts, rhyme scheme, syllable patterns). Use when the user wants to translate song lyrics from one language to another while maintaining singability.
License
Apache-2.0
Instructions
82 lines in SKILL.md · view on GitHub

Files (3)

  • SKILL.md
  • config.md · references/
  • graph-pipeline.md · references/

SKILL.md (first lines)

# Lyrics Translator

Translate lyrics between languages so the translation stays singable. Never count syllables or judge rhyme yourself. Always run the sub-skill scripts and use their output.

## Workflow

### Step 0: Extract Constraints

Run these on the source lines before you translate:

1. Syllable count per line:
   ```bash
   python skills/syllable-counter/scripts/count_syllables.py "<line>" "<source_lang>"
   ```
2. Rhyme scheme:
   ```bash
   python skills/rhyme-analyzer/scripts/rhyme_analysis.py --scheme "<source_lang>" "<line1>" "<line2>" ...
   ```
3. Word-level syllable pattern:
   ```bash
   python skills/syllable-pattern-analyzer/scripts/pattern_analysis.py "<source_lang>" "<line1>" "<line2>" ...
   ```

Record the target syllable counts, the rhyme scheme, and the patterns.

### Phase 1: Initial Translation

Translate all lines at once:

- Each line must have EXACTLY the target syllable count.
- Lines that share a rhyme label must rhyme in the target language. Lines with different labels must not rhyme.
- Keep the word-level syllable pattern close to the source when possible.
- Keep the meaning and the emotion of the source.

Rules for Chinese targets: one Han character is one syllable. Write only Han characters. Do not mix Latin letters or digits into a line.

### Phase 2: Syllable Refinement

For each translated line:

1. Count its syllables:
   ```bash
   python skills/syllable-counter/scripts/count_syllables.py "<translation>" "<target_lang>"
   ```
2. If the count differs from the target, rewrite the line:
   - Too long: remove modifiers, use shorter words, merge concepts.
   - Too short: add descriptive words, use longer words.
   - Count again after each rewrite. Stop after 10 attempts and keep the closest attempt.

### Final Validation

Run the validator on all lines. Pass the target counts as a JSON list of integers and the recorded scheme:

```bash
python skills/lyrics-validator/scripts/validate.py "<target_lang>" '[10, 9, 6, 6, 5]' "<line1>" "<line2>" ... --rhyme ABCCD
```

If `syllables_match` is false, return to Phase 2 for the failing lines. If `rhymes_valid` is false, try one rewrite of the failing lines that keeps the syllable counts, then count again.

## Output Format

Return only the final translation:

```
1. <translated line 1>
2. <translated line 2>
...
```

## Sub-Skills Used

- [syllable-counter](../syllable-counter/SKILL.md) - count syllables
- [rhyme-analyzer](../rhyme-analyzer/SKILL.md) - rhyme endings and schemes
- [syllable-pattern-analyzer](../syllable-pattern-analyzer/SKILL.md) - word rhythm patterns
- [lyrics-validator](../lyrics-validator/SKILL.md) - constraint verification
- [phonetic-analyzer](../phonetic-analyzer/SKILL.md) - IPA and phonetic similarity

## Configuration Reference

See [references/config.md](references/config.md) for language codes and defaults.

From guan404ming/blt-skills, Apache-2.0.

Signals

Stars
1
Forks
1
Open issues
0
Last commit (this folder)
Aug 27, 2026 (2 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from guan404ming

Cite this page

lyrics-translator skill. Agent Mart. https://agentmart.dev/skills/guan404ming-lyrics-translator (last updated 2026-10-24)