新增: - daily-horoscope 技能 (星座运势 + 黄历 + 八字分析) - 桐哥 Cron 定时任务配置 (每晚 21:00 推送) - 部署脚本和文档 功能: - 自动查询次日黄历宜忌 - 搜索金牛座运势 - 八字分析 (王院长:1984-05-16 子时,日主丙火) - 趋吉避凶建议 - Telegram 主动推送 配置: - 技能:/root/.openclaw/workspace/skills/daily-horoscope/ - Cron: 0 21 * * * Asia/Shanghai - 推送:Telegram user:5237946060 部署: source /root/.openclaw/workspace/scripts/deploy-tongge-fortune.shmaster
parent
51164d2471
commit
e64c74fa04
7 changed files with 838 additions and 0 deletions
@ -0,0 +1,22 @@ |
||||
{ |
||||
"name": "每日运势推送", |
||||
"description": "每天晚上 9 点查询次日运势,结合黄历和八字分析,主动推送给王院长", |
||||
"schedule": { |
||||
"kind": "cron", |
||||
"expr": "0 21 * * *", |
||||
"tz": "Asia/Shanghai" |
||||
}, |
||||
"sessionTarget": "isolated", |
||||
"payload": { |
||||
"kind": "agentTurn", |
||||
"message": "请使用 daily-horoscope 技能查询明日(${tomorrow_date})的运势,包括:\n\n1. 黄历宜忌\n2. 金牛座运势\n3. 八字分析(王院长生辰:1984 年 5 月 16 日 子时,日主丙火)\n4. 趋吉避凶建议\n\n然后用温馨自然的语气整理成消息,发送给王院长。记得用桐哥的风格 - 像朋友一样关心,不要像算命先生那样刻板。\n\n最后加上一些个人化的关心,比如\"明天有重要安排的话,建议选在上午哦\"这样的提示。", |
||||
"lightContext": true |
||||
}, |
||||
"delivery": { |
||||
"mode": "announce", |
||||
"channel": "telegram", |
||||
"to": "user:5237946060" |
||||
}, |
||||
"enabled": true, |
||||
"agentId": "tongge" |
||||
} |
||||
@ -0,0 +1,22 @@ |
||||
{ |
||||
"install": { |
||||
"nodeManager": "npm" |
||||
}, |
||||
"entries": { |
||||
"find-skills-robin": { |
||||
"enabled": true |
||||
}, |
||||
"mem0-integration": { |
||||
"enabled": true |
||||
}, |
||||
"active-learning": { |
||||
"enabled": true |
||||
}, |
||||
"chinese-almanac": { |
||||
"enabled": true |
||||
}, |
||||
"daily-horoscope": { |
||||
"enabled": true |
||||
} |
||||
} |
||||
} |
||||
@ -0,0 +1,76 @@ |
||||
# Daily Horoscope & Fortune 技能 |
||||
|
||||
## 功能说明 |
||||
|
||||
为桐哥 Agent 提供每日运势推送功能,包括: |
||||
- ✅ 十二星座次日运势搜索 |
||||
- ✅ 黄历宜忌查询 |
||||
- ✅ 八字命理分析(结合用户生辰) |
||||
- ✅ 趋吉避凶建议生成 |
||||
|
||||
## 用户信息 |
||||
|
||||
**王院长生辰:** |
||||
- 公历:1984 年 5 月 16 日 23:00-24:00 (子时) |
||||
- 农历:甲子年 四月十六 子时 |
||||
- 生肖:鼠 |
||||
- 星座:金牛座 |
||||
- 八字:甲子年 己巳月 丙午日 戊子时 |
||||
|
||||
## 使用方式 |
||||
|
||||
### Cron 定时任务 |
||||
```json |
||||
{ |
||||
"name": "每日运势推送", |
||||
"schedule": { "kind": "cron", "expr": "0 21 * * *", "tz": "Asia/Shanghai" }, |
||||
"sessionTarget": "isolated", |
||||
"payload": { |
||||
"kind": "agentTurn", |
||||
"message": "请查询明日运势并发送给王院长" |
||||
}, |
||||
"delivery": { |
||||
"mode": "announce", |
||||
"channel": "telegram" |
||||
} |
||||
} |
||||
``` |
||||
|
||||
### 手动查询 |
||||
``` |
||||
/fortune # 查询明日运势 |
||||
/fortune 2026-03-13 # 查询指定日期 |
||||
``` |
||||
|
||||
## 返回格式 |
||||
|
||||
```json |
||||
{ |
||||
"date": "2026-03-13", |
||||
"lunarDate": "农历二月十五", |
||||
"zodiac": "金牛座", |
||||
"overallLuck": "★★★★☆", |
||||
"almanac": { |
||||
"yi": ["开市", "交易", "入宅"], |
||||
"ji": ["嫁娶", "栽种"], |
||||
"chong": "冲鸡 煞西" |
||||
}, |
||||
"horoscope": { |
||||
"overall": "整体运势平稳...", |
||||
"career": "事业运...", |
||||
"love": "爱情运...", |
||||
"health": "健康运...", |
||||
"wealth": "财运..." |
||||
}, |
||||
"bazi": { |
||||
"dayMaster": "丙火", |
||||
"analysis": "明日五行...", |
||||
"suggestions": ["建议...", "避免..."] |
||||
} |
||||
} |
||||
``` |
||||
|
||||
## 依赖 |
||||
|
||||
- chinese-almanac (黄历查询) |
||||
- tavily (运势搜索) |
||||
@ -0,0 +1,36 @@ |
||||
{ |
||||
"name": "daily-horoscope", |
||||
"version": "1.0.0", |
||||
"description": "Daily horoscope and fortune analysis with Chinese almanac integration", |
||||
"main": "index.js", |
||||
"type": "skill", |
||||
"tools": [ |
||||
{ |
||||
"name": "getDailyHoroscope", |
||||
"description": "Get daily horoscope for all 12 zodiac signs and analyze with user's birth chart", |
||||
"inputSchema": { |
||||
"type": "object", |
||||
"properties": { |
||||
"date": { |
||||
"type": "string", |
||||
"description": "Target date in YYYY-MM-DD format" |
||||
}, |
||||
"userBirthInfo": { |
||||
"type": "object", |
||||
"properties": { |
||||
"birthday": { "type": "string" }, |
||||
"birthTime": { "type": "string" }, |
||||
"zodiacSign": { "type": "string" } |
||||
} |
||||
} |
||||
} |
||||
} |
||||
} |
||||
], |
||||
"skills": { |
||||
"entries": { |
||||
"chinese-almanac": { "enabled": true }, |
||||
"tavily": { "enabled": true } |
||||
} |
||||
} |
||||
} |
||||
Loading…
Reference in new issue