← 返回 Skills 市场
325
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install bazi-calculator
功能描述
Calculate a person’s Four Pillars (BaZi / Eight Characters) from birth date and time using sexagenary-cycle offsets from one trusted reference datetime that...
使用说明 (SKILL.md)
BaZi Calculator
Calculate Year/Month/Day/Hour pillars with a single reference point.
Quick Start
- Use
references/reference-verified.json(or your own verified reference JSON) with one trusted reference datetime and its four pillars. - Run:
python3 scripts/calc_bazi.py \
--birth "1992-08-14 21:35" \
--tz "Asia/Shanghai" \
--reference references/reference-verified.json \
--gender male
- Return results left-to-right as:
- Hour pillar
- Day pillar
- Month pillar
- Year pillar
- Eight characters (Hour Day Month Year)
Workflow
1) Validate inputs
- Require birth datetime (
YYYY-MM-DD HH:MM). - Require timezone (default
Asia/Shanghaiif omitted). - Require one reference JSON with:
reference_datetimereference_pillars.year/month/day/hour
2) Compute offsets from reference
- Year offset: LiChun-adjusted year difference (approximation: Feb-04 00:00 local).
- Month offset: calendar month difference.
- Day offset: calendar day difference.
- Hour offset: 2-hour bin difference (Zi starts at 23:00).
3) Shift each base pillar in 60-cycle
target_pillar = shift(reference_pillar, offset mod 60)for year/month/day/hour separately.
4) Present output
Birth (local): 1992-08-14 21:35 (Asia/Shanghai)
Hour Pillar: 丙戌
Day Pillar: 癸亥
Month Pillar: 丙申
Year Pillar: 壬申
Eight Characters (L→R Hour/Day/Month/Year): 丙戌 癸亥 丙申 壬申
Notes
- This is a deterministic reference-based method.
- Accuracy depends on correctness of the chosen reference and boundary rules.
- For professional-grade astrology, validate solar-term boundaries and true solar time adjustments.
安全使用建议
This skill appears to do what it says: compute Four Pillars and DaYun from a trusted reference point. Before installing or running it, note two practical concerns: (1) the Python script imports 'lunar_python' but the skill does not declare or install that dependency — you will need to install it yourself (e.g., pip install lunar_python) or ensure your runtime provides it; review the package source (PyPI project) before installing. (2) The accuracy depends entirely on the reference anchor JSON you supply; verify anchors against a trusted almanac for production/professional use. If you will run the code in an environment with restricted network access or strict supply-chain rules, treat the missing dependency as a deployment risk and inspect/approve the dependency before allowing automated install.
功能分析
Type: OpenClaw Skill
Name: bazi-calculator
Version: 1.0.0
The skill bundle is a legitimate implementation of a BaZi (Four Pillars of Destiny) calculator. The Python script `scripts/calc_bazi.py` performs deterministic calculations based on a reference JSON file and standard astrological rules, using the `lunar_python` library for solar-to-lunar conversions. There is no evidence of data exfiltration, malicious execution, or prompt injection; all file operations are restricted to reading the provided reference data.
能力评估
Purpose & Capability
Name, description, SKILL.md, reference JSON files, and the single Python script all align with a BaZi / Four Pillars calculator. The inputs and outputs described in SKILL.md match what scripts/calc_bazi.py implements.
Instruction Scope
Runtime instructions are narrowly scoped to reading a reference JSON and computing pillars and DaYun. The SKILL.md does not instruct reading unrelated files, sending data externally, or accessing secrets beyond the provided reference file.
Install Mechanism
There is no install spec (instruction-only), which is low risk. However, the code imports the third‑party Python package 'lunar_python' but the skill does not declare this dependency or provide an install step. That mismatch means someone (or the runtime) may need to fetch and install 'lunar_python' from PyPI (or elsewhere) to run the tool; pulling that dependency is an external action not documented by the skill.
Credentials
The skill requests no environment variables, no credentials, and no config paths. All file reads are limited to user-supplied reference JSON files included in the skill; there is no sign of access to unrelated secrets.
Persistence & Privilege
Skill flags are default (always:false; agent invocation allowed). The skill does not request persistent or system-wide privileges and does not modify other skills or global agent configuration.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install bazi-calculator - 安装完成后,直接呼叫该 Skill 的名称或使用
/bazi-calculator触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release with Four Pillars, DaYun, and LiuNian support
元数据
常见问题
BaZi Calculator 是什么?
Calculate a person’s Four Pillars (BaZi / Eight Characters) from birth date and time using sexagenary-cycle offsets from one trusted reference datetime that... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 325 次。
如何安装 BaZi Calculator?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install bazi-calculator」即可一键安装,无需额外配置。
BaZi Calculator 是免费的吗?
是的,BaZi Calculator 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
BaZi Calculator 支持哪些平台?
BaZi Calculator 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 BaZi Calculator?
由 wingchiu(@wingchiu)开发并维护,当前版本 v1.0.0。
推荐 Skills