Skip to content

Commit fda3e42

Browse files
committed
Add chinese-divination: Plum Blossom divination Mini App
梅花易数起卦与解卦。时间、数字、铜钱摇卦、每日一卦四种起法,按体用生克、京房八宫、 纳支、旬空月破、爻之合刑等传统规则断吉凶,落到所问之事上给应期与宜忌;内置六十四卦 全文(卦辞、彖传、三百八十四条爻辞与小象传)与干支时辰历法。既能在页面起卦,也能由 Agent 经 MCP 端点在对话里主动起卦。 安全与边界: - 全部计算在本机完成:不联网、不调模型、不 spawn 进程,不读包目录以外的任何文件 - 卦历存在 Host 分配的 dataDir,原子写入,上限 500 条;坏盘另存而非删除 - 请求只认回环 Host/Origin,挡住 DNS rebinding 与跨源读取;403 不回显请求方 - 日志只记错误码,不记 error.message——fs 报错会把绝对路径与系统用户名带出去 平台与验证: - 三个平台(Windows / macOS / Linux)均已实跑:安装、经 Agent 打开、四个分区走通 - 路径审计 0 问题:可移植路径、Windows 保留名、UTF-8 无 BOM 无 CRLF、大小写、 import 解析、最坏 dataDir 路径 112 字符(MAX_PATH 260 内) - 228 项单元测试,在 UTC-8 到 UTC+14 四个时区与 C locale 下均为 228 通过 0 失败 - 冒烟脚本真起 start(context),83 项覆盖页面、四种起法、卦历增删查、同秒 id 撞车、 坏盘恢复、MCP 全路径与 dispose 幂等 - 尚未核对的一项:760px 断点以下的窄屏版式
1 parent d9d9523 commit fda3e42

27 files changed

Lines changed: 19482 additions & 0 deletions

‎README.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ The MiniMax Code Agent communicates through the host MCP client. Business reques
6464
| [Model Manager](plugins/ocoomber/openrouter-model-manager/) | Browse, search, and enable/disable models in your `~/.minimax/config.yaml` with instant save, bulk actions, one-click undo, and automatic backups | [ocoomber](https://github.com/ocoomber) |
6565
| [Self-drive Route Planner](plugins/hanzijie/self-drive-route-planner/) | **Official plugin** for planning driving routes with place search, route alternatives, demo mode, and Xiaohongshu 3:4 itinerary cards | [HanZijie](https://github.com/HanZijie) |
6666
| [Git Commit Tree](plugins/microbiosis/git-tree/) | Inspect a local Git repo's commit history with a swim-lane graph, branches/tags, commit detail, and per-file change stats; persisted filter preferences and optional auto-refresh | [Microbiosis](https://github.com/Microbiosis) |
67+
| [灵签易占 / Chinese Divination](plugins/weekbin/chinese-divination/) | Cast hexagrams with the Plum Blossom method (time, number, three-coin, or daily), read the result through the classical body/use rules, and browse all sixty-four hexagrams with a ganzhi almanac | [weekbin](https://github.com/weekbin) |
6768

6869
<details>
6970
<summary>Preview: Token Usage Board</summary>

‎README.zh-CN.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ MiniMax Code Agent 通过宿主 MCP 客户端与 MiniApp 协作。业务请求
6565
| [模型管理器](plugins/ocoomber/openrouter-model-manager/README.zh-CN.md) | 浏览、搜索并启用/停用 `~/.minimax/config.yaml` 中的模型,支持即时保存、批量操作、一键撤销和自动备份 | [ocoomber](https://github.com/ocoomber) |
6666
| [自驾规划](plugins/hanzijie/self-drive-route-planner/README.zh-CN.md) | 【官方插件】规划自驾路线、地点搜索、候选算路与小红书 3:4 行程图;支持演示模式 | [HanZijie](https://github.com/HanZijie) |
6767
| [Git 提交树](plugins/microbiosis/git-tree/README.zh-CN.md) | 查看本机 Git 仓库的提交历史:泳道提交图、分支/标签、提交详情与文件改动统计,支持筛选偏好持久化与可选自动刷新 | [Microbiosis](https://github.com/Microbiosis) |
68+
| [灵签易占](plugins/weekbin/chinese-divination/README.zh-CN.md) | 梅花易数起卦与解卦:时间、数字、铜钱摇卦、每日一卦四法起卦,按体用生克断吉凶,另备六十四卦全文与干支历法 | [weekbin](https://github.com/weekbin) |
6869

6970
<details>
7071
<summary>预览:Token 用量看板</summary>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"schemaVersion": 1,
3+
"name": "chinese-divination",
4+
"displayName": "灵签易占",
5+
"version": "1.1.0",
6+
"description": "梅花易数起卦与解卦:时间、数字、铜钱摇卦、每日一卦四种起法,问事定事类与应期,含体用生克断卦、六十四卦全文与干支时辰历法。既能打开页面起卦,也能在对话里由 Agent 主动调用。",
7+
"author": "weekbin",
8+
"icon": "icon.png",
9+
"category": "Other",
10+
"exampleQueries": ["打开灵签易占", "帮我起一卦", "帮我看看这份offer该不该接", "掷铜钱起一卦", "查一下今天黄历"],
11+
"apps": [],
12+
"mcpServers": ["servers.mcp.json"],
13+
"skills": ["skills/divination/SKILL.md"]
14+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2026 weekbin
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

‎plugins/weekbin/chinese-divination/README.md‎

Lines changed: 1721 additions & 0 deletions
Large diffs are not rendered by default.

‎plugins/weekbin/chinese-divination/README.zh-CN.md‎

Lines changed: 1298 additions & 0 deletions
Large diffs are not rendered by default.
140 KB
Loading

0 commit comments

Comments
 (0)