/chinese-metaphysics:bazi-chartfrom chinese-metaphysics
Calculate one reusable BaZi chart from a named person's exact birth date, minute, and birthplace, write canonical JSON plus data-only Markdown, then start the natal reading automatically. Use for 八字排盘, 生辰八字, four pillars, or informal single-person birth details. Not for two-person compatibility, existing-chart interpretation, Da Yun, annual luck, or event forecasts.
Ships in chinese-metaphysics. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Calculate one static natal chart, write bazi_<name>.json and bazi_<name>.md, then hand the verified JSON to bazi-reading automatically. The artifacts contain calculation data only; never interpret the chart here.
bazi-compatibility.bazi-reading without recalculating.Collect these fields without guessing:
name: display identity for the artifact.birth_place: unambiguous city/region/country.birth_date: exact YYYY-MM-DD in the declared calendar.birth_time: exact HH:MM in 24-hour form. Refuse an hour-only or approximate time.calendar: gregorian or lunar. A lunar date also requires explicit leap_month: true|false.timezone: historical IANA zone such as Asia/Shanghai.latitude and longitude: decimal degrees for the birthplace.utc_offset_minutes only when an authoritative historical source must override IANA data.fold: 0|1 only to resolve a repeated DST wall time.gender is optional. Never infer it from a name, relationship, or pronoun.Resolve a place through an available geocoder or map source. If multiple places match, stop for a location choice. Do not select the largest or most famous city silently. Preserve the user's stated place in birth_place and add the resolved coordinates and IANA zone to the request.
The shared calculator applies these declared rules:
jie boundary.bazi-chart-rules-v1 and numeric outputs from bazi-score-v1.Five-element percentages and day-master strength are transparent heuristic-model outputs. They are not probabilities, measurements, or results endorsed by a calendar authority or ephemeris provider.
Work from this skill directory. Put the resolved object in a UTF-8 JSON file and run:
python3 scripts/compute_chart.py --request REQUEST.json --out OUTPUT_DIRECTORY --language zh
Inline JSON is also accepted:
python3 scripts/compute_chart.py --json '{...}' --out OUTPUT_DIRECTORY --language en
The runtime requires pyswisseph, declared in requirements.txt. If it reports the dependency missing, surface that exact installation error; do not replace astronomical boundaries with approximate dates. An optional Swiss data directory may be supplied with --ephemeris-path.
The command prints exactly two absolute paths on success: canonical JSON first, data-only Markdown second. Exit code 2 means no valid pair was created. Never create or repair one artifact manually after a calculation failure.
Read the JSON back through the gate the reading skill runs:
python3 scripts/validate_artifact.py CHART.json
It checks the schema and version, the canonical checksum, all four primary pillars with their facts and scores, the time corrections and model ids, and a complete alternate whenever alternate_day_boundary is true. Exit 2 means the run produced something unreadable: report every defect it names, and never create or repair an artifact by hand.
Then confirm the Markdown names the same checksum and contains no interpretation.
After validation, automatically invoke bazi-reading with the exact JSON path. Do not wait for a second user request. Do not invoke it when calculation or validation failed. After the reading completes, report the chart JSON, chart Markdown, reader-report Markdown, and separate evidence-artifact Markdown paths.
Birth details are sensitive personal data. Write only to the user-selected output directory, do not send them elsewhere, and do not add unrelated identity details. This skill calculates static natal structure only: no Da Yun, annual or monthly luck, event timing, medical or psychological diagnosis, deterministic claims, or compatibility verdicts.
See references/request.example.json for the request shape and references/examples.md for boundary and failure examples.
agents/openai.yaml (opens in a new tab)references/examples.md (opens in a new tab)references/request.example.json (opens in a new tab)requirements.txt (opens in a new tab)scripts/compute_chart.py (opens in a new tab)scripts/validate_artifact.py (opens in a new tab)shared.json (opens in a new tab)shared/bazi/__init__.py (opens in a new tab)shared/bazi/artifacts.py (opens in a new tab)shared/bazi/calendar.py (opens in a new tab)shared/bazi/engine.py (opens in a new tab)shared/bazi/ephemeris.py (opens in a new tab)shared/bazi/gate.py (opens in a new tab)shared/bazi/models.py (opens in a new tab)shared/bazi/pillars.py (opens in a new tab)shared/bazi/relations.py (opens in a new tab)shared/bazi/rules.py (opens in a new tab)shared/bazi/scoring.py (opens in a new tab)shared/bazi/timekeeping.py (opens in a new tab)shared/bazi/validation.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
7 skills in this plugin
/bazi-compatibilityCompare two people from reusable BaZi chart JSON files, two complete birth records, or one of each; write auditable interaction data and transparent general or relationship-specific scores before automatic interpretation. Use for 八字合婚, 合八字, two-person compatibility, 配不配, or whether two charts work together. Not for one-person natal work, reading an existing comparison, forecasting, or missing birth minutes./bazi-compatibility-readingInterpret a completed BaZi compatibility JSON artifact, or a pasted comparison carrying both identities, the five dimension ledgers and sensitivity variants, as a balanced, directional, evidence-linked relationship report. Use after the compatibility calculator or when asked to explain general, romance, marriage, friendship, family, or work scores already computed for two charts. Not for raw birth records, one-person readings, recalculation, predictions, or a binary destiny verdict./bazi-readingInterpret a completed single-person BaZi JSON chart or equivalent verified four-pillar data as an evidence-linked static natal report. Use when a calculator hands off its artifact or someone asks to 解读八字, 看命局, explain day-master strength, structure, or favorable elements from an existing chart. Not for raw birth details, relationship matching, luck cycles, dated predictions, or incomplete source data./bazi-ziwei-crossRead one person's finished 八字 artifact and finished 紫微 artifact against each other, recording every place the two systems agree, complement, or flatly contradict, without merging them into a single number. Use for 八字紫微综合, 双系统印证, 两盘合参, or asking whether the two systems say the same thing about one person. Not for placing either 命盘, reading one system by itself, matching two people, or forecasting./ziwei-chartPlace one twelve-palace Zi Wei Dou Shu 命盘 from someone's stated birth moment, birthplace, and gender, recording palaces, stars, 生年四化, and 大限 windows as reusable placement data. Use for 紫微斗数, 紫微排盘, 排紫微, 紫微命盘, 十二宫, or purple star astrology. Not for 八字 four pillars, matching two people, comparing two systems against each other, 流年 or monthly transformations, or a 命盘 that has already been placed./ziwei-readingInterpret an already-placed Zi Wei 命盘 artifact, or equivalent verified twelve-palace data, writing a reader report plus a separate audit artifact and, when asked, an ink-wash HTML poster. Use for 解读紫微, 看命盘, 看十二宫, or explaining the stars sitting in 命宫, the 生年四化, and what each 大限 window emphasizes. Not for unplaced birth records, 八字 four pillars, comparing two systems against each other, matching two people, 流年, or dated predictions.npx claudepluginhub misoto22/skills --plugin chinese-metaphysics