八字排盘技能

v2.0.1

八字命理排盘技能。支持四柱八字排盘、十神计算、大运排法、五行统计、格局判断、用神选取、流年推算、详细断语。

1· 185·0 current·0 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for dglijin-oss/bazi-pan-skill.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "八字排盘技能" (dglijin-oss/bazi-pan-skill) from ClawHub.
Skill page: https://clawhub.ai/dglijin-oss/bazi-pan-skill
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install bazi-pan-skill

ClawHub CLI

Package manager switcher

npx clawhub@latest install bazi-pan-skill
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
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.
Assessment
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.

Like a lobster shell, security has layers — review code before you run it.

latestvk9709ffk2byv9bhyz7v1f13e7n8444gc
185downloads
1stars
2versions
Updated 3w ago
v2.0.1
MIT-0

八字排盘技能 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.02026-03-24格局判断、用神选取、流年推算、增强断语库
v1.0.02026-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

Comments

Loading comments...