Labsco
sapuyou45-bit logo

ai-divination-skills

โ˜… 1

from sapuyou45-bit

Audited tarot, I Ching, and Xiao Liu Ren divination MCP server. Local seeded entropy; the model only interprets JSON output.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeQuick setup

AI Divination Skills

English | ็ฎ€ไฝ“ไธญๆ–‡ | ๆ—ฅๆœฌ่ชž

ai-divination-skills demo: pip install, tarot draw, I Ching cast, MCP server stdio

PyPI Downloads

โœจ Open-source divination skills for AI agents where the tool performs the draw or cast, and AI interprets the concrete result.

ai-divination-skills 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.

โœจ 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 now defaults to Simplified Chinese. Use the page header switcher there when you want English or Japanese.

Open the published site

Local preview:

python3 -m http.server 8000 -d docs

Published site:

https://sapuyou45-bit.github.io/ai-divination-skills/

๐Ÿงฉ 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

๐Ÿง  Use it from Claude Desktop / Codex / any MCP host

ai-divination-skills 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:

pip install ai-divination-skills

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

{
  "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:

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