SuperAPI AI Directory

taibu-divination

General & other

View repository

Updated 10-15 22:13

About this skill

TaiBu Divination Tools

TaiBu provides 15 divination and fate calculation charting tools, covering BaZi, Zi Wei Dou Shu, Liu Yao, Mei Hua Yi Shu, Qi Men Dun Jia, Da Liu Ren, Xiao Liu Ren, Tai Yi, Tarot, Western astrology, and the Chinese almanac. The calculation engines are packaged with the skill (scripts/vendor/taibu-core.bundle.mjs), run locally and directly, require no dependency installation, and only require Node.js 18 or higher in the environment.

Charts are always calculated by the tools. The calculation rules for heavenly stems and earthly branches, hexagram images, and stars are numerous; calculating manually from memory is both error-prone and irreproducible. When interpreting, use the tool output as the sole source of truth, and verify uncertain details against the output rather than filling them in from common knowledge.

Usage

TB refers to the root directory of this skill (it will be provided when the skill is loaded):

node "$TB/scripts/taibu.mjs" list           # 列出全部工具
node "$TB/scripts/taibu.mjs" schema bazi    # 查看参数说明与调用示例
echo '{"gender":"male","birthYear":1990,"birthMonth":5,"birthDay":20,"birthHour":8}' \
  | node "$TB/scripts/taibu.mjs" call bazi -
  • The parameter is JSON. When it contains Chinese content, use stdin (call <tool> -) to avoid shell escaping issues.
  • By default, it outputs normalized text, suitable for use directly as a basis for interpretation; add --json to output structured data (structuredContent)。
  • On error, it returns a Chinese prompt (which parameter is missing, which values are allowed); correct it according to the prompt and retry. Exit codes: 0 success, 1 parameter or business error, 2 usage error.

Selecting Tools

Tool name Name Purpose Parameter documentation Interpretation guide
astrology Western astrological birth chart Calculate the natal chart and transit chart based on birth information, output basic coordinates, chart anchors, natal rulers, and transit triggers references/astrology.md interpretation/astrology.md
bazi BaZi birth chart Arrange the Four Pillars birth chart based on birth information, output the Four Pillars' heavenly stems and earthly branches, Ten Gods, hidden stems, terrain, void branches, and stem-branch relationships, with optional extended information such as Na Yin and Shen Sha references/bazi.md interpretation/bazi.md
bazi_pillars_resolve Four Pillars reverse lookup Search for minute-level birth time ranges based on the Four Pillars, default 1900-2100, up to 1200 years per query references/bazi_pillars_resolve.md interpretation/bazi.md
ziwei Zi Wei Dou Shu birth chart Calculate the Zi Wei birth chart based on birth information, output the twelve palaces, star distribution, Four Transformations, major limits, and other information references/ziwei.md interpretation/ziwei.md
ziwei_horoscope Zi Wei Dou Shu fortune periods Calculate fortune period information such as major limits, minor limits, annual fortune, monthly fortune, daily fortune, and hourly fortune based on birth information and target date references/ziwei_horoscope.md interpretation/ziwei.md
ziwei_flying_star Zi Wei Dou Shu flying stars Analyze, query by query, the Four Transformations flying into palace positions, self-transformations, Four Transformations landing palaces, and the three directions and four corners references/ziwei_flying_star.md interpretation/ziwei.md
liuyao Liu Yao hexagram casting Cast a Liu Yao chart based on the question and hexagram-casting information, output the hexagram image, line positions, useful god system, relationship judgments, and timing hints references/liuyao.md interpretation/liuyao.md
meihua Mei Hua Yi Shu hexagram casting Cast hexagrams based on time, character divination, object numbers, reported numbers, and other methods, output hexagram-casting information, the hexagram chart, and body-use deduction references/meihua.md interpretation/meihua.md
tarot Tarot card drawing Draw Tarot cards according to a spread, output each position's card face, upright or reversed orientation, core tone, element, and astrology references/tarot.md interpretation/tarot.md
taiyi Tai Yi charting Supports Nine Star observation, as well as modern calendar-adapted year/month/day/hour calculations established from the Four Treasury Original Mirror seventy-two configurations references/taiyi.md interpretation/taiyi.md
almanac Chinese almanac query Query the almanac, auspicious and inauspicious activities, clashes and煞, presiding star, directions, and hourly fortune for a specified date references/almanac.md interpretation/almanac.md
bazi_dayun Bazi Luck Cycles Calculate the luck start time and luck cycle list based on birth information; optionally output the minor luck before the luck start and the annual cycles of each luck cycle references/bazi_dayun.md interpretation/bazi.md
qimen Qimen Dunjia Chart Cast a Qimen chart based on a specified time, outputting information such as the nine palaces, nine stars, eight gates, eight spirits, and patterns references/qimen.md interpretation/qimen.md
daliuren Da Liu Ren Chart Cast a lesson based on date and time, outputting the heaven-earth plate, four lessons, three transmissions, spirits and generals, lesson body, and space-time information references/daliuren.md interpretation/daliuren.md
xiaoliuren Xiao Liu Ren Divination Cast a lesson based on the lunar month, day, and hour, outputting lesson-casting information, the derivation chain, and result information references/xiaoliuren.md interpretation/xiaoliuren.md

Before calling, first schema <tool>, or read references/<tool>.md(parameter table and copyable examples).

Interpretation Methods

Casting the chart is only the first step. Before producing an interpretation, read the interpretation/<体系>.mdcorresponding to the last column of the tool table—each guide gives the expert role, school techniques, and analytical framework for that system; organize the interpretation content accordingly. General requirements:

  • Judgments must cite chart evidence (heavenly stems and earthly branches, stars, line positions, and pattern names must match the tool output verbatim); if uncertain, return to the output to verify.
  • The main text should be written to the querent in the voice of a practitioner of that system: conclusion first, then argumentation. The tool invocation and verification process should not be written into the main text, at most mentioned in one sentence at the end—leave the space for hexagram principles and judgments, not operation records.
  • Give key events a time range, auspicious/inauspicious nature, and degree of impact; advice should target the current chart and not be universal empty talk.
  • The depth of analysis should scale with the user's request: quick judgment types (Xiao Liu Ren, single-card Tarot) are short and fast, while overall destiny chart types (Bazi, Ziwei) unfold in layers; when the user requests decade-by-decade or year-by-year analysis, call the luck-period tools according to the guide to supplement data.

Conventions

  • Calendar: Birth-related tools default to the Gregorian calendar (calendarType: "solar"); when the user gives a lunar birthday, pass "lunar"instead, and for a leap month add isLeapMonth: true。xiaoliuren as an exception, directly accepting the lunar month and day.
  • Time:birthHour pass the clock hour from 0-23; early and late Zi hours are handled by the engine, do not convert the hour yourself.xiaoliuren The hour can accept the hour sequence number 1-12 (Zi=1), or a 0-23 hour. Birth information not provided by the user should be asked for, not assumed on their behalf.
  • Divining the present:qimen、daliuren、liuyao and meihua when the time for casting a hexagram requires the current time, first obtain the system time (e.g., date +"%Y-%m-%dT%H:%M:%S") and then fill it into the parameters.
  • Date verification: when the user says "today/now" and also reports a lunar date, first obtain the system time and use almanac to verify the Gregorian-lunar correspondence—the mapping between lunar and Gregorian is calendar lookup data and cannot be converted from memory. When the spoken account and the verification do not match, point out the discrepancy and cast the chart based on the verification result; if necessary, attach the comparison result for the spoken date. Birth zodiac signs and the heavenly stems and earthly branches of future dates should also be based on Core's calculation for the corresponding date, and cannot be supplemented from the Gregorian year or a single day's chart.
  • Randomness:tarot can pass seed to reproduce a card draw;liuyao the method: "auto" is random each time; when reproduction is needed, switch to select(specify the hexagram name) or number(numeric hexagram casting).
  • Six Yao useful spirit:yongShenTargets is required; select according to the divination topic, and multiple selections are allowed: career and official position, lawsuits, illness and worries take 官鬼; for wealth, or when a man asks about relationships, use 妻财; for documents and contracts, elders, real estate and vehicles, use 父母; for children and juniors, health and safety, use 子孙; for cooperation and competition, friends, use 兄弟。
  • detailLevel: the default output is already sufficient for interpretation; when a full chart is needed, add to the parameters "detailLevel": "full"(some tools also have "more")。

Other access methods

Clients that support MCP can directly use the npm package without this skill taibu-mcp(stdio) or the public endpoint https://mcp.mingai.fun/mcp, with the same toolset.