AI Agent Hub
Back to skills
⚖️

Professional Zi Wei Dou Shu Chart Reading

Professional Updated 2026.08.30

Paste the following prompt into your AI chat to install this skill:

Install @org-gfrg4dba/ziwei according to https://skillhub.cn/install/skillhub.md.

About this skill

Problem

Traditional Zi Wei Dou Shu charting relies on manual conversion and star placement. Lunar calendar conversion, the Ming Palace, the Shen Palace, and the 14 main stars are easy to misalign, while generic readings can remain vague. This skill separates deterministic charting from LLM explanation: it first computes the chart structure with rule-based logic, then asks a model to translate the Ming Palace, main stars, and the 12 palaces into readable text for Agent workflows.

How It Works

  • Input: accepts Gregorian year, month, day, hour, and gender.
  • Charting: uses lunardate to convert Gregorian dates to lunar dates, calculates the Ming and Shen palaces, locates Zi Wei by lunar date and year stem, then derives the other main stars.
  • Interpretation: sends palace data, main-star distribution, and twelve-palace structure to DashScope Qwen-Plus for personality, career, wealth, relationships, health, and life guidance.
  • Flow: if payment has not been completed, the endpoint returns 402 Payment Required, X-Out-Trade-No, and WeixinPay-Required; the Agent checks the weixinpay plugin, guides the user through payment, then retries with the same parameters and order number, displaying result.interpretation on success.
  • Fallback: if the model times out or is unavailable, a simplified template can be returned instead of failing the request.

Boundaries

Birth time should be as precise as possible, with shichen treated as two-hour blocks. The output is for reference only and should not be the sole basis for major decisions. This skill focuses on single Zi Wei Dou Shu chart readings and does not replace astrology, BaZi, medical, or financial advice.

Use Cases

  • Integrate a charting endpoint into a consultation mini-app to produce Ming Palace, main stars, and twelve palaces from Gregorian birth data.
  • Have a support assistant return personality, career, wealth, and relationship guidance after the user submits birth time.
  • Pass the order number and payment code from a 402 response to the payment plugin, then retry and display the reading.
  • When the model is unavailable, use the returned error code to prompt retry or fall back to the simplified interpretation template.

Best For

  • Backend engineers building astrology products who need a stable charting and interpretation endpoint with payment error handling.
  • Agent developers assembling consultation assistants who want to turn birth data into structured Zi Wei Dou Shu readings.
  • Editors running Zi Wei Dou Shu accounts who need batch chart summaries and review of career and wealth fields.
  • Engineers maintaining payment flows who must handle 402 responses, order numbers, and the weixinpay plugin.