Ziwei Bazi Reading — AI skill for Claude Code
面向 Claude Code 的中国传统命理推演技能:紫微斗数 + 八字双体系独立排盘,算法算盘面、LLM 做解读,产出交互式 HTML 命书.
How to install Ziwei Bazi Reading
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open Johnson-Jia/ziwei-bazi-reading and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Ziwei Bazi Reading does
面向 Claude Code 的中国传统命理推演技能:紫微斗数 + 八字双体系独立排盘,算法算盘面、LLM 做解读,产出交互式 HTML 命书。
Alternatives in AI
- Artifacts Builder — Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web tech 97.5k ★
- Guizang Ppt Skill — AI-agent Skill for generating polished HTML slide decks: editorial magazine and Swiss layouts, image prompts 24.9k ★
- Architecture Diagram Generator — Generate beautiful dark-themed system architecture diagrams as standalone HTML/SVG files 7k ★
README
紫微斗数 × 八字命理 · LLM 推理技能
**ziwei-bazi-reading** — 给 Claude Code 用的中国传统命理推演技能
紫微斗数(iztro)+ 八字命理(tyme4ts)双体系独立推演,算法算盘面、LLM 做解读,产出交互式 HTML 命书。
[](LICENSE)
这是什么
一个 **Claude Code Skill**:你给它生辰,它用**两套独立算法**(紫微斗数 / 八字命理)各自排盘推演,再由 **LLM 做深度解读**,最终产出一份**交互式 HTML 命书**(带命盘、大运流年、折线图、三方四正、宫干飞化)。
核心理念:**算法负责算(排盘/十神/四化/神煞/大运流年),LLM 负责解(应事方向/依据/置信度)**。算法部分可复现、可验证;解读部分标注依据与置信度,不编造。
⚠ 命理属传统文化,**非实证科学**。本项目仅供文化研究、自我觉察与娱乐参考,不替代专业决策。
✨ 特性
- 双体系独立:紫微斗数(iztro v2.5.8)与八字命理(tyme4ts v1.5.2)互不引用术语,各自推演,可交叉印证
- 八字四参合定用:定真用神须「旺衰 + 格局 + 调候 + 流通」四参合(引擎
BAZI_SIHE复核),缺五行不即忌——告别"身弱就忌食伤"的机械旺衰误判 - 十一维度预测:妻·财·子·禄·父·身·友·考·宅·灾·艺(食伤),覆盖大运/大限基调 + 流年逐年
- 正向引导·趋吉避凶:命理给人希望与出路,每个凶配一条转化路径(凶运转蓄力、化忌转课题、煞星转能量),不堆砌凶吓
- 交互式 HTML 命书:
- 八字:行表头命盘(主星/天干/地支/藏干/副星/星运/自坐/空亡/纳音/神煞)+ 五行能量 + 刑冲克害 + 神煞 + LLM解读 + 大运流年 + 折线图
- 紫微:环形十二宫盘面(天干地支/十二长生/将星/小限/流年/身宫·来因)+ 点击宫位看三方四正、宫干飞化、📖宫象解析 + 格局卡(成格/凶格) + 疾厄脏腑 + 折线图
- workspace 集中管理:所有产出(命书 HTML + 解读 JSON)默认入
workspace/,项目级/用户级/env 三级可配,不入 git - LLM 解读注入:算法出盘面+结构化数据+占位,解读文案由 LLM 逐项深读后写成 JSON 注入(骨架可复现,解读独立不丢)
- 严谨性:每条判断附依据 + 置信度(🟢高/🟡中/🔴低),绝不编造命主经历
- 全离线:iztro/tyme4ts 已 vendor 内置,排盘不联网
📸 效果预览
截图放 `docs/images/`(后续补充)
🚀 快速开始
安装
**一键安装(推荐)**:
# 方式一:curl 一键安装(全局,装到 ~/.claude/skills/)
curl -sL https://raw.githubusercontent.com/Johnson-Jia/ziwei-bazi-reading/main/install.sh | bash
# 方式二:clone 后运行安装器
git clone https://github.com/Johnson-Jia/ziwei-bazi-reading.git
cd ziwei-bazi-reading
./install.sh # 全局安装(默认,~/.claude/skills/)
./install.sh --project # 项目级(装到当前项目 .claude/skills/)
./install.sh --copy-only # 仅复制文件,跳过 npm 依赖
安装器自动完成:复制技能文件 → 检测 Node.js → 装 iztro 运行时依赖 → 八字/紫微排盘验证。
Windows 用户请在 **Git Bash** 或 WSL 中运行。
**手动安装**(等价于 install.sh):
git clone https://github.com/Johnson-Jia/ziwei-bazi-reading.git ~/.claude/skills/ziwei-bazi-reading
cd
Related Skills
Fortune Skill
Chinese traditional fortune-telling AI skill (BaZi 八字 + Zi Wei Dou Shu 紫微斗数) for Claude Code, Codex, Cursor, T
Mingli Skills
AI 命理工程化 — 5 大命理体系(紫微斗数/八字/六爻/印占/奇门遁甲)的工程化 Skill 系统,专为 Claude Code / LLM Agent 设计
Crisp Reading
AI reading companion — turn any book into understanding. Fuses 6 reading methodologies into interactive HTML r
Foyer
Companion app for wikis and repos you run through Claude Code and other AI agents. Replaces Obsidian and VS Co
Petrarca
Reading and memory companion for nonfiction books: voice recall, LLM-generated curricula, and FSRS-scheduled t
Research LLM Wiki
Agent skills that turn your scientific reading and research history into persistent LLM-maintained markdown wi
Related Agents
Audit Verifier
Adversarially verifies one candidate finding from /bug-audit — tries to REFUTE it by reading the code and, whe
Session Context
Loads a single FullStory session's event transcript into an isolated context window and answers a specific tas
Machamp
Execute a single pipeline step by reading input and writing output