Ziwei Doushu

Calculates your Zi Wei Dou Shu birth chart with a script and explains its palaces, stars and ten-year periods in plain words, in Chinese.

Productivity & Lifezi wei dou shuastrologychinese astrologyfortune tellingby FANzR-arch1.6kGitHub

What it is

A Chinese astrology skill for people curious about Zi Wei Dou Shu (紫微斗数, Purple Star Astrology), which maps a person's birth date and hour onto twelve palaces covering the self, career, wealth, marriage and other areas of life. It works in Chinese and acts as a reading companion: it can explain a term, check a chart you got from an app, cast a new one from scratch, focus on one topic, look at a ten-year period or a single year, or compare two people's charts.

The chart comes from a bundled Python script, not from the AI's memory. It places the life and body palaces, the five-element bureau, the fourteen main stars and the minor stars, the four transformations, the ten-year periods and, if you name a year, that year's overlay, then checks itself, for example that all fourteen main stars are present. Before running it, the skill asks a few questions at a time and states the choices that change the result, such as whether a birth after 11pm counts as the next day and how a leap-month birth is handled.

Readings follow a fixed order: overall character, the life palace and its linked palaces, star strength, the transformations, the six core palaces (life, career, wealth, spouse, travel and well-being), and only then any named chart patterns. Difficult signs are framed as challenges rather than fate, health questions come with advice to see a doctor, and it does not predict lifespan. If your birth hour is uncertain, it compares the candidate hours instead of pretending to be exact.

What it can do

  • Casts a full chart with a Python script: palaces, main and minor stars, transformations, bureau and ten-year periods.
  • Adds the ten-year and yearly overlays for any year you ask about, with their own transformations.
  • Asks only the few questions that change the chart and states which conventions it used.
  • Checks a chart from another app or teacher against its own calculation and explains any differences.
  • Interprets the six core palaces first, then other palaces as your question requires.
  • Compares candidate charts when your birth hour is uncertain, and reads two charts for compatibility.

When to use it

  • You want to understand your own Zi Wei chart and what it suggests about your strengths and challenges.
  • You got a chart from an app and want it checked and the stars in your career palace explained.
  • You are wondering what the coming year looks like within your current ten-year period.
  • You only know you were born 'in the early morning' and want to see how the reading changes between two possible hours.

How it works

  1. 1Asks what you want to look at and whether you already have a chart, then your birth date, hour, sex and calendar type.
  2. 2Confirms conventions such as late-night births and leap months, and notes any uncertainty.
  3. 3Writes your details into an input file and runs its Python charting script, taking the chart exactly as calculated.
  4. 4Shows a chart summary, then interprets it in a fixed order using its reference notes on stars, transformations and patterns.
  5. 5Ends with your strengths, the main growth challenge, career and relationship suggestions, and a reminder that the chart is not fate.

Try asking

“Read my Zi Wei Dou Shu chart. I was born on May 15, 1990 at 2:30pm, female.”
“Here is my chart from an app. What do the stars in my career palace mean?”
“What does 2027 look like for me in Zi Wei Dou Shu?”
“What does Tan Lang in the life palace mean?”

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 https://github.com/FANzR-arch/Numerologist_skills/tree/main/ziwei-doushu
pnpm
pnpm dlx skills add https://github.com/FANzR-arch/Numerologist_skills/tree/main/ziwei-doushu

Install manually

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

Terminal
git clone --depth 1 https://github.com/FANzR-arch/Numerologist_skills.git
mkdir -p ~/.claude/skills
cp -r Numerologist_skills/ziwei-doushu ~/.claude/skills/ziwei-doushu

Then just ask in plain language, for example: “Read my Zi Wei Dou Shu chart. I was born on May 15, 1990 at 2:30pm, female.”