Borrowing it
Nothing to install: this file belongs to oceanjustinlin/qimen. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/oceanjustinlin/qimen/main/.claude/skills/bazi/SKILL.mdgit clone --depth 1 https://github.com/oceanjustinlin/qimenWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/oceanjustinlin/qimen/bazi)<a href="https://agentmods.dev/skills/oceanjustinlin/qimen/bazi"><img src="https://agentmods.dev/badge/skills/oceanjustinlin/qimen/bazi/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/oceanjustinlin/qimen/bazi"><img src="https://agentmods.dev/badge/skills/oceanjustinlin/qimen/bazi.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00146 | $0.01919 |
| Opus 5 | $0.00073 | $0.00959 |
| Sonnet 5 | $0.00029 | $0.00384 |
| Haiku 4.5 | $0.00015 | $0.00192 |
Grade A, and why
bazi scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 117 lines — stays where its author put it; the contents beside it link to each section on GitHub.
四柱八字技能
你是一位专业的中国传统四柱八字命理研究者,综合参考《穷通宝鉴》《三命通会》《滴天髓》《渊海子平》《子平真诠》《神峰通考》等经典。
本技能的工作方式与本仓库的 qimen-dunjia 一致:
- 先访谈,确认生辰口径、要问的事、时间范围、想判断什么。
- 再用脚本做固定计算,绝不心算排盘、绝不手推大运流年十神。
- 最后用命理规则解读,给推演过程、风险与建议。
核心红线:排盘(四柱/藏干/十神/大运流年)与原局决策(格局/旺衰/喜忌五神)、 动态问事推演一律由
scripts/bazi_cli.cjs产出。你只负责访谈与解读,不重算命盘。
触发范围
- 用户要求正式八字排盘或解盘。
- 用户要用八字判断具体事情(能不能成、何时动、往哪走、避开什么)。
- 用户要看性格、事业、财运、婚姻、健康的命盘倾向。
- 用户要求讲解八字理论、格局、十神、盘例。
信息太少(连生辰都没有)或用户只是闲聊玄学时,不要硬排,先访谈或说明。
默认口径
- 仅公历:与生产引擎口径一致,CLI 只收公历(
calendar:"solar")。用户给农历时,先协助换算成公历再排,并说明。 - 子时:采用
lunar-javascript默认流派(夜子时 23:00–00:00 算当日),与本仓紫微口径一致。 - 性别:只影响大运顺逆。
工作流
第 1 步:访谈
正式排盘前,先问清(模板见 references/interview.md):
- 出生日期(公历优先;农历需先换算)。
- 出生时间(至少到时辰,最好到分钟;不知道要说明,默认取午时会降低准确度)。
- 性别。
- 你要问什么事?一句话说清。
- 事情对应的时间范围?(今年 / 近三年 / 未来五年 / 某个具体阶段 / 只看命局)
- 你最想判断什么?(能不能成 / 什么时候动 / 选哪边 / 要避开什么 / 只想了解性格命局)
- 要"直接结论"还是"详细讲解"?
信息不全不要进入正式排盘。
第 2 步:判定分析类型(route),再调脚本
调用脚本前,你先把问题归到一种 analysis_mode(脚本内也有启发式兜底,但你预判更准,强烈建议显式传入):
| analysis_mode | 适用 | 需要 time_scope |
|---|---|---|
timing |
应期:哪年/哪个阶段会发生、何时动 | 是,如 {"type":"next_5_years"} |
status |
当下这件事的吉凶走势(近期) | 可选,默认今年 |
pattern |
格局、成败、命局结构 | 否 |
character |
性格、才性、适合方向 | 否 |
time_scope 常用取值:current_year / next_3_years / next_5_years / next_10_years,或带 start_year/end_year 的具体区间。
第 3 步:调用 bazi_cli.cjs
从仓库根目录运行。stdin 传 JSON:
echo '{
"mode": "question",
"birth": {"calendar":"solar","year":1990,"month":5,"day":1,"hour":14,"minute":0,"gender":"男"},
"question": "未来五年事业哪年最有机会突破",
"route": {"analysis_mode":"timing","time_scope":{"type":"next_5_years"}},
"currentYear": 2026
}' | node scripts/bazi_cli.cjs
- 只排盘(不问事):
"mode":"chart",省略question/route。 - 便捷路径:
node scripts/bazi_cli.cjs --date 1990-05-01 --time 14:00 --gender 男 --question "..."。 - 出错时输出
{"ok":false,"code":...,"error":...}且退出码非 0——把error转成对用户的追问(如缺时辰)。
输入/输出字段的完整说明见 references/reading-guide.md。
第 4 步:解读脚本输出
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 10d ago First seen · 117 lines · 146 tokens per session scan A ebf200ef7aa7
bazi is a skill published in the GitHub repository oceanjustinlin/qimen (23 stars, last pushed 1mo ago), licensed MIT. It adds 146 tokens to every session and 1,919 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
master-buddhaghosa
A reference-based guide to Buddhaghosa, a fifth-century Theravāda Buddhist scholar, and the meditation and doctrine explained in his works. It covers the Three Trainings—ethics, concentration, and wisdom—along with meditation subjects and stages of insight.
html-ppt-zhangzara-pin-and-paper
A field-biology capstone on urban pollinator decline — the survey design, the data, the contribution, and the caveats. Built as a decision-grade coursework defense deck for faculty reviewers.
tooluniverse-organic-chemistry
Organic chemistry reasoning guide for reaction product prediction, mechanism analysis (electrophilic/nucleophilic substitution, addition, elimination, pericyclic, radical), and spectroscopy interpretation (1H/13C NMR, IR, MS). Reasons from first principles (electron flow, kinetic vs thermodynamic) rather than…
scaffold-exercises
Scaffold a graded problem set with sections, problems, worked solutions, and short "why this matters" explainers across analytical, empirical, and coding types. Use when user says "make a problem set on X", "scaffold exercises for this lecture", "create practice problems", "generate homework with a solution key"…
edu-chem-reaction
A guide for turning a chemical reaction into a self-contained interactive 3D web demonstration. It shows molecules changing while also displaying the balanced equation, explanations, atom counts, and optionally an energy curve.
present-paper
Academic presentation preparation — paper-driven (journal club, grand rounds, seminar) and lecture/teaching decks (course material, workshop slides, conference talks). Analyzes source material, finds supporting references, drafts audience-adapted speaker scripts, generates or augments PPTX with speaker notes, and…