Deterministic BaZi (Four Pillars / 四柱推命 / 八字) MCP server, Agent Skill & 100-case solar-term boundary LLM benchmark (MIT) — by Fate Partner
Available after the catalog security scan passes.
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM lists this project for discovery and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
# Add to your Claude Code skills
git clone https://github.com/liu17513567-blip/bazi-solar-term-mcpGuides for using ai agents skills like bazi-solar-term-mcp.
General-purpose LLMs frequently hallucinate BaZi / Four Pillars charts around Start of Spring (立春), the 24 Solar Terms (二十四節気 / 二十四節氣), True Solar Time longitude boundaries, historical Daylight Saving Time, and late Zi hour (23:00-23:59). In Fate Partner's public 5-model, 100-case universal-UTC boundary benchmark (v1.1), zero-tool error rates reached 78.0% on DeepSeek-Chat, 44.0% on Gemini 3.8 Flash (95% error on True Solar Time), 16.0% on Claude Sonnet 5.5, and 4.0% on Claude Opus 5.5, while Gemini 4 Carbon needed ~105k thinking tokens (~18 minutes) to match this deterministic engine's <2 ms / 0-token / 100.0% exact output.
calculate_bazi_chart via bazi-solar-term-mcp or CLI).check_solar_term_boundary) when a birthday falls near the 4th–8th of any month (especially February 3–5 around 立春).HH:mm to compute the three confirmed pillars (YYYY-MM-DD) and state clearly that the Hour Pillar is unknown.audit_llm_bazi_answer whenever a user pastes an existing chart from another chatbot and asks "Is this chart right?".calculate_bazi_chart({ birthDateTime, city?, timeZone?, longitude?, useTrueSolarTime? })check_solar_term_boundary({ birthDateTime, windowHours? })audit_llm_bazi_answer({ birthDateTime, claimedYear, claimedMonth, claimedDay, claimedHour?, city?, useTrueSolarTime? })See how bazi-solar-term-mcp compares with popular alternatives.
Deterministic BaZi (Four Pillars of Destiny / 四柱推命 / 八字) MCP Server, CLI, Agent Skill & 100-Case Solar-Term Boundary Benchmark (MIT)
日本語 README · 繁體中文 README · Agent Skill (SKILL.md) · Official Methodology (Fate Partner)
General-purpose LLMs generate tokens probabilistically without an astronomical ephemeris. When asked to compute BaZi / Four Pillars directly from a birthday, fast and non-reasoning models routinely miscalculate Year, Month, Day Master, or Hour Pillars around Start of Spring (立春), the 24 Solar Terms, True Solar Time, Late Zi hour (23:00–23:59), and historical Daylight Saving Time — while frontier reasoning models burn tens of thousands of thinking tokens (~5–18 minutes per 100 charts) and still make minute-level solar-term mistakes.
Using this repository's open-source 100-case universal-UTC boundary benchmark (benchmark/bazi-boundary-100.json, v1.1.0), we audited 5 zero-tool LLMs on 2026-11-22 (full multi-model results):
| Model / Engine | Protocol & Reasoning Budget | Exact 4-Pillar | Any-Pillar Error | LiChun Err (25) | 12-Jie Err (25) | True Solar Time Err (20) | Late Zi Err (15) | Historical DST Err (15) |
|---|---|---|---|---|---|---|---|---|
| DeepSeek-Chat | Non-reasoning REST API (temp=0, 1/call) |
22.0% | 78.0% | 72.0% | 48.0% | 100.0% | 86.7% | 100.0% |
Gemini 3.8 Flash (Medium) |
Zero-tool blind 50×2 (~53k thinking tokens) | 56.0% | 44.0% | 12.0% | 48.0% | 95.0% | 33.3% | 33.3% |
Claude Sonnet 5.5 (Medium) |
Zero-tool blind 50×2 (~49k thinking tokens) | 84.0% | 16.0% | 16.0% | 32.0% | 10.0% | 6.7% | 6.7% |
Claude Opus 5.5 (Medium) |
Zero-tool blind 50×2 (~38k thinking tokens) | 96.0% | 4.0% | 0.0% | 12.0% | 0.0% | 6.7% | 0.0% |
Gemini 4 Carbon (Medium) |
Zero-tool blind 50×2 (~105k thinking tokens / ~18m) | 100.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% |
bazi-solar-term-mcp (MIT) |
Deterministic ephemeris (<2 ms / 0 tokens) | 100.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% |
Methodological transparency notes:
- Upper-bound condition: Every test prompt explicitly supplied city longitude, IANA time zone,
TST=YES/NOflag, and DST/Late-Zi rules. Casual consumer chat prompts without longitude or DST reminders exhibit even higher error rates.- Excluded model:
GPT-OSS 120B (Medium)refused zero-tool computation on Attempt 1 and collapsed into repeated placeholder strings (甲子|甲子|甲子|甲子) under 50-case batching on Attempt 2; excluded to avoid strawmanning.- v1.1.0 Changelog (Open-Source Audit Win): Cross-model disagreement auditing caught a 1-hour cross-timezone solar-term bug in v1.0.0 affecting 10 Japan (
Asia/Tokyo, UTC+9) boundary cases (lunar-javascriptreturns solar terms in UTC+8). v1.1.0 aligns all Year/Month solar-term comparisons to universal UTC instants (birthUtcMs >= solarTermUtcMs), verified across JST (UTC+9), CST (UTC+8), and EST (UTC-5).
Plug bazi-solar-term-mcp into Claude, Cursor, Codex, or any MCP-compatible agent to replace probabilistic guessing and 1,000-token mental arithmetic with <2 ms, 0-token deterministic astronomical chart math.
calculate_bazi_chart — Computes Year, Month, Day, and Hour Pillars, Day Master polarity/element, surface Five Elements, governing Solar Term instant, historical DST rollback, and True Solar Time offset.check_solar_term_boundary — Returns all 24 astronomical Solar Terms for the birth year and flags whether the birthday falls within a high-hallucination boundary window.audit_llm_bazi_answer — Grades any chatbot's claimed Four Pillars against the astronomical ground truth and pinpoints exact mismatches.mcpServers){
"mcpServers": {
"bazi-solar-term": {
"command": "node",
"args": ["/path/to/bazi-solar-term-mcp/src/cli.mjs"]
}
}
}
npm install
npm test
# Calculate Tokyo birth chart with True Solar Time calibration
node src/cli.mjs calculate "1992-11-03 00:35" --city Tokyo
# Inspect nearest Solar Term boundary
node src/cli.mjs solar-terms "1991-06-06 12:18"
# Audit a chatbot's claimed pillars
node src/cli.mjs audit "1992-11-03 00:35" 壬申 庚戌 癸未 壬子 --city Tokyo
SKILL.md), and the 100-case public boundary benchmark.bazi-solar-term-mcp is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by liu17513567-blip. Deterministic BaZi (Four Pillars / 四柱推命 / 八字) MCP server, Agent Skill & 100-case solar-term boundary LLM benchmark (MIT) — by Fate Partner. It has 0 GitHub stars.
bazi-solar-term-mcp's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/liu17513567-blip/bazi-solar-term-mcp" and add it to your Claude Code skills directory (see the Installation section above). bazi-solar-term-mcp ships a SKILL.md manifest, so compatible agents can discover and load it automatically.
bazi-solar-term-mcp is primarily written in JavaScript. It is open-source under liu17513567-blip on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh bazi-solar-term-mcp against similar tools.
No comments yet. Be the first to share your thoughts!