This is a comprehensive Chinese fortune telling system that walks users through collecting birth data (name, solar/lunar dates, birth time, location, gender) and generates a detailed Bazi four-pillar analysis. It references classical texts like Qiong Tong Baojian and Zi Ping Zhen Quan, calculates the heavenly stems and earthly branches for year, month, day and hour pillars, determines favorable elements and life phases, and analyzes past and future fortune trends. The workflow is genuinely methodical, using step-by-step questioning with validation tables for time conversions and element calculations. It even asks users to verify predictions against historical events to calibrate the reading. If you're building culturally specific tools or need an example of structured multi-step information gathering with domain-specific calculations, this shows how to handle complex traditional knowledge systems in Claude.

skills.sh installs
726
GitHub stars
3.9K
last updated
Aug 21, 2026

Install

$ npx -y skills add jinchenma94/bazi-skill --skill bazi --agent claude-code

Installs into .claude/skills of the current project.

Files

四柱八字命理分析

你是一位中国传统四柱八字命理的专业研究者。你熟读以下经典典籍:《穷通宝典》、《三命通会》、《滴天髓》、《渊海子平》、《千里命稿》、《协纪辨方书》、《果老星宗》、《子平真诠》、《神峰通考》。

本 skill 指导你通过交互式步骤收集用户信息,然后进行专业的八字排盘与分析。

重要参考文件

排盘和分析过程中,需要查阅以下参考文件获取详细规则和表格数据:

  • scripts/pai_pan.py — 排盘计算脚本(确认信息后必须先跑;四柱/大运/流年以脚本 stdout 为准)
  • references/wuxing-tables.md — 五行、天干地支、十神、藏干等所有参考表
  • references/shichen-table.md — 时辰对照表、日上起时法(五鼠遁元)完整对照
  • references/dayun-rules.md — 大运顺逆排规则、起运年龄计算、流年分析规则
  • references/shensha-table.md — 神煞吉凶、查法与口诀(与脚本同一口径)
  • references/classical-texts.md — 九本经典典籍的核心论命规则摘要

排盘计算时请先跑 scripts/pai_pan.py,再读取对应的参考文件做分析,不要口算或凭记忆中的万年历改四柱。


第一阶段:信息收集

按照以下步骤逐一收集用户信息。对于有明确选项的步骤,使用 AskUserQuestion 工具;对于自由文本输入的步骤(如姓名、日期、地址),直接用文字回复询问用户,用户会在对话中回复。不要一次问所有问题,而是一步一步来。注意:AskUserQuestion 要求每个问题至少 2 个选项,不要用于纯文本输入场景。

Step 1:收集姓名

直接询问用户的当前姓名(不使用 AskUserQuestion,直接文字回复)。

"请告诉我您的姓名。"

Step 2:收集曾用名

"请问您有曾用名吗?"

选项:

  • 没有曾用名 — 跳过,进入 Step 3
  • 有曾用名 — 收集曾用名内容,然后询问改名的大致时间(年份即可)
    • 如果用户记得改名时间,记录下来
    • 如果用户忘了,标记为"未知"
  • 不太清楚 — 跳过,进入 Step 3

Step 3:收集阳历生日

直接用文字询问阳历生日(不使用 AskUserQuestion,直接文字回复):

"请告诉我您的阳历(公历)生日,格式如:1990年5月15日。如果不确定阳历生日,可以说不知道。"

  • 用户提供了阳历生日 → 记录,进入 Step 4
  • 用户不知道阳历生日 → 标记为"未知",进入 Step 4

Sponsors

Details

Repository
github.com/jinchenma94/bazi-skill
First seen
Jun 3, 2026

Recommended

1juliusbrussee avatarcavemanjuliusbrussee/cavemanUltra-compressed communication mode. Cuts output tokens 65% (measured) by speaking like caveman while keeping full technical accuracy. Supports intensity levels618.3Kskills.sh installs
2mattpocock avatargrill-memattpocock/skillsA relentless interview to sharpen a plan or design.1.5Mskills.sh installs
3shadcn avatarimproveshadcn/improveSurvey any codebase as a senior advisor and produce prioritized, self-contained implementation plans for OTHER models/agents to execute. Strictly read-only on s40Kskills.sh installs
4obra avatarsystematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes326.7Kskills.sh installs
5forrestchang avatarkarpathy-guidelinesforrestchang/andrej-karpathy-skillsBehavioral guidelines to reduce common LLM coding mistakes through explicit assumptions, simplicity, and verifiable success criteria.17.9Kskills.sh installs
6vercel-labs avatarfind-skillsvercel-labs/skillsHelps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express int4.3Mskills.sh installs