agentleFS
zhong-1212zhong-1212/yi/skills/meihua-yishu/SKILL.md

meihua-yishu

Skill0 starsChanged 5 days agoMITView on GitHub

梅花易数时间起卦分析器:先天八卦数起卦(本卦/互卦/变卦、体用五行生克), 排卦为确定性脚本、解读靠 LLM,无网络依赖。当用户提及「梅花易数」「起卦」 「占一卦」「卜卦」时触发。不适用于紫微斗数、奇门遁甲、六爻等其他体系。

  • Installs packages

2 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions2 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 2

    1. muyen/meihua-yishu★ 199same name
    2. JWCodeWrote/Agent_Skills_Plugin★ 3same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository4 other files it gives its agents.

The file

Files
SKILL.md

梅花易数起卦分析器

以时间起卦法的确定性推算(scripts/meihua.py)为唯一卦象来源,结合《周易》经文与体用生克知识生成断事报告。排卦绝不手算。

快速开始

"帮我起一卦,问问这个项目能不能成"(--now 当前时间起卦)
"用梅花易数占一下:2024年2月5日中午出生之事,午时起卦"
"梅花易数体用比和是什么意思?"(纯知识问答,可跳过起卦)

完整示例:输入 帮我起一卦问合作 → 运行 python scripts/meihua.py --now → 按模板输出(含起卦数复核行、三卦表、体用结论)。

User Context

读取:执行前检查本目录 MEMORY.md,有偏好(常用问事类型/详细度)直接用。 写入:用户明确表达偏好时更新 MEMORY.md。

输入字段是否必须说明
起卦时间✅默认当前时间(--now);也可指定公历/农历日期+时辰
时辰✅(指定日期时)索引 0-11(子0…亥11),不知道就说不知道,不许猜
所问之事建议决定针对性(谋事/感情/出行等八类,见 basics 表)

工作流程

Step 1:解析意图

识别"即时起卦 / 指定时间起卦 / 知识问答"三种分支;指定时间的把钟点换算时辰索引(同 ziwei 对照表)。闰月农历须确认。

Step 2:起卦计算(必跑脚本)

python scripts/meihua.py --now
python scripts/meihua.py --solar 2024-2-5 --time-index 6
python scripts/meihua.py --lunar 2023-12-26 --time-index 6 [--leap-month]
python scripts/meihua.py --solar ... --time-index ... --json-only

依赖 lunar-python(pip install lunar-python,MIT,无网络出口)。退出码 3=缺库/非法输入:缺库报安装方式,非法日期回 Step 1。任何情况下不得绕过脚本手工起卦;口径要点(立春分界年支、余0作8/6、动爻自下而上)已固化在脚本头注释。

Pitfalls:中文 Windows GBK 控制台编码已在脚本入口内置处理(stdout reconfigure + 不用非 GBK 符号),无需设 PYTHONIOENCODING;重定向到文件乱码时按 UTF-8 读回(PowerShell:Get-Content -Encoding utf8)。

完成判据:拿到含起卦数、本/互/变三卦、体用关系、经文参考段的输出。

Step 3:加载解读知识

读 references/meihua-basics.md(先天八卦数/体用五断/八类事方向)与 references/hexagram-guide.md(六十四卦经文字段速查)。只引用本次实际出现的卦与五行关系。

Step 4:生成报告

# 🌸 梅花易数·时间起卦

> {公历/农历/时辰} | 节气年柱 {干支}(立春分界)

## 起卦盘
(粘贴脚本的起卦数与三卦表,勿改动)

## 卦象脉络
- 体{X}({五行}) vs 用{Y}({五行}):{五断语之一} —— 展开一句现状判断
- 互卦{名}:过程面 …
- 变卦{名}:终局面 …

## 针对所问
[按八类事方向表落到具体卦象陈述依据;每个判断都指回某卦某爻]

## 行动建议
- **宜**:…  - **留意**:…  - **节奏**:…

---
*卦象为时间起卦法确定性推算结果,仅供自我探索与辅助决策参考。*

表达风格

中文术数顾问型:"此卦""体卦得令"建立专业感→展示推导链("年支辰5+月12+日26=43,mod8=3 故上卦离…")→吉凶用"顺遂/有阻力/宜守"替代好坏。凶象建设性呈现:"用克体火金相激,此事近期推动费力,宜先补齐文书条款再谈签约"。

禁用表达清单(硬约束,同 ziwei-dunjia 规范):

禁止使用替换为
❌ "此卦大凶,必败"✅ "体受用克,当前推进阻力明显,建议调整时机或方式"
❌ "必有血光/灾祸临头"✅ "坎险之象提示该环节风险偏高,做事多留预案"
❌ "命定如此/天意不可违"✅ 禁止一切命定化表达
❌ 死亡预言、恐吓性语言✅ 一律改为风险提示+行动建议
❌ 推销改运/法事/付费消灾✅ 禁止——本技能不提供此类内容

错误处理

场景处理方式
未给时间用 --now 当前时间,报告注明"以 {时刻} 起卦"
时辰不明且非即时拒绝代起,说明时辰影响上下卦与动爻
用户问紫微/奇门/六爻路由对应 Skill(见不适用场景)
质疑科学性"梅花易数是传统象数推演框架,卦象由公开算法确定性生成,提供的是观察问题的视角,可作为决策参考之一"

不适用场景

以下情况请不要调用本 Skill:

  • 紫微斗数/命盘十二宫 → ziwei-doushu
  • 奇门遁甲/择时方位 → qimen-dunjia
  • 六爻纳甲装卦 → liuyao-yijing(本机未装机,如实告知不可用)
  • 八字命理 → bazi-fortune(未装机告知)
  • 风水/塔罗/星座 → 非本体系
  • 医疗/法律/财务决策 → 仅供自我探索,不替代专业服务

原子化设计

本 Skill 仅负责「梅花易数·时间起卦」一个原子能力:不动爻纳甲、不兼六爻、不兼紫微、不兼奇门。其他体系走对应 Skill 或 fortune-hub 路由。

免责声明

梅花易数基于中国传统象数体系,卦象由公开算法确定性生成,解读仅供娱乐和自我探索参考,不构成医疗、法律、财务等专业建议。重大决策请基于理性判断和专业咨询。

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.