Nov 11, 2026
Numerologist Skills: A Cyber Fortune-Teller Engineered to Hallucinate Less
Qimen Dunjia, Ziwei Doushu and BaZi skills that ask before they chart, declare their conventions before concluding, and — for Qimen and Ziwei — hand fixed calculations to Python scripts.
Ask a chat model to cast a Chinese divination chart and it can hallucinate the chart construction, the school conventions and the order of steps. The Numerologist_skills repository, a 2k-star collection subtitled 你的赛博命理师 (your cyber fortune-teller), packages three divination systems as agent skills built to reduce those errors — two of them by handing fixed calculation to scripts.
Why This Skill Matters
The README states the goal plainly: the point is not to dress the model up as better at mysticism, but to reduce, as far as possible, its hallucinations in chart construction, school conventions, step ordering and interpretation. Each system is split into auditable modules — a SKILL.md fixing triggers, workflow and output constraints; a references/ directory fixing rules, terminology and worked examples; and scripts/ for external deterministic calculation, currently included for Qimen Dunjia and Ziwei Doushu. Three skills ship today:
| Directory | System | Main use | Fixed calculation / dependencies |
|---|---|---|---|
qimen-dunjia/ | Qimen Dunjia | Single-question judgment, timing, direction, seeking the auspicious and avoiding the harmful | Python CLI: scripts/qimen_cli.py |
ziwei-doushu/ | Ziwei Doushu | Natal chart structure, palace analysis, decade and annual luck periods | Python CLI: scripts/ziwei_cli.py |
bazi/ | BaZi (Four Pillars) | Day-master strength, structure, ten gods, luck pillars and annual years | Rules and references driven |
Installation
The README gives no install command. The repo is a plain directory of three skill folders, each carrying its own SKILL.md. Clone it and keep the clone intact — the documented script invocations use paths relative to the repository root — then have your agent read the SKILL.md for the system you want. The Qimen skill's compatibility note requires Python 3.11+ with lunar_python and tzdata.
Real Workflow: A Qimen Dunjia Reading
The Qimen SKILL.md prescribes a five-step sequence. Step one is an interview, not a chart: the skill must ask what event you are asking about, which moment, which city you are in, what you most want judged, how far the matter has progressed, and whether you want a direct conclusion or a full walkthrough. A second round fills gaps — a specific hour when only a date was given (at minimum down to the two-hour shichen), leap-month status for lunar dates, a timezone or city for overseas locations.
Step two is a go/no-go decision. Charting starts only after four facts are confirmed: the event type, the time, a location or timezone precise enough to compute, and the judgment goal. Anything missing means more questions, not a chart.
Step three calls the script for the fixed calculation. Install the dependencies:
pip install "lunar_python>=1.4.8,<2" "tzdata>=2024.1"
The agent assembles your interview answers into the input JSON the SKILL.md documents:
{
"question_type": "",
"question_goal": "",
"time_input": "",
"calendar_type": "solar|lunar|now",
"location": {
"country": "",
"city": "",
"timezone": ""
},
"ruleset": "mainline-cn-v1"
}
and runs the fixed calculation:
python "qimen-dunjia/scripts/qimen_cli.py" \
--input "tmp/qimen_input.json" \
--output "tmp/qimen_output.json"
If the script is unavailable, the skill may not substitute mental math — it must say the current version needs the script for an official chart.
Step four reads the script's output: whether the chart is a yin or yang dun, the chart number (1–9), the zhifu (值符) star and zhishi (值使) door positions, automatically detected patterns, the nine-palace array, and a warnings field carrying boundary and hosting reminders that must surface in the reading. Step five is interpretation, and the SKILL.md fixes its shape: confirmed information, the rules and defaults in use, a chart summary, the pivotal reference (yongshen) with key evidence, the core judgment, direction/timing/action advice, and the risk reminders and disclaimer.
Second Workflow: Ziwei and BaZi
Ziwei Doushu sends its chart construction through ziwei_cli.py with its own input and output files, under the same repo-wide principles: ask first, script the fixed calculation, declare the conventions. BaZi ships no script at all: its day-master strength, structure, ten gods, luck-pillar and annual-year readings run on the skill's rules and references alone.
Tips
- The Qimen skill's default rule set is fixed to
mainline-cn-v1withAsia/Shanghaias the default timezone. Ask it for another school and it discloses the default, asks whether you accept charting under it, and — if you do not — skips the official chart and limits itself to theoretical discussion or says the current version does not support it. - The Qimen SKILL.md fixes the tone as well as the structure: plain language first, terms explained at first use, no full internal reasoning chain, and no scare language — no certain-failure, certain-death or no-rescue claims.
- Re-asking the Qimen skill about the same matter gets a gentle reminder of the traditional one-matter-one-reading principle; if you continue anyway, it first says this lowers the stability of the judgment.
- The repo is part of the AI Engineering of Traditional Divination (AI 术数工程化) initiative.
When Not to Use This
The README's disclaimer draws the boundary: the content is an engineering expression of traditional divination and an AI-constraint experiment, and does not constitute medical, legal, financial or other real-world decision advice. The Qimen skill's own rules go further — major decisions, illness, legal, investment and other high-risk topics must come with real-world advice attached. It charts only under its default rule set — it discloses mainline-cn-v1 and asks first; decline and it skips the official chart, offering only theoretical discussion or a note that the current version does not support it. And if you want answers without an interview, this is the wrong tool: the README's first design principle is to ask before answering and not force a chart when information is incomplete.
See the leaderboard for more skills.