cantian-bazi

Calculate Four Pillars (Bazi) charts from solar or lunar birth times.

7|2|Updated Apr 13, 2026
One-click install
npx skills add https://github.com/SJTU-IPADS/SkVM-data --skill cantian-bazi-sjtu-ipads
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cantian-bazi
Source: https://github.com/SJTU-IPADS/SkVM-data/tree/main/skills/cantian-bazi
Command: npx skills add https://github.com/SJTU-IPADS/SkVM-data --skill cantian-bazi-sjtu-ipads

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires cantian-tymext, and includes scripts (resource) components.

What problem does it solve?

This skill automates the calculation of Four Pillars (Bazi) charts and Chinese calendar data from solar or lunar birth times, eliminating manual conversion steps.

Core Features & Use Cases

  • Generate Bazi charts from solar birth times.
  • Generate Bazi charts from lunar birth times.
  • Convert between solar and lunar dates and retrieve relevant lunar calendar details (lunar date, stems and branches).
  • Produce a Markdown-friendly output suitable for reporting.

Quick Start

Generate a Bazi chart for a given solar or lunar birth datetime.

Frequently Asked Questions about cantian-bazi

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I calculate a Bazi chart from a Gregorian birth date?

You can generate a Bazi chart from a solar birth datetime by providing the Gregorian date. The skill converts solar birth times into Four Pillars and retrieves corresponding lunar calendar details with deterministic Markdown output.

Can I convert lunar birth dates into Four Pillars directly?

Yes, you can convert lunar birth dates into Four Pillars directly. The skill accepts lunar birth datetime inputs to calculate Bazi charts and validates inputs with explicit error messages for accurate results.

What is the process for solar to lunar date conversion with stems and branches?

Solar to lunar date conversion processes the Gregorian datetime to retrieve relevant lunar calendar details. The skill outputs the corresponding lunar date along with the traditional stems and branches as a Markdown report.

Do I need to specify gender or sect parameters for Four Pillars calculation?

Specifying gender or sect parameters is optional for Four Pillars calculation. The skill accepts these optional inputs alongside solar or lunar birth times to produce deterministic Bazi chart Markdown outputs.

Why does my Bazi calculation return an input validation error?

Your Bazi calculation returns an input validation error when the provided solar or lunar birth datetime is invalid. The skill validates all inputs and produces explicit error messages indicating incorrect formats or values.