qimen: Skill for Claude Code

.claude/skills/bazi/SKILL.md

bazi is a skill for Claude Code from oceanjustinlin/qimen. It costs 146 tokens per session (1,919 once invoked), scanned A, original, MIT.

A traditional Chinese astrology workflow based on a person’s birth date and time, known as Four Pillars or Bazi. It calculates a birth chart and interprets patterns related to personality, relationships, work, money, health, or timing.

In plain words
What is it for?
Use it to create or interpret a Bazi chart, examine the Four Pillars, discuss life themes, or assess the timing and outlook of a specific question over a chosen period.
Why use it?
It provides a structured process for collecting the needed birth details and calculating the chart with a fixed tool instead of doing the calculations by hand. It also makes clear when there is not enough information to produce a chart.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is oceanjustinlin/qimen's own configuration. It tells Claude Code how to work on qimen itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything qimen configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is }' | node scripts/bazi_cli.cjs.

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/oceanjustinlin/qimen/main/.claude/skills/bazi/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/oceanjustinlin/qimen

Made for: Claude Code.

Wrote 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.

agentmods badge for bazi

README.md
[![agentmods](https://agentmods.dev/badge/skills/oceanjustinlin/qimen/bazi/github.svg)](https://agentmods.dev/skills/oceanjustinlin/qimen/bazi)
Your own site
<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.

agentmods 80×15 button for bazi

Your own site · 80×15
<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>
Per session 146 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,919 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 10d ago against content hash ebf200ef7aa7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

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.

.claude/skills/bazi/SKILL.md · 117 lines

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 一致:

  1. 访谈,确认生辰口径、要问的事、时间范围、想判断什么。
  2. 再用脚本做固定计算,绝不心算排盘、绝不手推大运流年十神。
  3. 最后用命理规则解读,给推演过程、风险与建议。

核心红线:排盘(四柱/藏干/十神/大运流年)与原局决策(格局/旺衰/喜忌五神)、 动态问事推演一律由 scripts/bazi_cli.cjs 产出。你只负责访谈与解读,不重算命盘。

触发范围

  • 用户要求正式八字排盘或解盘。
  • 用户要用八字判断具体事情(能不能成、何时动、往哪走、避开什么)。
  • 用户要看性格、事业、财运、婚姻、健康的命盘倾向。
  • 用户要求讲解八字理论、格局、十神、盘例。

信息太少(连生辰都没有)或用户只是闲聊玄学时,不要硬排,先访谈或说明。

默认口径

  • 仅公历:与生产引擎口径一致,CLI 只收公历(calendar:"solar")。用户给农历时,先协助换算成公历再排,并说明。
  • 子时:采用 lunar-javascript 默认流派(夜子时 23:00–00:00 算当日),与本仓紫微口径一致。
  • 性别:只影响大运顺逆。

工作流

第 1 步:访谈

正式排盘前,先问清(模板见 references/interview.md):

  1. 出生日期(公历优先;农历需先换算)。
  2. 出生时间(至少到时辰,最好到分钟;不知道要说明,默认取午时会降低准确度)。
  3. 性别。
  4. 你要问什么事?一句话说清。
  5. 事情对应的时间范围?(今年 / 近三年 / 未来五年 / 某个具体阶段 / 只看命局)
  6. 你最想判断什么?(能不能成 / 什么时候动 / 选哪边 / 要避开什么 / 只想了解性格命局)
  7. 要"直接结论"还是"详细讲解"?

信息不全不要进入正式排盘。

第 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 步:解读脚本输出

Read the full file on GitHub · 117 lines

Files

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.

Changes

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.

  1. 10d ago First seen · 117 lines · 146 tokens per session scan A ebf200ef7aa7

Subscribe to this mod's changes

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.

Related

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.

tradecatlabs/fatecat · 247 tokens

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.

nexu-io/open-design · 51 tokens

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…

mims-harvard/ToolUniverse · 86 tokens

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"…

pedrohcgs/claude-code-my-workflow · 101 tokens

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.

wy51ai/edulab · 495 tokens

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…

Aperivue/medsci-skills · 67 tokens