bazi
Original:🇨🇳 Chinese
Translated
1 scriptsChecked / no sensitive code detected
Bazi (Four Pillars of Destiny) chart generation tool that generates Bazi, great fortune cycles and detailed information based on the date and time of birth.
6installs
Sourcecikichen/skills
Added on
NPX Install
npx skill4agent add cikichen/skills baziTags
Translated version includes tags in frontmatterSKILL.md Content (Chinese)
View Translation Comparison →Bazi (Four Pillars of Destiny) Chart Generation 🔮
Generate Bazi (Year Pillar, Month Pillar, Day Pillar, Hour Pillar) and great fortune cycle information based on birth time.
Usage
Basic Commands
排出八字 2020-01-01 12:00 男
排出八字 1990-06-15 08:30 女Parameter Description
| Parameter | Description |
|---|---|
| Date of Birth | Format: YYYY-MM-DD |
| Time of Birth | Format: HH:mm (24-hour format) |
| Gender | Male/Female |
Output Format
Sample response:
出生:2020-01-01 12:00 男
乾造:庚子 丙戌 壬午 丙午
大运:庚子 辛丑 壬寅 癸卯 甲辰 乙巳 丙午 丁未 戊申 己酉
https://yoebao.com/bazi/detail.html?sex=0×tamp=1577841600000Or
出生:1990-06-15 08:30 女
坤造:庚午 壬午 辛亥 癸巳
大运:辛巳 庚辰 己卯 戊寅 丁丑 丙子 乙亥 甲戌 癸酉 壬申
https://yoebao.com/bazi/detail.html?sex=1×tamp=645409800000Output Description
| Line | Content |
|---|---|
| Line 1 | Birth information (date, time, gender) |
| Line 2 | Four pillars of Bazi (Year Pillar Month Pillar Day Pillar Hour Pillar) |
| Line 3 | Great fortune cycles (10 cycles in total) |
| Line 5 | Detailed Bazi chart link |
Term Explanation
- Qian Zao: Male Bazi
- Kun Zao: Female Bazi
- Da Yun (Great Fortune): Each great fortune cycle lasts around 10 years, 10 cycles in total
Notes
- Complete year, month, day, hour and minute are required
- Gender affects the output (Qian Zao = Male, Kun Zao = Female)
- Bazi is arranged by four pillars: year, month, day, hour
- Great fortune cycles are calculated from the ordinal numbers of Heavenly Stems and Earthly Branches
- The returned link can be used to view the detailed Bazi chart directly
- The timestamp is in JavaScript millisecond format
FAQ
Q: How is Bazi calculated?
A: Bazi is based on traditional Chinese sexagenary cycle calendar. The year, month, day and hour pillars each take two characters, totaling eight characters.
Q: How are Zi Shi, Chou Shi and other traditional Chinese hours handled?
A: The API will automatically calculate the corresponding traditional Chinese hour based on the actual time.
Q: How are great fortune cycles calculated?
A: Great fortune cycles are calculated from the ordinal numbers of Heavenly Stems and Earthly Branches: Heavenly Stem = sn%10, Earthly Branch = sn%12.
License & Attribution
This local copy is sourced from:
Additional upstream noted by user:
- https://github.com/Wolke/bazi-mingli (CC BY-NC-SA 4.0)
Compliance note:
- Current files in this repo are copied from the OpenClaw
yoebao-baziskill.yoebao-bazi - No direct code/text from is included in this local copy.
Wolke/bazi-mingli - If any content from is merged later, that derived part must comply with CC BY-NC-SA 4.0 (including NonCommercial and ShareAlike terms).
Wolke/bazi-mingli