BaZi Skill — 四柱八字命理分析
Skill by ara.so — Daily 2026 Skills collection.
A Claude Code skill for interactive BaZi (Four Pillars of Destiny) chart calculation and analysis, referencing nine classical Chinese astrology texts. Guides users through birth information collection, produces a complete 四柱 chart, and delivers professional destiny analysis.
What This Skill Does
- Interactive information collection — step-by-step prompts for name, birth date (solar/lunar), birth hour (时辰), gender, and birthplace
- Chart calculation — derives Year/Month/Day/Hour pillars (年柱/月柱/日柱/时柱), calculates 大运 (major cycles) and 流年 (annual cycles)
- Comprehensive analysis — day master strength (日主强弱), ten gods (十神), five elements balance (五行), pattern determination (格局), career, relationships, health guidance
- Classical text references — cross-references nine canonical texts including 《穷通宝典》, 《滴天髓》, 《子平真诠》, and more
Installation
After installation, Claude Code automatically discovers the skill from .claude/skills/bazi/SKILL.md or ~/.claude/skills/bazi/SKILL.md.
Project Structure
Triggering the Skill
Type any of these in Claude Code to activate:
Step-by-Step Workflow
When triggered, follow this exact sequence:
Step 1: Collect Birth Information
Ask the user for these fields one at a time (do not ask all at once):
Step 2: Convert to Four Pillars
Reference references/wuxing-tables.md for all lookup tables.
Year Pillar (年柱):
Month Pillar (月柱):
Day Pillar (日柱):
Hour Pillar (时柱):
Step 3: Identify Day Master (日主)
The Day Pillar's Heavenly Stem is the Day Master — the central reference point for all analysis.
Step 4: Calculate 大运 (Major Cycles)
Reference references/dayun-rules.md:
Step 5: Determine Ten Gods (十神)
Cross-reference Day Master against each pillar stem using the 十神 table in references/wuxing-tables.md:
Step 6: Assess Five Elements Balance (五行平衡)
Step 7: Determine Pattern (格局)
Reference references/classical-texts.md — 《子平真诠》 and 《三命通会》 sections:
Step 8: Full Analysis Output
Structure your analysis report as follows:
Key Reference Tables
天干 Heavenly Stems
地支 Earthly Branches
五虎遁年起月法 (Month Stem from Year Stem)
五鼠遁日起时法 (Hour Stem from Day Stem)
Classical Texts Quick Reference
Full excerpts and rules are in references/classical-texts.md.
Common Patterns & Troubleshooting
Lunar to Solar Date Conversion
- Always confirm whether user provides 阳历 (Gregorian) or 农历 (lunar)
- Use 万年历 lookup for lunar→solar conversion before calculating pillars
- Intercalary months (闰月) require special handling
Solar Term (节气) Boundaries
- Month pillar changes at 节 (first solar term of month), NOT at month start
- Critical for people born near the 1st–8th of a month
- When uncertain, inform user their month pillar may differ by one month
Timezone Adjustment
- Standard Chinese charts use Beijing time (UTC+8)
- Users born outside China: convert local birth time to Beijing time
- Some practitioners use true solar time (真太阳时) — note if applying this
Day Master Strength Assessment Checklist
Missing Information Handling
- If user cannot provide exact birth time: analyze without hour pillar, note limitation
- If only year/month known: provide partial analysis with appropriate caveats
- Never fabricate birth data — always ask for clarification
Example Interaction
Disclaimer
本 Skill 仅供传统文化学习与娱乐参考,分析结果不构成任何医疗、法律、财务或人生重大决策依据。命理学属于传统文化范畴,请理性看待。




