← Back to Skills Marketplace
fbbyqsyea

八字命理分析

by fbbyqsyea · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
95
Downloads
1
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install bazi-analysis-cn
Description
八字命理分析技能。当用户想要进行八字排盘、命理分析、五行分析、大运流年推算、 子女运势预测、婚姻分析、事业财运分析等任何与八字/四柱/命理/算命相关的事情时, 使用此技能。触发场景包括:用户提供出生年月日时要求看八字、询问命理运势、 想了解五行喜忌、问姻缘/婚姻/子女/事业/财运等命理问题。支持农历和公历输入,...
README (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. 理性态度:命理分析仅供参考,不要迷信
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install bazi-analysis-cn
  3. After installation, invoke the skill by name or use /bazi-analysis-cn
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release - 八字排盘、五行分析、大运流年、财运/婚姻/事业/子女专项分析
Metadata
Slug bazi-analysis-cn
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is 八字命理分析?

八字命理分析技能。当用户想要进行八字排盘、命理分析、五行分析、大运流年推算、 子女运势预测、婚姻分析、事业财运分析等任何与八字/四柱/命理/算命相关的事情时, 使用此技能。触发场景包括:用户提供出生年月日时要求看八字、询问命理运势、 想了解五行喜忌、问姻缘/婚姻/子女/事业/财运等命理问题。支持农历和公历输入,... It is an AI Agent Skill for Claude Code / OpenClaw, with 95 downloads so far.

How do I install 八字命理分析?

Run "/install bazi-analysis-cn" 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 fbbyqsyea (@fbbyqsyea); the current version is v1.0.0.

💬 Comments