← 返回 Skills 市场
fbbyqsyea

八字命理分析

作者 fbbyqsyea · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
95
总下载
1
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install bazi-analysis-cn
功能描述
八字命理分析技能。当用户想要进行八字排盘、命理分析、五行分析、大运流年推算、 子女运势预测、婚姻分析、事业财运分析等任何与八字/四柱/命理/算命相关的事情时, 使用此技能。触发场景包括:用户提供出生年月日时要求看八字、询问命理运势、 想了解五行喜忌、问姻缘/婚姻/子女/事业/财运等命理问题。支持农历和公历输入,...
使用说明 (SKILL.md)

八字命理分析

基于 lunar_python 库进行八字排盘和命理分析。

前置条件

需要 lunar_python 库。如果未安装,运行:

python3 -m venv /tmp/bazi_venv && source /tmp/bazi_venv/bin/activate && pip install lunar_python

使用流程

1. 收集用户信息

向用户确认以下信息:

  • 出生日期:公历或农历(年/月/日)
  • 出生时辰:如果知道的话(子时23-1点、丑时1-3点...午时11-13点等)
  • 性别:影响大运顺逆排
  • 分析目的:想看哪方面(综合/子女/婚姻/事业/财运等)

2. 运行分析脚本

使用 scripts/bazi_analysis.py 脚本进行分析:

python3 scripts/bazi_analysis.py \x3C年> \x3C月> \x3C日> \x3C性别> [--lunar] [--hour \x3C时>] [--focus \x3C分析重点>]

参数说明:

  • \x3C年> \x3C月> \x3C日>: 出生日期
  • \x3C性别>: 男 或 女
  • --lunar: 如果输入的是农历日期(默认公历)
  • --hour: 出生时辰(0-23),可选
  • --focus: 分析重点(综合/子女/婚姻/事业/财运),默认综合

3. 解读结果

根据脚本输出,结合命理知识进行解读:

八字排盘

  • 四柱(年柱、月柱、日柱、时柱)
  • 日主(日干,代表命主自己)
  • 五行纳音

十神分析

  • 比肩、劫财、食神、伤官、偏财、正财、七杀、正官、偏印、正印
  • 各十神代表的含义和对应关系

大运分析

  • 起运年龄
  • 各步大运的干支和对应年龄段

流年分析

  • 近3-5年的流年干支
  • 流年与命局的关系(合、冲、刑等)
  • 针对用户关注领域的专项分析

4. 给出建议

结合命理分析和现实情况,给出合理建议。始终提醒:

  • 八字属于传统文化,结果仅供参考
  • 科学态度和实际行动才是最重要的
  • 不要过度依赖命理预测

命理知识参考

十神含义

十神 男命代表 女命代表 通用含义
正官 女儿 丈夫 权力、地位、约束
七杀 儿子 情人 压力、竞争、魄力
正印 母亲 母亲 学识、保护、贵人
偏印 继母 继母 偏门学识、灵感
食神 晚辈 女儿 才华、享受、口福
伤官 晚辈 儿子 创意、叛逆、表达
正财 妻子 父亲 稳定收入、务实
偏财 父亲 父亲 意外之财、投机
比肩 兄弟 兄弟 同辈、竞争、合作
劫财 姐妹 姐妹 破耗、争夺、冲动

地支关系

六合:子丑、寅亥、卯戌、辰酉、巳申、午未 三合:申子辰(水)、寅午戌(火)、巳酉丑(金)、亥卯未(木) 六冲:子午、丑未、寅申、卯酉、辰戌、巳亥

五行相生相克

  • 相生:木→火→土→金→水→木
  • 相克:木→土→水→火→金→木

注意事项

  1. 时辰重要性:时柱代表子女宫,没有时辰的分析不够完整
  2. 日主强弱:需要综合判断日主旺衰,才能准确分析喜用神
  3. 多柱配合:不能只看单一柱,要综合四柱和大运流年
  4. 理性态度:命理分析仅供参考,不要迷信
安全使用建议
Before installing/running: 1) Review scripts/bazi_analysis.py yourself (it appears benign but has a few logic/Index bugs unrelated to security). 2) Install lunar_python in an isolated virtualenv (SKILL.md suggests /tmp/bazi_venv) and verify the lunar_python package on PyPI. 3) Be aware you will provide personal data (birth date/time); avoid sharing sensitive exact timestamps in public contexts. 4) Use the script's --help or check the argparse flags (SKILL.md's positional example doesn't match the script's flag-based interface). 5) If you require stronger isolation, run the script inside a disposable container or VM.
功能分析
Type: OpenClaw Skill Name: bazi-analysis-cn Version: 1.0.0 The skill bundle provides a legitimate tool for traditional Chinese Bazi (Four Pillars of Destiny) analysis. The Python script `scripts/bazi_analysis.py` uses the well-known `lunar_python` library to calculate astrological charts, luck cycles, and yearly predictions based on user-provided birth data. No evidence of data exfiltration, malicious code execution, or prompt injection attacks was found; the behavior is entirely consistent with the stated purpose.
能力评估
Purpose & Capability
The name/description (Bazi命理分析) match the included instructions and code: the skill performs 八字排盘、五行/大运/流年等分析 using the lunar_python library. All requested inputs (birth date, hour, gender, analysis focus) are appropriate for this purpose.
Instruction Scope
SKILL.md instructs collecting personal data (birth date/time and gender), which is required for Bazi analysis. It also instructs creating a temporary venv and pip-installing lunar_python — reasonable. Minor inconsistency: SKILL.md shows a positional-argument invocation (python3 scripts/bazi_analysis.py <年> <月> <日> <性别> ...) while the script's docstring and argparse indicate named flags (--year, --month, --day, --gender). This is an implementation/documentation mismatch that may confuse users but is not malicious.
Install Mechanism
No install spec in registry; SKILL.md recommends creating a venv and pip installing the well-known PyPI package lunar_python. That is a standard install path. Note: pip will download from PyPI (network fetch) — normal but you may want to verify the lunar_python package version/source before installing.
Credentials
The skill requests no environment variables, credentials, or config paths. It does ask for sensitive personal inputs (exact birth date/time), which are necessary for the function. There is no evidence the skill exfiltrates these values to external endpoints.
Persistence & Privilege
always is false and the skill does not request persistent system privileges. The only filesystem action suggested is creating a temporary venv under /tmp if the user follows SKILL.md; the code does not modify other skills or system configurations.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install bazi-analysis-cn
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /bazi-analysis-cn 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release - 八字排盘、五行分析、大运流年、财运/婚姻/事业/子女专项分析
元数据
Slug bazi-analysis-cn
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

八字命理分析 是什么?

八字命理分析技能。当用户想要进行八字排盘、命理分析、五行分析、大运流年推算、 子女运势预测、婚姻分析、事业财运分析等任何与八字/四柱/命理/算命相关的事情时, 使用此技能。触发场景包括:用户提供出生年月日时要求看八字、询问命理运势、 想了解五行喜忌、问姻缘/婚姻/子女/事业/财运等命理问题。支持农历和公历输入,... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 95 次。

如何安装 八字命理分析?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install bazi-analysis-cn」即可一键安装,无需额外配置。

八字命理分析 是免费的吗?

是的,八字命理分析 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

八字命理分析 支持哪些平台?

八字命理分析 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 八字命理分析?

由 fbbyqsyea(@fbbyqsyea)开发并维护,当前版本 v1.0.0。

💬 留言讨论