moluoxixi-ai-rules 0.2.9 → 0.2.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README-en.md +51 -14
- package/README.md +51 -14
- package/capabilities/README.md +12 -9
- package/capabilities/grilling/README.md +1 -1
- package/dist/scripts/lib/roles.d.ts +1 -0
- package/dist/scripts/lib/roles.js +16 -20
- package/dist/scripts/lib/vendors.js +3 -5
- package/package.json +1 -1
- package/roles/development/README.md +50 -0
- package/roles/development/role.yaml +22 -0
- package/roles/general/README.md +7 -9
- package/roles/general/role.yaml +1 -2
- package/roles/matt/role.yaml +2 -3
- package/roles/moluoxixi/role.yaml +3 -6
- package/roles/trellis/role.yaml +3 -6
package/README-en.md
CHANGED
|
@@ -13,7 +13,7 @@ The AIRules installer handles user-level package setup, asset distribution, and
|
|
|
13
13
|
|
|
14
14
|
## `general`
|
|
15
15
|
|
|
16
|
-
For users who need to
|
|
16
|
+
For users who need to remember decisions across sessions, write skills, and organize documents. It also provides the shared base for development roles.
|
|
17
17
|
|
|
18
18
|
### Install
|
|
19
19
|
|
|
@@ -25,11 +25,10 @@ airules verify general --host all
|
|
|
25
25
|
|
|
26
26
|
### Features
|
|
27
27
|
|
|
28
|
-
`general` selects `common
|
|
28
|
+
`general` selects `common`, providing four skills and the Hindsight memory MCP:
|
|
29
29
|
|
|
30
30
|
| Skill | Purpose |
|
|
31
31
|
| --- | --- |
|
|
32
|
-
| `grilling` | Question plans, decisions, and assumptions to establish tradeoffs and validation criteria |
|
|
33
32
|
| `hindsight-memory` | Recall and retain confirmed project knowledge and connect memory visualization |
|
|
34
33
|
| `hindsight-docs` | Consult Hindsight API, deployment, and configuration documentation |
|
|
35
34
|
| `create-skill` | Create or revise a reusable agent skill |
|
|
@@ -37,14 +36,14 @@ airules verify general --host all
|
|
|
37
36
|
|
|
38
37
|
The default MCP endpoint is `http://localhost:8888/mcp/`. The official Hindsight console at `http://localhost:9999` shows facts, source documents, and entity relationships. Connect a standalone console to an existing API, or use the bundled Docker Compose assets for a new deployment. Model settings live in the user configuration directory and data persists in a named volume. See [memory visualization](capabilities/common/skills/hindsight-memory/references/visualization.md).
|
|
39
38
|
|
|
40
|
-
|
|
39
|
+
The `development` template inherits these capabilities with `extends_roles: [general]`. `moluoxixi`, `trellis`, and `matt` all inherit `development`. Installing a development role includes its inherited capabilities. See [General](roles/general/README.md) and [role inheritance](capabilities/README.md#角色继承).
|
|
41
40
|
|
|
42
41
|
### Usage
|
|
43
42
|
|
|
44
43
|
Describe the goal or name a skill directly:
|
|
45
44
|
|
|
46
45
|
```text
|
|
47
|
-
|
|
46
|
+
Organize this project's documentation directories, indexes, and links.
|
|
48
47
|
Remember our confirmed decisions, reasoning, and next validation criteria.
|
|
49
48
|
Recall this project's earlier decisions and check whether they still apply.
|
|
50
49
|
Open this project's memory visualization to inspect facts and entity relationships.
|
|
@@ -52,9 +51,42 @@ Open this project's memory visualization to inspect facts and entity relationshi
|
|
|
52
51
|
|
|
53
52
|
Roles share the same Hindsight API and project bank. Start the service using the deployment guide and verify memory reads and writes before using it.
|
|
54
53
|
|
|
54
|
+
## `development`
|
|
55
|
+
|
|
56
|
+
The shared development template adds `coding`, `productivity`, and `frontend` to the memory and documentation capabilities inherited from `general`. `matt`, `moluoxixi`, and `trellis` all use `extends_roles: [development]` and receive the same base skills and MCP servers. `matt` selects `engineering` separately; Moluoxixi and Trellis use their own engineering workflows.
|
|
57
|
+
|
|
58
|
+
### Install
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
npm install --global moluoxixi-ai-rules
|
|
62
|
+
airules install development --host all
|
|
63
|
+
airules verify development --host all
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
### Features
|
|
67
|
+
|
|
68
|
+
```text
|
|
69
|
+
general
|
|
70
|
+
└── development
|
|
71
|
+
├── matt
|
|
72
|
+
├── moluoxixi
|
|
73
|
+
└── trellis
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
The template can be installed independently without project initialization. Concrete roles retain their own CLI, workflow, and initialization entry. Add shared development capabilities in the template once. See [Development](roles/development/README.md) for capabilities and inheritance rules.
|
|
77
|
+
|
|
78
|
+
### Usage
|
|
79
|
+
|
|
80
|
+
```text
|
|
81
|
+
Use grilling to question this development plan and establish validation criteria.
|
|
82
|
+
Use frontend-design to design this interface, then inspect it with Playwright.
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
For a new development role, declare `extends_roles: [development]` and `capabilities: []` in its `role.yaml`. Add role-specific capabilities to its own declaration. Each role may extend at most one parent, and multi-level chains are supported.
|
|
86
|
+
|
|
55
87
|
## `moluoxixi`
|
|
56
88
|
|
|
57
|
-
For users who want a complete AI development workflow with the native Moluoxixi CLI, project knowledge, multi-domain skills, and controlled multi-agent dispatch. It inherits `
|
|
89
|
+
For users who want a complete AI development workflow with the native Moluoxixi CLI, project knowledge, multi-domain skills, and controlled multi-agent dispatch. It inherits all shared capabilities from `development` and adds its own project workflow.
|
|
58
90
|
|
|
59
91
|
### Install
|
|
60
92
|
|
|
@@ -84,7 +116,7 @@ npm install --global @moluoxixi/airules-moluoxixi-cli
|
|
|
84
116
|
| Layer | Assets | Responsibility |
|
|
85
117
|
| --- | --- | --- |
|
|
86
118
|
| User-level role | Moluoxixi core, `moluoxixi`/`ml`, `init-project` | Native initialization, update, task, memory, workflow, and channel commands |
|
|
87
|
-
| Shared capabilities |
|
|
119
|
+
| Shared capabilities | Shared tools inherited from `development` | General skills, productivity skills, frontend skills, and MCP servers |
|
|
88
120
|
| Native project | `.moluoxixi/workflow.md`, `tasks/`, `spec/`, `scripts/`, `agents/`, host configuration | Workflow state, task artifacts, project rules, and agent definitions |
|
|
89
121
|
| AIRules project extension | `.moluoxixi/knowledge/`, knowledge runtime and hook, `moluoxixi-knowledge` | Source change detection and traceable project knowledge |
|
|
90
122
|
|
|
@@ -116,13 +148,15 @@ Project workflow entries become slash commands or discoverable skills according
|
|
|
116
148
|
| `common` | `hindsight-docs` | Look up Hindsight API, deployment, and advanced configuration |
|
|
117
149
|
| `frontend` | `frontend-design` | Give intentional visual direction when creating or reshaping interfaces |
|
|
118
150
|
| `productivity` | `grill-me` | Start a rigorous interview that turns an idea into an executable plan |
|
|
119
|
-
| `
|
|
151
|
+
| `productivity` | `grilling` | Stress-test plans, decisions, and designs |
|
|
120
152
|
| `productivity` | `handoff` | Compress the conversation into a document another agent can resume |
|
|
121
153
|
| `productivity` | `teach` | Run stateful teaching across sessions in the current repository |
|
|
122
154
|
| `productivity` | `to-questionnaire` | Turn unresolved decisions into a questionnaire for an informed person |
|
|
123
155
|
| `productivity` | `wait-what` | Restate misunderstood material in direct technical English |
|
|
124
156
|
| `productivity` | `writing-for-agents` | Write skills, `AGENTS.md`, and `CLAUDE.md` for agent consumption |
|
|
125
157
|
|
|
158
|
+
Shared tools are maintained in [Development](roles/development/README.md). The Moluoxixi workflow below owns engineering implementation and review.
|
|
159
|
+
|
|
126
160
|
The `common` capability configures the Hindsight HTTP memory MCP at `http://localhost:8888/mcp/`. See [Common](capabilities/common/README.md) for service startup and model configuration. The `coding` capability installs CodeGraph, Context7, and Sequential Thinking MCP for code relationships, library documentation, and structured reasoning. The `frontend` capability installs Playwright MCP for browser inspection and automation.
|
|
127
161
|
|
|
128
162
|
#### Agents, hooks, and dispatch
|
|
@@ -189,7 +223,7 @@ airules verify matt --host all
|
|
|
189
223
|
|
|
190
224
|
#### Installed assets
|
|
191
225
|
|
|
192
|
-
`matt` inherits `
|
|
226
|
+
`matt` inherits the base development capabilities from `development` and separately selects `engineering` to organize engineering work with Matt skills, without project initialization. The install includes shared skills and Hindsight, CodeGraph, Context7, Sequential Thinking, and Playwright MCP servers. Engineering and productivity skills use a pinned upstream revision. Hindsight uses the same project bank as other roles; see [memory visualization](capabilities/common/skills/hindsight-memory/references/visualization.md) for console setup.
|
|
193
227
|
|
|
194
228
|
#### Skills
|
|
195
229
|
|
|
@@ -199,6 +233,7 @@ airules verify matt --host all
|
|
|
199
233
|
| `common` | `spec-organization` | Organize document directories, indexes, and links |
|
|
200
234
|
| `common` | `hindsight-memory` | Retain and recall project memory and connect the official console |
|
|
201
235
|
| `common` | `hindsight-docs` | Consult Hindsight API and deployment documentation |
|
|
236
|
+
| `frontend` | `frontend-design` | Guide visual design for new interfaces and redesigns |
|
|
202
237
|
| `engineering` | `ask-matt` | Explicit router that selects the appropriate Matt skill or flow |
|
|
203
238
|
| `engineering` | `code-review` | Review changes since a baseline against standards and specification |
|
|
204
239
|
| `engineering` | `codebase-design` | Improve module boundaries, interfaces, and testability using deep-module principles |
|
|
@@ -218,7 +253,7 @@ airules verify matt --host all
|
|
|
218
253
|
| `engineering` | `wayfinder` | Plan work larger than one agent session as a decision and ticket map |
|
|
219
254
|
| `engineering` | `wizard` | Generate an interactive Bash wizard for human-only credentials, consoles, or migrations |
|
|
220
255
|
| `productivity` | `grill-me` | Start a rigorous planning interview |
|
|
221
|
-
| `
|
|
256
|
+
| `productivity` | `grilling` | Stress-test a plan, decision, or design |
|
|
222
257
|
| `productivity` | `handoff` | Produce a resumable cross-agent handoff |
|
|
223
258
|
| `productivity` | `teach` | Teach across sessions with recorded state |
|
|
224
259
|
| `productivity` | `to-questionnaire` | Turn unknowns into a questionnaire for an informed person |
|
|
@@ -246,7 +281,7 @@ Role source: [`roles/matt`](roles/matt).
|
|
|
246
281
|
|
|
247
282
|
## `trellis`
|
|
248
283
|
|
|
249
|
-
For users who want the native [Trellis](https://github.com/mindfold-ai/Trellis) task-and-specification workflow together with AIRules shared skills, MCP, project knowledge, and multi-agent dispatch. It inherits `
|
|
284
|
+
For users who want the native [Trellis](https://github.com/mindfold-ai/Trellis) task-and-specification workflow together with AIRules shared skills, MCP, project knowledge, and multi-agent dispatch. It inherits all shared capabilities from `development` and adds its own project workflow.
|
|
250
285
|
|
|
251
286
|
### Install
|
|
252
287
|
|
|
@@ -266,7 +301,7 @@ The role install provides the Trellis CLI and user-level capabilities but does n
|
|
|
266
301
|
| Layer | Assets | Responsibility |
|
|
267
302
|
| --- | --- | --- |
|
|
268
303
|
| User-level role | Trellis CLI and `init-project` | Native `init/update/upgrade/uninstall/mem/workflow/platforms/channel` commands |
|
|
269
|
-
| Shared capabilities |
|
|
304
|
+
| Shared capabilities | Shared tools inherited from `development` | The same base skills and MCP servers as other development roles |
|
|
270
305
|
| Native project | `.trellis/workflow.md`, `tasks/`, `spec/`, `scripts/`, `agents/`, host configuration | Plan/Execute/Finish state, task artifacts, specs, and agent definitions |
|
|
271
306
|
| AIRules project extension | `.trellis/knowledge/`, knowledge runtime and hook, `trellis-knowledge` | Source change detection and bidirectionally traceable knowledge |
|
|
272
307
|
|
|
@@ -296,13 +331,15 @@ Native Trellis projects workflow entries as commands or skills according to host
|
|
|
296
331
|
| `common` | `hindsight-docs` | Look up Hindsight API, deployment, and advanced configuration |
|
|
297
332
|
| `frontend` | `frontend-design` | Guide intentional frontend design and redesign |
|
|
298
333
|
| `productivity` | `grill-me` | Start a rigorous requirements interview |
|
|
299
|
-
| `
|
|
334
|
+
| `productivity` | `grilling` | Stress-test plans, decisions, and designs |
|
|
300
335
|
| `productivity` | `handoff` | Produce a cross-agent handoff |
|
|
301
336
|
| `productivity` | `teach` | Teach across sessions with recorded progress |
|
|
302
337
|
| `productivity` | `to-questionnaire` | Turn unresolved questions into a questionnaire |
|
|
303
338
|
| `productivity` | `wait-what` | Restate misunderstood material |
|
|
304
339
|
| `productivity` | `writing-for-agents` | Write agent-facing documents and skills |
|
|
305
340
|
|
|
341
|
+
Shared tools are maintained in [Development](roles/development/README.md). The Trellis workflow below owns engineering implementation and review.
|
|
342
|
+
|
|
306
343
|
Trellis configures Hindsight, CodeGraph, Context7, Sequential Thinking, and Playwright MCP. Its role-owned MCP manifest is empty; these servers come from `common`, `coding`, and `frontend` capabilities. See [Common](capabilities/common/README.md) for Hindsight service requirements.
|
|
307
344
|
|
|
308
345
|
#### Agents, hooks, and dispatch
|
|
@@ -346,7 +383,7 @@ Role source: [`roles/trellis`](roles/trellis).
|
|
|
346
383
|
|
|
347
384
|
Shared skills, MCP catalogs, and vendor declarations live together in `capabilities/<capability>/`, such as `capabilities/common/skills/`. Each capability is a data-only directory containing `capability.yaml`, skills, MCP catalogs, and documentation; roles select capabilities in `role.yaml`. The runtime loader lives in `scripts/lib/capabilities.ts`, composes vendors in declaration order, merges compatible projections, deduplicates identical projections, and rejects source or target conflicts. See [capabilities/README.md](capabilities/README.md) for the layout and complete mapping.
|
|
348
385
|
|
|
349
|
-
`extends_roles`
|
|
386
|
+
`extends_roles` combines capabilities along a single inheritance chain before the child's own choices. Each role may extend at most one parent; repeated capabilities are deduplicated. Multiple parents, missing parents, and inheritance cycles are rejected. A parent may be a declaration-only template. The child declares its own role vendor, hosts, and CLI packages. See [role inheritance](capabilities/README.md#角色继承).
|
|
350
387
|
|
|
351
388
|
Host directories, aliases, skill projection switches, and MCP formats are declared in [hosts/hosts.yaml](hosts/hosts.yaml). `scripts/lib/hosts.ts` loads and validates the declaration and resolves paths; declaration types live in `scripts/lib/types/`. Adding a host only requires a YAML entry. See [hosts/README.md](hosts/README.md) for fields and maintenance guidance.
|
|
352
389
|
|
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ AIRules 安装器负责用户级 package setup、资产分发和受管 skills/MC
|
|
|
13
13
|
|
|
14
14
|
## `general`
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
适合需要跨会话记忆、skill 编写和文档整理的用户,也是开发角色共享的基础角色。
|
|
17
17
|
|
|
18
18
|
### 安装
|
|
19
19
|
|
|
@@ -25,11 +25,10 @@ airules verify general --host all
|
|
|
25
25
|
|
|
26
26
|
### 功能
|
|
27
27
|
|
|
28
|
-
`general` 选择 `common
|
|
28
|
+
`general` 选择 `common`,提供四项 skills 和 Hindsight 记忆 MCP:
|
|
29
29
|
|
|
30
30
|
| Skill | 做什么 |
|
|
31
31
|
| --- | --- |
|
|
32
|
-
| `grilling` | 审问计划、决策和假设,明确取舍与验证条件 |
|
|
33
32
|
| `hindsight-memory` | 按项目回忆和保存已确认的信息,连接记忆可视化 |
|
|
34
33
|
| `hindsight-docs` | 查询 Hindsight API、部署和高级配置文档 |
|
|
35
34
|
| `create-skill` | 创建或修订可复用的 agent skill |
|
|
@@ -37,14 +36,14 @@ airules verify general --host all
|
|
|
37
36
|
|
|
38
37
|
Hindsight MCP 默认连接 `http://localhost:8888/mcp/`。官方控制台默认位于 `http://localhost:9999`,可查看记忆事实、来源文档和实体关系图。已有 API 可单独启动控制台;首次部署可使用随 skill 分发的 Docker Compose,模型配置和数据分别保存在用户配置目录与持久化卷中。步骤见 [记忆可视化](capabilities/common/skills/hindsight-memory/references/visualization.md)。
|
|
39
38
|
|
|
40
|
-
|
|
39
|
+
开发模板 `development` 通过 `extends_roles: [general]` 继承这些通用能力;`moluoxixi`、`trellis` 和 `matt` 再统一继承 `development`。安装开发角色时会一并安装。声明与规则见 [General](roles/general/README.md) 和 [角色继承](capabilities/README.md#角色继承)。
|
|
41
40
|
|
|
42
41
|
### 用法
|
|
43
42
|
|
|
44
43
|
直接在宿主中描述目标或点名 skill:
|
|
45
44
|
|
|
46
45
|
```text
|
|
47
|
-
|
|
46
|
+
请整理这个项目的文档目录、索引和链接。
|
|
48
47
|
请记住我们已确认的结论、理由和下一步验证条件。
|
|
49
48
|
回忆这个项目之前的决定,并核对是否仍适用。
|
|
50
49
|
打开当前项目的记忆可视化,查看事实和实体关系图。
|
|
@@ -52,9 +51,42 @@ Hindsight MCP 默认连接 `http://localhost:8888/mcp/`。官方控制台默认
|
|
|
52
51
|
|
|
53
52
|
不同角色使用同一 Hindsight 服务和项目 bank,复用已确认的记忆。使用记忆前按上述部署说明启动服务并验证读写。
|
|
54
53
|
|
|
54
|
+
## `development`
|
|
55
|
+
|
|
56
|
+
开发通用模板,在 `general` 的记忆和文档能力之上集中提供 `coding`、`productivity` 和 `frontend`。`matt`、`moluoxixi`、`trellis` 都使用 `extends_roles: [development]`,获得相同的基础 skills 和 MCP。`engineering` 由 `matt` 单独选择;Moluoxixi 和 Trellis 使用各自的工程工作流。
|
|
57
|
+
|
|
58
|
+
### 安装
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
npm install --global moluoxixi-ai-rules
|
|
62
|
+
airules install development --host all
|
|
63
|
+
airules verify development --host all
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
### 功能
|
|
67
|
+
|
|
68
|
+
```text
|
|
69
|
+
general
|
|
70
|
+
└── development
|
|
71
|
+
├── matt
|
|
72
|
+
├── moluoxixi
|
|
73
|
+
└── trellis
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
模板可独立安装,无需项目初始化。具体角色保留自身的 CLI、工作流和初始化入口;新增共享开发能力只需更新模板。完整能力与继承规则见 [Development](roles/development/README.md)。
|
|
77
|
+
|
|
78
|
+
### 用法
|
|
79
|
+
|
|
80
|
+
```text
|
|
81
|
+
请使用 grilling 审问这个开发计划,明确取舍和验证条件。
|
|
82
|
+
请使用 frontend-design 设计这个界面,并用 Playwright 检查效果。
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
新增开发角色时,在其 `role.yaml` 中声明 `extends_roles: [development]`,并设置 `capabilities: []`;专属能力可在自身声明中追加。每个角色最多继承一个父角色,支持多层链。
|
|
86
|
+
|
|
55
87
|
## `moluoxixi`
|
|
56
88
|
|
|
57
|
-
适合希望获得完整 AI 开发流程,同时需要 Moluoxixi 原生 CLI、项目知识库、多领域 skills 和可控多 agent 调度的用户。继承 `
|
|
89
|
+
适合希望获得完整 AI 开发流程,同时需要 Moluoxixi 原生 CLI、项目知识库、多领域 skills 和可控多 agent 调度的用户。继承 `development` 的全部共享开发能力,再提供自己的项目工作流。
|
|
58
90
|
|
|
59
91
|
### 安装
|
|
60
92
|
|
|
@@ -84,7 +116,7 @@ npm install --global @moluoxixi/airules-moluoxixi-cli
|
|
|
84
116
|
| 层级 | 资产 | 作用 |
|
|
85
117
|
| --- | --- | --- |
|
|
86
118
|
| 用户级角色资产 | Moluoxixi core、`moluoxixi`/`ml` CLI、`init-project` | 提供原生项目初始化、更新、任务、memory、workflow 和 channel 命令 |
|
|
87
|
-
| 公共 capability |
|
|
119
|
+
| 公共 capability | 从 `development` 继承共享工具能力 | 组合通用 skills、效率 skills、前端 skills 和 MCP servers |
|
|
88
120
|
| 原生项目资产 | `.moluoxixi/workflow.md`、`tasks/`、`spec/`、`scripts/`、`agents/`、宿主配置 | 保存工作流状态、任务工件、项目规范和 agent 定义 |
|
|
89
121
|
| AIRules 项目扩展 | `.moluoxixi/knowledge/`、知识 runtime、宿主 knowledge hook、`moluoxixi-knowledge` | 检测 source 变化,维护可追踪的项目知识库 |
|
|
90
122
|
|
|
@@ -116,13 +148,15 @@ npm install --global @moluoxixi/airules-moluoxixi-cli
|
|
|
116
148
|
| `common` | `hindsight-docs` | 查询 Hindsight API、部署和高级配置文档 |
|
|
117
149
|
| `frontend` | `frontend-design` | 为新 UI 或现有界面重塑提供有明确审美方向的设计指导 |
|
|
118
150
|
| `productivity` | `grill-me` | 启动严格访谈,把模糊想法推进到可执行方案 |
|
|
119
|
-
| `
|
|
151
|
+
| `productivity` | `grilling` | 压力测试计划、决策或设计中的薄弱假设 |
|
|
120
152
|
| `productivity` | `handoff` | 把当前对话压缩为下一位 agent 可接手的交接文档 |
|
|
121
153
|
| `productivity` | `teach` | 在当前仓库中进行可跨会话记录状态的教学 |
|
|
122
154
|
| `productivity` | `to-questionnaire` | 把 agent 无法独立回答的决策转成给知情人的问卷 |
|
|
123
155
|
| `productivity` | `wait-what` | 用更直接的技术英语重新解释未被理解的内容 |
|
|
124
156
|
| `productivity` | `writing-for-agents` | 编写供 agent 消费的 skills、`AGENTS.md` 和 `CLAUDE.md` |
|
|
125
157
|
|
|
158
|
+
共享工具由 [Development](roles/development/README.md) 集中维护,工程实施和审查由下述 Moluoxixi 工作流负责。
|
|
159
|
+
|
|
126
160
|
`common` capability 配置 Hindsight HTTP 记忆 MCP,默认连接 `http://localhost:8888/mcp/`;服务启动和模型配置见 [Common](capabilities/common/README.md)。`coding` capability 安装 CodeGraph、Context7、Sequential Thinking MCP,用于代码关系探索、库文档查询和结构化推理;`frontend` capability 安装 Playwright MCP,用于浏览器检查与自动化。
|
|
127
161
|
|
|
128
162
|
#### Agents、hooks 与调度
|
|
@@ -196,7 +230,7 @@ airules verify matt --host all
|
|
|
196
230
|
|
|
197
231
|
#### 安装后的资产
|
|
198
232
|
|
|
199
|
-
`matt` 继承 `
|
|
233
|
+
`matt` 继承 `development` 的基础开发能力,再单独选择 `engineering`,使用 Matt skills 组织工程工作,无需项目初始化。共享 skills 以及 Hindsight、CodeGraph、Context7、Sequential Thinking 和 Playwright MCP 随角色安装。工程和效率 skills 固定上游版本;Hindsight 项目 bank 与其它角色共用,控制台部署见 [记忆可视化](capabilities/common/skills/hindsight-memory/references/visualization.md)。
|
|
200
234
|
|
|
201
235
|
#### Skills
|
|
202
236
|
|
|
@@ -206,6 +240,7 @@ airules verify matt --host all
|
|
|
206
240
|
| `common` | `spec-organization` | 整理文档目录、索引和链接 |
|
|
207
241
|
| `common` | `hindsight-memory` | 保存和检索项目记忆,连接官方可视化控制台 |
|
|
208
242
|
| `common` | `hindsight-docs` | 查询 Hindsight API 和部署文档 |
|
|
243
|
+
| `frontend` | `frontend-design` | 为新 UI 和界面改造提供视觉设计指导 |
|
|
209
244
|
| `engineering` | `ask-matt` | 根据当前问题选择适合的 Matt skill 或工作流;这是显式调用的路由器 |
|
|
210
245
|
| `engineering` | `code-review` | 从指定基线对改动做 standards 与 spec 双轴审查 |
|
|
211
246
|
| `engineering` | `codebase-design` | 用深模块原则改进模块边界、接口和可测试性 |
|
|
@@ -225,7 +260,7 @@ airules verify matt --host all
|
|
|
225
260
|
| `engineering` | `wayfinder` | 把超出单次会话的大型工作规划成决策与 ticket 地图 |
|
|
226
261
|
| `engineering` | `wizard` | 生成交互式 bash wizard,引导人工完成凭据、控制台或迁移步骤 |
|
|
227
262
|
| `productivity` | `grill-me` | 启动严格访谈,把模糊计划推进到可执行状态 |
|
|
228
|
-
| `
|
|
263
|
+
| `productivity` | `grilling` | 压力测试计划、决策或设计 |
|
|
229
264
|
| `productivity` | `handoff` | 生成下一位 agent 可直接接手的交接文档 |
|
|
230
265
|
| `productivity` | `teach` | 在仓库中进行可记录进度的跨会话教学 |
|
|
231
266
|
| `productivity` | `to-questionnaire` | 把未决问题转成面向知情人的问卷 |
|
|
@@ -253,7 +288,7 @@ airules verify matt --host all
|
|
|
253
288
|
|
|
254
289
|
## `trellis`
|
|
255
290
|
|
|
256
|
-
适合希望使用原生 [Trellis](https://github.com/mindfold-ai/Trellis) 的任务与规范驱动工作流,同时获得 AIRules 共享 skills、MCP、知识库和多 agent 调度的用户。继承 `
|
|
291
|
+
适合希望使用原生 [Trellis](https://github.com/mindfold-ai/Trellis) 的任务与规范驱动工作流,同时获得 AIRules 共享 skills、MCP、知识库和多 agent 调度的用户。继承 `development` 的全部共享开发能力,再提供自己的项目工作流。
|
|
257
292
|
|
|
258
293
|
### 安装
|
|
259
294
|
|
|
@@ -273,7 +308,7 @@ trellis --version
|
|
|
273
308
|
| 层级 | 资产 | 作用 |
|
|
274
309
|
| --- | --- | --- |
|
|
275
310
|
| 用户级角色资产 | Trellis CLI、`init-project` | 提供原生 `init/update/upgrade/uninstall/mem/workflow/platforms/channel` 命令 |
|
|
276
|
-
| 公共 capability |
|
|
311
|
+
| 公共 capability | 从 `development` 继承共享工具能力 | 与其它开发角色相同的基础 skills 和 MCP servers |
|
|
277
312
|
| 原生项目资产 | `.trellis/workflow.md`、`tasks/`、`spec/`、`scripts/`、`agents/`、宿主配置 | 保存 Plan/Execute/Finish 状态、任务工件、规范和 agent 定义 |
|
|
278
313
|
| AIRules 项目扩展 | `.trellis/knowledge/`、知识 runtime、宿主 hook、`trellis-knowledge` | 自动发现 source 变化并维护双向可追踪知识关系 |
|
|
279
314
|
|
|
@@ -303,13 +338,15 @@ trellis --version
|
|
|
303
338
|
| `common` | `hindsight-docs` | 查询 Hindsight API、部署和高级配置文档 |
|
|
304
339
|
| `frontend` | `frontend-design` | 指导有明确视觉方向的前端设计与重塑 |
|
|
305
340
|
| `productivity` | `grill-me` | 启动严格需求访谈 |
|
|
306
|
-
| `
|
|
341
|
+
| `productivity` | `grilling` | 压力测试计划、决策或设计 |
|
|
307
342
|
| `productivity` | `handoff` | 生成跨 agent 交接文档 |
|
|
308
343
|
| `productivity` | `teach` | 进行可记录进度的跨会话教学 |
|
|
309
344
|
| `productivity` | `to-questionnaire` | 把未决问题转成问卷 |
|
|
310
345
|
| `productivity` | `wait-what` | 重新解释未被理解的内容 |
|
|
311
346
|
| `productivity` | `writing-for-agents` | 编写 agent 文档与 skills |
|
|
312
347
|
|
|
348
|
+
共享工具由 [Development](roles/development/README.md) 集中维护,工程实施和审查由下述 Trellis 工作流负责。
|
|
349
|
+
|
|
313
350
|
Trellis 同样配置 Hindsight、CodeGraph、Context7、Sequential Thinking 和 Playwright MCP;role-owned MCP 清单为空,实际 MCP 来自 `common`、`coding` 与 `frontend` capabilities。Hindsight 服务的运行要求见 [Common](capabilities/common/README.md)。
|
|
314
351
|
|
|
315
352
|
#### Agents、hooks 与调度
|
|
@@ -353,7 +390,7 @@ Plan 阶段创建并确认 PRD,复杂任务补齐 design/implement 后 `task.p
|
|
|
353
390
|
|
|
354
391
|
共享 skills、MCP 清单和供应商声明按能力集中在 `capabilities/<能力>/`,例如 `capabilities/common/skills/`。每个能力目录是纯数据目录,只包含 `capability.yaml`、skills、MCP 清单和文档;Role 在 `role.yaml` 中选择 capability。运行时加载器位于 `scripts/lib/capabilities.ts`,负责按声明顺序组合 vendor,合并兼容投影、去重完全相同的 projection,并拒绝来源或目标冲突。目录结构与完整映射见 [capabilities/README.md](capabilities/README.md)。
|
|
355
392
|
|
|
356
|
-
角色通过 `extends_roles`
|
|
393
|
+
角色通过 `extends_roles` 沿单继承链读取父角色的 capabilities,再加入自身能力。每个角色最多继承一个父角色,链上的重复能力自动去重;多父角色、缺失父角色与循环继承会报错。父角色可作为纯声明模板;子角色使用自身的 role vendor、宿主和 CLI packages。规则见 [角色继承](capabilities/README.md#角色继承)。
|
|
357
394
|
|
|
358
395
|
宿主目录、别名、skills 投影开关和 MCP 格式统一声明在 [hosts/hosts.yaml](hosts/hosts.yaml)。`scripts/lib/hosts.ts` 负责加载、校验和路径解析,声明类型放在 `scripts/lib/types/`。新增宿主只需更新 YAML;字段与维护说明见 [hosts/README.md](hosts/README.md)。
|
|
359
396
|
|
package/capabilities/README.md
CHANGED
|
@@ -46,19 +46,18 @@ AIRules 自有共享 skills 实际存放在 `capabilities/<能力>/skills/`。
|
|
|
46
46
|
|
|
47
47
|
| Role | 继承 | 自身 Capabilities |
|
|
48
48
|
|---|---|---|
|
|
49
|
-
| [`general`](../roles/general/README.md) | 无 | `common
|
|
50
|
-
| `
|
|
51
|
-
| `
|
|
52
|
-
| `
|
|
49
|
+
| [`general`](../roles/general/README.md) | 无 | `common` |
|
|
50
|
+
| [`development`](../roles/development/README.md) | `general` | `coding`, `productivity`, `frontend` |
|
|
51
|
+
| `trellis` | `development` | 无,使用模板的共享能力 |
|
|
52
|
+
| `moluoxixi` | `development` | 无,使用模板的共享能力 |
|
|
53
|
+
| `matt` | `development` | `engineering` |
|
|
53
54
|
|
|
54
55
|
角色选择示例:
|
|
55
56
|
|
|
56
57
|
```yaml
|
|
57
58
|
# roles/<role>/role.yaml
|
|
58
|
-
extends_roles: [
|
|
59
|
-
capabilities:
|
|
60
|
-
- coding
|
|
61
|
-
- frontend
|
|
59
|
+
extends_roles: [development]
|
|
60
|
+
capabilities: []
|
|
62
61
|
```
|
|
63
62
|
|
|
64
63
|
`roles/<role>/role.yaml` 声明角色自身的 `role_vendor`、CLI 安装命令、宿主支持、继承关系和 publishable packages。角色自有的 `init-project`、hooks、agents、packages 等仍放在 `roles/<role>/`,由 `role-assets` 全量同步。旧包若仍带有 `constants/skills.ts`,安装器会在没有 `role.yaml` 时兼容读取它。
|
|
@@ -67,7 +66,11 @@ capabilities:
|
|
|
67
66
|
|
|
68
67
|
## 角色继承
|
|
69
68
|
|
|
70
|
-
`extends_roles`
|
|
69
|
+
`extends_roles` 将角色作为可复用的能力模板。每个角色只允许继承一个父角色,或用 `extends_roles: []` 声明没有父角色。多父角色声明会在加载阶段报错,重复填写相同父角色也会报错;YAML 与旧 `extendsRoles` 导出使用同一校验规则。
|
|
70
|
+
|
|
71
|
+
`general` 提供记忆、skill 编写与文档整理;`development` 继承 `general`,集中维护 `coding`、`productivity` 与 `frontend`。具体开发角色统一继承 `development` 的基础 skills 与 MCP,再选择自己的工程工作流。`engineering` 由 Matt 角色单独选择。两个基础角色也可独立安装。
|
|
72
|
+
|
|
73
|
+
子角色安装时沿单继承链读取父角色的 `capabilities`,再加入自己的能力;链上重复的能力只处理一次。子角色可用 `capabilities: []` 继承整组模板能力。能力组合仍会校验供应商版本和投影目标冲突。
|
|
71
74
|
|
|
72
75
|
继承范围是 capability 声明及其 skills、MCP 与供应商 setup。子角色的 `role_vendor`、角色专属资产、CLI packages 和 hosts 由自身声明;安装器将继承的第一方能力从子角色的 AIRules 远程 checkout 投影到 vendor。能力模板可只声明 `capabilities` 和 `extends_roles`;独立安装的角色需提供自身 `role_vendor`。
|
|
73
76
|
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
|
|
3
3
|
[`capability.yaml`](capability.yaml) 从 Matt Pocock 的 skills 仓库固定版本同步 `skills/productivity/grilling`,提供计划、决策与假设审问能力。
|
|
4
4
|
|
|
5
|
-
`grilling` capability 只投影这一项 skill
|
|
5
|
+
`grilling` capability 只投影这一项 skill,可由角色按需选择。需要整组效率 skills 时选择 `productivity`,其中已包含 `grilling`。开发模板通过 `productivity` 提供这项 skill;`general` 只提供记忆、skill 编写和文档整理。
|
|
@@ -9,6 +9,7 @@ export interface RolePaths {
|
|
|
9
9
|
}
|
|
10
10
|
export declare function requireRolePaths(repoRoot: string, roleValue: unknown): RolePaths;
|
|
11
11
|
export declare function roleOverlayOrder(repoRoot: string, roleValue?: unknown): Promise<string[]>;
|
|
12
|
+
export declare function requireRoleInheritance(value: unknown, location: string): string[];
|
|
12
13
|
export declare function resolveRoleManifestPath(repoRoot: string, roleValue: unknown, options?: {
|
|
13
14
|
preferDist?: boolean;
|
|
14
15
|
}): string;
|
|
@@ -63,26 +63,28 @@ export async function roleOverlayOrder(repoRoot, roleValue = DEFAULT_ROLE) {
|
|
|
63
63
|
}
|
|
64
64
|
const role = requireRoleName(roleValue);
|
|
65
65
|
const orderedRoles = [];
|
|
66
|
-
const seenRoles = new Set();
|
|
67
66
|
const visitingRoles = new Set();
|
|
68
|
-
|
|
67
|
+
let roleName = role;
|
|
68
|
+
while (roleName !== undefined) {
|
|
69
69
|
requireRolePaths(repoRoot, roleName);
|
|
70
|
-
if (seenRoles.has(roleName)) {
|
|
71
|
-
return;
|
|
72
|
-
}
|
|
73
70
|
if (visitingRoles.has(roleName)) {
|
|
74
71
|
throw new Error(`AIRules role inheritance cycle detected at "${roleName}"`);
|
|
75
72
|
}
|
|
76
73
|
visitingRoles.add(roleName);
|
|
77
|
-
for (const extendedRole of await loadRoleExtendsRoles(repoRoot, roleName)) {
|
|
78
|
-
await visit(extendedRole);
|
|
79
|
-
}
|
|
80
|
-
visitingRoles.delete(roleName);
|
|
81
|
-
seenRoles.add(roleName);
|
|
82
74
|
orderedRoles.push(roleName);
|
|
75
|
+
const parents = await loadRoleExtendsRoles(repoRoot, roleName);
|
|
76
|
+
roleName = parents[0];
|
|
83
77
|
}
|
|
84
|
-
|
|
85
|
-
|
|
78
|
+
return orderedRoles.reverse();
|
|
79
|
+
}
|
|
80
|
+
export function requireRoleInheritance(value, location) {
|
|
81
|
+
if (!Array.isArray(value) || !value.every(roleName => typeof roleName === 'string')) {
|
|
82
|
+
throw new TypeError(`${location} must be a string array`);
|
|
83
|
+
}
|
|
84
|
+
if (value.length > 1) {
|
|
85
|
+
throw new Error(`${location} supports at most one parent role (single inheritance)`);
|
|
86
|
+
}
|
|
87
|
+
return value;
|
|
86
88
|
}
|
|
87
89
|
export function resolveRoleManifestPath(repoRoot, roleValue, options = {}) {
|
|
88
90
|
if (roleValue === '') {
|
|
@@ -150,18 +152,12 @@ async function loadRoleExtendsRoles(repoRoot, role) {
|
|
|
150
152
|
}
|
|
151
153
|
const record = value;
|
|
152
154
|
const extendsRoles = record.extends_roles ?? record.extendsRoles ?? [];
|
|
153
|
-
|
|
154
|
-
throw new TypeError(`roles/${role}/role.yaml field "extends_roles" must be a string array`);
|
|
155
|
-
}
|
|
156
|
-
return extendsRoles;
|
|
155
|
+
return requireRoleInheritance(extendsRoles, `roles/${role}/role.yaml field "extends_roles"`);
|
|
157
156
|
}
|
|
158
157
|
const manifestUrl = pathToFileURL(path.resolve(manifestPath)).href;
|
|
159
158
|
const module = await import(manifestUrl);
|
|
160
159
|
const extendsRoles = module.extendsRoles ?? module.default?.extendsRoles ?? [];
|
|
161
|
-
|
|
162
|
-
throw new TypeError(`roles/${role}/constants/skills.ts export "extendsRoles" must be a string array`);
|
|
163
|
-
}
|
|
164
|
-
return extendsRoles;
|
|
160
|
+
return requireRoleInheritance(extendsRoles, `roles/${role}/constants/skills.ts export "extendsRoles"`);
|
|
165
161
|
}
|
|
166
162
|
function requireInsideRoot(root, target, field, rootLabel) {
|
|
167
163
|
if (!isPathInside(root, target)) {
|
|
@@ -4,7 +4,7 @@ import { fileURLToPath, pathToFileURL, URL } from 'node:url';
|
|
|
4
4
|
import { parseDocument } from 'yaml';
|
|
5
5
|
import { CAPABILITY_NAMES, composeCapabilities } from './capabilities.js';
|
|
6
6
|
import { HOST_IDS } from './hosts.js';
|
|
7
|
-
import { resolveRoleManifestPath, roleOverlayOrder } from './roles.js';
|
|
7
|
+
import { requireRoleInheritance, resolveRoleManifestPath, roleOverlayOrder } from './roles.js';
|
|
8
8
|
import { flattenedSkillName, flattenedVendorSkillTarget } from './skill-projection.js';
|
|
9
9
|
const vendorNamePattern = /^[A-Za-z0-9][\w-]*$/u;
|
|
10
10
|
const npmPackageNamePattern = /^(?:@[a-z0-9][a-z0-9._-]*\/)?[a-z0-9][a-z0-9._-]*$/u;
|
|
@@ -212,6 +212,7 @@ export async function loadVendorManifest(manifestPath) {
|
|
|
212
212
|
const module = isRoleYaml
|
|
213
213
|
? {}
|
|
214
214
|
: await import(pathToFileURL(resolvedManifestPath).href);
|
|
215
|
+
requireRoleInheritance(roleContract?.extendsRoles ?? module.extendsRoles ?? module.default?.extendsRoles ?? [], `Vendor manifest "${manifestPath}" field "extends_roles"`);
|
|
215
216
|
const roleVendor = roleContract?.roleVendor
|
|
216
217
|
?? module.roleVendor
|
|
217
218
|
?? module.default?.roleVendor;
|
|
@@ -313,10 +314,7 @@ function tryLoadRoleContract(manifestPath) {
|
|
|
313
314
|
}
|
|
314
315
|
async function requireRoleCapabilityContract(manifestPath, contract) {
|
|
315
316
|
const contractPath = resolveRoleContractPath(manifestPath);
|
|
316
|
-
const extendsRoles = contract.extendsRoles ?? [];
|
|
317
|
-
if (!Array.isArray(extendsRoles) || !extendsRoles.every(role => typeof role === 'string')) {
|
|
318
|
-
throw new TypeError(`Role contract "${contractPath}" field "extends_roles" must be a string array`);
|
|
319
|
-
}
|
|
317
|
+
const extendsRoles = requireRoleInheritance(contract.extendsRoles ?? [], `Role contract "${contractPath}" field "extends_roles"`);
|
|
320
318
|
const roleRoot = path.dirname(contractPath);
|
|
321
319
|
const repoRoot = path.resolve(roleRoot, '..', '..');
|
|
322
320
|
const role = path.basename(roleRoot);
|
package/package.json
CHANGED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# Development
|
|
2
|
+
|
|
3
|
+
`development` 是开发通用模板,继承 [`general`](../general/README.md) 的记忆、skill 编写和文档整理能力,再提供效率 skills、代码工具和前端能力。
|
|
4
|
+
|
|
5
|
+
```text
|
|
6
|
+
general
|
|
7
|
+
└── development
|
|
8
|
+
├── matt
|
|
9
|
+
├── moluoxixi
|
|
10
|
+
└── trellis
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## 共享能力
|
|
14
|
+
|
|
15
|
+
| Capability | 提供的能力 |
|
|
16
|
+
|---|---|
|
|
17
|
+
| `common`,继承自 `general` | `create-skill`、`spec-organization`、`hindsight-memory`、`hindsight-docs`,以及 Hindsight 记忆 MCP 和可视化部署资产 |
|
|
18
|
+
| `coding` | CodeGraph、Context7、Sequential Thinking MCP |
|
|
19
|
+
| `productivity` | Matt Pocock 的效率 skills:`grilling`、`grill-me`、`handoff`、`teach`、`to-questionnaire`、`wait-what`、`writing-for-agents` 等 |
|
|
20
|
+
| `frontend` | Anthropic `frontend-design` skill 和 Playwright MCP |
|
|
21
|
+
|
|
22
|
+
共享能力只在 [`role.yaml`](role.yaml) 中选择;供应商、固定 commit 和远程投影统一维护在 [`capabilities/`](../../capabilities/README.md)。新增共享开发能力时更新本模板,所有子角色会随之获得。
|
|
23
|
+
|
|
24
|
+
三个子角色获得相同的基础 skills 和 MCP。`matt` 单独选择 `engineering`,提供 `ask-matt`、`tdd`、`code-review`、`diagnosing-bugs`、`to-spec`、`to-tickets` 等 Matt 工程工作流;`moluoxixi` 提供自身 CLI、项目工作流、hooks、agents 与知识库初始化;`trellis` 提供原生 Trellis CLI 与项目工作流初始化。工程工作流由各角色选择,基础模板集中维护共享工具。角色专属资产由子角色的 `role_vendor` 全量远程同步,CLI 和 packages 由子角色自己声明。
|
|
25
|
+
|
|
26
|
+
## 继承模板
|
|
27
|
+
|
|
28
|
+
新增开发角色只需声明父模板和自身专属配置:
|
|
29
|
+
|
|
30
|
+
```yaml
|
|
31
|
+
# roles/<role>/role.yaml 的继承部分
|
|
32
|
+
extends_roles: [development]
|
|
33
|
+
capabilities: []
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
如需角色专属能力,在自身 `capabilities` 中追加。每个角色最多继承一个父角色,支持 `general → development → 子角色` 这样的多层链。声明多个父角色会在加载时直接报错,包括重复填写同一个父角色。链上的重复能力和相同上游源码自动去重。父模板的 `role_vendor`、CLI、packages 和 hosts 不会覆盖子角色的安装设置。
|
|
37
|
+
|
|
38
|
+
## 独立使用
|
|
39
|
+
|
|
40
|
+
模板也可独立安装,直接获得共享开发 skills 和 MCP:
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
npm install --global moluoxixi-ai-rules
|
|
44
|
+
airules install development --host all
|
|
45
|
+
airules verify development --host all
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
安装共享 MCP 时会执行其前置工具 setup。`development` 没有专属项目 CLI,也无需 `init-project`。需要项目工作流时安装相应子角色。
|
|
49
|
+
|
|
50
|
+
Hindsight MCP 默认连接 `http://localhost:8888/mcp/`,记忆控制台默认位于 `http://localhost:9999`。实际使用记忆前按[记忆可视化部署说明](../../capabilities/common/skills/hindsight-memory/references/visualization.md)启动服务并配置模型。
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
schema_version: 1
|
|
2
|
+
role_id: development
|
|
3
|
+
role_version: 0.1.0
|
|
4
|
+
status: stable
|
|
5
|
+
canonical_root: roles/development
|
|
6
|
+
description: Shared development template for productivity, coding tools, and frontend work.
|
|
7
|
+
capabilities:
|
|
8
|
+
- coding
|
|
9
|
+
- productivity
|
|
10
|
+
- frontend
|
|
11
|
+
hosts: all
|
|
12
|
+
extends_roles: [general]
|
|
13
|
+
role_vendor:
|
|
14
|
+
name: development-role
|
|
15
|
+
source: https://github.com/moluoxixi/AIRules.git
|
|
16
|
+
projections:
|
|
17
|
+
- kind: role-assets
|
|
18
|
+
source_dir: roles/development
|
|
19
|
+
distribution:
|
|
20
|
+
bootstrap_manifest: role.yaml
|
|
21
|
+
full_role_path_required: true
|
|
22
|
+
npm_embedded_source: false
|
package/roles/general/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# General
|
|
2
2
|
|
|
3
|
-
`general`
|
|
3
|
+
`general` 提供长期记忆、skill 编写和知识整理等通用能力。角色在 [`role.yaml`](role.yaml) 中选择 `common`,资产从远程供应商同步。
|
|
4
4
|
|
|
5
5
|
## 安装
|
|
6
6
|
|
|
@@ -14,7 +14,6 @@ airules verify general --host all
|
|
|
14
14
|
|
|
15
15
|
| Skill | 用途 |
|
|
16
16
|
|---|---|
|
|
17
|
-
| `grilling` | 逐项审问计划、决策和假设,明确取舍与验证条件 |
|
|
18
17
|
| `hindsight-memory` | 按项目回忆和保存已确认的信息,查看记忆控制台 |
|
|
19
18
|
| `hindsight-docs` | 查询 Hindsight API、部署和高级配置 |
|
|
20
19
|
| `create-skill` | 编写或修订通用 skill |
|
|
@@ -25,7 +24,7 @@ airules verify general --host all
|
|
|
25
24
|
## 使用
|
|
26
25
|
|
|
27
26
|
```text
|
|
28
|
-
|
|
27
|
+
请整理这个项目的文档目录、索引和链接。
|
|
29
28
|
请记住我们已确认的结论、理由和下一步验证条件。
|
|
30
29
|
回忆这个项目之前的决定,并核对是否仍适用。
|
|
31
30
|
打开当前项目的记忆可视化,查看保存的事实和实体关系图。
|
|
@@ -33,16 +32,15 @@ airules verify general --host all
|
|
|
33
32
|
|
|
34
33
|
记忆控制台默认位于 `http://localhost:9999`。在控制台选择与 MCP 相同的项目 bank,查看事实、来源文档、实体关系图和异步操作状态。已有 Hindsight API 时只需添加控制台;首次部署可使用随 `hindsight-memory` skill 分发的 Docker Compose。操作步骤见 [记忆可视化](../../capabilities/common/skills/hindsight-memory/references/visualization.md)。
|
|
35
34
|
|
|
36
|
-
|
|
35
|
+
候选方案与已确认结论分别标注状态;只有确认保存成功后才报告记忆已写入。
|
|
37
36
|
|
|
38
37
|
## 作为基础角色
|
|
39
38
|
|
|
40
|
-
`moluoxixi`、`trellis` 和 `matt`
|
|
39
|
+
[`development`](../development/README.md) 通过 `extends_roles: [general]` 继承通用能力,并集中选择共享开发能力。`moluoxixi`、`trellis` 和 `matt` 再继承 `development`。新增开发角色使用同一模板:
|
|
41
40
|
|
|
42
41
|
```yaml
|
|
43
|
-
extends_roles: [
|
|
44
|
-
capabilities:
|
|
45
|
-
- coding
|
|
42
|
+
extends_roles: [development]
|
|
43
|
+
capabilities: []
|
|
46
44
|
```
|
|
47
45
|
|
|
48
|
-
|
|
46
|
+
角色仅支持单继承,可以沿单个父角色形成多层继承链;相同能力自动去重。规则见 [角色继承](../../capabilities/README.md#角色继承)。
|
package/roles/general/role.yaml
CHANGED
|
@@ -3,10 +3,9 @@ role_id: general
|
|
|
3
3
|
role_version: 0.1.0
|
|
4
4
|
status: stable
|
|
5
5
|
canonical_root: roles/general
|
|
6
|
-
description: Shared skills for
|
|
6
|
+
description: Shared skills for organizing knowledge and persistent memory with the Hindsight console.
|
|
7
7
|
capabilities:
|
|
8
8
|
- common
|
|
9
|
-
- grilling
|
|
10
9
|
hosts: all
|
|
11
10
|
extends_roles: []
|
|
12
11
|
role_vendor:
|
package/roles/matt/role.yaml
CHANGED
|
@@ -3,15 +3,14 @@ role_id: matt
|
|
|
3
3
|
role_version: 0.1.0
|
|
4
4
|
status: experimental
|
|
5
5
|
canonical_root: roles/matt
|
|
6
|
-
description:
|
|
6
|
+
description: Development role using Matt Pocock's skills and shared coding and frontend tools.
|
|
7
7
|
assets:
|
|
8
8
|
skills: skills
|
|
9
9
|
capabilities:
|
|
10
10
|
- engineering
|
|
11
|
-
- productivity
|
|
12
11
|
role_vendor_position: after
|
|
13
12
|
hosts: all
|
|
14
|
-
extends_roles: [
|
|
13
|
+
extends_roles: [development]
|
|
15
14
|
role_vendor:
|
|
16
15
|
name: matt-role
|
|
17
16
|
source: https://github.com/moluoxixi/AIRules.git
|
|
@@ -3,17 +3,14 @@ role_id: moluoxixi
|
|
|
3
3
|
role_version: 0.5.0
|
|
4
4
|
status: experimental
|
|
5
5
|
canonical_root: roles/moluoxixi
|
|
6
|
-
description: Publishable role-local Moluoxixi packages
|
|
6
|
+
description: Publishable role-local Moluoxixi packages and project initialization with the shared development template.
|
|
7
7
|
assets:
|
|
8
8
|
skills: skills
|
|
9
9
|
mcp: mcp
|
|
10
10
|
packages: packages
|
|
11
|
-
capabilities:
|
|
12
|
-
- coding
|
|
13
|
-
- productivity
|
|
14
|
-
- frontend
|
|
11
|
+
capabilities: []
|
|
15
12
|
hosts: all
|
|
16
|
-
extends_roles: [
|
|
13
|
+
extends_roles: [development]
|
|
17
14
|
role_vendor:
|
|
18
15
|
name: moluoxixi
|
|
19
16
|
source: https://github.com/moluoxixi/AIRules.git
|
package/roles/trellis/role.yaml
CHANGED
|
@@ -3,16 +3,13 @@ role_id: trellis
|
|
|
3
3
|
role_version: 0.5.0
|
|
4
4
|
status: stable
|
|
5
5
|
canonical_root: roles/trellis
|
|
6
|
-
description: Installs Trellis
|
|
6
|
+
description: Installs Trellis and native project initialization with the shared development template.
|
|
7
7
|
assets:
|
|
8
8
|
skills: skills
|
|
9
9
|
mcp: mcp
|
|
10
|
-
capabilities:
|
|
11
|
-
- coding
|
|
12
|
-
- productivity
|
|
13
|
-
- frontend
|
|
10
|
+
capabilities: []
|
|
14
11
|
hosts: all
|
|
15
|
-
extends_roles: [
|
|
12
|
+
extends_roles: [development]
|
|
16
13
|
role_vendor:
|
|
17
14
|
name: trellis
|
|
18
15
|
source: https://github.com/moluoxixi/AIRules.git
|