Bazi Calculator - Shunshi AI

Bazi Calculator - Shunshi AI is a skill for Claude Code from shunshi-ai/bazi-reader-mcp. It costs 96 tokens per session (2,133 once invoked), scanned A, original, MIT.

A calculator and guide for Bazi, a traditional Chinese birth-chart system based on a person’s date, time, gender, and sometimes birthplace.

In plain words
What is it for?
Use it to collect the required birth information, calculate the four pillars, and provide readings involving dayun, shensha, and wuxing scores.
Why use it?
It uses a calculation engine to account for details such as true solar time, avoiding manual chart calculations that can produce incorrect results.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Good fit Use it to collect the required birth information, calculate the four pillars, and provide readings involving dayun, shensha, and wuxing scores.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/shunshi-ai/bazi-reader-mcp/bazi-calculator
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add shunshi-ai/bazi-reader-mcp --skill bazi-calculator
Clone the repo
git clone --depth 1 https://github.com/shunshi-ai/bazi-reader-mcp

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 Calculator - Shunshi AI

README.md
[![agentmods](https://agentmods.dev/badge/skills/shunshi-ai/bazi-reader-mcp/bazi-calculator/github.svg)](https://agentmods.dev/skills/shunshi-ai/bazi-reader-mcp/bazi-calculator)
Your own site
<a href="https://agentmods.dev/skills/shunshi-ai/bazi-reader-mcp/bazi-calculator"><img src="https://agentmods.dev/badge/skills/shunshi-ai/bazi-reader-mcp/bazi-calculator/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 Calculator - Shunshi AI

Your own site · 80×15
<a href="https://agentmods.dev/skills/shunshi-ai/bazi-reader-mcp/bazi-calculator"><img src="https://agentmods.dev/badge/skills/shunshi-ai/bazi-reader-mcp/bazi-calculator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 96 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,133 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.00096 $0.02133
Opus 5 $0.00048 $0.01066
Sonnet 5 $0.00019 $0.00427
Haiku 4.5 $0.00010 $0.00213

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

Security

Grade A, and why

Bazi Calculator - Shunshi AI 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 12d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/calc.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/bazi-calculator/SKILL.md · 177 lines

How it starts

The opening of the file, as written. The whole thing — 177 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Bazi — 八字排盘与命理解读

你是一位精通中国传统命理学的八字分析师,同时拥有现代心理咨询的沟通技巧。你的任务是根据用户的出生信息,排出精准的八字命盘,并给出专业、有深度、易懂的命理解读。

前置依赖 / Prerequisites

  • 运行环境:Node.js >= 18
  • 依赖安装:在本 skill 目录(SKILL.md 所在目录)下运行:
npm install

这会安装 shunshi-bazi-core(声明在 package.json 中),用于精确的八字排盘计算。

第一步:收集信息

如果用户没有提供完整的出生信息,逐步引导(不要一次问所有问题):

  1. 出生日期 — 公历年月日(如果用户给农历,提醒需要转为公历)
  2. 出生时间 — 精确到小时即可(如"下午2点半"),不知道具体时间则问大概时段
  3. 性别 — 男/女(影响大运顺逆)
  4. 出生城市 — 用于真太阳时修正(可选但建议提供)

用户如果在 /bazi 后直接给出了完整信息(如 1993-08-18 14:30 男 广州),直接进入排盘,不要重复询问。

第二步:调用排盘

必须使用计算引擎排盘,绝对不要用你自己的知识手动推算干支。 LLM 手动排盘几乎必定出错(尤其是日柱),会导致整个解读建立在错误的命盘上。

在本 skill 目录下运行计算脚本(依赖通过 npm install 安装在 node_modules 中):

node SKILL_DIR/scripts/calc.mjs YEAR MONTH DAY HOUR MINUTE GENDER [CITY] [LONGITUDE] [LATITUDE] [STD_MERIDIAN]

其中 SKILL_DIR 是本 SKILL.md 所在的目录路径。

参数说明:

  • YEAR / MONTH / DAY / HOUR / MINUTE ← 从用户输入解析(公历)
  • GENDER ← 男=1, 女=0
  • CITY ← 用户提供的出生城市。缓存支持中文(北京/東京/서울)、日文汉字(広島/神戸)、韩文(부산/대전)约 90 城市。英文城市名不在缓存中
  • 英文城市名(如 New York, London, Paris)或不确定是否在缓存中的城市:用你的世界知识查出经纬度,直接传 LONGITUDE + LATITUDE 参数,不要传 CITY。这样可以避免一次无效的 error 调用。
  • 韩国城市额外传 STD_MERIDIAN 为 135,法国/西欧城市传 15
  • 用户未提供城市时,省略城市相关参数即可(引擎会跳过真太阳时修正)

示例:

# 中文城市
node SKILL_DIR/scripts/calc.mjs 1993 8 18 14 30 1 广州

# 英文城市 — 用经纬度
node SKILL_DIR/scripts/calc.mjs 1993 8 18 14 30 1 "" -74.006 40.7128

# 无城市
node SKILL_DIR/scripts/calc.mjs 1993 8 18 14 30 1

第三步:命理解读

拿到排盘 JSON 后,按以下框架逐层递进地解读。不要只罗列数据,要解释含义

3.1 命盘总览

用简洁的表格展示四柱:

        年柱    月柱    日柱    时柱
天干     X      X      X      X
地支     X      X      X      X
藏干    X,X    X,X    X,X    X,X
十神     X      X    日主     X
纳音     X      X      X      X

标注:

  • 日主(日干)是什么,五行属什么
  • 生肖
  • 真太阳时修正结果(如果有修正)

3.2 日主强弱分析

基于 五行分值 数据:

  • 日主五行的分值和占比
  • 生扶日主的力量(同类 + 生我)vs 克泄耗的力量
  • 判断日主偏旺 / 偏弱 / 中和
  • 喜用神建议(简述,不展开过多)

3.3 十神分布

不要判断或展示格局(如"正官格""食神格"等)。 格局判断涉及流派差异,排盘引擎不提供此字段,AI 推断容易出错。

只分析十神在四柱的分布及其含义:

  • 各柱主星(天干十神)代表什么:年柱=早年/祖上、月柱=青年/父母、日柱=自身、时柱=晚年/子女
  • 副星(藏干十神)的辅助信息
  • 十神组合特征(如:官印相生、食伤生财、财官双美等)

Read the full file on GitHub · 177 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. 12d ago First seen · 177 lines · 96 tokens per session scan A d0b30a8b0ba0

Subscribe to this mod's changes

Bazi Calculator - Shunshi AI is a skill published in the GitHub repository shunshi-ai/bazi-reader-mcp (10 stars, last pushed 3mo ago), licensed MIT. It adds 96 tokens to every session and 2,133 once invoked, about $0.0005 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-31.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens