Daily Zen Buddhist koan with ink wash art and audio narration
每日禅宗公案配水墨画和语音讲解
Delivers a complete Zen koan experience every day:
每天提供完整的禅宗公案体验:
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:
web_search to find contemporary Zen teachingsStep 2: Format Lecture Text
Step 2: Format Lecture Text
For stored koans (testing):
```bash
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:
```bash
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:
```json
{
"id": 3,
"title_zh": "俱胝竖指",
"visual_elements": ["finger", "mountain", "clouds"],
"mood": "sudden, shocking, direct"
}
```
Step 4: Generate Zen Ink Wash Image
```bash
# 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
```bash
# Save lecture text to temp file
echo "
~/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:
zh-CN-XiaoxiaoNeuralen-US-AriaNeuralAudio 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 | 禅宗古语
共 1 个版本