Install
openclaw skills install tafu-baziUse Tafu's paid API for deterministic BaZi chart calculation, thematic readings, synastry, and soul-song generation when users ask for Chinese astrology analysis based on birth data.
openclaw skills install tafu-baziUse this skill when the user asks for:
Tafu is the source of truth for all chart math and paid analysis. Do not improvise the actual BaZi chart or paid reading if the API is available.
TAFU_API_KEY from skills.entries.tafu_bazi.apiKey.skills.entries.tafu_bazi.env.TAFU_API_BASE_URL.https://tafu.me/developers, then configure skills.entries.tafu_bazi.apiKey.Use {baseDir}/scripts/tafu_api.sh for every API call. It reads:
TAFU_API_KEYTAFU_API_BASE_URL if presenthttps://api.tafu.me/api/v1If you need concrete payload examples, read {baseDir}/references/examples.md.
00.GET /bazi/leap-month/:year before confirming isLeapMonth.GET /bazi/coordinates?location=... first.For raw chart calculation, call:
POST /bazi/calculateUse the normalized JSON payload expected by the API. Prefer these keys:
gendercalendarTypebirthYearbirthMonthbirthDaybirthHourbirthMinuteisLeapMonthlocationFor a single-person reading, call:
POST /readingPayload:
birthDatathemeValid theme values:
life_colorrelationshipcareer_wealthhealthlife_lessonyearly_fortuneFor soul-song generation, call:
POST /soul-songPayload:
birthDataFor two-person compatibility, call:
POST /synastryPayload:
subjectAsubjectB/reading, /soul-song, and /synastry may return an already completed result or an async task.
If the response includes a result, use it immediately.
If the response includes taskId and status:
GET /tasks/<taskId>completed or failedtaskIdcreditsUsed and creditsRemaining when returned.viewUrl, include it.402 or INSUFFICIENT_CREDITS, tell the user to recharge Credits at https://tafu.me/developers/billing.401 or INVALID_API_KEY, tell the user to rotate or reconfigure the API key.