What does Poetry Resonance · Daily Tang-Song Poetry Card do?
Helps users connect Tang and Song poetry to real life. Perfect for those who've been away from school for a long time and want to reconnect with poetry—all interpretations must speak plainly, no pedantry. Output should show cultural literacy without pretension: restrained, with a personal touch.
Quick Start
Install (choose one):
npx clawhub install poetry-resonance
openclaw skills install @bonniegeng-max/poetry-resonance
After installation, say to the agent:
- Seen something / had an experience → "My project finally went live today, match a poem for me"
- Learn a poem → "Break down 'Water Melody'"
- Want a daily card → "Today's quote"
- Learning weekly report → "Poetry week note"
Example daily card output:
┌─────────────────────┐
│ Limit of Heat · August 23 · Sunday │
│ │
│ A sheet of moonlight in Chang'an │
│ The sound of pounding clothes by a thousand doors │
│ The autumn wind cannot blow it away │
│ It is always the love for Yumen Pass │
│ — Li Bai · Ziye Wu Ge │
│ │
│ Today's motto · Autumn wind cannot blow it away │
└─────────────────────┘
Personalization
If ~/.workbuddy/poetry-resonance/profile.md exists (personal preferences: default writing style, card layout minimums, poets currently studying, etc.), it takes priority; if it doesn't exist, ask user preferences on first interaction and write them to that file (independent of skill directory, so upgrades won't lose it).
Background
This skill stems from a real scenario: while tidying up a bookshelf, a collection of Li Bai's poems was unearthed, and reading began again; beyond daily calligraphy practice, the aim was to bring learned poems back into real life—recalling them when seeing a scene, feeling them during an experience, referencing them in daily life. Design principles follow: speak plainly, no pedantry, every poem must connect to a specific life scenario.
The author wrote an article (in Chinese) detailing the full creation process, including version history and real usage records: ["A Rediscovered Li Bai Became a 9pm Alarm Clock"] (https://mp.weixin.qq.com/s/6cjNWyjWlha-ZuqsNeXY7A).
Poetry Library (Three Layers)
references/poems.md· Intensive Reading Library: Primarily Li Bai, each poem includes: original text / plain-language background / emotional core / life·work resonance scenarios / golden lines / image mood / daily card connection. Fields include 'Dynasty·Author', extendable to Du Fu, Su Shi, etc. (just append directly).references/libai_raw.json· Base Library 1: Complete works of Li Bai, 1149 poems (data from chinese-poetry project's Complete Tang Poems, simplified Chinese, MIT License), used for original text verification and full-text search.references/poets_selected.json· Base Library 2: 70 poems by Du Fu + 44 ci poems by Su Shi (chinese-poetry's Complete Tang Poems/Complete Song Ci, simplified Chinese, selected by representative works list; 2 poems missing from source data were manually supplemented with common editions, marked with_manualfield). Su Shi entries includerhythmictune field, can display tune name on daily cards.references/poets_profile.md· Poet Profiles: Life stages of Li Bai/Du Fu/Su Shi (each stage: time/keywords/representative works/emotional tone + one-sentence main thread). In Mode B breakdown, first locate the poet's stage at the time, background automatically gets a 'life coordinate'; daily card recommendation reasons can use stage references.references/themes.md· Theme Index: 14 themes across poets (solitude/adversity/triumph/time/homesickness/farewell/love/grandeur/leisure/broad-mindedness/nation/wine/autumn/moon), each theme includes scene mnemonics + representative lines, the first entry point for Mode A matching. Maintain incidentally when expanding intensive reading library.references/weather_map.md· Weather Mapping: rain/snow/clear/wind/fog/heat/cold → poem mapping, for Mode C daily card weather correlation layer.references/seal_qr.svg· Seal QR Code: Real QR code pointing to ClawHub page (red background, white modules, center 'Poetry Resonance', H-level error correction), embedded fixed in daily card, reused directly.
Usage Rules:
- Citation Verification: Before quoting any poem in any mode, first check the intensive reading library (authoritative common edition). If not found, check base libraries (poets_selected.json first, then libai_raw.json). Always use the common edition for external citations (publicly known version, e.g., 'Quiet Night Thought' must use 'Moonlight in front of my bed... I raise my head to gaze at the moon'). Base libraries are ancient book editions (Imperially Authorized Complete Tang Poems), some poems have word differences from common editions—strictly forbidden to output ancient edition variants as citations—outputting ancient text variants externally would be mistaken as citation errors by readers. Base libraries are only for full-text search and poem identification; version differences are only explained if the user asks 'what was the original version', and then clarify the difference between 'ancient original' and 'common edition'. If not found in base libraries either, use own knowledge but mark 'needs verification'.
- Library Expansion Process: User says 'Add poem XX to library' → search base libraries by poem name substring for original text → plain-language breakdown + resonance scenario design → append to intensive reading library by structure.
- Matching Priority: Mode A candidate matching prioritizes intensive reading library (has resonance scenarios), base libraries as full-text supplement.
Authoritative Verification & External Services (Optional, When Online)
- Souyun Open API:
https://api.sou-yun.cn/open/poem?key=<poem name or line>&scope=Title|Sentence&jsonType=true(non-commercial, no key required). Returns original text, historical commentaries (from 'Ancient and Modern Poetry Talks', 'Shi Sou', etc. with sources), genre, rhyme group—used for: version variant verification, Mode B deep reading historical commentary material (take 1-2 items, translate into plain language; if can't translate naturally, better omit). - wttr.in Weather:
https://wttr.in/<city pinyin>?format=j1(free, open source). Used for Mode C daily card weather correlation layer.
Hard Constraint (Data Boundary): External queries are only allowed with poem name/author/poem line/city name as keywords. Strictly prohibited from sending any user personal descriptions, experience narratives, learning progress, or writing content to any external API. If API is unavailable or offline, silently skip—doesn't affect any mode (zero-dependency base).
Learning Progress
~/.workbuddy/poetry-resonance/progress.json (used by Mode D, auto-created if not exists), structure:
{
"records": [
{
"poem": "Gazing at the Waterfall of Mount Lu",
"first_learned": "2026-08-23",
"recite_pass": ["2026-08-25"],
"review_stage": 2,
"last_review": "2026-08-30"
}
]
}
Stored independently of the skill directory; skill upgrade/reinstall won't affect learning progress.
Mode A · Inspired by Feelings
Trigger: User describes an experience, scene, or mood and wants to find a poem to express it ("My client made me revise the proposal eight times today", "Standing at the base of Huangguoshu Waterfall", "The project finally launched").
Workflow:
- Theme Location: First scan references/themes.md's 14 themes (can combine, e.g., 'working late at night and missing home' = homesickness + moon). After hitting a theme, pick 1-3 candidates from its poem list, sorted by relevance; if no theme hit, directly scan intensive reading library/base library
- Each candidate gives: golden line + plain-language explanation (check poet profile to locate the poet's life stage at the time, briefly mention that context) + why it fits the user's moment
- After user selects, generate copy according to style template (see style templates below):
- WeChat Moments version: 1-3 lines, restrained
- Xiaohongshu version: title + hook + body + hashtags
- Optional image: A) user's own photo + poem typesetting; B) call ImageGen to generate ink-wash mood image. Choose A requires user to provide photo.
Mode B · Learning Deep Dive (Graded Depth)
Trigger: User gives a poem name or original text. Auto-categorize by tone:
| Level | Trigger Phrase | Depth |
|---|---|---|
| Quick | "Quickly run through this poem" | Minimal: two lines of background + golden line |
| Standard (default) | "Break down 'XX'", "Explain this poem" | Medium: background + emotion + resonance + word refinement |
| Deep (full power) | "Deep dive 'XX'", "Detailed lecture", "Teach this poem well" | Full: word refinement + comparative reading + historical commentaries |
Workflow:
- Locate Life Stage: First check references/poets_profile.md to confirm which stage of the poet's life this poem was written in (e.g., 'Climbing the Height' = Du Fu's late wanderings period), background story attaches to life coordinates
- Plain-language breakdown: creative background (key events of that stage, tell a story not a timeline of dates), line-by-line meaning, emotional core
- Word Refinement (standard level and above by default): Pick 1-2 characters per poem and explain deeply, in one sentence say 'why this character is the soul'. Demo (proven effective): '"Entrust" is to hand over one's heart, turning the moon from messenger to courier'; the 'doubt' in 'I doubt it is frost on the ground'—the moment from illusion to awakening is the most savage moment of homesickness
- Ancient-modern mapping: What life/work scenarios today would recall this poem, give 2-3 concrete examples (must be as specific as 'leaving the office at dawn after working late, looking up to see the moon', not vague like 'when missing home')
- Comparative Reading (deep level only): Check themes.md and progress.json—
- Same poet different stage: If intensive reading library has other poems by the same poet, choose one for comparison (e.g., breaking down 'Spring View' comparing with 'Hearing the Recovery of the Henan and Hebei Lands by Du Fu'—the same Du Fu's cry and laugh)
- Same theme different poet: Cross-poet comparison (e.g., homesickness three masters: Li Bai's 'Lower my head, think of home' hits instantly / Du Fu's 'The moon is brighter in my hometown' knowing it's an illusion but still preferring it / Su Shi's 'Though miles apart, we can share the beauty of the moon'—if we can't meet, share the same moon)
- Learned comparison: If user's progress.json shows recent study of same-themed poems, proactively suggest (see 'Automated Triggers' below)
- Historical Commentaries (deep level only and when online): Call Souyun API, take 1-2 historical critiques translate into plain language and incorporate (e.g., 'Shi Sou' comment on 'Want to see a thousand miles further'—ancient critics also thought this line closed perfectly). Red line: commentaries are condiments, not the main dish; if can't translate naturally into plain language, better omit; strict no pedantry
- Organize into study notes (markdown), ask user whether to save to ima knowledge base / Tencent Docs / local file
- Bonus: Offer a short copy ready to post on WeChat Moments
- Automatic record: Write this poem into progress.json (first_learned=today); if poem not in intensive reading library, add via expansion flow (also tag into themes.md)
Automated Triggers (Data-Driven):
- Comparison Recommendation: When user consecutively studies same-theme poems (recent records in progress.json × theme overlap in themes.md), proactively suggest: 'You've recently studied 'Quiet Night Thought' and 'Remembering My Brother on a Moonlit Night'—both hometown-longing moon poems. Want to compare them in one session?'
- Daily Card (Mode C) hook: After card, include: 'Want to deep-dive this poem? Just say the word'—one-click upgrade to deep reading for the day's poem
Mode C · Today's Daily Card
Trigger: User says 'Daily card', 'Today's quote', 'Recommend a poem for today', or automated scheduled task.
Workflow:
- Identify today's date, find connection points (by priority):
- Solar term (Limit of Heat, Frost's Descent, Winter Solstice, etc.) or seasonal phenology (third month fireworks → late spring outings)
- Weather (check references/weather_map.md): When online, call wttr.in free API (
https://wttr.in/<city pinyin>?format=j1, using user-specified or profile city; send only city name) to get weather category, map to poems; if API fails, silently skip; if user says 'it's raining today', can directly replace. When both solar term and weather are strongly correlated on the same day, solar term takes priority, weather as supporting reason ('Limit of Heat, plus an autumn rain') - Today in history (author birth/death, creation anniversary—if uncertain, mark as speculative)
- Day of week / time-of-day emotion (Monday work start → 'The time will come to ride the wind and cleave the waves'; Friday → 'Laughing loudly and going out the door')
- Poet Rotation: Candidates prioritize intensive reading library (solar term associations first), base library supplements (generate plain-language background on the spot). When multiple poets are available, rotate themes weekly (Li Bai week / Du Fu week / Su Shi week) to avoid single-poemer flood; same poet appears no more than 2 consecutive days
- Recommend one poem, output daily card:
- Golden line motto: 4 characters to one sentence, catchy and memorable
- Today's Dos and Don'ts: Extracted from the poem as actionable suggestions (like academic calendar), 2-4 characters each, e.g., 'Do: gaze afar Don't: stay indoors', 'Do: call someone you miss Don't: pretend nothing's wrong', 'Do: climb high Don't: procrastinate'—content must connect to the day's poem mood; this is the most easily screenshot-memorable part of the card
- Why today: Recommendation reason (solar term/weather/date connection to the poem)
- Plain-language background: One or two sentences: who wrote it, what they were doing at the time
- Wish or hope: One sentence of blessing or reminder landing on today's life
- Seal QR Code: Card fixedly embed content of
references/seal_qr.svg(points to ClawHub install page, scannable real code)—<g transform="translate(x,y) scale(2.33)">inline red background rect+path+center 'Poetry Resonance' characters, place in empty bottom left/right area of card, with small vertical text 'Scan for the same skill'. Code is fixed, reuse file content directly, do not regenerate - Optional image (ink-wash mood), keep card-style short-line layout
- After card, include hook: 'Want to deep-dive this poem? Just say the word' (entry to deep reading upgrade)
Mode D · Review & Test (Ebbinghaus)
Trigger: User says 'Test', 'Recite', 'Review', 'Quiz', or automated nightly reminder task.
Ebbinghaus review intervals: after learning: 1 day, 2 days, 4 days, 7 days, 15 days, 30 days (review_stage 0→6).
Workflow:
- Test: User recites poem learned today (or specified date)—golden line or couplet. Compare with intensive/base library original text; judge: allow punctuation and occasional character minor errors (point out correct character if wrong), if passed, record date into recite_pass, enter review pool; if not passed, gentle encouragement, show correct line
- Review: Read progress.json, calculate due poem list based on intervals (today - last_review ≥ current stage's interval) → one question per poem → judge → pass increments review_stage+1, update last_review; all stages completed marked 'Mastered'
- If due list empty, reply: 'No poems due today' + suggest learning a new one or checking today's daily card
- Learning loop: Mode B breakdown → test same day or next day → auto enter review rotation by interval
Question types (rotate, one type per poem for review):
- Complete the line: Give first half, recite second half ('Flying down three thousand feet from high——?')
- Recite on demand: Say poem name, recite golden line
- Scene association (Poetry Resonance specialty, prioritize rotation): Give a life scenario, answer with matching poem line ('A friend is exiled far away—what line comes to mind?'). Material from intensive reading library 'resonance scenario' field. This trains 'life→poem' associative reflex, the core skill of this skill
Tone: Encouraging, allow minor mistakes, no discouragement.
Mode E · Learning Weekly Report
Trigger: User says 'Weekly report', 'Learning weekly report', 'Poetry weekly note', or weekly Sunday scheduled task.
Workflow:
- Read
~/.workbuddy/poetry-resonance/progress.json, collect statistics for this week (Monday to today):- Newly learned X poems (first_learned this week)
- Tested Y times, review passed Z times
- Consecutive study days (natural day span with records)
- Lines that were mistaken and corrected this week (if any, warm review highlights)
- Poet distribution (Li Bai/Du Fu/Su Shi counts)
- Output two things:
- Weekly report: Data overview + most touching line this week (pick golden line from poems studied this week)
- Poetry weekly note (WeChat Moments ready): A lightweight write-up within 100 characters, e.g., 'Spent the week with Li Bai, Du Fu, and Su Shi. The most frequently mistaken line was 'I wish the wind would carry you all the way to the horizon of Yelang West.' Next week, want to study 'Calming Wind and Waves.''
- Tone: Light, no study anxiety—if user didn't study, say 'Took a break this week, poetry won't run away', no nagging or judgment
Copy Style Templates (Choose one or mix; default ask user preference)
① Cultured Restrained: A faint line, not flashy. ② Narrative Resonant: Explain 'why this poem came to mind', personal story feel (recommended for first-timers, most effective). ③ Classic Atmosphere: Poem line leads, focus on mood, matching ink-wash image. ④ Playful Contrast: Modern spoken language + ancient poem close, light and unstuffy.
Constraints
- All background interpretations in plain language, no pedantry, no piling on allusions
- Poem citations must verify original text against intensive reading library or base library; if uncertain, explicitly mark 'needs verification'; when base library differs from common edition, intensive reading library takes precedence
- WeChat Moments copy restrained; Xiaohongshu copy complies with platform rules (can use multi-wordcheck for prohibited words)
- User learning is not deep; explanations should be plain rather than vague; controversial interpretations note 'one way of reading'
- Daily card layout not fixed, flexible by solar term/theme; two bottom lines: vertical layout mainly, avoid mixed horizontal-vertical; poem lines aligned, no deliberate misalignment
- Base library data source: chinese-poetry project (github.com/chinese-poetry/chinese-poetry), MIT License
- External API (Souyun) limited to poetry keyword queries only, strictly no sending of user's personal content (see 'Authoritative Verification' chapter hard constraints)