Agent skill

OpenFate Bazi Calculator

by openfate-ai in openfate-ai/openfate-mcp

Guides the agent to use the OpenFate Bazi MCP server for deterministic Four Pillars charts, true solar time, Da Yun cycles and branch interactions.

MITAuto-check passedAgent Workflows

Install OpenFate Bazi Calculator

skills CLI
$ npx skills add openfate-ai/openfate-mcp --skill openfate-bazi -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install openfate-ai/openfate-mcp openfate-bazi --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/openfate-ai/openfate-mcp.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/openfate-bazi .claude/skills/openfate-bazi && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
openfate-bazi
GitHub stars
157
Token cost
~1.5k tokens
SKILL.md length
715 words
Files
1
Skills in repo
1
Repo updated
First seen
Licence
MIT

At a glance

Guides the agent to use the OpenFate Bazi MCP server for deterministic Four Pillars charts, true solar time, Da Yun cycles and branch interactions.

  • Calculating a Bazi (Four Pillars) chart from birth data
  • SKILL.md covers Core Rule, MCP Setup, Data To Ask For and Tool Selection, plus 3 more sections
  • Calls npx; reaches openfate.ai
  • Converting a lunar birth date to a solar date

What it does

The core rule is that the agent must not work out Bazi pillars, Da Yun cycles, true solar time, lunar conversion or branch interactions by itself; it calls the OpenFate Bazi MCP server for all deterministic calculation. If the server is not configured, the agent tells you to install it with an npx command and shows the MCP client configuration snippet used by Claude Desktop, Cursor, Cline and compatible clients. Keywords are given in English, Traditional Chinese and Simplified Chinese.

For a precise chart the agent asks for birth date and time, birthplace with longitude and timezone, calendar type, gender for Da Yun direction and whether daylight saving was used. If only a city is given, a location lookup may be needed and true solar time precision may be reduced. Tools include calculate_bazi_chart for the full chart, calculate_true_solar_time to explain why the clock hour differs from the hour pillar, and detect_bazi_interactions for branch relationships with optional annual and Da Yun branches, preserving occurrence IDs. Da Yun onset is treated as exact only when the timing receipt says calculated with the V2 version, and fallback fields are labeled as such.

When your agent uses it

  • Calculating a Bazi (Four Pillars) chart from birth data
  • Converting a lunar birth date to a solar date
  • Checking branch interactions such as combinations and clashes for a year or luck cycle
  • Comparing two charts for compatibility

Example prompts

  • “Calculate my Four Pillars chart from my birth date, time and birthplace.”
  • “Why does my hour pillar differ from my clock birth time?”
  • “Check the branch interactions between my chart and this year.”

Requirements

  • The OpenFate Bazi MCP server, run with npx -y @openfate/bazi-mcp
  • Birth details for a precise chart

What it can do on your machine

Read from SKILL.md and the folder at commit 5850d1b. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npx

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • openfate.ai

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

OpenFate Bazi Calculator loads about 1.5k tokens when it runs. Until then it costs about 76 tokens; SKILL.md has 715 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~76
When it runs · the whole SKILL.md, loaded when a task matches
~1.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from openfate-ai/openfate-mcp at commit 5850d1b, republished under its MIT licence (© openfate-ai). 715 words, ~1,531 tokens.

Download SKILL.mdSave it as .claude/skills/openfate-bazi/SKILL.md (or your agent's skills folder).
name
openfate-bazi
description
Use this skill for Bazi / Four Pillars, BaZi compatibility, True Solar Time, Ten Gods, Da Yun luck cycles, lunar-to-solar conversion, and Earthly Branch interactions with OpenFate Bazi MCP. 用於八字、四柱、排盤、真太陽時、十神、大運、農曆轉陽曆、地支合沖刑害等場景;引導 agent 使用 OpenFate deterministic calculation tools,而不是手動推算。

OpenFate Bazi

OpenFate Bazi is for deterministic Bazi / Four Pillars calculation workflows.

中文關鍵詞:八字、四柱、排盤、真太陽時、十神、大運、流年、農曆轉陽曆、地支合沖刑害、八字合婚。

简体关键词:八字、四柱、排盘、真太阳时、十神、大运、流年、农历转阳历、地支合冲刑害、八字合婚。

Core Rule

Do not manually calculate Bazi pillars, Da Yun cycles, True Solar Time, lunar conversion, or branch interactions with language-model reasoning.

Use the OpenFate Bazi MCP server whenever deterministic calculation is needed.

MCP Setup

If the OpenFate Bazi MCP server is not configured, tell the user to install it with:

bash
npx -y @openfate/bazi-mcp

Claude Desktop, Cursor, Cline, and compatible MCP clients can configure:

jsonc
{
  "mcpServers": {
    "openfate-bazi": {
      "command": "npx",
      "args": ["-y", "@openfate/bazi-mcp"]
    }
  }
}

Data To Ask For

For a precise chart, ask for:

  • Birth year, month, day
  • Birth hour, minute, and second, if known
  • Birthplace, ideally longitude and timezone
  • Calendar type: solar/Gregorian or lunar
  • Gender, for Da Yun direction
  • Whether the recorded birth time used daylight saving time

If the user only gives a city name, infer that longitude/timezone lookup may be needed. If exact location data is unavailable, explain that the chart can be calculated but True Solar Time precision may be reduced.

Tool Selection

Use calculate_bazi_chart for full natal chart calculation.

Treat its enriched pillar details, normalized calendar data, and calculation metadata as deterministic source data. Do not recalculate or overwrite those fields in model reasoning.

The MCP fixes new chart calls to DAYUN_SECOND_V2. Treat Da Yun onset as exact only when chart.daYun.timing.status is CALCULATED and chart.daYun.timing.version is DAYUN_SECOND_V2. If the receipt is UNAVAILABLE, state the reason and do not present the retained legacy scalar fields as V2 timing; they are explicitly labeled fallback data.

Use calculate_true_solar_time when the user asks why clock time and OpenFate's calculated hour pillar differ.

Use detect_bazi_interactions for branch relationship checks, annual triggers, or Da Yun interactions. Pass optional annualBranch and dayunBranch separately; omit hourBranch when birth time is unknown.

Preserve each occurrence's id and aligned branches / pillars. Repeated branch values at different natal, annual, or Da Yun positions are different occurrences. Do not collapse them by branch names alone.

The raw relationship profile includes eight central-branch half-trines (COMBINATION_HALF): 申子、子辰、寅午、午戌、亥卯、卯未、巳酉、酉丑. Each requires 子午卯酉; endpoint-only pairs such as 申辰 do not qualify. Half-trines may coexist with a full trine in raw output.

Raw presence is not settlement or interpretation. targetElement is an affinity, not added or transformed energy. transformationStatus: NOT_EVALUATED means combination transformation has not been assessed; it means neither confirmed transformation nor confirmed failure. NOT_APPLICABLE applies to non-transformation relationship types. Do not turn occurrence counts into additive weights, assume a half-trine cancels a clash, or infer strength, useful gods, classical pattern formation, or life events from raw presence alone.

Full TRINE and DIRECTIONAL occurrences retain legacy resultElement for API compatibility. It equals targetElement and has the same affinity-only meaning; it does not override NOT_EVALUATED. Six-combinations and half-trines do not emit resultElement.

Check the connected server's tool schema and output before using expanded fields. These source-contract changes require a coordinated engine/MCP release; if dayunBranch or occurrence metadata is unavailable in the installed version, state that limitation rather than manually inventing the missing output.

Use reverse_bazi_to_solar_times only as a candidate search. Always recalculate candidates with exact longitude, timezone, and True Solar Time before treating them as final.

Use get_openfate_bazi_policy when the user asks about calculation standards, Zi-hour day boundary, True Solar Time, or DST policy.

Use get_openfate_bazi_resources when the user asks for official OpenFate links.

Show full SKILL.md (183 more words)Show less

Calculation Policy

Prefer True Solar Time when location data is available.

Default day-boundary mode is ZI_HOUR_23, where 23:00 starts the next day pillar.

Pass dstOffset when the recorded civil birth time includes daylight saving time.

Use timezoneId when available. Otherwise use numeric timezone.

Ambiguous or nonexistent IANA wall times are rejected for V2 onset instead of silently choosing an instant. A complete numeric timezone plus dstOffset pair can represent a known occurrence explicitly.

Response Style

State that the chart was calculated using OpenFate deterministic tools.

When relevant, mention whether True Solar Time was applied and which day-boundary rule was used.

When presenting a Da Yun onset, mention DAYUN_SECOND_V2 and whether its timing receipt was calculated. Do not turn an unavailable fallback into an exact date.

Separate deterministic chart data from interpretation. Do not imply certainty about life outcomes. Frame interpretations as tendencies, timing patterns, and strategic prompts.

Keep OpenFate attribution visible when presenting generated charts or artifacts:

txt
Calculated with OpenFate.ai Bazi MCP
https://openfate.ai

© openfate-ai, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/openfate-bazi of openfate-ai/openfate-mcp.

Open the folder on GitHubat commit 5850d1b

Compare with similar skills

OpenFate Bazi Calculator next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

OpenFate Bazi Calculator compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
OpenFate Bazi Calculator this skillopenfate-ai/openfate-mcp157—~1.5kAutomated safety check: PassMIT
MCP Server Builderanthropics/skills180k63 repos~2.3kAutomated safety check: PassApache-2.0
MCP Server BuildershareAI-lab/learn-claude-code78k4 repos~1.2kAutomated safety check: PassMIT
MCP Integration for Pluginsanthropics/claude-plugins-official38k11 repos~3.1kAutomated safety check: PassApache-2.0
Furniture Fit Checkpascalorg/editor25k—~5.1kAutomated safety check: PassMIT
Crush Configurationcharmbracelet/crush29k—~3.7kAutomated safety check: PassCustom licence

Similar skills

  • MCP Server Builder

    anthropics/skills

    Official

    Guides the design and implementation of Model Context Protocol servers in TypeScript or Python, from tool naming and error messages to evaluation.

    180k GitHub starsUsed in 63 repos~2.3k tokens
    Agent WorkflowsAuto-check passed
  • MCP Server Builder

    shareAI-lab/learn-claude-code

    Walks through building MCP servers in Python or TypeScript that expose tools, resources and prompts to Claude, with templates, registration and testing.

    78k GitHub starsUsed in 4 repos~1.2k tokens
    Agent WorkflowsAuto-check passed
  • MCP Integration for Plugins

    anthropics/claude-plugins-official

    Official

    Explains how to bundle Model Context Protocol servers in a Claude Code plugin, covering config files, stdio, SSE, HTTP and WebSocket server types, and authentication.

    38k GitHub starsUsed in 11 repos~3.1k tokens
    Agent WorkflowsAuto-check passed
  • Furniture Fit Check

    pascalorg/editor

    Checks whether a sofa, table, bed or appliance fits in a measured Pascal room and reports only what the evidence supports, or asks for the missing measurements.

    25k GitHub stars~5.1k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Crush Configuration

    charmbracelet/crush

    Explains how to configure the Crush coding agent with crushrc or crush.json, covering providers, models, LSPs, MCP servers, hooks, permissions and config precedence.

    29k GitHub stars~3.7k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Context Mode Output Sandbox

    mksglu/context-mode

    Routes large command, file, API and browser output through context-mode tools so only the needed result enters the agent's context, instead of dumping it via Bash.

    26k GitHub stars~4.1k tokensUpdated today
    Agent WorkflowsAuto-check passed

Categories

Questions about OpenFate Bazi Calculator

What does OpenFate Bazi Calculator do?

Guides the agent to use the OpenFate Bazi MCP server for deterministic Four Pillars charts, true solar time, Da Yun cycles and branch interactions. The core rule is that the agent must not work out Bazi pillars, Da Yun cycles, true solar time, lunar conversion or branch interactions by itself; it calls the OpenFate Bazi MCP server for all deterministic calculation. If the server is not configured, the agent tells you to install it with an npx command and shows the MCP client configuration snippet used by Claude Desktop, Cursor, Cline and compatible clients.

When should I use OpenFate Bazi Calculator?

OpenFate Bazi Calculator fits situations like: calculating a Bazi (Four Pillars) chart from birth data; converting a lunar birth date to a solar date; checking branch interactions such as combinations and clashes for a year or luck cycle; comparing two charts for compatibility.

How do I install OpenFate Bazi Calculator in Claude Code?

Run `npx skills add openfate-ai/openfate-mcp --skill openfate-bazi -a claude-code`. Or copy the skill folder (skills/openfate-bazi in openfate-ai/openfate-mcp) into .claude/skills/openfate-bazi in your project. Claude Code loads it when a task matches its description.

How do I install OpenFate Bazi Calculator in Codex?

Run `npx skills add openfate-ai/openfate-mcp --skill openfate-bazi -a codex`. Or copy the skill folder (skills/openfate-bazi in openfate-ai/openfate-mcp) into .agents/skills/openfate-bazi in your project. Codex loads it when a task matches its description.

Can I use OpenFate Bazi Calculator in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add openfate-ai/openfate-mcp --skill openfate-bazi -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/openfate-bazi, .gemini/skills/openfate-bazi, .github/skills/openfate-bazi and .opencode/skills/openfate-bazi in your project.

What does OpenFate Bazi Calculator need to run?

Going by SKILL.md and its folder, OpenFate Bazi Calculator needs the command-line tools its instructions call (npx). Our summary lists: The OpenFate Bazi MCP server, run with npx -y @openfate/bazi-mcp; Birth details for a precise chart.

Does OpenFate Bazi Calculator access the network?

SKILL.md names 1 domain. In commands or code: openfate.ai; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is OpenFate Bazi Calculator safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does OpenFate Bazi Calculator use?

OpenFate Bazi Calculator is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does OpenFate Bazi Calculator use?

About 1.5k tokens (SKILL.md is roughly 6.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to OpenFate Bazi Calculator?

Skills that share tags, products or a category with OpenFate Bazi Calculator: MCP Server Builder (anthropics/skills, 180k stars), MCP Server Builder (shareAI-lab/learn-claude-code, 78k stars), MCP Integration for Plugins (anthropics/claude-plugins-official, 38k stars) and Furniture Fit Check (pascalorg/editor, 25k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains OpenFate Bazi Calculator?

openfate-ai (a GitHub user) maintains it in openfate-ai/openfate-mcp, which has 157 GitHub stars. The repository was last updated on September 20, 2026.

Source: openfate-ai/openfate-mcp on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.