← 返回 Skills 市场
八字排盘技能
作者
dglijin-oss
· GitHub ↗
· v2.0.1
· MIT-0
192
总下载
1
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install bazi-pan-skill
功能描述
八字命理排盘技能。支持四柱八字排盘、十神计算、大运排法、五行统计、格局判断、用神选取、流年推算、详细断语。
使用说明 (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
安全使用建议
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.
功能分析
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.
能力评估
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.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install bazi-pan-skill - 安装完成后,直接呼叫该 Skill 的名称或使用
/bazi-pan-skill触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.0.1
修复 SKILL.md 格式 + 精简文档
v2.0.0
v2.0 - Pattern analysis and yong shen selection
元数据
常见问题
八字排盘技能 是什么?
八字命理排盘技能。支持四柱八字排盘、十神计算、大运排法、五行统计、格局判断、用神选取、流年推算、详细断语。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 192 次。
如何安装 八字排盘技能?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install bazi-pan-skill」即可一键安装,无需额外配置。
八字排盘技能 是免费的吗?
是的,八字排盘技能 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
八字排盘技能 支持哪些平台?
八字排盘技能 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 八字排盘技能?
由 dglijin-oss(@dglijin-oss)开发并维护,当前版本 v2.0.1。
推荐 Skills