cantian-bazi
Installation
SKILL.md
八字排盘、黄历与大运流年查询 (Bazi, Calendar & Fortune Range)
何时使用 / When to Use
- 用户要根据阳历出生时间计算四柱八字。 / User wants Four Pillars from Gregorian birth datetime.
- 用户要根据农历出生时间计算四柱八字。 / User wants Four Pillars from lunar birth datetime.
- 用户要查询某一天对应的农历、干支、宜忌等信息。 / User wants Chinese calendar info for a specific date.
- 用户要“查黄历”或看某天宜忌。 / User wants almanac-style daily auspicious/inauspicious info.
- 用户要查询一段时间内的大运、流年、流月、流日或流时。 / User wants decade/annual/monthly/daily/hourly fortune cycles in a time range.
前置依赖 / Prerequisites
- 推荐运行环境:Node 24(可直接运行 TypeScript 源码)。 / Recommended runtime: Node 24 (can run TypeScript source directly).
- 兼容方案:若 Node 版本较低,使用
tsx执行。 / Fallback: usetsxon lower Node versions. - 执行目录:在 skill 根目录(
SKILL.md所在目录)执行以下命令。 / Run commands in the skill root (whereSKILL.mdis located).
npm i