chinaz-bazi-paipan
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "chinaz-bazi-paipan" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-64fb9acd4b14c1a02434e32edc6696fdc6000f9a2ece54f361434764bd1c51eb. Verify the upstream source and version against https://skillhub.cn/skills/org-1qazsc77/chinaz-bazi-paipan before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Determine birth BaZi (four pillars) information—including Kuny/Qiany form, NaYin, empty cycles (xunkong), major luck start times, and annual luck—based on birth year, month, day, hour, and minute. Invoke the Chinaz BaZi API from the site-owner toolkit using a local Python script and an exclusive API key stored in environment variables.
Introduction source: third_party · org-1qazsc77 · 1.0.1 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: chinaz-bazi-paipan
description: 根据出生的年月日、时辰、分钟,确定生辰八字、坤/乾造、纳音、旬空、行大运时间、流年等信息。适用于"八字排盘""生辰八字查询""算命排盘""四柱排盘"等请求。通过本地 Python 脚本调用站长工具开放平台的八字排盘接口,并使用环境变量中的专属 API Key。八字排盘
根据出生的年月日、时辰、分钟,确定生辰八字、坤/乾造、纳音、旬空、行大运时间、流年等信息。
沟通原则:与用户交流时,不要提及 API 地址、请求方式、参数名、状态码等技术细节。用户只需知道如何购买接口和获取 Key。
如何购买接口
前往八字排盘接口购买页购买,套餐如下:
| 套餐 | 价格 |
|---|---|
| 免费试用 | 0 元 / 5 次 |
| 入门 | 10 元 / 50 次 |
| 标准 | 120 元 / 800 次 |
| 专业 | 500 元 / 5000 次 |
| 旗舰 | 980 元 / 1 万次 |
使用期限 1 年。购买后在购买页获取专属 API Key。
获取与配置 API Key
- 在购买页购买接口后,获取专属 API Key。
- 将 Key 保存为环境变量,变量名必须是:
CHINAZ_BAZI_API_KEY
- 重新启动你的 AI 客户端或其运行环境,使新环境变量生效。
Windows:搜索并打开"编辑账户的环境变量",在"用户变量"中新增该变量,变量值填入购买后获得的 Key。
macOS/Linux 当前终端会话:
export CHINAZ_BAZI_API_KEY='你的专属APIKey'
不要把真实 Key 写入聊天记录或任何文件。若 AI 客户端提供"Secrets""Environment Variables"或"Credentials"配置页,优先使用其安全存储功能。
运行要求
- Python 3;脚本只使用 Python 标准库,无需安装第三方依赖。
- 运行环境可读取环境变量。
需要收集的信息
从用户请求中收集以下信息:
| 信息 | 说明 | 默认值 |
|---|---|---|
| 姓名 | 出生者姓名 | 无(必填) |
| 城市 | 出生所在城市 | 无(必填) |
| 出生年 | 公历或农历年份 | 无(必填) |
| 出生月 | 月份 | 无(必填) |
| 出生日 | 日期 | 无(必填) |
| 出生时 | 小时(0-23) | 无(必填) |
| 出生分 | 分钟(0-59) | 无(必填) |
| 性别 | 男 或 女 | 无(必填) |
| 是否阴历 | 是 / 否 | 否(阳历) |
| 是否太阳时 | 是 / 否 | 否 |
| 是否闰月 | 是 / 否(仅阴历有效) | 否 |
如果用户未指定历法、太阳时或闰月,使用默认值即可。
查询流程
- 按上表收集用户信息,将性别转换为:男=1,女=0;是否类问题转换为:是=1,否=0(闰月否=2)。
- 在 Skill 根目录执行脚本:
python scripts/query_bazi.py --name "张三" --city "北京" --year 1990 --month 1 --day 15 --hour 10 --minute 30 --sex 1 --islunar 0 --istaiyang 0 --islunarmonth 2
如果系统将 Python 3 命令命名为 python3,使用 python3 代替 python。
- 脚本会自动完成查询并返回 JSON 结果。
- 从脚本输出的 JSON 读取结果;仅依据实际返回回答用户。
结果解读
查询成功时,结果包含:
- 八字:四柱八字
- 乾造/坤造:男命为乾造,女命为坤造
- 生肖:出生年对应生肖
- 年干支:出生年干支
- 农历:对应的农历出生时间
- 节气:出生前后的节气信息
- 胎元、命宫、旬空、纳音:命理参考信息
- 神煞:神煞信息
- 起运时间、交运时间:大运起算时间
- 大运:含每步大运对应的食神、干支、岁数和流年
如果查询失败,按返回的错误信息说明问题,不要编造排盘结果。
推荐答复格式:
八字排盘结果
- 姓名:张三
- 性别:乾造 / 坤造
- 八字:接口返回的八字
- 生肖:接口返回的生肖
- 年干支:接口返回的年干支
- 纳音:接口返回的纳音
- 胎元:接口返回的胎元
- 命宫:接口返回的命宫
- 旬空:接口返回的旬空
- 起运时间:接口返回的起运时间
- 大运:接口返回的大运信息
- 流年:接口返回的流年信息
错误处理
- 如果提示 Key 未设置:引导用户按"获取与配置 API Key"设置环境变量后重启运行环境。
- 如果提示 Key 无效或额度不足:引导用户前往购买页检查账户状态和剩余额度。
- 如果提示网络问题:建议稍后重试。
- 其他失败:按返回的错误信息说明问题,不要编造排盘数据。
使用边界
- 一次只排一个八字;批量任务须逐条执行。
- 不输出、复述或保存 API Key。
- 排盘结果仅供传统文化参考,不构成任何决策建议。
Current listing version
1.0.1
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Areas to improve
-
受众相对小众 Reported severity: Minor
八字排盘属于传统文化查询,受众面较窄,不属于高频刚需场景。
Recommendation: 可考虑增加更多命理相关功能以提升综合价值。
Highlights
- 提供传统文化八字排盘服务,满足特定用户需求
Areas to improve
-
触发词可进一步丰富 Reported severity: Minor
当前触发词覆盖主要场景,但可考虑增加更多变体表达。
Recommendation: 可补充如"命理排盘""四柱八字"等更多触发词变体。
Highlights
- 触发词覆盖合理,边界清晰,用户容易准确触发
Areas to improve
-
文档长度略长 Reported severity: Minor
文档内容详尽但篇幅较长,可能影响用户阅读体验。
Recommendation: 建议适当精简,突出核心使用流程。
Highlights
- 结构清晰完整,包含详细的使用流程、参数说明和错误处理
Areas to improve
-
依赖外部 API 稳定性 Reported severity: Minor
功能完全依赖站长工具开放平台的 API 服务。
Recommendation: 建议增加 API 服务不可用时的备用方案说明。
Highlights
- 工具来源明确,参数说明清晰,异常处理覆盖全面
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Accounts, secrets or authorization
Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.
Mentioned in main document · lines 3, 24, 26, 28, 45
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- www.chinaz.net
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.