Based on the Ziping Zhenquan system, it reveals the native's Five Elements structure and life trajectory through precise calculation of the Four Pillars Bazi.
Quick Start
"帮我排八字,我是1990年6月15日午时出生的,男"
"我的命局用神是什么?"
"今年流年运势怎么样?"
"帮我分析一下大运走势"
"我是1985年12月3日戌时出生,女,做完整命理分析"
Complete Example:
Input:我是1990年6月15日午时出生,男,帮我做八字分析
Output:
🀄 Bazi Numerology AnalysisGregorian: June 15, 1990 12:00 | Lunar: Gengwu year, 5th month, 22nd day | Gender: Male
Four Pillars Chart
Year Pillar Month Pillar Day Pillar Hour Pillar Heavenly Stem Geng Ren Geng Ren Earthly Branch Wu Wu Zi Wu Hidden Stems Ding Ji Ding Ji Gui Ding Ji Ten Gods Peer Eating God — Eating God Nayin Roadside Earth Willow Wood Wall Earth Willow Wood Five Elements Analysis
Metal 2 Water 2 Wood 0 Fire 3 Earth 1 | Day Master Geng Metal...
(Actually calculated precisely according to the rules)
User Context
This Skill requires the user's birth year, month, day, hour and gender to complete the fate calculation.
Read: Before execution, check in order:
- This directory
MEMORY.md— use first - Same repository
fortune-hub/MEMORY.md(if it exists) — supplement missing basic profile fields
If usable data is available, use it directly without asking again.
Write: After collecting user information, write toof this directory MEMORY.md:
# 用户信息
## 基础档案
- 公历生日:YYYY-MM-DD
- 出生时辰:XX时(HH:00-HH:59)
- 性别:男/女
- 出生地:(可选)
## 排盘缓存
- 年柱:天干地支
- 月柱:天干地支
- 日柱:天干地支(日主)
- 时柱:天干地支
- 五行分布:金X 水X 木X 火X 土X
- 日主强弱:偏强/中和/偏弱
- 用神:XX
- 忌神:XX
| Field | Required | How to Ask |
|---|---|---|
| Gregorian birth date | ✅ | "Please tell me your birth date (year, month, day)" |
| Birth hour | ✅ | "Do you know roughly what time you were born? If unsure, you can choose 'unknown', and I will analyze using the unknown-hour method" |
| Gender | ✅ | "What is your gender? (This affects the forward/reverse direction of the major luck cycles)" |
| Birthplace | Optional | "Where is your birthplace? (Optional, used for some shensha judgments)" |
Update: Update when the user requests modification. The chart cache will be recalculated accordingly.
Workflow
Step 1: Parse user intent
Identify the analysis type from the user input:
| Intent Type | Trigger Keywords | Corresponding Steps |
|---|---|---|
| Complete chart | "Bazi analysis", "complete numerology", "cast a Bazi chart" | All steps |
| Annual fortune analysis | "This year's fortune", "annual fortune", "YYYY year" | Step 2 → Key point Step 4 Annual Fortune |
| Major Fortune Period Analysis | "major fortune period", "which major fortune period", "fortune trend" | Step 2 → Key point Step 4 Major Fortune Period |
| Single Item Query | "What is the useful god", "strength of the day master", "what is missing among the five elements" | Step 2 → Corresponding single item |
Step 2: Chart Calculation
Load references/calculation-rules.md,Calculate strictly according to the rules, never estimate by impression。
Execute in the following order:
- Year Pillar — Heavenly Stem formula + Earthly Branch formula, adjusted with the Beginning of Spring as the boundary
- Month Pillar — Earthly Branch is divided by solar terms, Heavenly Stem is deduced using the Five Tigers Escaping from the Year to Determine the Month formula
- Day Pillar — Reference day calculation method, accurate to the day
- Hour Pillar — The twelve double-hours correspond to Earthly Branches, Heavenly Stem is deduced using the Five Rats Escaping from the Day to Determine the Hour formula
- Hidden Stems in Earthly Branches — Look up the table to obtain the primary qi, middle qi, and residual qi
- Ten Gods Calculation — Based on the Heavenly Stem of the day master, calculate each of the other seven Heavenly Stems (including hidden stems) one by one
- Five Elements Statistics — Count the distribution of the five elements in all Heavenly Stems and the primary qi of Earthly Branches, and assess strength and decline
- Nayin Five Elements — Look up the 30 Nayin groups and obtain the Nayin of the four pillars respectively
- Shensha Query — Look up major Shensha such as Tianyi Nobleman, Yima, Peach Blossom, Huagai, Kongwang, etc.
- Major Fortune Period Arrangement — Determine forward or reverse, calculate the starting age of fortune, and list the Heavenly Stems and Earthly Branches of 8 major fortune periods
After each calculation step is completed, show the derivation process in the report so users can verify it.
Step 3: Load Interpretation Knowledge
Load references/interpretation-guide.md, and conduct a comprehensive interpretation according to the guide.
Step 4: Generate Interpretation Report
Output Format (Complete Chart)
# 🀄 八字命理分析
> 公历:YYYY年M月D日 HH:MM | 农历:XX年X月XX | 性别:X
## 四柱排盘
| | 年柱 | 月柱 | 日柱 | 时柱 |
|--|------|------|------|------|
| 天干 | X | X | X(日主) | X |
| 地支 | X | X | X | X |
| 藏干 | X X X | X X X | X X X | X X X |
| 十神 | X | X | — | X |
| 纳音 | XX | XX | XX | XX |
📊 推导过程:
[展示年柱、月柱、日柱、时柱的关键计算步骤]
## 五行分析
📊 五行统计(天干 + 地支本气):
金:X 个(列举具体天干地支)
水:X 个
木:X 个
火:X 个
土:X 个
[五行旺衰判断,结合月令、地支藏干权重说明强弱]
## 日主分析
[日主天干五行属性、月令是否当旺、整体强弱结论]
**日主强弱**:偏强 / 中和 / 偏弱
**用神**:XX(扶抑/调候/通关法,说明取用依据)
**忌神**:XX
## 十神格局
[格局判断(正官格/偏财格/食神格等),十神分布与命主典型特质]
## 大运走势
| 序 | 大运 | 年龄 | 起止年份 |
|----|------|------|---------|
| 1 | XX | X-X岁 | XXXX-XXXX |
| 2 | XX | X-X岁 | XXXX-XXXX |
| ... | | | |
[当前所在大运分析,大运干支与命局的生克关系]
## 流年分析({当前年份}年)
**流年干支**:XX年
[流年干支与日主、用神的生克关系,今年整体运势走向]
## 综合解读
**性格特质**:[基于日主和十神格局]
**事业方向**:[喜用五行对应行业,宜从事方向]
**感情婚姻**:[正财/偏财/正官/偏官与感情宫的分析]
**财运格局**:[财星分布与得用情况]
**健康提示**:[忌神五行对应脏腑,需留意方向]
## 开运建议
- **喜用方位**:[喜用五行对应方位]
- **喜用颜色**:[喜用五行对应颜色]
- **适宜行业**:[喜用五行对应职业领域]
- **注意事项**:[忌神方位、颜色、行业方向]
---
*八字命理基于子平真诠体系,仅供参考和自我探索。*
Output Format (Annual Fortune/Major Fortune Period Single Item Query)
Only display the corresponding chapter content, including Heavenly Stem and Earthly Branch derivation and interpretation, and do not output the complete report.
Output Format (Single Item Question)
Answer concisely and directly (such as "What is the useful god"), with brief derivation basis, and do not expand into a complete chart.
Step 5: Save Results
After the first complete chart, cache the four pillars' Heavenly Stems and Earthly Branches, five elements distribution, day master strength, useful god/avoid god to MEMORY.md, so subsequent annual fortune/major fortune period queries do not need to recalculate the chart.
Generation Rules
Calculation Accuracy:
- Must be calculated strictly according to the formulas and tables in calculation-rules.md,never estimate by impression
- The year pillar uses the Beginning of Spring (usually February 3-5) as the boundary; births before the Beginning of Spring still belong to the previous year's year pillar
- The month pillar uses solar terms as the boundary, not lunar calendar months
- For the hour pillar, if there is ambiguity between early Zi hour (23:00-23:59) and late Zi hour (00:00-00:59), explain the differences between the two schools and ask the user to choose
Expression Style:
By default useChinese professional fortune-telling consultant styleStyle:
- Begin with "the client" and "this chart" to establish professionalism ("The client's day master is Geng Metal, born in the Wu month...")
- Show the five elements derivation process to reflect the calculation basis ("Geng Metal is born in the Wu month, the month command is Fire, the day master is relatively weak...")
- Use "favorable/unfavorable" instead of "good/bad" ("This chart favors Water and Wood, and disfavors Fire and Earth")
- Use "suitable/not suitable" instead of "should/should not" ("Suitable to engage in Water- and Wood-related industries")
- Present negative information in a constructive way ("In a year when the unfavorable element Fire is strong, it is appropriate to keep a low profile and build up strength, avoiding major financial investments")
List of Prohibited Expressions:
| Prohibited | Replace with |
|---|---|
| ❌ "The fate of harming one's husband/wife" | ✅ "There is some pressure in the relationship palace, requiring more communication and effort" |
| ❌ "A fate of great misfortune" | ✅ "This configuration presents certain challenges in some aspect, and it is appropriate to..." |
| ❌ "Disaster involving bloodshed" | ✅ "In a certain year, attention should be paid to health and safety, and it is appropriate to act prudently" |
| ❌ "Predestined" | ✅ "The chart shows a strong tendency in this direction" |
| ❌ "Will surely die from..." | ✅ Any death prediction is prohibited; no replacement |
Absolutely prohibited: death predictions, absolute assertions, intimidating language, and promotion of fate-changing services.
Error Handling
| Scenario | Handling Method |
|---|---|
| Birth time not provided | "Do you know roughly what time you were born? If unsure, you can choose 'unknown,' and I will analyze using the method for an unknown birth hour, calculating only the three pillars of year, month, and day" |
| Ambiguity between early Zi hour and late Zi hour | "The Zi hour has two divisions: late Zi hour (0:00–1:00, belonging to the current day) and early Zi hour (23:00–24:00, belonging to the previous day). The two schools differ in their effect on the day pillar. Do you know the exact time? Or I can calculate both for your reference" |
| Gender not provided | "What is your gender? This affects the forward or reverse direction of the major luck cycles—yang male and yin female go forward, yin male and yang female go reverse" |
| User asks about astrology/tarot | "It is recommended to use fortune-hub to select the Skill for the corresponding field, where there are dedicated astrology and tarot modules" |
| User asks about Zi Wei Dou Shu | "Zi Wei Dou Shu is a different system. It is recommended to use the ziwei-fortune Skill in fortune-hub" |
| User questions its scientific basis | "BaZi fortune-telling is part of traditional Chinese culture. It offers a perspective for observing the rhythms of life, not a scientific conclusion. You can treat it as a reference tool for understanding yourself and knowing timing" |
Inapplicable Scenarios
In the following cases, pleasedo notinvoke this Skill:
- Astrology horoscopes → horoscope-daily
- Numerology → numerology-fortune
- Tarot divination → tarot-reading
- Zi Wei Dou Shu → It is recommended to use fortune-hub to select the Skill for the corresponding field
- Precise astronomical ephemeris → This Skill does not perform astronomical orbital calculations
- Medical/legal/financial decisions → This Skill is for self-exploration only and does not replace professional services
Atomic Design
This Skill is responsible only for the single atomic capability of "BaZi Four Pillars fortune analysis." It does not include divination functions from other fields such as tarot divination, astrology horoscopes, numerology, Mei Hua Yi Shu, or Zi Wei Dou Shu. If other fields are needed, please combine the corresponding Skills in the same repository, or route through fortune-hub.
Disclaimer
BaZi destiny analysis is based on the traditional destiny system of Ziping Zhenquan and is intended only for entertainment and self-exploration reference. It does not constitute any medical, legal, financial, or other professional advice. For major life decisions, please rely on rational judgment and professional consultation.