Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

bazi-skill-chinese-astrology八字技巧中国占星术

Agent Skill

bazi-skill-chinese-astrology 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

8,299

周安装

339

GitHub Stars

39

下载量

2,685
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:bazi-skill-chinese-astrology(八字技巧中国占星术)
来源仓库:https://github.com/aradotso/trending-skills
仓库路径:skills/bazi-skill-chinese-astrology
安装命令:
npx skills add https://github.com/aradotso/trending-skills --skill bazi-skill-chinese-astrology
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/aradotso/trending-skills --skill bazi-skill-chinese-astrology

简介

该技能用于四柱八字命理分析与交互式计算,结合经典中文占星文本提供命运解读。

  • 适合需要根据出生信息生成完整四柱图表并进行专业命理分析的场景。
  • 通过引导用户输入姓名、出生日期、时辰、性别和出生地等关键信息完成分析流程。
  • 安装前需确认权限范围及是否涉及敏感个人信息处理,建议核查仓库维护状态。
  • 可能触发文件读写操作,使用时注意数据隐私与本地存储安全。

SKILL.md

BaZi Skill — 四柱八字命理分析

Skill by ara.so — Daily 2026 Skills collection.

A Claude Code skill for interactive BaZi (Four Pillars of Destiny) chart calculation and analysis, referencing nine classical Chinese astrology texts. Guides users through birth information collection, produces a complete 四柱 chart, and delivers professional destiny analysis.

What This Skill Does

  • Interactive information collection — step-by-step prompts for name, birth date (solar/lunar), birth hour (时辰), gender, and birthplace
  • Chart calculation — derives Year/Month/Day/Hour pillars (年柱/月柱/日柱/时柱), calculates 大运 (major cycles) and 流年 (annual cycles)
  • Comprehensive analysis — day master strength (日主强弱), ten gods (十神), five elements balance (五行), pattern determination (格局), career, relationships, health guidance
  • Classical text references — cross-references nine canonical texts including 《穷通宝典》, 《滴天髓》, 《子平真诠》, and more

Installation

# Install to current git project (run from repo root)
mkdir -p .claude/skills
git clone https://github.com/jinchenma94/bazi-skill .claude/skills/bazi

# Install globally (available in all projects)
git clone https://github.com/jinchenma94/bazi-skill ~/.claude/skills/bazi

After installation, Claude Code automatically discovers the skill from .claude/skills/bazi/SKILL.md or ~/.claude/skills/bazi/SKILL.md.

Project Structure

bazi-skill/
├── SKILL.md                  # Skill entry point (this file)
├── references/
│   ├── wuxing-tables.md      # Five elements, heavenly stems, earthly branches, ten gods
│   ├── shichen-table.md      # Time period conversion table, daily time calculation
│   ├── dayun-rules.md        # Major cycle forward/reverse rules, starting age calculation
│   └── classical-texts.md    # Core rules from nine classical texts
├── LICENSE
└── README.md

Triggering the Skill

Type any of these in Claude Code to activate:

算八字    看八字    批八字    排八字
四柱      命盘      算命      排盘      bazi

Step-by-Step Workflow

When triggered, follow this exact sequence:

Step 1: Collect Birth Information

Ask the user for these fields one at a time (do not ask all at once):

1. 姓名 (Name) — optional, for personalization
2. 性别 (Gender) — 男/女, affects 大运 direction
3. 出生日期 (Birth date) — ask whether 阳历 (solar) or 农历 (lunar)
4. 出生时辰 (Birth hour) — see shichen-table.md for conversion
5. 出生地点 (Birthplace) — province/city for timezone adjustment

Step 2: Convert to Four Pillars

Reference references/wuxing-tables.md for all lookup tables.

Year Pillar (年柱):

Year stem index  = (year - 4) mod 10  → maps to 天干
Year branch index = (year - 4) mod 12  → maps to 地支

Month Pillar (月柱):

Month branch is fixed by solar term (节气), not calendar month.
Month stem is derived from year stem using the 五虎遁年起月法 table.

Day Pillar (日柱):

Use pre-calculated 万年历 (perpetual calendar) lookup.
Day stem/branch cycle repeats every 60 days (六十甲子).

Hour Pillar (时柱):

Convert clock time → 时辰 (see shichen-table.md)
Hour stem derived from day stem using 五鼠遁日起时法 table.

Step 3: Identify Day Master (日主)

The Day Pillar's Heavenly Stem is the Day Master — the central reference point for all analysis.

Example: 日柱 = 甲子
Day Master = 甲 (Wood, Yang)

Step 4: Calculate 大运 (Major Cycles)

Reference references/dayun-rules.md:

Male + Yang year stem  → Forward (顺排)
Male + Yin year stem   → Reverse (逆排)
Female + Yang year stem → Reverse (逆排)
Female + Yin year stem  → Forward (顺排)

Starting age = days to next/previous 节气 ÷ 3 (round to nearest integer)
Each 大运 lasts 10 years.

Step 5: Determine Ten Gods (十神)

Cross-reference Day Master against each pillar stem using the 十神 table in references/wuxing-tables.md:

RelationshipSame element, same polaritySame element, opposite polarity
Self比肩劫财
Element I produce食神伤官
Element that produces me正印偏印
Element I control正财偏财
Element that controls me正官七杀

Step 6: Assess Five Elements Balance (五行平衡)

Count Wood/Fire/Earth/Metal/Water across all 8 characters (stems + branches).
Note hidden stems (藏干) in branches — include these in element count.
Identify excess and deficiency.

Step 7: Determine Pattern (格局)

Reference references/classical-texts.md — 《子平真诠》 and 《三命通会》 sections:

普通格局 (Common patterns): 正官格, 七杀格, 正印格, 偏印格,
                            食神格, 伤官格, 正财格, 偏财格
特殊格局 (Special patterns): 从格, 化格, 专旺格, etc.

Month branch hidden stem often determines the primary pattern.

Step 8: Full Analysis Output

Structure your analysis report as follows:

## 八字命盘 | BaZi Chart

**姓名**: [Name]  **性别**: [Gender]  **出生**: [Date Time]

| 柱  | 天干 | 地支 |
|-----|------|------|
| 年柱 | X   | X   |
| 月柱 | X   | X   |
| 日柱 | X   | X   |
| 时柱 | X   | X   |

**日主**: X(X行,X)

---

## 大运排列

起运年龄: X岁(约 XXXX 年起)

| 序 | 大运 | 年份 | 十神 |
|----|------|------|------|
| 1  | XX  | XXXX–XXXX | XX |
...

---

## 命理分析

### 日主强弱
[Assessment of day master strength based on seasonal support, roots, and helpers]

### 五行分析
[Element count and balance assessment]

### 格局判定
[Pattern name and explanation, citing classical text]

### 十神解读
[Key ten god relationships and their implications]

### 大运流年
[Current and upcoming major/annual cycle analysis]

### 综合建议
**事业**: [Career guidance]
**感情**: [Relationship guidance]
**健康**: [Health guidance]
**择吉**: [Auspicious timing suggestions]

---
*参考典籍: 《穷通宝典》《三命通会》《滴天髓》《渊海子平》《千里命稿》*
*免责声明: 仅供传统文化学习与娱乐参考,不构成任何决策依据。*

Key Reference Tables

天干 Heavenly Stems

甲(Wood+) 乙(Wood-) 丙(Fire+) 丁(Fire-) 戊(Earth+)
己(Earth-) 庚(Metal+) 辛(Metal-) 壬(Water+) 癸(Water-)

地支 Earthly Branches

子(Water+/Rat)  丑(Earth-/Ox)   寅(Wood+/Tiger) 卯(Wood-/Rabbit)
辰(Earth+/Dragon) 巳(Fire-/Snake) 午(Fire+/Horse) 未(Earth-/Goat)
申(Metal+/Monkey) 酉(Metal-/Rooster) 戌(Earth+/Dog) 亥(Water-/Pig)

五虎遁年起月法 (Month Stem from Year Stem)

Year stem 甲/己 → January stem starts at 丙
Year stem 乙/庚 → January stem starts at 戊
Year stem 丙/辛 → January stem starts at 庚
Year stem 丁/壬 → January stem starts at 壬
Year stem 戊/癸 → January stem starts at 甲

五鼠遁日起时法 (Hour Stem from Day Stem)

Day stem 甲/己 → 子时 stem = 甲
Day stem 乙/庚 → 子时 stem = 丙
Day stem 丙/辛 → 子时 stem = 戊
Day stem 丁/壬 → 子时 stem = 庚
Day stem 戊/癸 → 子时 stem = 壬

Classical Texts Quick Reference

典籍Primary Use
《穷通宝典》Day master seasonal adjustment (调候)
《三命通会》Pattern and spirit star (格局神煞) analysis
《滴天髓》Five element strength and flow (五行旺衰)
《渊海子平》Ten gods and six relations (十神六亲)
《千里命稿》Case study verification (命例实证)
《协纪辨方书》Auspicious date selection (择日神煞)
《果老星宗》Star and fate combined reading (星命合参)
《子平真诠》Use god and pattern (用神格局)
《神峰通考》Correcting common errors (命理辨误)

Full excerpts and rules are in references/classical-texts.md.

Common Patterns & Troubleshooting

Lunar to Solar Date Conversion

  • Always confirm whether user provides 阳历 (Gregorian) or 农历 (lunar)
  • Use 万年历 lookup for lunar→solar conversion before calculating pillars
  • Intercalary months (闰月) require special handling

Solar Term (节气) Boundaries

  • Month pillar changes at 节 (first solar term of month), NOT at month start
  • Critical for people born near the 1st–8th of a month
  • When uncertain, inform user their month pillar may differ by one month

Timezone Adjustment

  • Standard Chinese charts use Beijing time (UTC+8)
  • Users born outside China: convert local birth time to Beijing time
  • Some practitioners use true solar time (真太阳时) — note if applying this

Day Master Strength Assessment Checklist

✓ Is the birth season supportive? (得令)
✓ Does the day branch support the day master? (得地)
✓ Do other stems help the day master? (得助)
Strong (身强) if 2+ conditions met; Weak (身弱) if 0–1 conditions met.

Missing Information Handling

  • If user cannot provide exact birth time: analyze without hour pillar, note limitation
  • If only year/month known: provide partial analysis with appropriate caveats
  • Never fabricate birth data — always ask for clarification

Example Interaction

User: 帮我算八字

Claude: 好的,我来为您排八字!请问您的性别是?

User: 女

Claude: 好的。请问您的出生日期是阳历还是农历?

User: 阳历,1990年3月15日

Claude: 明白了。请问您出生的时辰或具体时间?

User: 早上8点半

Claude: 早上8点半是辰时(07:00–09:00)。请问出生地点?

User: 上海

Claude: [Proceeds to calculate pillars, 大运, and full analysis]

Disclaimer

本 Skill 仅供传统文化学习与娱乐参考,分析结果不构成任何医疗、法律、财务或人生重大决策依据。命理学属于传统文化范畴,请理性看待。

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.53%
按下载量换算927

Claude

30.83%
按下载量换算828

Cursor

20.49%
按下载量换算550

Gemini CLI

9.22%
按下载量换算248

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills