Skip to content

Commit 9d38eb1

Browse files
committed
Update Matrix economy and skills docs
1 parent 133c495 commit 9d38eb1

12 files changed

Lines changed: 191 additions & 18 deletions

File tree

docs/matrix-agent-skills/direct-link-examples.mdx

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@ Then generate a MatrixShop config pack for a survival server with:
3131
- ChestShop enabled
3232
```
3333

34+
如果你要覆盖整个 Matrix 系列配置与 Kether 脚本,直接发这个:
35+
36+
```text
37+
Install and use this Matrix Series config skill:
38+
https://github.com/54895y/MatrixAgentSkills/tree/main/matrix-series-config
39+
```
40+
3441
## Claude / Gemini / Cline / Roo / Continue
3542

3643
这类 agent 更适合直接吃 raw prompt。
@@ -65,6 +72,19 @@ Migrate this UltimateShop config into MatrixShop SystemShop files.
6572
Keep the result in current MatrixShop structure.
6673
```
6774

75+
如果你的目标是同时生成 `MatrixLib / MatrixShop / MatrixStorage` 配置和 Kether 脚本,可以直接发:
76+
77+
```text
78+
Use this Matrix Series config prompt pack:
79+
https://raw.githubusercontent.com/54895y/MatrixAgentSkills/main/portable/matrix-series-config.md
80+
81+
Generate:
82+
- MatrixLib/Economy/currency.yml
83+
- MatrixStorage/Warehouse/settings.yml unlock rules
84+
- MatrixShop SystemShop and Auction currency references
85+
- related Kether conditions
86+
```
87+
6888
## AIChat
6989

7090
AIChat 不建议直接投 skill,建议导入知识库。
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
title: Matrix Series Config
3+
description: 覆盖 MatrixLib、MatrixShop、MatrixStorage、MatrixAuth、MatrixCook 与 Kether 的统一配置 skill。
4+
---
5+
6+
# Matrix Series Config
7+
8+
`matrix-series-config``MatrixAgentSkills` 中的新通用 skill。
9+
10+
它的目标不是只生成 `MatrixShop`,而是处理整个 Matrix 系列的配置工作:
11+
12+
- `MatrixLib`
13+
- `MatrixShop`
14+
- `MatrixStorage`
15+
- `MatrixAuth`
16+
- `MatrixCook`
17+
18+
## 能做什么
19+
20+
- 生成或修改 Matrix 系列 YAML 配置
21+
- 生成共享货币文件 `MatrixLib/Economy/currency.yml`
22+
- 输出 `MatrixStorage` 的邮箱/仓库解锁规则
23+
- 输出 `MatrixShop` 的商店配置与货币 key 引用
24+
- 输出 `MatrixAuth``MatrixCook` 的基础配置
25+
- 生成可落地的 Kether 条件与动作脚本
26+
27+
## 当前关键规则
28+
29+
- `MatrixLib` 是共享货币定义入口
30+
- `MatrixShop``MatrixStorage` 只引用货币 key
31+
- `MatrixStorage` 支持多条件、多价格、多货币解锁
32+
- Kether 只在当前插件真实支持的配置区块里输出
33+
34+
## 适合的请求
35+
36+
- “帮我生成 MatrixLib、MatrixShop、MatrixStorage 三端同步的货币配置”
37+
- “帮我写 MatrixStorage 的邮箱扩容和仓库扩容规则”
38+
- “给我一套 Matrix 系列配置,并带上 Kether 条件”
39+
- “把多个 Matrix 插件的配置一起整理成当前结构”

docs/matrix-agent-skills/overview.mdx

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ description: Matrix 系列插件的公开 skill、prompt pack 与知识库仓库
1414
当前首个可用包:
1515

1616
- `matrixshop-config`
17+
- `matrix-series-config`
1718

1819
## 目标
1920

@@ -29,14 +30,17 @@ description: Matrix 系列插件的公开 skill、prompt pack 与知识库仓库
2930

3031
### 原生 skill
3132

33+
- `matrix-series-config`
3234
- `matrixshop-config`
3335

3436
### 通用 prompt
3537

38+
- `portable/matrix-series-config.md`
3639
- `portable/matrixshop-config.md`
3740

3841
### AIChat 知识库
3942

43+
- `aichat/matrix-series-config-kb.md`
4044
- `aichat/matrixshop-config-kb.md`
4145

4246
## 适用范围
@@ -50,11 +54,21 @@ description: Matrix 系列插件的公开 skill、prompt pack 与知识库仓库
5054
- `SystemShop / PlayerShop / GlobalMarket / Auction / ChestShop / Transaction / Cart / Record`
5155
- MatrixShop 当前支持的配置字段和输出约束
5256

57+
当前 `matrix-series-config` 进一步覆盖:
58+
59+
- `MatrixLib` 共享货币配置
60+
- `MatrixShop` 当前配置模型
61+
- `MatrixStorage` 邮箱、仓库、扩容解锁与方块仓库配置
62+
- `MatrixAuth` 基础配置、向导和 EasyBot 配置
63+
- `MatrixCook` 锅具、配方、燃料和分类配置
64+
- Matrix 系列可落地的 Kether 条件与动作脚本
65+
5366
## 推荐阅读
5467

5568
1. [按 Agent 安装](./install-by-agent)
5669
2. [直接发给 Agent 的示例](./direct-link-examples)
57-
3. [MatrixShop Config Skill](./matrixshop-config)
58-
4. [迁移其他商店插件配置](./migrating-other-shop-plugins)
59-
5. [防经济膨胀提示词模板](./anti-inflation-prompt-templates)
60-
6. [AIChat 知识库入口](./aichat-knowledge-base)
70+
3. [Matrix Series Config Skill](./matrix-series-config)
71+
4. [MatrixShop Config Skill](./matrixshop-config)
72+
5. [迁移其他商店插件配置](./migrating-other-shop-plugins)
73+
6. [防经济膨胀提示词模板](./anti-inflation-prompt-templates)
74+
7. [AIChat 知识库入口](./aichat-knowledge-base)

docs/matrixshop/configuration/configuration-structure.mdx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,13 @@ Database:
111111

112112
### `Economy/currency.yml`
113113

114-
这是 MatrixShop 当前的统一货币定义文件。
114+
这是 Matrix 系列当前的共享货币定义文件,主入口位于:
115+
116+
```text
117+
plugins/MatrixLib/Economy/currency.yml
118+
```
119+
120+
运行时会同步到 `MatrixShop` 与 `MatrixStorage` 的同路径文件。
115121

116122
```yaml
117123
vault:

docs/matrixshop/configuration/economy-reference.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
---
22
title: 货币字段参考
3-
description: Economy/currency.yml 的字段、动作语法和占位符说明。
3+
description: MatrixLib 共享货币配置的字段、动作语法和占位符说明。
44
slug: /matrixshop/economy-reference
55
sidebar_position: 3
66
---
77

88
# 货币字段参考
99

10-
这页只讲 `plugins/MatrixShop/Economy/currency.yml` 的字段规则。
10+
这页只讲 `plugins/MatrixLib/Economy/currency.yml` 的字段规则。
11+
运行时它会同步到 `MatrixShop``MatrixStorage` 的同路径文件。
1112
如果你想直接照抄配置,请看 [经济配置实战示例](./economy-examples)
1213

1314
## 文件结构

docs/matrixshop/configuration/economy.mdx

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ sidebar_position: 2
77

88
# 经济模块
99

10-
MatrixShop 当前已经引入独立的经济模块,用来统一管理货币定义和交易动作
10+
MatrixShop 当前通过 `MatrixLib` 的共享经济模块统一管理货币定义和交易动作
1111

1212
它和旧版“每个商店自己随便写货币逻辑”的思路不同,当前版本采用的是:
1313

@@ -18,7 +18,8 @@ MatrixShop 当前已经引入独立的经济模块,用来统一管理货币定
1818
## 核心结论
1919

2020
- `Economy` 是核心模块,始终启用,不支持关闭。
21-
- 默认货币定义文件是 `plugins/MatrixShop/Economy/currency.yml`
21+
- 默认货币定义文件是 `plugins/MatrixLib/Economy/currency.yml`
22+
- 运行时会同步到 `plugins/MatrixShop/Economy/currency.yml``plugins/MatrixStorage/Economy/currency.yml`
2223
- 支持的货币模式:
2324
- `vault`
2425
- `playerpoints`
@@ -33,7 +34,7 @@ MatrixShop 当前已经引入独立的经济模块,用来统一管理货币定
3334
## 默认文件
3435

3536
```text
36-
plugins/MatrixShop/Economy/currency.yml
37+
plugins/MatrixLib/Economy/currency.yml
3738
```
3839

3940
默认资源示例:
@@ -237,7 +238,7 @@ Currency:
237238

238239
推荐做法是:
239240

240-
1. 在 `Economy/currency.yml` 里统一定义货币
241+
1. 在 `MatrixLib/Economy/currency.yml` 里统一定义货币
241242
2. 在模块、商店或商品里只写 key
242243

243244
也就是说,优先写:
@@ -249,6 +250,16 @@ Currency:
249250

250251
而不是在每个商店文件里重复写整段货币动作。
251252

253+
## 三端同步
254+
255+
当前货币配置会在运行时同步以下三个文件:
256+
257+
- `plugins/MatrixLib/Economy/currency.yml`
258+
- `plugins/MatrixShop/Economy/currency.yml`
259+
- `plugins/MatrixStorage/Economy/currency.yml`
260+
261+
推荐把 `MatrixLib` 视为主入口,但如果你修改了三者中的任意一份,再执行重载,也会按最新修改时间重新同步。
262+
252263
## 管理与排查
253264

254265
建议先执行:

docs/matrixshop/getting-started/faq.mdx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,17 @@ sidebar_position: 3
99

1010
## 现在货币应该写在哪里
1111

12-
当前版本已经重新引入统一货币定义文件
12+
当前版本已经把统一货币定义入口收敛到 `MatrixLib`
1313

1414
```text
15-
plugins/MatrixShop/Economy/currency.yml
15+
plugins/MatrixLib/Economy/currency.yml
1616
```
1717

18+
运行时会同步到:
19+
20+
- `plugins/MatrixShop/Economy/currency.yml`
21+
- `plugins/MatrixStorage/Economy/currency.yml`
22+
1823
推荐写法是引用货币 key,而不是在每个业务配置里重复写整段货币逻辑。
1924

2025
优先级如下:

docs/matrixshop/getting-started/quick-start.mdx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ sidebar_position: 1
1212
1.`MatrixShop.jar` 放入服务端 `plugins/` 目录。
1313
2. 如果你准备使用 `vault` 货币,确保服务器安装了可用的 Vault 经济提供者。
1414
3. 启动一次服务器,让插件生成默认资源文件。
15-
4. 按需修改 `module.yml``database.yml``Economy/currency.yml`
15+
4. 按需修改 `module.yml``database.yml``MatrixLib/Economy/currency.yml`
1616
5. 重新启动,或使用管理员命令重载。
1717

1818
如果你关心统计或隐私说明,继续看:
@@ -21,6 +21,7 @@ sidebar_position: 1
2121

2222
如果你正在从 `1.0.0` 升级,请先阅读:
2323

24+
- [1.6.0 发布说明](./release-notes-1-6-0)
2425
- [1.5.0 发布说明](./release-notes-1-5-0)
2526
- [1.4.0 发布说明](./release-notes-1-4-0)
2627
- [1.3.0 发布说明](./release-notes-1-3-0)
@@ -105,12 +106,14 @@ modules:
105106

106107
### 检查经济模块
107108

108-
默认经济定义文件在
109+
默认共享货币定义文件在
109110

110111
```text
111-
plugins/MatrixShop/Economy/currency.yml
112+
plugins/MatrixLib/Economy/currency.yml
112113
```
113114

115+
运行时它会同步到 `MatrixShop` 和 `MatrixStorage` 的同路径文件。
116+
114117
建议至少确认:
115118

116119
- `vault` 是否可用
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
title: MatrixShop 1.6.0
3+
description: MatrixShop 1.6.0 的共享货币模块迁移、MatrixLib 依赖升级与测试结果。
4+
slug: /matrixshop/release-notes-1-6-0
5+
---
6+
7+
# MatrixShop 1.6.0
8+
9+
## 变更摘要
10+
11+
- 货币模块正式迁移到 `MatrixLib`
12+
- `MatrixShop` 现在通过共享经济 API 读取货币配置
13+
- 货币定义主入口改为 `plugins/MatrixLib/Economy/currency.yml`
14+
- 运行时会与 `MatrixStorage` 同步 `Economy/currency.yml`
15+
- 依赖 `MatrixLib` 升级到 `1.1.0`
16+
17+
## 配置影响
18+
19+
业务配置里的货币 key 引用规则不变:
20+
21+
- 商品级 `currency`
22+
- 商店级 `Currency.Key`
23+
- 模块级 `Currency.Key`
24+
25+
变化点只在于:
26+
27+
- 货币定义不再以 `MatrixShop` 为主入口
28+
- 不建议继续把整段货币动作逻辑写进商店业务配置
29+
30+
## 测试结果
31+
32+
本次版本已完成:
33+
34+
- `./gradlew build`
35+
- `Paper 1.21.11` smoke boot 通过
36+
37+
额外验证:
38+
39+
- 共享货币文件已在 `MatrixLib / MatrixShop / MatrixStorage` 三端生成并保持一致
40+
41+
## 升级建议
42+
43+
升级到 `1.6.0` 后,优先检查:
44+
45+
1. `MatrixLib` 是否已升级到 `1.1.0`
46+
2. `plugins/MatrixLib/Economy/currency.yml` 是否为你想要的最新货币定义
47+
3. `/matrixshopadmin status` 中的经济提供者状态是否正常

docs/matrixstorage/installation.mdx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,26 @@ description: MatrixStorage 的安装步骤、前置和可选依赖。
2424
## 默认配置文件
2525

2626
```text
27+
plugins/MatrixLib/
28+
└─ Economy/currency.yml
29+
2730
plugins/MatrixStorage/
2831
├─ config.yml
2932
├─ database.yml
3033
├─ module.yml
3134
├─ messages.yml
35+
├─ Economy/currency.yml
3236
├─ Mailbox/settings.yml
3337
├─ Warehouse/settings.yml
3438
└─ BlockWarehouse/settings.yml
3539
```
3640

41+
运行时会同步这三份货币配置:
42+
43+
- `plugins/MatrixLib/Economy/currency.yml`
44+
- `plugins/MatrixShop/Economy/currency.yml`
45+
- `plugins/MatrixStorage/Economy/currency.yml`
46+
3747
## 启动确认
3848

3949
启动成功后,控制台会显示:
@@ -42,4 +52,3 @@ plugins/MatrixStorage/
4252
- 邮件数量
4353
- 实体仓库数量
4454
- `MatrixShop` 桥接状态
45-

0 commit comments

Comments
 (0)