zhouyi-divination

基于《周易》的完整占卜系统,支持铜钱起卦 + 八字排盘 + 综合解读

3,891 stars

Best use case

zhouyi-divination is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

基于《周易》的完整占卜系统,支持铜钱起卦 + 八字排盘 + 综合解读

Teams using zhouyi-divination should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/zhouyi-divin/SKILL.md --create-dirs "https://raw.githubusercontent.com/openclaw/skills/main/skills/ahao2001/zhouyi-divin/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/zhouyi-divin/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How zhouyi-divination Compares

Feature / Agentzhouyi-divinationStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

基于《周易》的完整占卜系统,支持铜钱起卦 + 八字排盘 + 综合解读

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

# 🔮 周易占卜 - ZhouYi Divination

**基于《周易》的完整占卜系统**,支持铜钱法起卦、八字排盘、五行分析、大运推演,以及卦象与命理的综合解读。

纯 Python 实现,无外部依赖,安全本地运行。

---

## 📖 核心功能

| 模块 | 功能说明 |
|------|----------|
| **① 铜钱起卦** | 传统三枚铜钱摇卦法,模拟古代占卜仪式 |
| **② 64 卦查询** | 完整卦名、卦辞、大象、爻辞数据库 |
| **③ 本卦/变卦** | 自动识别动爻(老阴×、老阳○)并生成变卦 |
| **④ 八字排盘** | 四柱(年月日时)干支自动计算 |
| **⑤ 五行分析** | 五行分布统计、日主强弱判断 |
| **⑥ 用神推断** | 根据身强身弱推荐用神 |
| **⑦ 大运推演** | 每十年一大运,推算当前大运 |
| **⑧ 综合解读** | 八字背景 + 卦象 + 问题关键词的智能分析 |

---

## 🎯 快速开始

### **方式一:纯起卦(最简单)**

```bash
python scripts/divine.py --question "我今年的事业运势如何?"
```

输出包含:
- 六爻起卦过程
- 本卦 + 变卦信息
- 卦辞解读
- Oracle 寄语

---

### **方式二:八字 + 起卦综合解读(推荐)**

```bash
python scripts/divine.py ^
  --question "今年适合创业吗?" ^
  --birth-year 1990 ^
  --birth-month 5 ^
  --birth-day 15 ^
  --birth-hour 14 ^
  --gender 男
```

输出包含:
- ✅ 完整八字排盘
- ✅ 五行分布图
- ✅ 日主强弱分析
- ✅ 用神建议
- ✅ 当前大运
- ✅ 卦象 + 八字综合解读

---

### **方式三:只排八字(不占卦)**

```bash
python scripts/divine.py --mode bazi ^
  --birth-year 1990 ^
  --birth-month 5 ^
  --birth-day 15 ^
  --birth-hour 14
```

---

### **方式四:JSON 格式输出**

```bash
python scripts/divine.py --question "问题" --json
```

适合编程调用或保存结果。

---

### **方式五:交互模式**

```bash
python scripts/divine.py
```

按屏幕提示选择模式,逐步操作。

---

## 📋 参数说明

| 参数 | 简称 | 说明 | 必填 |
|------|------|------|------|
| `--question` | `-q` | 你想问的问题 | 否 |
| `--birth-year` | - | 出生年份 | 可选 |
| `--birth-month` | - | 出生月份 (1-12) | 可选 |
| `--birth-day` | - | 出生日期 (1-31) | 可选 |
| `--birth-hour` | - | 出生时辰 (0-23) | 可选 |
| `--gender` | - | 性别 (男/女) | 可选,默认"男" |
| `--mode` | - | 模式 (hexagram/bazi/both) | 可选,默认"both" |
| `--json` | - | JSON 格式输出 | 可选 |

---

## 📊 输出示例

### **纯起卦输出**

```
==================================================
📜 八字排盘报告
==================================================

👶 出生信息:1990 年 5 月 15 日 14:00

🔮 四柱八字:
   年柱:庚午
   月柱:丙午
   日柱:丁酉 ← 日主
   时柱:丁未

⚖️  五行分布:
   金:██ (2)
   木:  (0)
   水:  (0)
   火:█████ (5)
   土:█ (1)

💎 日主分析:
   日元:丁 (火)
   强弱指数:5/8
   状态:🟢 身强
   建议用神:土,金,水

...

═══════════════ 🎯 本卦信息 ═══════════════
   卦名:山地剥 (第 23 卦)
   卦象:上艮下坤
   卦辞:不利有攸往

...

💭 Oracle 寄语:
您的八字显示'丁'日主身强,精力充沛。当前山地剥提醒您 '不利有攸往'。
建议发挥优势但注意收敛锋芒,配合流年运势把握机遇。
```

---

## 📚 哲学参考

本工具参考以下经典:
- 《周易·系辞传》
- 《周易正义》(孔颖达)
- 《朱子本义》
- 《三命通会》
- 《渊海子平》

---

## ⚠️ 安全说明

- ✅ **纯本地运行**:无任何外部 API 调用
- ✅ **开源代码**:所有逻辑透明可见
- ✅ **无敏感权限**:不访问网络、不读写敏感文件
- ✅ **数据保密**:所有个人信息仅在内存中处理

---

## 💡 温馨提示

> 《周易》的核心是"**观其德义**",不是单纯的算命。
> 
> "**善为易者不占**" — 真正懂易经的人,重视的是其中的人生智慧,而不是依赖占卜结果。
> 
> 本工具仅供学习和娱乐,最终决策请结合自身实际情况~ 💕

---

## 🛠️ 技术栈

| 项目 | 内容 |
|------|------|
| **语言** | Python 3.8+ |
| **依赖** | 无第三方库 |
| **平台** | Windows / Linux / macOS |
| **编码** | UTF-8 |

---

*Created by 小艺 · 公司办公室行政 AI* 🌸

Related Skills

lobster-zhouyi

3891
from openclaw/skills

龙虾角色,专业学习周易与传统命理知识。每日19:00定时推送一个知识点,以严谨、学术化、非迷信的方式解读传统文化。

🔮 Divination — Oracle Toolkit for AI Agents

3891
from openclaw/skills

*"At every crossroads lies a message. Chance is the messenger. You are the reader."*

---

3891
from openclaw/skills

name: article-factory-wechat

Content & Documentation

humanizer

3891
from openclaw/skills

Remove signs of AI-generated writing from text. Use when editing or reviewing text to make it sound more natural and human-written. Based on Wikipedia's comprehensive "Signs of AI writing" guide. Detects and fixes patterns including: inflated symbolism, promotional language, superficial -ing analyses, vague attributions, em dash overuse, rule of three, AI vocabulary words, negative parallelisms, and excessive conjunctive phrases.

Content & Documentation

find-skills

3891
from openclaw/skills

Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.

General Utilities

tavily-search

3891
from openclaw/skills

Use Tavily API for real-time web search and content extraction. Use when: user needs real-time web search results, research, or current information from the web. Requires Tavily API key.

Data & Research

baidu-search

3891
from openclaw/skills

Search the web using Baidu AI Search Engine (BDSE). Use for live information, documentation, or research topics.

Data & Research

agent-autonomy-kit

3891
from openclaw/skills

Stop waiting for prompts. Keep working.

Workflow & Productivity

Meeting Prep

3891
from openclaw/skills

Never walk into a meeting unprepared again. Your agent researches all attendees before calendar events—pulling LinkedIn profiles, recent company news, mutual connections, and conversation starters. Generates a briefing doc with talking points, icebreakers, and context so you show up informed and confident. Triggered automatically before meetings or on-demand. Configure research depth, advance timing, and output format. Walking into meetings blind is amateur hour—missed connections, generic small talk, zero leverage. Use when setting up meeting intelligence, researching specific attendees, generating pre-meeting briefs, or automating your prep workflow.

Workflow & Productivity

self-improvement

3891
from openclaw/skills

Captures learnings, errors, and corrections to enable continuous improvement. Use when: (1) A command or operation fails unexpectedly, (2) User corrects Claude ('No, that's wrong...', 'Actually...'), (3) User requests a capability that doesn't exist, (4) An external API or tool fails, (5) Claude realizes its knowledge is outdated or incorrect, (6) A better approach is discovered for a recurring task. Also review learnings before major tasks.

Agent Intelligence & Learning

botlearn-healthcheck

3891
from openclaw/skills

botlearn-healthcheck — BotLearn autonomous health inspector for OpenClaw instances across 5 domains (hardware, config, security, skills, autonomy); triggers on system check, health report, diagnostics, or scheduled heartbeat inspection.

DevOps & Infrastructure

linkedin-cli

3891
from openclaw/skills

A bird-like LinkedIn CLI for searching profiles, checking messages, and summarizing your feed using session cookies.

Content & Documentation