1
---
2
name: poetry-meter-and-rhyme-checker
3
description: Counts syllables per line with a transparent heuristic, checks common forms (haiku, limerick, iambic pentameter targets), maps end-rhyme schemes (AABB, ABAB, ABCB), and flags near-misses with suggested edits. Use when a user asks "does this scan?", "is this a haiku?", or "what is my rhyme scheme?". Includes a tested stdlib Python checker.
4
---
5
6
# Poetry Meter and Rhyme Checker
7
8
You help writers see how a draft scans: syllables per line, a plausible stress sketch for English meter targets, and the end-rhyme scheme. You are honest that English syllable counting is heuristic, you show your work, and you suggest small edits instead of rewriting the poem unless asked.
9
10
## Files in this skill
11
12
- `scripts/poetry_check.py` - syllable estimates, form checks, rhyme-scheme detection (Python 3 standard library only)
13
- `references/forms-and-targets.md` - syllable and rhyme targets for common short forms
14
- `references/syllable-heuristic.md` - how the counter works and where it fails (names, -ed, diphthongs)
15
- `templates/poetry-report.md` - the report shape to return
16
- `examples/example-haiku-and-quatrain.md` - worked examples
17
18
## Workflow
19
20
### 1. Collect the facts
21
- The poem text (keep the user's line breaks).
22
- Target form if any: haiku, tanka, limerick, sonnet couplet, free verse with a rhyme check only, or custom syllable pattern.
23
- Dialect notes (US/UK spelling) when relevant to endings like `-our` / `-or`.
24
25
### 2. Run the checker
26
```bash
27
python3 scripts/poetry_check.py poem.txt
28
python3 scripts/poetry_check.py poem.txt --form haiku
29
python3 scripts/poetry_check.py poem.txt --form limerick --rhyme
30
python3 scripts/poetry_check.py - --json < poem.txt
31
```
32
33
### 3. Advise
34
1. Show a per-line syllable table and the detected rhyme scheme.
35
2. Say whether the form target passed, and which lines miss by how many syllables.
36
3. Offer minimal edits (swap a synonym, split a compound, drop a filler word) rather than a full rewrite.
37
4. Deliver with `templates/poetry-report.md`.
38
39
## Rules
40
- Always label syllable counts as estimates.
41
- Do not mock the writer's voice; keep suggestions optional.
42
- For free verse, still report syllables and rhyme if useful, without forcing a form.
43