Bazi Skill

Casts a traditional Chinese Four Pillars (Bazi) birth chart with a calculation script and reads it against classical texts, in Chinese.

Productivity & Lifebazifortune tellingchinese astrologychineseby jinchenma943.8kGitHub

What it is

A Chinese fortune-telling skill for people curious about Bazi, the Four Pillars of Destiny, which describes a person through the year, month, day and hour of birth. It works entirely in Chinese. Through a step-by-step conversation it collects your name and any former name, your solar or lunar birthday, birth hour, sex and birthplace, then produces your chart and a reading on personality, career, wealth, relationships, health and the years ahead. The author presents it as cultural study and entertainment, not prediction.

The difference from asking an AI directly is that the chart is calculated, not guessed. A bundled Python script works out the four pillars, the ten-year luck cycles, the yearly pillars and the auspicious and inauspicious stars from solar-term timing, and the AI is told never to override its output. It warns when a birth falls near a solar-term boundary or the start of spring, where the pillars can change. The reading follows a fixed order: day master strength, ten gods, five-element balance, chart structure, luck cycles and the current year, citing classics such as Qiong Tong Bao Jian and Di Tian Sui.

Before giving advice, it predicts three to five past life events from your chart and asks whether they happened, then adjusts the reading to your answers. It avoids frightening statements, points health and money questions to doctors and careful judgment, and ends with a reminder that the reading is for reference only. The script assumes every birth time is Beijing time (UTC+8) and uses the birthplace only for display and warnings, so births outside China need care.

What it can do

  • Collects birth details one question at a time, accepting either a solar or a lunar birthday, leap months included.
  • Computes the four pillars, luck cycles, yearly pillars and stars with a Python script instead of mental arithmetic.
  • Flags births near solar-term boundaries, the start of spring and the late Zi hour, where pillars can shift.
  • Analyzes day master strength, ten gods, five-element balance, favorable elements and chart structure, citing classical texts.
  • Tests the reading by predicting past events and asking you to confirm them.
  • Gives suggestions on career, wealth, relationships and health, and optionally lucky directions and colors.
  • Handles an unknown birth hour with a six-character reading, and charts deceased relatives up to their year of death.

When to use it

  • You have heard friends talk about their Bazi and want to see your own chart and what it says.
  • Your family only knows your lunar birthday and you want it converted and charted correctly.
  • You are curious how a traditional reader would interpret the next few years of your luck cycle.
  • You are studying Chinese metaphysics and want a correctly calculated chart to check your own reading against.

How it works

  1. 1Asks for your name, former name, solar and lunar birthday, birth hour, sex and birthplace, one at a time, and confirms the summary with you.
  2. 2Runs its Python charting script with those details and takes the pillars, luck cycles and stars exactly as printed.
  3. 3Consults its reference tables on the five elements, hour pillars, luck-cycle rules, stars and classical texts.
  4. 4Writes the analysis in a fixed order, then proposes past events for you to confirm and refines the reading.
  5. 5Closes with practical suggestions and a reminder that the reading is for reference only.

Try asking

“Can you read my Bazi? I was born on May 15, 1990, around noon.”
“Cast my Four Pillars chart. I only know my lunar birthday.”
“What does my birth chart say about my career over the next few years?”
“Do a Bazi reading for my grandfather, who passed away in 2010.”

How to install

Install with the skills CLI (recommended)

Works with Claude Code, Codex, Cursor, OpenCode and other agents, and asks which ones to install to. Needs Node.js 22.20+. Add -g to make it available in every project.

npm
npx skills add jinchenma94/bazi-skill
pnpm
pnpm dlx skills add jinchenma94/bazi-skill

Install manually

Copies the skill folder into Claude Code's personal skills directory. For claude.ai, zip the bazi-skill folder and upload it in the Skills section of Settings.

Terminal
git clone --depth 1 https://github.com/jinchenma94/bazi-skill.git ~/.claude/skills/bazi-skill

Then just ask in plain language, for example: “Can you read my Bazi? I was born on May 15, 1990, around noon.”