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
Added on

NPX Install

npx skill4agent add cikichen/skills bazi

SKILL.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

ParameterDescription
Date of BirthFormat: YYYY-MM-DD
Time of BirthFormat: HH:mm (24-hour format)
GenderMale/Female

Output Format

Sample response:
出生:2020-01-01 12:00 男
乾造:庚子 丙戌 壬午 丙午
大运:庚子 辛丑 壬寅 癸卯 甲辰 乙巳 丙午 丁未 戊申 己酉

https://yoebao.com/bazi/detail.html?sex=0&timestamp=1577841600000
Or
出生:1990-06-15 08:30 女
坤造:庚午 壬午 辛亥 癸巳
大运:辛巳 庚辰 己卯 戊寅 丁丑 丙子 乙亥 甲戌 癸酉 壬申

https://yoebao.com/bazi/detail.html?sex=1&timestamp=645409800000

Output Description

LineContent
Line 1Birth information (date, time, gender)
Line 2Four pillars of Bazi (Year Pillar Month Pillar Day Pillar Hour Pillar)
Line 3Great fortune cycles (10 cycles in total)
Line 5Detailed 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:
Compliance note:
  • Current
    yoebao-bazi
    files in this repo are copied from the OpenClaw
    yoebao-bazi
    skill.
  • No direct code/text from
    Wolke/bazi-mingli
    is included in this local copy.
  • If any content from
    Wolke/bazi-mingli
    is merged later, that derived part must comply with CC BY-NC-SA 4.0 (including NonCommercial and ShareAlike terms).