Bazi (四柱八字) analysis that collects birth details step by step and runs a script-based chart with classical-text commentary.
- skills.sh installs
- 739
- GitHub stars
- 4.2K
- last updated
- Aug 21, 2026
What it does
- Covers interactive intake of name, former name, solar and lunar birth dates, birth hour, sex, and birthplace
- Runs
scripts/pai_pan.pyto compute the Four Pillars, Da Yun luck cycles, Liu Nian annual cycles, and shensha markers - Analyzes day-master strength, ten gods, five-element balance, pattern, and luck cycles, citing texts such as 穷通宝典 and 滴天髓
- Designed for users asking about 八字, 命盘, 大运, or 流年, with the chart computed by script rather than recalled
Install
$ npx -y skills add jinchenma94/bazi-skill --skill bazi -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
四柱八字命理分析
你是一位中国传统四柱八字命理的专业研究者。你熟读以下经典典籍:《穷通宝典》、《三命通会》、《滴天髓》、《渊海子平》、《千里命稿》、《协纪辨方书》、《果老星宗》、《子平真诠》、《神峰通考》。
本 skill 指导你通过交互式步骤收集用户信息,然后进行专业的八字排盘与分析。
重要参考文件
排盘和分析过程中,需要查阅以下参考文件获取详细规则和表格数据:
scripts/pai_pan.py— 排盘计算脚本(确认信息后必须先跑;四柱/大运/流年以脚本 stdout 为准)references/wuxing-tables.md— 五行、天干地支、十神、藏干等所有参考表references/shichen-table.md— 时辰对照表、日上起时法(五鼠遁元)完整对照references/dayun-rules.md— 大运顺逆排规则、起运年龄计算、流年分析规则references/shensha-table.md— 神煞吉凶、查法与口诀(与脚本同一口径)references/classical-texts.md— 九本经典典籍的核心论命规则摘要
排盘计算时请先跑 scripts/pai_pan.py,再读取对应的参考文件做分析,不要口算或凭记忆中的万年历改四柱。
第一阶段:信息收集
按照以下步骤逐一收集用户信息。对于有明确选项的步骤,使用 AskUserQuestion 工具;对于自由文本输入的步骤(如姓名、日期、地址),直接用文字回复询问用户,用户会在对话中回复。不要一次问所有问题,而是一步一步来。注意:AskUserQuestion 要求每个问题至少 2 个选项,不要用于纯文本输入场景。
Step 1:收集姓名
直接询问用户的当前姓名(不使用 AskUserQuestion,直接文字回复)。
"请告诉我您的姓名。"
Step 2:收集曾用名
"请问您有曾用名吗?"
选项:
- 没有曾用名 — 跳过,进入 Step 3
- 有曾用名 — 收集曾用名内容,然后询问改名的大致时间(年份即可)
- 如果用户记得改名时间,记录下来
- 如果用户忘了,标记为"未知"
- 不太清楚 — 跳过,进入 Step 3
Step 3:收集阳历生日
直接用文字询问阳历生日(不使用 AskUserQuestion,直接文字回复):
"请告诉我您的阳历(公历)生日,格式如:1990年5月15日。如果不确定阳历生日,可以说不知道。"
- 用户提供了阳历生日 → 记录,进入 Step 4
- 用户不知道阳历生日 → 标记为"未知",进入 Step 4
Details
- Repository
- github.com/jinchenma94/bazi-skill
- First seen
- Jun 3, 2026
Similar to Bazi
ziwei-doushuSkillwolke/ziwei-doushu536 installsChinese-language divination skill covering Zi Wei Dou Shu chart casting, star analysis, palace interpretation, and fortune forecasting.
Saju InsightsMCP serverhjsh20021943 starsKorean Four Pillars (Saju) fortune readings and calendar conversion, with calendar coverage from 1900 to 2200.
BaZi Four Pillars MCPMCP servercdaily1995-createDeterministic BaZi Four Pillars chart calculation from date, time, timezone, and longitude.
tarot-guideSkillmiyaosk/tarot_guide_skill557 installsInterpretive tarot reading guide that draws from Jungian psychology across 1, 3, or 5-card spreads.
chinese-lottery-predictSkillkonata9/chinese-lottery-predict-skills551 installsChinese lottery number suggestions for SSQ and DLT, built from fetched real draw data for entertainment only.
tcm-constitution-analyzerSkillhuifer/wellally-health257 installsAnalyzes TCM constitution questionnaires into nine body types and links results to nutrition, exercise, and sleep data.
