AI Divination Skills

io.github.sapuyou45-bit由 GitHub 帳號 sapuyou45-bit 發布v0.7.1更新於 Oct 24, 2026

Audited tarot, I Ching, Xiao Liu Ren, Bazi (Four Pillars). Model never invents results.

已驗證STDIO僅桌面

概覽

AI 產生的概覽

本機 MCP 伺服器,執行經過稽核的塔羅、易經、小六壬與八字起卦腳本,讓助理解讀結果而非自行編造。

可以做什麼
  • 依牌組、牌陣與逆位選項抽取塔羅牌
  • 以銅錢或蓍草法起易經卦,給出本卦與變卦
  • 依數字或公曆時間回退方式起小六壬課
  • 依公曆出生時間排出八字(四柱)盤
  • 取得解讀範本,以及帶方法中繼資料、可供稽核的 JSON 輸出
適用情境
適合希望助理針對決策、創作瓶頸或專案重新檢視給出象徵性、反思性解讀,且要求結果由腳本產生而非模型編造的情境。也適合用種子做可重現的示範。
執行需求
以本機 stdio 程序執行;README 要求安裝 oraclebone Python 套件(Python 3,無其他執行期相依套件),並在主機設定中註冊 ai-divination-mcp 指令。八字技能需要選用的 lunar-python 附加套件。未宣告帳號、金鑰或標頭。
安裝前請注意
專案聲明這不是占卜有效性的科學證明,也不用於醫療、法律、財務或危機諮詢。README 另提供會寫入 agent 技能目錄的 shell 安裝腳本與遠端安裝說明,執行前請先審閱。種子模式僅供測試與示範。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 AI Divination Skills,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Oraclebone

Three thousand years ago, Shang kings carved their divinations into bone — the first auditable record of an oracle at work. Oraclebone brings the same discipline to AI agents: audited scripts produce the draw, the hexagram, the pillars; the model only interprets what it is given. It never invents the result.

English | 简体中文 | 日本語

Demo

[oraclebone demo: pip install, tarot draw, I Ching cast, MCP server stdio]

[tests] [release] [PyPI] [PyPI Downloads] [Latest release] [License: MIT] [Python] [GitHub Discussions]

🔮 Open-source divination toolkit for AI agents, formerly known as ai-divination-skills (renamed in v8.0.0 — the old PyPI package is frozen; install oraclebone instead).

oraclebone is a practical skill collection for tarot, I Ching, Xiao Liu Ren, and future symbolic systems. It is built for agent workflows that need auditable randomness, clear method boundaries, and reusable interpretation templates.

This project treats divination as symbolic reasoning and reflection, not deterministic prediction.

⚡ One-line Install for AI Agents

Paste this into your AI agent:

text
Install Oraclebone for this agent: https://raw.githubusercontent.com/sapuyou45-bit/oraclebone/main/docs/install.md

Or install directly for Claude-style local skills:

bash
curl -fsSL https://raw.githubusercontent.com/sapuyou45-bit/oraclebone/main/install.sh | bash

The default target is ~/.claude/skills. Set AI_SKILLS_DIR for another agent skill directory.

✨ Overview

Most AI divination prompts let the model invent the result. This repo separates the two jobs:

  1. A local script produces the card draw, hexagram, or Xiao Liu Ren position.
  2. The AI agent interprets that generated result with clear safety boundaries.

That makes readings easier to test, reproduce, audit, and reuse across agents.

🧭 Methodological Rigor

The core rule is simple: scripts or user-provided physical casts generate the divination result; AI interprets that result and does not generate the divination result.

This is not scientific proof of divination efficacy. It is a stricter workflow for symbolic reasoning:

  • real readings use system randomness by default
  • seeded mode is only for tests and reproducible demos
  • traditional methods and limitations are documented per skill
  • JSON outputs include enough metadata to audit the method
  • approximate modes emit warnings instead of pretending to be traditional

🌐 Multilingual Docs

The GitHub Pages site ships a six-language switcher — 简体中文, English, 日本語, Português, 한국어, Español. It follows your browser language by default and remembers your manual choice.

Open the published site

Local preview:

bash
python3 -m http.server 8000 -d docs

Published site:

text
https://sapuyou45-bit.github.io/oraclebone/

🧩 Included Skills

SkillWhat it doesScript
tarotDraws tarot cards for reflection, decisions, creative blocks, and project reframing.skills/tarot/scripts/draw.py
ichingCasts six-line I Ching hexagrams with primary and resulting hexagrams.skills/iching/scripts/cast.py
xiaoliurenCasts Xiao Liu Ren from lunar-style numbers or a Gregorian time fallback.skills/xiaoliuren/scripts/cast.py
baziCasts a Bazi (Four Pillars / 八字) chart from a Gregorian birth datetime. Requires the optional lunar-python extra.skills/bazi/scripts/cast.py

🚀 Quick Start

Install from PyPI:

bash
pip install oraclebone

Or from a checkout:

bash
pip install .

Use editable mode while developing:

bash
pip install -e .

Use one command for every system:

bash
ai-divination tarot --deck major --spread three-card --reversalsai-divination iching --method yarrowai-divination xiaoliuren --method numbers --month 3 --day 12 --hour 7

Ask for an agent interpretation template:

bash
ai-divination template tarot

Use the Python API directly:

python
from oraclebone.tarot import drawfrom oraclebone.iching import castfrom oraclebone.xiaoliuren import cast_numbers

You can still run the underlying scripts directly:

bash
python3 skills/tarot/scripts/draw.py --deck major --spread three-card --reversalspython3 skills/iching/scripts/cast.py --method coinspython3 skills/iching/scripts/cast.py --method yarrowpython3 skills/xiaoliuren/scripts/cast.py --method numbers --month 3 --day 12 --hour 7

Use a seed for reproducible demos:

bash
python3 skills/tarot/scripts/draw.py --spread decision --seed demopython3 skills/iching/scripts/cast.py --method yarrow --seed demo

All scripts output JSON.

📦 Install as Agent Skills

For AI-agent-guided setup, use the remote install runbook:

text
Install Oraclebone for this agent: https://raw.githubusercontent.com/sapuyou45-bit/oraclebone/main/docs/install.md

For direct shell install:

bash
curl -fsSL https://raw.githubusercontent.com/sapuyou45-bit/oraclebone/main/install.sh | bash

The installer copies tarot, iching, and xiaoliuren into ~/.claude/skills by default. To target another agent, set AI_SKILLS_DIR before running it.

Manual install is just copying the folders you want into your agent's skill directory:

bash
mkdir -p ~/.claude/skillscp -R skills/tarot ~/.claude/skills/tarotcp -R skills/iching ~/.claude/skills/ichingcp -R skills/xiaoliuren ~/.claude/skills/xiaoliuren

Each skill is self-contained:

text
skills/name/  SKILL.md  agents/openai.yaml  scripts/  references/

Install individual folders, not the entire repository, when you only want one skill.

Each skill script also works in single-folder mode. If the Python package is installed, the script delegates to the package runtime. If only the skill folder is copied, it falls back to the bundled standalone script in that skill.

Per-host adapters

Every skill ships four adapter files in skills/<skill>/agents/:

HostFileHow it is invoked
OpenAI / Codex skillsopenai.yamlSkill metadata + brand icons.
Claude Desktop / claude.ai project skillsclaude.yamlTool spec that runs ai-divination <skill>.
Gemini CLI / Gemini Extensionsgemini.yamlExtension manifest that runs the same CLI.
Cursorcursor.mdcRule file with hard "never invent the draw" guard.

All four adapters route through the same audited ai-divination <skill> CLI, so the agent host never invents the result.

🧠 Use it from Claude Desktop / Codex / any MCP host

oraclebone ships a built-in MCP server (ai-divination-mcp). Any Model Context Protocol host — Claude Desktop, Codex, Continue, Cursor — can mount it with a single config line, and the model gets five tools: tarot_draw, iching_cast, xiaoliuren_cast, bazi_cast, and interpretation_template.

The model never invents the draw; the server runs the audited scripts locally.

Claude Desktop

Install the package once:

bash
pip install oraclebone

Then edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

json
{  "mcpServers": {    "divination": {      "command": "ai-divination-mcp"    }  }}

Restart Claude Desktop. Ask "draw three tarot cards for my decision" — Claude will call tarot_draw and interpret the JSON output.

Codex / Continue / Cursor

Any MCP-aware host follows the same pattern. The server speaks JSON-RPC 2.0 over stdio with no third-party dependencies.

Per-client setup guides

Copy-paste JSON configs and example prompts for each host:

🤖 Agent Behavior

Each skill instructs the agent to:

  • generate or accept a concrete draw/cast result
  • read concise reference material only when needed
  • interpret with the shared response contract
  • avoid certainty, fatalism, and professional advice

Shared guidance lives in:

  • shared/methodology.md
  • shared/interpretation-protocol.md
  • shared/response-contract.md
  • shared/randomness-protocol.md
  • shared/safety-policy.md
  • shared/interpretation-style.md

🧪 Examples

  • examples/tarot-decision.md
  • examples/iching-strategy.md
  • examples/xiaoliuren-daily.md

🛡️ Safety Boundaries

These skills are not for medical, legal, financial, or crisis guidance.

Good readings should:

  • frame the result as symbolic reflection
  • connect claims to the generated result
  • preserve user agency
  • offer small, reversible next steps
  • state uncertainty clearly

See ETHICS.md for the full project stance.

🛠️ Development

No runtime dependencies are required beyond Python 3.

Run tests:

bash
python3 -m unittest discover -s tests

Current coverage checks:

  • unified CLI routing
  • package-only CLI execution
  • importable Python APIs
  • single-folder skill execution
  • skill metadata and asset contracts
  • interpretation protocol templates
  • tarot spread output
  • I Ching cast structure and manual lines
  • Xiao Liu Ren number and time fallback behavior

💬 Community

🗺️ Roadmap

Near-term:

  • Add a published package workflow.
  • Expand automated skill validation in CI.
  • Add richer reference material for each MVP skill.
  • Add more example readings.
  • Add more agent integration examples.

Later:

  • meihua
  • liuyao
  • runes
  • numerology
  • astrology

📄 License

MIT

來源:README.md,提交 a9a8ab7

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.7.1最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分