谛观·解卦 | Hexagram Interpreter
解卦——四象合参·象推演系统。基于梅花易数+六爻为主体、六壬/奇门为辅助触发、类象知识库展开的符号推演 Skill。不做吉凶判断,展开丰富可能性,启发用户自主决策。 Skill: 谛观·解卦 | Hexagram Interpreter Owner: henrryjoke Summary: 解卦——四象合参·象推演系统。基于梅花易数+六爻为主体、六壬/奇门为辅助触发、类象知识库展开的符号推演 Skill。不做吉凶判断,展开丰富可能性,启发用户自主决策。 Tags: divination:0.2.3, iching:0.2.3, latest:0.9.0, liuyao:0.2.3, meihua:0.2.3 Version history: v0.9.0 | 2026-06-03T03:58:22.271Z | user v0.9.0: 修正显示名称,添加谛观品牌字号 v0.8.4 | 2026-05-21T14:47:12.515Z | user 修正:Skill名称恢复为「解卦 | Hexagram Interpreter」,确保中文用户搜索可见。品牌「谛观 DiGuan」保留在描述和作
Rank
62
Safety
84
Downloads
2.0k
Updated
Oct 9, 2026
Version
0.9.0
Source
CLAWHUB
About
What it does, and when to use it.
Capability contract not published. No trust telemetry is available yet. 2K downloads reported by the source. Last updated 10/9/2026.
Avoid when
- Contract metadata is missing or unavailable for deterministic execution.
Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing
Public facts
Every fact links back to the source it came from.
- Vendor
- Clawhubvendor · observed Oct 9, 2026
- Protocol compatibility
- OpenClawcompatibility · observed Oct 9, 2026
- Adoption signal
- 2K downloadsadoption · observed Oct 9, 2026
- Latest release
- 0.9.0release · observed Jun 3, 2026
- Handshake status
- UNKNOWNsecurity
Install and run
Setup complexity: low.
clawhub skill install s172wxfd0fqdaz4f995nwwmvjx84xb1e:sitiantai-xiangtuie- Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
- Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.
Contract: missing
curl -s "https://www.xpersona.co/api/v1/agents/clawhub-henrryjoke-sitiantai-xiangtuie/snapshot"
Documentation
CLAWHUB
159,902 characters of source documentation, loaded on request.
Extracted files
5 files captured from the source.
SKILL.md
---
name: jiegua
name_en: hexagram-interpreter
description: "解卦——四象合参·象推演系统。基于梅花易数+六爻为主体、六壬/奇门为辅助触发、类象知识库展开的符号推演 Skill。不做吉凶判断,展开丰富可能性,启发用户自主决策。"
description_en: "Hexagram Interpreter — Four-Element Symbol Deduction System. Based on Plum Blossom Numerology + Six Lines as primary methods, with Six Ren and Qimen as supplementary triggers. A symbolic deduction Skill that unfolds possibilities instead of making fortune-telling verdicts."
description_fr: "Interprète d'hexagramme — système de déduction symbolique à synthèse quadruple. Basé sur la numérologie des fleurs de prunier et les six lignes, avec Six Ren et Qi Men comme déclencheurs auxiliaires. Déploie des possibilités sans porter de jugement."
description_es: "Intérprete de hexagramas — sistema de deducción simbólica de síntesis cuádruple. Basado en la numerología de ciruela y seis líneas, con Seis Ren y Qi Men como disparadores auxiliares. Despliega posibilidades sin emitir veredictos."
triggers: ["解卦", "算一卦", "问卦", "卜问", "分析这事", "推演一下", "象推演", "四象合参", "divination", "iching", "hexagram reading", "fortune reading", "symbolic deduction", "lecture d'hexagramme", "I Ching", "adivinación", "hexagrama", "lectura de hexagramas"]
---
# 四象合参 · 象推演 Skill
> **核心原则**:将有限术数符号展开为丰富的现实可能性,启发用户自主判断。
> **不做确定性吉凶结论,不做"宜/忌"指令。**
---
## 1. 角色设定
你是"象推演师"——司天监象推演引擎的核心 AI 接口。
| 你做 | 你不做 |
|---|---|
| 展开卦象为多种现实可能性 | 断言吉凶祸福 |
| 关联用户语境进行象的翻译 | 替用户做决定 |
| 用"可能""或许""含有…之象"表达 | 用"一定""必然""大吉""大凶" |
| 收集用户反馈持续优化 | 忽略用户指出的错误 |
---
## 2. 输入协议
用户输入包含以下字段(可部分省略,由 AI 推断补全):
```
时间:YYYY-MM-DD HH:MM (默认当前时间,Asia/Shanghai)
事项:自然语言描述(如"这个合作项目进展如何?")
外应:可选,用户提供的环境感知(如"刚下大雨""听到鸟叫")
```
---
## 3. 推演工作流(Phase 1: Skill + 脚本)
### 第零步:信息确认
若用户输入不完整(缺时间/事项),先引导补充。
确认格式:
```
📅 时间确认:YYYY年MM月DD日 HH:MM(当前/指定)
🔍 事项确认:[用户描述]
👁 外应有/无:[如有] xxx
```
### 第一步:Layer 0 — 干支历法(自动执行)
调用历法计算,输出:
- 八字(年柱/月柱/日柱/时柱)
- 节气信息(当前节气、前后节气)
- 旬空、月建
### 第二步:Layer 1 — 梅花易数(自动执行)
调用历法脚本(scripts/calendar.py + meihua.py)计算梅花易数起卦结果。
**输出字段**:
```python
{
"卦名": "风天小畜", # 本卦名
"上卦": "巽", "下卦": "乾", # 上下卦名
"体卦": "巽", "用卦": "乾", # 动爻≤3体为上卦,>3体为下卦
"变爻": 3, # 1-6,第几爻动
"变卦": {"上卦":"巽", "下卦":"兑", "卦名":"风泽中孚"},
"互卦": {"上互":"离", "下互":"兑", "卦名":"风天小畜"},
"错卦": {"上卦":"震", "下卦":"坤", "卦名":"震坤卦"},
"综卦": {"上卦":"乾", "下卦":"兑", "卦名":"天泽履"},
}
```
**辅助函数**:`gua_to_lines(上卦名, 下卦名) → [1-4]*6` 将卦名转为六爻数字编码供六爻模块使用。
### 第三步:Layer 2 — 六爻纳甲(自动执行)
调用六爻纳甲脚本(scripts/liuyao.py),传入卦象编码、时间、事项。
**输出字段**:
```python
{
"本卦": {
"名": "风天小畜", "宫": "巽宫", "类型": "一世卦",
"世爻": 0, "应爻": 3,
"爻": [
{"六亲":"官鬼", "地支":"卯", "五行":"木", "六兽":"勾陈"}, # 爻0
... # 爻1-5
]
},
"动爻": [], # 本卦中动爻的索引列表
"变卦": {...}, # 动爻产生的变卦(同结构)
"旬空": ["戌", "亥"],
"月建": "巳",
}
```
### 第四步:Layer 5 — ★ 象展开(核心)
调用 `scripts/xiang_query.py` SDK,对 Layer 1+2 输出的每一个关键符号展开为丰富语义:
**SDK 核心方法**:
```python
from xiang_query import XiangQuery
q = XiangQuery()
# 精确查询:符号 + 语境 + 维度
README.md
# 解卦 | Hexagram Interpreter
**以代码演绎象数,用推演替代断言**
**展开可能性,而非给出结论。**
---
## 📢 这是什么?
**「解卦·象推演」** 是一个基于中国传统易学(梅花易数 + 六爻纳甲)的符号推演系统。它不是一个"算命工具",而是一个**启发式思考助手**——帮你从卦象符号中展开多种可能性,让你自己判断。
> 不做吉凶断言,不替你做决定。只展开"可能""或许""含有…之象"。
---
## 🎯 谁可以用?在哪些平台可以用?
**任何支持 OpenClaw Skill 格式的 AI Agent 都可以使用本技能。**
包括但不限于:
| 平台/工具 | 是否兼容 | 说明 |
|-----------|---------|------|
| **WorkBuddy**(腾讯小龙虾) | ✅ | 直接安装使用 |
| **OpenClaw** | ✅ | 标准兼容 |
| **Hermes Agent** | ✅ | 支持 OpenClaw 格式 |
| **QClaw** | ✅ | 支持 OpenClaw 格式 |
| **ArcLaw** | ✅ | 支持 OpenClaw 格式 |
| **微信**(接入 AI Agent 的工具) | ✅ | 若使用的 AI 支持 OpenClaw Skill 则可安装 |
| **小红书**(AI 助手类工具) | ✅ | 同上 |
| **X / Twitter**(AI Bot 工具) | ✅ | 同上 |
| **TikTok**(AI 创作助手) | ✅ | 同上 |
| **其他 OpenClaw 兼容 Agent** | ✅ | 只要支持 OpenClaw Skill 格式均可 |
简而言之:**如果你用的 AI 助手支持安装 Skill/技能,并且兼容 OpenClaw 标准,就能用这个。**
---
## ⚡ 30 秒快速安装
### 方式一:通过 ClawHub(推荐,最简单)
1. 打开你的 AI Agent 工具的 Skill/技能 管理页面
2. 搜索 **"sitiantai-xiangtuie"** 或 **"解卦"**
3. 点击安装
4. 或者直接访问链接:https://clawhub.ai/skills/sitiantai-xiangtuie
5. 点击 **Install** 按钮
### 方式二:CLI 命令(技术用户)
```bash
# 使用 OpenClaw CLI 安装
openclaw skills install sitiantai-xiangtuie
# 或使用 ClawHub CLI
clawhub skill install sitiantai-xiangtuie
```
---
## 🗣️ 怎么用?直接跟 AI 说这些话
安装后,在对话中直接说以下**触发词**,AI 就能自动启动解卦推演:
**中文触发词:**
> 解卦、算一卦、问卦、卜问、分析这事、推演一下、象推演、四象合参
**英文/其他语言触发词:**
> divination, iching, hexagram reading, symbolic deduction, lecture d'hexagramme, adivinación, lectura de hexagramas
### 完整对话示例
> **你:** 算一卦,帮我看一下最近的事业发展
>
> **AI(推演师):**
> 📅 时间确认:2026年5月17日 12:44(当前时间)
> 🔍 事项确认:事业发展
> 👁 外应:无
>
> [开始推演…]
> 📋 **卦象总览**
> 本卦:风天小畜(巽上乾下)
> 变爻:第3爻
> ...
>
> 💡 **启发提问:**
> - 在工作中有没有遇到需要耐心积累的瓶颈?
> - 当前最大的阻力来自外部环境还是内部团队?
---
## ⚠️ 重要:起卦方式说明
本 Skill 支持两种起卦方式,但**进阶功能有差异**,请按你的实际情况选择:
### 🔵 方式一:日期起卦(推荐,支持进阶)
由 AI 根据当前日期自动计算卦象,无需你提供任何卦象信息。
```text
你只需说:算一卦,看看我和这个合作项目的发展
```
**支持进阶功能 ✅**:
- ✅ 可使用大六壬(时空脉络分析)
- ✅ 可使用奇门遁甲(空间方位分析)
基础推演完成后,AI 会主动询问是否启动进阶推演:
> 📊 基础推演已生成。需要更多角度吗?
> → 想了解发展脉络? [触发大六壬]
> → 想了解空间方位? [触发奇门遁甲]
> → 已经够了
### 🟢 方式二:人工起卦(不支持进阶)
如果你已经通过其他方式得到了卦象(如掷铜钱、数字起卦、外应取卦等),可以手动输入:
```text
我掷铜钱得到了风天小畜卦,第3爻动,帮我推演一下最近的财运
```
或
```text
用数字3和8起卦,看看这次出行怎么样
```
**不支持进阶功能 ❌**:
- ❌ 无法使用大六壬
- ❌ 无法使用奇门遁甲
- 仅进行基础推演(梅花 + 六爻 + 类象展开)
> 💡 **为什么?** 六壬和奇门需要精确的日期/时间/空间数据才能计算,人工起卦时缺乏这些基础信息,无法进行准确计算。
---
## 🖥️ 专业用户配置说明
### API 集成
本系统的核心算法(旺衰精算、象展开权重、四象合参融合)通过 API 提供服务,不在此仓库中公开源码。
详见 [API.md](./API.md) 了解完整的接口文档和使用方式。
### 本地数据使用
类象知识库(`data/xiang/` 下的 28 个 JSON 文件)以 CC BY-NC-SA 4.0 许可证公开,可直接用于研究和非商业项目。使用方法:
```python
import json
import os
xiang_dir = "data/xiang"
for category in os.listdir(xiang_dir):
for filename in os.listdir(f"{xiang_dir}/{category}"):
with open(f"{xiang_dir}/{category}/{filename}") as f:
data = json.load(f)
print(f"{data['symbol']}: {data['core_properties']}")
```
### 项目结构
```
s_meta.json
{
"ownerId": "kn770tjfp1cq6se7k45h899e2d84wy73",
"slug": "sitiantai-xiangtuie",
"version": "0.9.0",
"publishedAt": 1780459102271
}CHANGELOG.md
# Changelog | 更新日志 本文件遵循 [Keep a Changelog](https://keepachangelog.com/zh-CN/1.1.0/) 规范。 --- ## [v0.8.2] - 2026-05-19 ### 🐛 修复:SKILL.md 世应生克规则缺失导致 AI 分析错误 跨平台 agent(WorkBuddy/ClawHub/SkillHub)在分析世应关系时产生"木克水"误判, 根因是 SKILL.md 缺少世应生克计算方法的明确指令。 #### Fixed / 修复 - **`SKILL.md` Layer 5 新增世应生克规则**: - 明确要求:世应生克必须使用**地支五行**计算,不能用六亲标签 - 附带正确/错误示例对比 - 原理说明:六亲(宫位维度) ≠ 世应生克(地支维度) - 新增推演后验证项 [世应生克检查] #### 错误重现 ``` 用户数据: 世爻=官鬼卯木(木), 应爻=妻财子水(水) AI 误判: "官鬼克妻财" → "木克水" ❌(六亲标签混用) 正确判断: 子水(水)生卯木(木) → "应生世" ✅(地支五行) ``` --- ## [v0.8.1] - 2026-05-19 ### 🐛 修复:六神排列算法(日干起法) 六神排列算法从错误的"日支起法"修正为正确的"日干起法"。 #### Fixed / 修复 - **`scripts/liuyao.py` 六神排列日干修正**: - 原算法:`ZHI_ORDER.index(day_branch) % 6`(按日支起六神,❌ 错误) - 新算法:`GAN_TO_LIUSHOU[day_stem]`(按日干起六神,✅ 正确) - 规则对照:甲乙→青龙、丙丁→朱雀、戊→勾陈、己→螣蛇、庚辛→白虎、壬癸→玄武 #### Changed / 变更 - **`scripts/liuyao.py`**:新增 `GAN_TO_LIUSHOU` 映射字典 - 调用 `_get_liushou_order()` 时传入 `day_stem` 而非 `day_branch` --- ## [v0.8.0] - 2026-05-19 ### 🏗️ 架构重构:放弃 PyArmor 混淆,完全开源 本版本彻底删除 PyArmor 混淆保护层,恢复所有核心算法为明文 Python。 解决自 v0.6.0 累积的运行时分发问题,实现全平台零障碍分发。 #### Removed / 删除 - **`scripts/protected/`** — PyArmor 加密保护层,整目录删除 - **`pyarmor_runtime_000000/`** — PyArmor 运行时的二进制文件,整目录删除 #### Added / 新增 - **`scripts/wangshuai_score.py`** — 旺衰评分引擎(明文开源) - 从原内联代码抽取为独立模块 - 月建旺相休囚死 + 日建七效应(临/生/克/冲/合/刑/害)复合评分 - 帝旺、墓库、回头生克、绝地等辅助判断 #### Changed / 变更 - **`scripts/liuyao.py`**:导入路径从 `protected.wangshuai_score` 改为 `wangshuai_score` - **`scripts/xiang_query.py`**:恢复完整实现(原为薄包装器委托给 protected/xiang_engine.py) - **`SKILL.md`**:更新技术架构图,移除 protected 保护层 - **`.gitignore`**:移除 `*.pyd` 排除规则(不再需要) #### Fixed / 修复 - **PyArmor 运行时分发缺陷**(自 v0.6.0 累积): - `pyarmor_runtime.pyd` 因 `.gitignore` 排除从未被提交到仓库 - v0.6.0 和 v0.7.0 的所有安装均缺失运行时文件,排盘功能完全不可用 - 影响 ClawHub 538 次安装 #### 全平台分发 - ✅ **GitHub**:纯文本,无二进制文件限制 - ✅ **ClawHub**:纯文本包,安装即用 - ✅ **SkillHub**:纯文本,支持完整功能 --- ## [v0.7.0] - 2026-05-19 ### 🔧 排盘核心全面修复:纳甲/六亲/卦宫/编码体系 六爻排盘系统存在自最初版本以来的多项基础数据与算法错误,导致排盘结果与正统京房纳甲体系不符。 本版本对排盘核心进行了系统性审查和全面修复,经验证水地比→地水师排盘结果与标准排盘图片完全一致。 #### Fixed / 修复 - **`scripts/liuyao.py` TRIGRAM_TO_NAJIA 映射错误(6/8 错)**: - 原6个八卦→卦宫映射与 `_hex_to_binary` 输出约定不一致 - 修正为:`(1,1,1)→乾宫, (1,1,0)→兑宫, (1,0,1)→离宫, (1,0,0)→震宫, (0,1,1)→巽宫, (0,1,0)→坎宫, (0,0,1)→艮宫, (0,0,0)→坤宫` - **`scripts/liuyao.py` HEXAGRAM_EARTHLY_BRANCH 纳甲数据完全错误**: - 原表仅12个地支机械分配到8宫,不符合京房纳甲体系 - 替换为 `NAJIA_INNER`(内卦纳甲)+ `NAJIA_OUTER`(外卦纳甲),按上下卦各自八纯卦纳甲 - **`scripts/liuyao.py` 六亲以世爻五行为本(错误)→ 以卦宫五行为本(正确)**: - 新增 `PALACE_WUXING` 字典(乾宫金、坤宫土、震宫木、巽宫木、坎宫水、离宫火、艮宫土、兑宫金) - 六亲计算统一使用 `palace_wx`(卦宫五行)而非 `shi_wx`(世爻五行) - **`scripts/liuyao.py` 变卦六亲以变卦世爻五行为本(错误)→ 以本卦卦宫五行为本(正确)**: - 变卦六亲同样以本卦卦宫五行为"我"(传统六爻标准排法) - **`scripts/liuyao.py` HEXAGRAMS 64卦数据重新生成**: - 按八宫世系(本宫→一世→二世→三世→四世→五世→游魂→归魂)程序化生成 - 修正卦名、世应位置、卦类型 - 修正 `_hex_to_binary` 输出与 HEXAGRAMS key 约定一致(1=阳, 0=阴) - **`scripts/liuyao.py` _hex_to_binary 阴阳方向与 HEXA
skill-card.md
## Description: 解卦——四象合参·象推演系统。基于梅花易数+六爻为主体、六壬/奇门为辅助触发、类象知识库展开的符号推演 Skill。不做吉凶判断,展开丰富可能性,启发用户自主决策。 This skill is ready for commercial/non-commercial use. ## Publisher: [henrryjoke](https://clawhub.ai/user/henrryjoke) ### License/Terms of Use: MIT-0 ## Use Case: External users and developers use this skill with OpenClaw-compatible agents to generate symbolic hexagram interpretation reports for reflection and decision support. It emphasizes multiple possibilities and user judgment rather than deterministic fortune-telling verdicts. ### Deployment Geography for Use: Global ## Known Risks and Mitigations: Risk: The skill asks the agent to store feedback and preferences on disk and potentially in global agent memory. Mitigation: Install only when local and global memory storage are acceptable, and avoid including private relationship, health, financial, legal, or third-party details in feedback. Risk: The skill can steer users toward detailed external feedback submissions through GitHub issue links. Mitigation: Treat external feedback links as public or semi-public submissions and avoid sharing sensitive personal details. Risk: Hexagram interpretations may be mistaken for deterministic advice. Mitigation: Keep outputs framed as possible symbolic interpretations, preserve the non-deterministic disclaimer, and encourage users to apply their own judgment. ## Reference(s): - [ClawHub skill page](https://clawhub.ai/henrryjoke/skills/sitiantai-xiangtuie) - [Project homepage](https://github.com/henrryjoke/sitiantai-xiangtuie) - [README](README.md) - [CHANGELOG](CHANGELOG.md) ## Skill Output: **Output Type(s):** [text, markdown, code, shell commands, guidance] **Output Format:** [Markdown reports with structured sections, optional code snippets, and user-facing guidance] **Output Parameters:** [1D] **Other Properties Related to Output:** [May ask clarifying questions, execute bundled Python calculation scripts, and adapt report language to the user's input language.] ## Skill Version(s): 0.9.0 (source: ClawHub release evidence) ## Ethical Considerations: Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.
AionUi
Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!
activepieces
AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
cherry-studio
AI productivity studio with smart chat, autonomous agents, and 300+ assistants.
CopilotKit
The Frontend for Agents & Generative UI. React + Angular
Machine-readable data
The same record, as JSON, for agents and crawlers.
{
"facts": [
{
"factKey": "vendor",
"category": "vendor",
"label": "Vendor",
"value": "Clawhub",
"href": "https://clawhub.ai/henrryjoke/skills/sitiantai-xiangtuie",
"sourceUrl": "https://clawhub.ai/henrryjoke/skills/sitiantai-xiangtuie",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-09T21:37:53.170Z",
"isPublic": true
},
{
"factKey": "protocols",
"category": "compatibility",
"label": "Protocol compatibility",
"value": "OpenClaw",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-henrryjoke-sitiantai-xiangtuie/contract",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-henrryjoke-sitiantai-xiangtuie/contract",
"sourceType": "contract",
"confidence": "medium",
"observedAt": "2026-10-09T21:37:53.170Z",
"isPublic": true
},
{
"factKey": "traction",
"category": "adoption",
"label": "Adoption signal",
"value": "2K downloads",
"href": "https://clawhub.ai/henrryjoke/sitiantai-xiangtuie",
"sourceUrl": "https://clawhub.ai/henrryjoke/sitiantai-xiangtuie",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-09T21:37:53.170Z",
"isPublic": true
},
{
"factKey": "latest_release",
"category": "release",
"label": "Latest release",
"value": "0.9.0",
"href": "https://clawhub.ai/henrryjoke/sitiantai-xiangtuie",
"sourceUrl": "https://clawhub.ai/henrryjoke/sitiantai-xiangtuie",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-06-03T03:58:22.271Z",
"isPublic": true
},
{
"factKey": "handshake_status",
"category": "security",
"label": "Handshake status",
"value": "UNKNOWN",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-henrryjoke-sitiantai-xiangtuie/trust",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-henrryjoke-sitiantai-xiangtuie/trust",
"sourceType": "trust",
"confidence": "medium",
"observedAt": null,
"isPublic": true
}
],
"events": [
{
"eventType": "release",
"title": "Release 0.9.0",
"description": "v0.9.0: 修正显示名称,添加谛观品牌字号",
"href": "https://clawhub.ai/henrryjoke/sitiantai-xiangtuie",
"sourceUrl": "https://clawhub.ai/henrryjoke/sitiantai-xiangtuie",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-06-03T03:58:22.271Z",
"isPublic": true
}
]
}Record generated Oct 10, 2026.
