ZiFan1117/bazidiy--packages-ontology ↗★ 0
@bazidiy/ontology
BaziDIY:确定性的八字/五行/算珠规则 DSH 工具,外加手链 SVG 渲染和算珠编辑器
AI 分析
核心用途是提供八字计算、五行分析及手链款式设计的确定性算法工具。适合需要进行传统命理分析、设计定制手链并进行可视化渲染的用户。
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:ZiFan1117/bazidiy#02148bf6bdc268a8749334e02ec817cc62933ed5&path:packages/ontology说明文档
阅读完整 README ↗@bazidiy/ontology
BaziDIY ontology plugin: deterministic wuxing/bead/style rules exposed as model-facing dsh tools. No LLM calls inside execute — the rules derive 旺衰/喜用神/珠子匹配/款式方案 from data only.
Tools
| Tool | Input | Output type |
|---|---|---|
calculate_bazi | birth_date, birth_hour, gender | bazi_result |
propose_designs | bead_ids?, wrist_size?, day_master_element, month_branch_wuxing | design_proposal |
generate_design | style_name, beads, wrist_size?, summary, rationale | design_result |
save_design | style_name, slots, wrist_size, summary, rationale | design_saved |
load_design | — | design_loaded |
Data
src/data/*.ts is generated from backend/ontology/data (schema v3, hardness removed). Regenerate with node scripts/gen-data.mjs.
Model Experience
What the model sees
Five tool schemas. calculate_bazi returns day_master_element / month_branch_wuxing which the model passes straight into propose_designs. propose_designs returns favorable / unfavorable / designs that the model quotes verbatim. generate_design validates bead names are full names (no abbreviations). save_design persists the settled design per session id; load_design restores it in the same session.
Token effect
Schema cost per request where the tools are visible; result tokens are data-dependent.
KV Cache effect
Prefix-stable while the tool definitions and visibility are unchanged.
Known Limitations and Deferred Work
calculate_baziignoresgender; 节气 uses a simplified month boundary (same as the v8 reference).generate_designvalidates bead names but not that thestyle_name/beadssequence came frompropose_designs— the prompt constrains this, not the tool.save_design/load_designkey by the calling agent's session id; a design is only reachable from the session that saved it.