mingli
Mingli (命理) — Multi-system daily horoscope: Western astrology (natal chart + transits), Ba-Zi / Four Pillars (Bát Tự), numerology, I Ching (Kinh Dịch). Kerykeion + astronomyapi.com. Telegram delivery.
- License 许可
- MIT
- 最近更新
- 2026-08-23
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- mingli
- version
- 2.0.0
- description
- Mingli (命理) — Multi-system daily horoscope: Western astrology (natal chart + transits), Ba-Zi / Four Pillars (Bát Tự), numerology, I Ching (Kinh Dịch). Kerykeion + astronomyapi.com. Telegram delivery.
02 资源文件 10
- 参考文档_meta.json294 B
- 参考文档references/astronomyapi-reference.md1.2 KB
- 参考文档references/horoscope-prompt-template.md3.2 KB
- 参考文档references/i-ching-64-hexagrams.json8.9 KB
- 参考文档references/zodiac-reference.md3.0 KB
- 脚本scripts/calculate-bazi.py6.6 KB
- 脚本scripts/calculate-numerology.py4.9 KB
- 脚本scripts/calculate-western-natal-chart-using-kerykeion.py6.0 KB
- 脚本scripts/cast-i-ching-hexagram.py5.4 KB
- 脚本scripts/fetch-planetary-positions.py7.0 KB
03 SKILL.md 正文
Mingli 命理
Multi-system divination skill: Western astrology (Placidus houses, precise aspects), Ba-Zi / Four Pillars (Ngu Hanh), numerology (LifePath + personal cycles), and I Ching (hexagram + SPARK). Delivered daily via Telegram cron or on-demand.
Modes
| Mode | Description | Trigger |
|---|---|---|
| Setup | Register birth data, compute all charts | "set up my horoscope" |
| Daily | Automated 4-system horoscope via cron | Cron schedule |
| On-demand | Instant horoscope | "my horoscope", "horoscope now" |
| I Ching | Hexagram reading (random or manual) | "cast I Ching", "throw hexagram" |
| Manage | Pause/resume/change time | "pause horoscope", "change horoscope time" |
Scripts
# Western natal chart (kerykeion — houses, aspects, nodes)
.claude/skills/.venv/bin/python3 .claude/skills/mingli/scripts/calculate-western-natal-chart-using-kerykeion.py \
--date 2000-03-25 --time 12:00 --tz "Asia/Saigon" --lat 21.0245 --lon 105.84117 --name "User"
# Ba-Zi Four Pillars + Western zodiac
.claude/skills/.venv/bin/python3 .claude/skills/mingli/scripts/calculate-bazi.py \
--date 1990-05-15 --time 14:30 --tz "Asia/Saigon"
# Planetary positions (astronomyapi.com fallback for transit data)
.claude/skills/.venv/bin/python3 .claude/skills/mingli/scripts/fetch-planetary-positions.py \
--lat 10.8231 --lon 106.6297
# Numerology — LifePath, Birthday, Attitude, Challenges, Pinnacles, Personal cycles
.claude/skills/.venv/bin/python3 .claude/skills/mingli/scripts/calculate-numerology.py \
--date 2000-03-25
# I Ching hexagram casting
.claude/skills/.venv/bin/python3 .claude/skills/mingli/scripts/cast-i-ching-hexagram.py --mode random
.claude/skills/.venv/bin/python3 .claude/skills/mingli/scripts/cast-i-ching-hexagram.py \
--mode manual --upper Kan --lower Kun --moving 2,1
Setup Mode
- Ask for: birth date (YYYY-MM-DD), birth time (HH:MM), birth city (lat/lon + timezone)
- Ask for: Telegram chat ID, preferred delivery time + timezone
- Run all calculation scripts: natal chart, Ba-Zi, numerology
- Write results to
~/clawd/memory/horoscope-users.md(include lat/lon, LifePath number) - Create daily cron job
- Confirm: Western sign + ASC + Ba-Zi Day Master + LifePath + delivery schedule
Daily Mode
Cron triggers 4 scripts → all JSON fed to LLM → compose multi-system horoscope → Telegram.
See references/horoscope-prompt-template.md for full agentTurn message.
On-Demand Mode
Trigger: "my horoscope", "horoscope now", "what's my horoscope today"
Same flow, inline (not isolated session). Includes daily I Ching hexagram.
I Ching Mode
Trigger: "cast I Ching", "throw hexagram", "que Kinh Dich"
- Random cast: 3-coin method, cryptographic randomness
- Manual input: User provides upper/lower trigrams + moving lines
- Output: primary hexagram, moving lines, transformed hexagram, SPARK summary
Management Commands
| Command | Action |
|---|---|
| "pause horoscope" | Disable cron job |
| "resume horoscope" | Enable cron job |
| "change horoscope time to 7am" | Update cron schedule |
| "remove horoscope" | Delete cron job + memory entry |
Cron Delivery
One cron job per user: horoscope-daily-{username}
{
"name": "horoscope-daily-{username}",
"enabled": true,
"schedule": { "kind": "cron", "expr": "0 {hour} * * *", "tz": "{timezone}" },
"sessionTarget": "isolated",
"payload": {
"kind": "agentTurn",
"message": "[prompt from references/horoscope-prompt-template.md]",
"model": "claude-sonnet-4-20250514",
"timeoutSeconds": 180,
"deliver": true,
"channel": "telegram",
"to": "{telegram_chat_id}"
},
"isolation": { "postToMainPrefix": "Horoscope delivered", "postToMainMode": "summary" }
}
State Tracking
File: state/users.json — maps usernames to cron job IDs.
Error Handling
- kerykeion fails: Fallback to
fetch-planetary-positions.py(API-based, no houses) - API down: LLM generates horoscope from zodiac knowledge only
- Memory missing: Prompt user to run setup first
- I Ching data missing: Generate hexagram from embedded trigram math only
References
references/astronomyapi-reference.md- API auth + endpointsreferences/zodiac-reference.md- Western + Chinese zodiac tables, stems, branchesreferences/horoscope-prompt-template.md- LLM prompt for daily generationreferences/i-ching-64-hexagrams.json- 64 hexagrams with Chinese/Vietnamese names
Dependencies
- kerykeion (pip) — natal chart, houses, aspects. Install:
pip install kerykeion - astronomyapi.com — env:
ASTRONOMY_APP_ID,ASTRONOMY_APP_SECRET - All other scripts: Python stdlib only
04 同仓库更多 Skills
crowd-prompting
A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.
dilemm-ai
Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.
git-summary
Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.
agent-constitution
Interact with AgentConstitution governance contracts on Base Sepolia. Check compliance, read rules, log actions, query governance state.