Install
openclaw skills install zen-koan-dailyDaily Zen Buddhist koan (禅宗公案) lecture with Chinese ink wash illustration and TTS audio. Generates detailed lecture (origin, background, interpretation, modern insights), zen ink wash painting, and audio narration. Use when: /koan, /公案, zen/禅宗 content requests, or daily spiritual content.
openclaw skills install zen-koan-dailyDaily Zen Buddhist koan with ink wash art and audio narration
每日禅宗公案配水墨画和语音讲解
Delivers a complete Zen koan experience every day:
每天提供完整的禅宗公案体验:
📜 Koan Lecture | 公案讲解
🎨 Zen Ink Wash Art | 禅宗水墨画
🔊 Audio Narration | 语音讲解
User says any of:
/koan or /公案 → Generate today's koan/koan next → Next koan in sequence/koan random → Random koan/koan 1 → Specific koan by IDzen koan, 禅宗公案, tell me a koan → Conversational triggerDynamic Generation Mode (动态生成模式)
This skill uses LLM-powered dynamic generation instead of a fixed database:
When triggered:
Step 1: Generate Koan Content (LLM生成公案)
The LLM will:
Select an appropriate koan from classical Zen literature
Generate complete content:
Optional: Use stored reference koans (ID 1-2) for testing
Optional: Use web_search to find contemporary Zen teachings
Step 2: Format Lecture Text Step 2: Format Lecture Text
For stored koans (testing):
python3 ~/clawd/skills/zen-koan-daily/scripts/generate_koan.py --id 1 --lang zh
For LLM-generated koans:
Options:
--lang zh → Chinese lecture--lang en → English lecture--personal "..." → Add personalized insight based on recent contextStep 3: Get Koan JSON (for image generation) Step 3: Get Koan JSON (for image generation)
Option A - Use stored koan:
python3 ~/clawd/skills/zen-koan-daily/scripts/generate_koan.py --id 1 --format json
Option B - LLM generates koan metadata: LLM creates JSON with visual elements:
{
"id": 3,
"title_zh": "俱胝竖指",
"visual_elements": ["finger", "mountain", "clouds"],
"mood": "sudden, shocking, direct"
}
Step 4: Generate Zen Ink Wash Image
# Get the prompt command
python3 ~/clawd/skills/zen-koan-daily/scripts/generate_image.py \
--koan-json '{"id": 1, "visual_elements": ["dog", "bamboo"], "mood": "serene"}'
# Then run the displayed uv command via exec tool
Step 5: Generate TTS Audio
# Save lecture text to temp file
echo "<lecture_text>" > /tmp/koan.txt
~/clawd/skills/zen-koan-daily/scripts/generate_tts.sh \
--text-file /tmp/koan.txt \
--lang zh \
--output ~/.openclaw/media/outbound/zen-koan/koan-$(date +%Y%m%d).mp3
Step 6: Send to User
Generation Mode: Dynamic (动态生成)
Stored Reference Koans: 2
Additional Koans: Generated dynamically by LLM from:
Why Dynamic Generation?
Quality Assurance:
Coming Soon:
Location: ~/clawd/skills/zen-koan-daily/references/koans.json
Zen Ink Wash Aesthetic:
Chinese zen ink wash painting (禅宗水墨画),
minimalist composition, vast empty space (留白),
subtle gradations of black ink on rice paper,
sparse brushstrokes, meditative atmosphere,
traditional Chinese calligraphy style,
serene and contemplative mood
Visual Elements by Koan:
Voices:
Chinese (中文): zh-CN-XiaoxiaoNeural
English: en-US-AriaNeural
Audio Format:
~/.openclaw/media/outbound/zen-koan/Text (Chinese):
🎋 每日禅宗公案 | Daily Zen Koan
━━━━━━━━━━━━━━━━━━━━━━━━
**赵州狗子**
*无门关 第1则*
━━━━━━━━━━━━━━━━━━━━━━━━
📜 **原文**
僧问赵州:「狗子还有佛性也无?」州云:「无。」
━━━━━━━━━━━━━━━━━━━━━━━━
📖 **背景**
赵州从谂禅师(778-897)是唐代著名禅师...
━━━━━━━━━━━━━━━━━━━━━━━━
💡 **白话解读**
赵州答「无」,并非否定佛性...
━━━━━━━━━━━━━━━━━━━━━━━━
🌏 **现代启示**
现代人陷入「有用/无用」「成功/失败」的二元思维...
Files Generated:
koan-1-20260405-090000.png (Zen ink wash image)koan-1-20260405-090000.mp3 (TTS audio narration)Automatic tracking:
references/progress.json tracks which koans have been deliveredCheck progress:
cat ~/clawd/skills/zen-koan-daily/references/progress.json
Requirements:
pipx install edge-ttsexport GEMINI_API_KEY="..."Install:
clawhub install zen-koan-daily
Or from GitHub:
git clone https://github.com/yumyumtum/yumskills.git
cd yumskills/zen-koan-daily
Daily delivery at 6:00 AM:
Create OpenClaw cron task:
{
"name": "Daily Zen Koan",
"schedule": {
"kind": "cron",
"expr": "0 6 * * *",
"tz": "America/Los_Angeles"
},
"sessionTarget": "isolated",
"payload": {
"kind": "agentTurn",
"message": "/koan next"
}
}
Difficulty Levels:
beginner - Foundational koans (赵州狗子, 平常心)intermediate - Deeper practice (德山棒, 临济喝)advanced - Subtle realization (庭前柏树子, 青原三境)Schools:
rinzai - Sudden enlightenment traditionsoto - Gradual cultivation traditionboth - Universal teachingsGPL-3.0-or-later
Open source, free to use and modify.
"When you meet a swordsman on the road, draw your sword. Don't recite poetry to one who is not a poet."
"路逢剑客须呈剑,不是诗人莫献诗。"
— Zen saying | 禅宗古语