principles-disciple 1.8.2 → 1.8.3

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.
Files changed (40) hide show
  1. package/openclaw.plugin.json +4 -4
  2. package/package.json +1 -1
  3. package/templates/langs/en/skills/ai-sprint-orchestration/EXAMPLES.md +63 -0
  4. package/templates/langs/en/skills/ai-sprint-orchestration/REFERENCE.md +136 -0
  5. package/templates/langs/en/skills/ai-sprint-orchestration/SKILL.md +67 -0
  6. package/templates/langs/en/skills/ai-sprint-orchestration/references/agent-registry.json +214 -0
  7. package/templates/langs/en/skills/ai-sprint-orchestration/references/specs/bugfix-complex-template.json +107 -0
  8. package/templates/langs/en/skills/ai-sprint-orchestration/references/specs/feature-complex-template.json +107 -0
  9. package/templates/langs/en/skills/ai-sprint-orchestration/references/specs/workflow-validation-minimal-verify.json +105 -0
  10. package/templates/langs/en/skills/ai-sprint-orchestration/references/specs/workflow-validation-minimal.json +108 -0
  11. package/templates/langs/en/skills/ai-sprint-orchestration/references/workflow-v1-acceptance-checklist.md +58 -0
  12. package/templates/langs/en/skills/ai-sprint-orchestration/references/workflow-v1.4-work-unit-handoff.md +190 -0
  13. package/templates/langs/en/skills/ai-sprint-orchestration/runtime/.gitignore +2 -0
  14. package/templates/langs/en/skills/ai-sprint-orchestration/scripts/lib/archive.mjs +310 -0
  15. package/templates/langs/en/skills/ai-sprint-orchestration/scripts/lib/contract-enforcement.mjs +683 -0
  16. package/templates/langs/en/skills/ai-sprint-orchestration/scripts/lib/decision.mjs +604 -0
  17. package/templates/langs/en/skills/ai-sprint-orchestration/scripts/lib/state-store.mjs +32 -0
  18. package/templates/langs/en/skills/ai-sprint-orchestration/scripts/lib/task-specs.mjs +707 -0
  19. package/templates/langs/en/skills/ai-sprint-orchestration/scripts/run.mjs +3419 -0
  20. package/templates/langs/zh/skills/ai-sprint-orchestration/EXAMPLES.md +63 -0
  21. package/templates/langs/zh/skills/ai-sprint-orchestration/REFERENCE.md +136 -0
  22. package/templates/langs/zh/skills/ai-sprint-orchestration/SKILL.md +67 -0
  23. package/templates/langs/zh/skills/ai-sprint-orchestration/references/agent-registry.json +214 -0
  24. package/templates/langs/zh/skills/ai-sprint-orchestration/references/specs/bugfix-complex-template.json +107 -0
  25. package/templates/langs/zh/skills/ai-sprint-orchestration/references/specs/feature-complex-template.json +107 -0
  26. package/templates/langs/zh/skills/ai-sprint-orchestration/references/specs/workflow-validation-minimal-verify.json +105 -0
  27. package/templates/langs/zh/skills/ai-sprint-orchestration/references/specs/workflow-validation-minimal.json +108 -0
  28. package/templates/langs/zh/skills/ai-sprint-orchestration/references/workflow-v1-acceptance-checklist.md +58 -0
  29. package/templates/langs/zh/skills/ai-sprint-orchestration/references/workflow-v1.4-work-unit-handoff.md +190 -0
  30. package/templates/langs/zh/skills/ai-sprint-orchestration/runtime/.gitignore +2 -0
  31. package/templates/langs/zh/skills/ai-sprint-orchestration/scripts/lib/archive.mjs +310 -0
  32. package/templates/langs/zh/skills/ai-sprint-orchestration/scripts/lib/contract-enforcement.mjs +683 -0
  33. package/templates/langs/zh/skills/ai-sprint-orchestration/scripts/lib/decision.mjs +604 -0
  34. package/templates/langs/zh/skills/ai-sprint-orchestration/scripts/lib/state-store.mjs +32 -0
  35. package/templates/langs/zh/skills/ai-sprint-orchestration/scripts/lib/task-specs.mjs +707 -0
  36. package/templates/langs/zh/skills/ai-sprint-orchestration/scripts/run.mjs +3419 -0
  37. package/templates/langs/zh/skills/ai-sprint-orchestration/test/archive.test.mjs +230 -0
  38. package/templates/langs/zh/skills/ai-sprint-orchestration/test/contract-enforcement.test.mjs +672 -0
  39. package/templates/langs/zh/skills/ai-sprint-orchestration/test/decision.test.mjs +1321 -0
  40. package/templates/langs/zh/skills/ai-sprint-orchestration/test/run.test.mjs +1419 -0
@@ -2,7 +2,7 @@
2
2
  "id": "principles-disciple",
3
3
  "name": "Principles Disciple",
4
4
  "description": "Evolutionary programming agent framework with strategic guardrails and reflection loops.",
5
- "version": "1.8.2",
5
+ "version": "1.8.3",
6
6
  "skills": [
7
7
  "./skills"
8
8
  ],
@@ -76,8 +76,8 @@
76
76
  }
77
77
  },
78
78
  "buildFingerprint": {
79
- "gitSha": "787ed1c54034",
80
- "bundleMd5": "f9dbcc5968920a4840ba02316515d1e4",
81
- "builtAt": "2026-04-06T06:42:07.398Z"
79
+ "gitSha": "c159a298aac0",
80
+ "bundleMd5": "e54bd6b71182252dd335aa016c9caa0e",
81
+ "builtAt": "2026-04-06T05:28:57.508Z"
82
82
  }
83
83
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "principles-disciple",
3
- "version": "1.8.2",
3
+ "version": "1.8.3",
4
4
  "description": "Native OpenClaw plugin for Principles Disciple",
5
5
  "type": "module",
6
6
  "main": "./dist/bundle.js",
@@ -0,0 +1,63 @@
1
+ # AI Sprint Orchestration Examples
2
+
3
+ ## Example 1: baseline + validation
4
+
5
+ ```powershell
6
+ node scripts/run.mjs --self-check
7
+ node scripts/run.mjs --help
8
+ node scripts/run.mjs --task workflow-validation-minimal
9
+ node scripts/run.mjs --task workflow-validation-minimal-verify
10
+ ```
11
+
12
+ ## Example 2: custom runtime root
13
+
14
+ ```powershell
15
+ node scripts/run.mjs --task workflow-validation-minimal --runtime-root D:/Temp/ai-sprint-runtime
16
+ ```
17
+
18
+ ## Example 3: classify a failure
19
+
20
+ - `workflow bug`: package-local script still writes to repo-root `ops/ai-sprints`
21
+ - `agent behavior issue`: reviewer omits `VERDICT` or malformed `DIMENSIONS`
22
+ - `environment issue`: `acpx` missing or workspace not writable
23
+ - `sample-spec issue`: validation spec asks for a field that the current product sample does not implement
24
+
25
+ ## Example 4: when to stop
26
+
27
+ Stop the iteration after classification if:
28
+
29
+ - the issue belongs to `packages/openclaw-plugin`
30
+ - the issue depends on `D:/Code/openclaw`
31
+ - the fix would require dashboard/stageGraph/self-optimization sprint expansion
32
+ - the problem is a sample-side or product-side gap rather than workflow plumbing
33
+
34
+ ## Example 5: start from a complex bugfix template
35
+
36
+ 1. Copy `references/specs/bugfix-complex-template.json`
37
+ 2. Replace every placeholder in `taskContract`
38
+ 3. Narrow `executionScope` to the smallest useful round
39
+ 4. Run the packaged entrypoint with the edited spec:
40
+
41
+ ```powershell
42
+ node scripts/run.mjs --task custom-bugfix --task-spec D:/path/to/your-bugfix-spec.json
43
+ ```
44
+
45
+ ## Example 6: start from a complex feature template
46
+
47
+ 1. Copy `references/specs/feature-complex-template.json`
48
+ 2. Fill `Goal`, `In scope`, `Out of scope`, `Validation commands`, and `Expected artifacts`
49
+ 3. Confirm the spec does not require product-side closure outside this milestone
50
+ 4. Run:
51
+
52
+ ```powershell
53
+ node scripts/run.mjs --task custom-feature --task-spec D:/path/to/your-feature-spec.json
54
+ ```
55
+
56
+ ## Example 7: inspect checkpoint summary before continuation
57
+
58
+ When a round ends in `revise`, inspect:
59
+
60
+ - `stages/<stage>/checkpoint-summary.md`
61
+ - `stages/<stage>/handoff.json`
62
+
63
+ The next round should use the checkpoint summary as the primary carry-forward context and only fall back to full prior decision text when needed.
@@ -0,0 +1,136 @@
1
+ # AI Sprint Orchestration Reference
2
+
3
+ ## Package layout
4
+
5
+ - `scripts/run.mjs`: package-local orchestrator entrypoint
6
+ - `scripts/lib/`: decision, contract validation, state store, spec loading, archive helpers
7
+ - `references/specs/`: built-in validation specs
8
+ - `references/agent-registry.json`: package-local agent/model registry
9
+ - `references/workflow-v1-acceptance-checklist.md`: handoff checklist
10
+ - `runtime/`: default location for run artifacts
11
+
12
+ ## Runtime layout
13
+
14
+ Default runtime root:
15
+
16
+ - `packages/openclaw-plugin/templates/langs/<lang>/skills/ai-sprint-orchestration/runtime`
17
+
18
+ Subdirectories:
19
+
20
+ - `runs/<run-id>/`
21
+ - `archive/<run-id>/`
22
+ - `tmp/sprint-agent/<run-id>/...`
23
+
24
+ Override with either:
25
+
26
+ - `--runtime-root <path>`
27
+ - `AI_SPRINT_RUNTIME_ROOT=<path>`
28
+
29
+ ## Self check
30
+
31
+ Run this first in a newly installed environment:
32
+
33
+ - `node scripts/run.mjs --self-check`
34
+
35
+ It verifies:
36
+
37
+ - package-local references exist
38
+ - built-in specs load
39
+ - `agent-registry.json` exists
40
+ - `acpx` is callable
41
+ - runtime root is writable
42
+
43
+ ## Built-in specs
44
+
45
+ - `workflow-validation-minimal`
46
+ - `workflow-validation-minimal-verify`
47
+ - `bugfix-complex-template` (copy and fill before use)
48
+ - `feature-complex-template` (copy and fill before use)
49
+
50
+ These built-in specs are package self-checks. They validate the workflow package itself, not product features.
51
+
52
+ ## Key artifacts
53
+
54
+ For each run, inspect:
55
+
56
+ - `sprint.json`
57
+ - `timeline.md`
58
+ - `latest-summary.md`
59
+ - `decision.md`
60
+ - `scorecard.json`
61
+
62
+ Important persisted fields:
63
+
64
+ - `outputQuality`
65
+ - `qualityReasons`
66
+ - `validation`
67
+ - `nextRunRecommendation`
68
+ - `failureClassification`
69
+ - `failureSource`
70
+ - `recommendedNextAction`
71
+
72
+ Per-stage carry-forward artifact:
73
+
74
+ - `checkpoint-summary.md`
75
+
76
+ The next round should prefer `checkpoint-summary.md` as carry-forward context before falling back to a full prior `decision.md` or `handoff.json`.
77
+
78
+ ## Failure classification
79
+
80
+ Use exactly one:
81
+
82
+ - `workflow bug`: orchestration logic, artifact layout, CLI, validation, persistence
83
+ - `agent behavior issue`: output quality or format drift despite correct workflow prompts/contracts
84
+ - `environment issue`: missing binaries, permissions, filesystem, PATH, runtime access
85
+ - `sample-spec issue`: the spec itself, or sample-side/product-side gaps that should not be fixed in this workflow milestone
86
+
87
+ ## Minimum task contract for complex work
88
+
89
+ Complex bugfix and feature specs must explicitly provide:
90
+
91
+ - `Goal`
92
+ - `In scope`
93
+ - `Out of scope`
94
+ - `Validation commands`
95
+ - `Expected artifacts`
96
+
97
+ If any of these are missing or left as placeholders, the packaged skill refuses to start the sprint.
98
+
99
+ ## Execution scope limits
100
+
101
+ Complex specs may define:
102
+
103
+ - `maxFiles`
104
+ - `maxChecks`
105
+ - `maxDeliverables`
106
+
107
+ The producer should declare `PLANNED_FILES`, `PLANNED_CHECKS`, and `DELIVERABLES` in the worklog before editing code. If one round would exceed scope, narrow the round or continue in a later round instead of forcing a large change through one execution.
108
+
109
+ ## Synchronization rule
110
+
111
+ Source of truth remains:
112
+
113
+ - the repository copy at `packages/openclaw-plugin/templates/langs/zh/skills/ai-sprint-orchestration`
114
+
115
+ Sync the packaged copy only when the change affects:
116
+
117
+ - package-local CLI behavior
118
+ - validation behavior
119
+ - artifact layout
120
+ - package-local references or runtime assumptions
121
+
122
+ Do not blindly mirror every upstream orchestrator edit into this package.
123
+
124
+ ## Current work-unit direction
125
+
126
+ This package now supports a finer-grained `work-unit` layer to force tighter context boundaries between bounded units:
127
+
128
+ - `workUnitId`
129
+ - `workUnitGoal`
130
+ - `allowedFiles`
131
+ - `unitChecks`
132
+ - `unitDeliverables`
133
+ - `unitSummary`
134
+ - `carryForwardSummary`
135
+
136
+ Continuation should prefer the shorter `carryForwardSummary` before falling back to a full prior decision or handoff. The goal is to minimize cross-unit context while preserving the smallest necessary state for the next unit.
@@ -0,0 +1,67 @@
1
+ ---
2
+ name: ai-sprint-orchestration
3
+ description: Run long-form coding work through the packaged AI sprint orchestrator with baseline checks, validation runs, failure classification, and workflow-only iteration discipline.
4
+ ---
5
+
6
+ # AI Sprint Orchestration
7
+
8
+ Use this skill when a task is large, multi-stage, or likely to need repeated review and continuation. The skill packages a local copy of the orchestrator so an agent can start from this skill directory instead of hunting through repo internals.
9
+
10
+ ## Use this skill for
11
+
12
+ - Complex bug fixes that need investigation, implementation, and review
13
+ - Feature work that benefits from explicit producer/reviewer decision gates
14
+ - Workflow self-validation using the built-in validation specs
15
+ - Long-running tasks where artifact persistence and resumability matter
16
+
17
+ ## Do not use this skill for
18
+
19
+ - Tiny single-file edits or trivial docs fixes
20
+ - Product-side sample gaps in `packages/openclaw-plugin`
21
+ - Changes that require editing `D:/Code/openclaw`
22
+ - Dashboard, stageGraph, self-optimizing sprint, or parallel orchestrator expansion
23
+
24
+ ## Quick start
25
+
26
+ Run these commands from the skill package root:
27
+
28
+ 1. Package smoke check:
29
+ `node scripts/run.mjs --self-check`
30
+ `node scripts/run.mjs --help`
31
+ 2. Package-local validation:
32
+ `node scripts/run.mjs --task workflow-validation-minimal`
33
+ `node scripts/run.mjs --task workflow-validation-minimal-verify`
34
+ 3. Inspect artifacts under:
35
+ `runtime/`
36
+
37
+ Internal smoke standard:
38
+
39
+ - `node scripts/run.mjs --self-check` passes
40
+ - `workflow-validation-minimal` reaches producer completion and produces a structured decision or classified halt
41
+ - `workflow-validation-minimal-verify` reaches producer completion and any reviewer failure is classified, not left opaque
42
+
43
+ If you also have the source repository available, you may additionally run the source baseline tests from `packages/openclaw-plugin/templates/langs/zh/skills/ai-sprint-orchestration/test/`.
44
+
45
+ ## Execution rules
46
+
47
+ - Treat `packages/openclaw-plugin/templates/langs/zh/skills/ai-sprint-orchestration` as the canonical code source.
48
+ - Treat this English package as a mirrored delivery copy of that canonical implementation.
49
+ - If a run fails, classify it as exactly one of:
50
+ - `workflow bug`
51
+ - `agent behavior issue`
52
+ - `environment issue`
53
+ - `sample-spec issue`
54
+ - If the failure is product-side or sample-side, stop after classification. Do not continue into product closure work.
55
+ - Only fix one workflow-only issue per iteration, then rerun baseline and validation.
56
+ - Always run `node scripts/run.mjs --self-check` before the first validation run in a new environment.
57
+ - For complex bugfix or feature work, start from a copied template spec and fill the minimum task contract before launching the sprint.
58
+
59
+ ## Output expectation
60
+
61
+ Each iteration should report only:
62
+
63
+ - what changed
64
+ - what ran
65
+ - what failed
66
+ - failure classification
67
+ - the single next recommended iteration
@@ -0,0 +1,214 @@
1
+ {
2
+ "$schema": "agent-registry-v1",
3
+ "description": "Registry of available agents and their supported models for AI sprint orchestrator. All models are FREE. Updated: 2026-04-04.",
4
+ "lastUpdated": "2026-04-04",
5
+
6
+ "agents": {
7
+ "iflow": {
8
+ "command": "iflow --experimental-acp",
9
+ "description": "iFlow CLI with ACP support (智谱 Code Plan / MiniMax Code Plan 付费套餐更稳定,但以下模型全部免费)",
10
+ "version": "0.5.18",
11
+ "models": {
12
+ "glm-4.7": {
13
+ "description": "GLM-4.7 — official recommended model, fast",
14
+ "pricing": "free",
15
+ "recommendedTimeoutSeconds": 1200,
16
+ "features": ["recommended", "fast"],
17
+ "notes": "官方推荐模型,速度快"
18
+ },
19
+ "glm-5": {
20
+ "description": "GLM-5 — 744B parameters, long-context",
21
+ "pricing": "free",
22
+ "recommendedTimeoutSeconds": 1800,
23
+ "features": ["slow", "needs-extra-time"],
24
+ "notes": "744B 参数,运行明显较慢。Review 任务超时必须 ≥ 1800s"
25
+ },
26
+ "qwen3-coder-plus": {
27
+ "description": "Qwen3-Coder-Plus — efficient coding model",
28
+ "pricing": "free",
29
+ "recommendedTimeoutSeconds": 1200,
30
+ "features": ["fast", "coding-optimized"],
31
+ "notes": "通义编码模型"
32
+ },
33
+ "deepseek-v3.2": {
34
+ "description": "DeepSeek V3.2",
35
+ "pricing": "free",
36
+ "recommendedTimeoutSeconds": 1200,
37
+ "features": ["fast"],
38
+ "notes": ""
39
+ },
40
+ "minimax-m2.5": {
41
+ "description": "MiniMax M2.5",
42
+ "pricing": "free",
43
+ "recommendedTimeoutSeconds": 1200,
44
+ "features": ["fast"],
45
+ "notes": ""
46
+ },
47
+ "kimi-k2-thinking": {
48
+ "description": "Kimi K2 Thinking",
49
+ "pricing": "free",
50
+ "recommendedTimeoutSeconds": 1800,
51
+ "features": ["reasoning"],
52
+ "notes": "推理型模型"
53
+ },
54
+ "kimi-k2.5": {
55
+ "description": "Kimi K2.5",
56
+ "pricing": "free",
57
+ "recommendedTimeoutSeconds": 1200,
58
+ "features": ["fast"],
59
+ "notes": ""
60
+ },
61
+ "kimi-k2-0905": {
62
+ "description": "Kimi K2 0905",
63
+ "pricing": "free",
64
+ "recommendedTimeoutSeconds": 1200,
65
+ "features": ["fast"],
66
+ "notes": ""
67
+ },
68
+ "iflow-rome-30ba3b": {
69
+ "description": "iFlow ROME 30BA3B",
70
+ "pricing": "free",
71
+ "recommendedTimeoutSeconds": 1200,
72
+ "features": ["preview"],
73
+ "notes": "预览版本"
74
+ }
75
+ }
76
+ },
77
+
78
+ "opencode": {
79
+ "command": "npx -y opencode-ai acp",
80
+ "description": "OpenCode ACP adapter",
81
+ "version": "1.3.13",
82
+ "models": {
83
+ "minimax-cn-coding-plan/MiniMax-M2.7": {
84
+ "description": "MiniMax M2.7 (Chinese coding plan)",
85
+ "pricing": "free",
86
+ "recommendedTimeoutSeconds": 1200,
87
+ "features": ["fast", "coding-optimized", "stable"],
88
+ "notes": "最稳定的模型,默认 producer 选择"
89
+ },
90
+ "minimax-cn-coding-plan/MiniMax-M2.5": {
91
+ "description": "MiniMax M2.5 (Chinese coding plan)",
92
+ "pricing": "free",
93
+ "recommendedTimeoutSeconds": 1200,
94
+ "features": ["fast", "coding-optimized"],
95
+ "notes": "能力略弱于 M2.7"
96
+ },
97
+ "minimax-cn-coding-plan/MiniMax-M2.7-highspeed": {
98
+ "description": "MiniMax M2.7 highspeed variant",
99
+ "pricing": "free",
100
+ "recommendedTimeoutSeconds": 900,
101
+ "features": ["fast", "highspeed"],
102
+ "notes": "高速变体"
103
+ },
104
+ "minimax-cn-coding-plan/MiniMax-M2": {
105
+ "description": "MiniMax M2 (Chinese coding plan)",
106
+ "pricing": "free",
107
+ "recommendedTimeoutSeconds": 1200,
108
+ "features": ["fast"],
109
+ "notes": "旧版本"
110
+ },
111
+ "minimax-cn-coding-plan/MiniMax-M2.1": {
112
+ "description": "MiniMax M2.1 (Chinese coding plan)",
113
+ "pricing": "free",
114
+ "recommendedTimeoutSeconds": 1200,
115
+ "features": ["fast"],
116
+ "notes": "旧版本"
117
+ }
118
+ }
119
+ },
120
+
121
+ "gemini": {
122
+ "command": "gemini --acp",
123
+ "description": "Gemini CLI with ACP support (全部免费)",
124
+ "models": {
125
+ "gemini-2.5-pro": {
126
+ "description": "Gemini 2.5 Pro — high reasoning capability",
127
+ "pricing": "free",
128
+ "recommendedTimeoutSeconds": 1800,
129
+ "features": ["high-reasoning"],
130
+ "notes": "高推理能力"
131
+ },
132
+ "gemini-2.5-flash": {
133
+ "description": "Gemini 2.5 Flash — fast response",
134
+ "pricing": "free",
135
+ "recommendedTimeoutSeconds": 1200,
136
+ "features": ["fast"],
137
+ "notes": "快速响应"
138
+ },
139
+ "gemini-2.5-flash-lite": {
140
+ "description": "Gemini 2.5 Flash Lite — lightweight",
141
+ "pricing": "free",
142
+ "recommendedTimeoutSeconds": 900,
143
+ "features": ["fast", "lite"],
144
+ "notes": "轻量版本"
145
+ },
146
+ "gemini-3-pro-preview": {
147
+ "description": "Gemini 3 Pro Preview — high reasoning, limited quota",
148
+ "pricing": "free",
149
+ "recommendedTimeoutSeconds": 1800,
150
+ "features": ["high-reasoning", "slow", "limited-quota"],
151
+ "notes": "高推理,但额度有限、很慢"
152
+ },
153
+ "gemini-3-flash-preview": {
154
+ "description": "Gemini 3 Flash Preview",
155
+ "pricing": "free",
156
+ "recommendedTimeoutSeconds": 1200,
157
+ "features": ["fast", "preview"],
158
+ "notes": "预览版本"
159
+ },
160
+ "gemini-3.1-pro-preview": {
161
+ "description": "Gemini 3.1 Pro Preview — high reasoning, limited quota",
162
+ "pricing": "free",
163
+ "recommendedTimeoutSeconds": 1800,
164
+ "features": ["high-reasoning", "slow", "limited-quota"],
165
+ "notes": "高推理,但额度有限、很慢"
166
+ },
167
+ "gemini-3.1-flash-lite-preview": {
168
+ "description": "Gemini 3.1 Flash Lite Preview — lightweight preview",
169
+ "pricing": "free",
170
+ "recommendedTimeoutSeconds": 900,
171
+ "features": ["fast", "lite", "preview"],
172
+ "notes": "轻量预览版本"
173
+ }
174
+ }
175
+ },
176
+
177
+ "qwen": {
178
+ "command": "qwen --acp",
179
+ "description": "Qwen Code CLI with ACP support (全部免费)",
180
+ "models": {
181
+ "qwen3.6-plus": {
182
+ "description": "Qwen 3.6 Plus — efficient hybrid model with leading coding performance, 1M context window",
183
+ "pricing": "free",
184
+ "recommendedTimeoutSeconds": 1200,
185
+ "features": ["fast", "coding-optimized", "long-context"],
186
+ "notes": "高效混合模型,领先编码性能,100 万 token 上下文窗口"
187
+ }
188
+ }
189
+ },
190
+
191
+ "claude": {
192
+ "command": "claude",
193
+ "description": "Claude Code (Anthropic)",
194
+ "version": "2.1.81",
195
+ "models": {
196
+ "GLM-5.1": {
197
+ "description": "GLM-5.1 via Claude Code adapter",
198
+ "pricing": "free",
199
+ "recommendedTimeoutSeconds": 1800,
200
+ "features": ["slow"],
201
+ "notes": "保留给 escalation/global-reviewer 角色。注意:智谱 Code Plan 限额较高,容易触发限流"
202
+ }
203
+ }
204
+ }
205
+ },
206
+
207
+ "_notes": {
208
+ "paid_plans": "智谱 Code Plan 和 MiniMax Code Plan 是付费套餐,但本 registry 只登记免费可用的模型。付费套餐更稳定但不改变模型列表。",
209
+ "codex": "codex-acp 在当前环境无法使用,不登记。",
210
+ "kilocode": "kilocode ACP 是 server 模式(监听端口),不是 headless prompt-response,不兼容 acpx,不登记。",
211
+ "qodercli": "qodercli 没有 --acp 标志,不登记。",
212
+ "model_discovery": "opencode 可通过 'opencode models' 自动列出模型。其他 agent(iflow, gemini, qwen)没有 CLI 列表命令,需手动维护。"
213
+ }
214
+ }
@@ -0,0 +1,107 @@
1
+ {
2
+ "id": "bugfix-complex-template",
3
+ "title": "Complex Bugfix Template - Replace before use",
4
+ "workspace": "__SKILL_PACKAGE_ROOT__",
5
+ "branchWorkspace": "__SKILL_PACKAGE_ROOT__",
6
+ "branch": "main",
7
+ "requiresTaskContract": true,
8
+ "taskContract": {
9
+ "goal": "<describe the bug to fix and the expected behavior after the fix>",
10
+ "inScope": [
11
+ "<target modules or files that may be changed>"
12
+ ],
13
+ "outOfScope": [
14
+ "<forbidden modules, unrelated refactors, product-side gaps>"
15
+ ],
16
+ "validationCommands": [
17
+ "<command 1>",
18
+ "<command 2>"
19
+ ],
20
+ "expectedArtifacts": [
21
+ "decision.md",
22
+ "scorecard.json",
23
+ "<optional task-specific artifact>"
24
+ ]
25
+ },
26
+ "executionScope": {
27
+ "maxFiles": 6,
28
+ "maxChecks": 4,
29
+ "maxDeliverables": 3
30
+ },
31
+ "maxRoundsPerStage": 2,
32
+ "maxRuntimeMinutes": 60,
33
+ "stageTimeoutMinutes": 15,
34
+ "stages": ["investigate", "implement-pass-1", "verify"],
35
+ "producer": {
36
+ "agent": "iflow",
37
+ "model": "glm-4.7",
38
+ "timeoutSeconds": 180
39
+ },
40
+ "reviewerA": {
41
+ "agent": "iflow",
42
+ "model": "glm-4.7",
43
+ "timeoutSeconds": 120,
44
+ "focus": "Validate root cause, behavioral change, and code correctness."
45
+ },
46
+ "reviewerB": {
47
+ "agent": "iflow",
48
+ "model": "glm-4.7",
49
+ "timeoutSeconds": 120,
50
+ "focus": "Validate scope control, verification quality, and regression risk."
51
+ },
52
+ "context": [
53
+ "This is a generic complex bugfix sprint template.",
54
+ "Replace all placeholder contract values before running.",
55
+ "Use this template only for workflow-contained bugfix work, not for product-side closure in out-of-scope repositories."
56
+ ],
57
+ "stageGoals": {
58
+ "investigate": [
59
+ "Establish the most likely root cause.",
60
+ "Narrow the allowed file set and verification plan.",
61
+ "Produce a bugfix plan that fits one bounded implementation round."
62
+ ],
63
+ "implement-pass-1": [
64
+ "Implement the smallest sufficient bugfix within the declared scope.",
65
+ "Run the planned verification commands.",
66
+ "Record evidence that the observed behavior changed."
67
+ ],
68
+ "verify": [
69
+ "Verify the fix changed the intended behavior.",
70
+ "Check whether any regression risk remains unverified.",
71
+ "Decide whether the bugfix is ready to stop, continue, or revise."
72
+ ]
73
+ },
74
+ "stageCriteria": {
75
+ "investigate": {
76
+ "requiredApprovals": 2,
77
+ "requiredProducerSections": ["SUMMARY", "CHANGES", "EVIDENCE", "CODE_EVIDENCE", "KEY_EVENTS", "HYPOTHESIS_MATRIX", "CHECKS", "OPEN_RISKS"],
78
+ "requiredReviewerSections": ["VERDICT", "BLOCKERS", "FINDINGS", "CODE_EVIDENCE", "HYPOTHESIS_MATRIX", "NEXT_FOCUS", "CHECKS"],
79
+ "scoringDimensions": ["root_cause_quality", "scope_definition"],
80
+ "dimensionThreshold": 3,
81
+ "requiredDeliverables": ["root_cause_hypothesis", "execution_plan", "verification_plan"]
82
+ },
83
+ "implement-pass-1": {
84
+ "requiredApprovals": 2,
85
+ "requiredProducerSections": ["SUMMARY", "CHANGES", "EVIDENCE", "CODE_EVIDENCE", "KEY_EVENTS", "HYPOTHESIS_MATRIX", "CHECKS", "OPEN_RISKS", "CONTRACT"],
86
+ "requiredReviewerSections": ["VERDICT", "BLOCKERS", "FINDINGS", "CODE_EVIDENCE", "HYPOTHESIS_MATRIX", "NEXT_FOCUS", "CHECKS"],
87
+ "scoringDimensions": ["behavior_change", "verification_quality", "scope_control"],
88
+ "dimensionThreshold": 3,
89
+ "requiredDeliverables": ["code_change", "verification_evidence", "risk_summary"]
90
+ },
91
+ "verify": {
92
+ "requiredApprovals": 2,
93
+ "requiredProducerSections": ["SUMMARY", "CHANGES", "EVIDENCE", "CODE_EVIDENCE", "KEY_EVENTS", "HYPOTHESIS_MATRIX", "CHECKS", "OPEN_RISKS"],
94
+ "requiredReviewerSections": ["VERDICT", "BLOCKERS", "FINDINGS", "CODE_EVIDENCE", "HYPOTHESIS_MATRIX", "NEXT_FOCUS", "CHECKS"],
95
+ "scoringDimensions": ["artifact_verification", "residual_risk"],
96
+ "dimensionThreshold": 3,
97
+ "requiredDeliverables": ["verified_behavior_change", "residual_risk_assessment"]
98
+ }
99
+ },
100
+ "stageRoleTimeouts": {
101
+ "investigate": { "producer": 180, "reviewer_a": 120, "reviewer_b": 120 },
102
+ "implement-pass-1": { "producer": 240, "reviewer_a": 120, "reviewer_b": 120 },
103
+ "verify": { "producer": 120, "reviewer_a": 90, "reviewer_b": 90 }
104
+ },
105
+ "continuationSpec": null,
106
+ "recoverySpec": null
107
+ }