← Back to Skills Marketplace
dglijin-oss

八字排盘技能

by dglijin-oss · GitHub ↗ · v2.0.1 · MIT-0
cross-platform ✓ Security Clean
192
Downloads
1
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install bazi-pan-skill
Description
八字命理排盘技能。支持四柱八字排盘、十神计算、大运排法、五行统计、格局判断、用神选取、流年推算、详细断语。
README (SKILL.md)

八字排盘技能 v2.0.0

"不知命,无以为君子也。" ——《论语》

1. Description

八字命理,又称四柱命理,是以出生年月日时的天干地支推算命运的术数。

核心功能 v2.0.0:

  • ✅ 四柱排盘(年柱/月柱/日柱/时柱)
  • ✅ 十神计算(比肩/劫财/食神/伤官等)
  • ✅ 大运排法(8 步大运)
  • ✅ 五行统计(木火土金水数量)
  • ✅ 格局判断(正官格/七杀格/食神格等 10 种格局)
  • ✅ 用神选取(日主旺衰、喜用神、忌神)
  • ✅ 流年推算(当年运势、冲克分析)
  • ✅ 详细断语(事业/婚姻/财运/健康)
  • ✅ 五行缺失检测

v1.0.0 基础功能:

  • ✅ 四柱排盘、十神、大运、五行统计、基础断语

2. When to use

场景 示例
排八字请求 "帮我排一下八字"
指定时间排盘 "1990 年 5 月 15 日早上 8 点的八字"
问命理 "看看我的命格怎么样"
五行查询 "我五行缺什么"
大运查询 "我的大运怎么样"

3. How to use

调用方式

# 基础排盘
python3 ~/.openclaw/skills/bazi-pan-skill/scripts/bazi_pan.py --date "1990-05-15" --hour 8

# 指定性别(影响大运顺逆)
python3 ~/.openclaw/skills/bazi-pan-skill/scripts/bazi_pan.py --date "1990-05-15" --hour 8 --gender 女

# 输出 JSON 格式
python3 ~/.openclaw/skills/bazi-pan-skill/scripts/bazi_pan.py --date "1990-05-15" --hour 8 --json

命令行参数

参数 简写 说明
--date -d 出生日期 (YYYY-MM-DD)
--hour -H 出生时辰 (0-23)
--gender -g 性别 (男/女,默认男)
--liu-nian -l 流年年份(可选,如 2026)
--json -j 输出 JSON 格式

时辰对照表

时辰 时间 地支
子时 23:00-01:00
丑时 01:00-03:00
寅时 03:00-05:00
卯时 05:00-07:00
辰时 07:00-09:00
巳时 09:00-11:00
午时 11:00-13:00
未时 13:00-15:00
申时 15:00-17:00
酉时 17:00-19:00
戌时 19:00-21:00
亥时 21:00-23:00

4. Output Format

【八字排盘】v1.0.0
• 出生时间:1990-05-15 08:00
• 性别:男

【四柱】
    年柱    月柱    日柱    时柱
    庚午    辛巳    壬辰    甲辰

【十神】
    偏印    正印    日主    食神

【五行统计】
    木:2  火:2  土:2  金:2  水:0
    ⚠️  五行缺:水

【大运】
    13 岁:壬午
    23 岁:癸未
    33 岁:甲申
    43 岁:乙酉
    53 岁:丙戌
    63 岁:丁亥
    73 岁:戊子
    83 岁:己丑

【基础断语】
• 【日主】壬水江河,聪明灵活,适应力强
• 【五行】金最旺(2 个),水最弱(0 个)
• 【注意】五行缺水,需后天补救

5. 八字基础知识

十天干

天干
五行
阴阳

十二地支

地支
生肖
五行

十神关系

十神 关系 含义
比肩 同我者,阴阳同 兄弟、朋友、竞争
劫财 同我者,阴阳异 姐妹、破财、冲动
食神 我生者,阴阳同 子女、才华、享受
伤官 我生者,阴阳异 子女、创意、叛逆
偏财 我克者,阴阳同 父亲、偏财、投机
正财 我克者,阴阳异 妻子、正财、稳定
七杀 克我者,阴阳同 情人、压力、权威
正官 克我者,阴阳异 丈夫、事业、名誉
偏印 生我者,阴阳同 继母、特殊才能
正印 生我者,阴阳异 母亲、学历、贵人

大运排法

规则:

  • 阳男阴女顺排,阴男阳女逆排
  • 每运 10 年
  • 简化:3 岁起运

6. 日主性格断语

日主 断语
甲木 甲木参天,正直仁慈,有上进心
乙木 乙木柔顺,温和善良,适应力强
丙火 丙火太阳,热情开朗,表现欲强
丁火 丁火灯烛,温和内敛,心思细腻
戊土 戊土大地,厚重诚实,包容力强
己土 己土田园,细腻谨慎,善于谋划
庚金 庚金刀剑,刚毅果断,执行力强
辛金 辛金珠玉,温润秀气,重面子
壬水 壬水江河,聪明灵活,适应力强
癸水 癸水雨露,温柔内敛,直觉敏锐

7. 示例

示例 1:基础排盘

用户输入:

"帮我排一下 1990 年 5 月 15 日早上 8 点的八字"

命令:

python3 scripts/bazi_pan.py --date "1990-05-15" --hour 8

输出:

【八字排盘】v2.0.0
• 出生时间:1990-05-15 08:00
• 性别:男

【四柱】
    年柱    月柱    日柱    时柱
    庚午    辛巳    壬辰    甲辰

【十神】
    偏印    正印    日主    食神

【五行统计】
    木:2  火:2  土:2  金:2  水:0
    ⚠️  五行缺:水

【大运】
    13 岁:壬午
    23 岁:癸未
    ...

【格局】
    正印格

【用神】
    日主水弱,喜金,水,忌土,火

【详细断语】
• 【日主】壬水江河,聪明灵活,适应力强
• 【格局】正印格:聪明智慧,利学业文化
• 【五行】五行缺水,需后天补救

示例 2:女性排盘

用户输入:

"1995 年 8 月 20 日下午 3 点,女"

命令:

python3 scripts/bazi_pan.py --date "1995-08-20" --hour 15 --gender 女

示例 3:流年推算

用户输入:

"看看 2026 年的流年运势"

命令:

python3 scripts/bazi_pan.py --date "1990-05-15" --hour 8 --liu-nian 2026

输出新增:

【丙午流年】
    流年十神:七杀
    冲克:无重大冲克
    断语:事业有冲劲,宜创业或开拓性工作

示例 4:JSON 输出

用户输入:

"要 JSON 格式的八字"

命令:

python3 scripts/bazi_pan.py --date "1990-05-15" --hour 8 --json

8. GitHub 仓库

仓库地址: https://github.com/dglijin-oss/bazi-pan-skill

版本历史:

版本 日期 变更内容
v2.0.0 2026-03-24 格局判断、用神选取、流年推算、增强断语库
v1.0.0 2026-03-22 基础四柱排盘、十神、大运、五行统计

安装方式:

git clone https://github.com/dglijin-oss/bazi-pan-skill.git
cd bazi-pan-skill
python3 scripts/bazi_pan.py --help

9. 后续迭代计划

v2.0.0(✅ 已完成 2026-03-24)

  • ✅ 流年推算(当年运势、冲克分析)
  • ✅ 格局判断(正官格/七杀格/食神格等 10 种格局)
  • ✅ 用神选取(日主旺衰、喜用神、忌神)
  • ✅ 详细断语(事业/婚姻/财运/健康)
  • ✅ 增强断语库(分类断语:事业/婚姻/财运/健康)

v3.0.0(预计 2026-06-30)

  • 神煞系统(天乙贵人/文昌/桃花/驿马等)
  • 刑冲合害分析(地支六冲/六合/三合等)
  • 流月推算(每月运势)
  • 综合评分(0-100)
  • 趋吉避凶建议(颜色/方位/行业)

天工长老按: 八字命理,乃人生之地图。知命者不忧,知理者不惑。v1.0 为基础版,后续将逐步完善,终成体系。

🏮 天工长老 敬撰 v1.0.0 2026-03-22

Usage Guidance
This skill appears to do only local Bazi calculations and is coherent with its description. If you plan to install it: (1) review the full scripts/bazi_pan.py source (the provided file was truncated in the manifest) to confirm there are no hidden network calls or unexpected file I/O; (2) prefer running it in a sandbox or inspect the repository at the referenced GitHub URL before granting persistent/autonomous permissions; (3) be alert if future versions start requesting environment variables, network access, or installation steps that download code from arbitrary URLs — those would be red flags.
Capability Analysis
Type: OpenClaw Skill Name: bazi-pan-skill Version: 2.0.1 The skill bundle is a legitimate tool for Bazi (Four Pillars of Destiny) astrological calculations. The core logic in `scripts/bazi_pan.py` uses standard Python libraries to process date and time inputs without any network requests, file system modifications, or sensitive data access. The instructions in `SKILL.md` are purely functional and do not contain any prompt-injection attempts or malicious commands.
Capability Assessment
Purpose & Capability
Name/description, SKILL.md usage examples, and the bundled scripts/bazi_pan.py all align: the package provides four-pillar calculations, ten-god mapping, big luck (大运), five-element statistics, pattern (格局) judgement, 用神 selection, and flow-year (流年) prediction. No unrelated credentials, binaries, or system paths are requested.
Instruction Scope
SKILL.md instructs the agent (or user) to run the included Python script with explicit CLI arguments (--date, --hour, --gender, --liu-nian, --json). The instructions do not ask the agent to read arbitrary files, examine environment variables, or transmit data externally. They are narrowly scoped to running the local script and formatting its output.
Install Mechanism
No install specification is provided (instruction-only install), and a local script file is bundled. This is low-risk: nothing is downloaded or written during install by the skill manifest itself. The SKILL.md shows an optional git clone URL (GitHub) for source reference, which is expected and not used automatically by the skill.
Credentials
The skill declares no required environment variables, no credentials, and no config paths. The bundled Python code (visible portions) only performs date/time and astrological computations and local CLI parsing; there is no justification for extra secrets or system access.
Persistence & Privilege
The skill does not request always:true and is user-invocable. It does not attempt to modify other skills or system-wide settings in the provided materials. Normal autonomous invocation (disable-model-invocation:false) is the platform default and acceptable here.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install bazi-pan-skill
  3. After installation, invoke the skill by name or use /bazi-pan-skill
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v2.0.1
修复 SKILL.md 格式 + 精简文档
v2.0.0
v2.0 - Pattern analysis and yong shen selection
Metadata
Slug bazi-pan-skill
Version 2.0.1
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 2
Frequently Asked Questions

What is 八字排盘技能?

八字命理排盘技能。支持四柱八字排盘、十神计算、大运排法、五行统计、格局判断、用神选取、流年推算、详细断语。 It is an AI Agent Skill for Claude Code / OpenClaw, with 192 downloads so far.

How do I install 八字排盘技能?

Run "/install bazi-pan-skill" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is 八字排盘技能 free?

Yes, 八字排盘技能 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does 八字排盘技能 support?

八字排盘技能 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created 八字排盘技能?

It is built and maintained by dglijin-oss (@dglijin-oss); the current version is v2.0.1.

💬 Comments