@ai-content-space/loopx 0.2.7 → 0.2.8
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.md +5 -5
- package/README.zh-CN.md +6 -6
- package/docs/loopx/design/finish/345/255/246/344/271/240/345/256/241/350/256/241/351/234/200/346/261/202/350/256/276/350/256/241/346/226/207/346/241/243.md +1 -1
- package/docs/loopx/design/loopx-skill-suite-v1-design.md +4 -4
- package/docs/loopx/plans/loopx-skill-suite-v1-implementation.md +1 -1
- package/package.json +2 -2
- package/plugins/loopx/.codex-plugin/plugin.json +1 -1
- package/plugins/loopx/skills/clarify/SKILL.md +3 -3
- package/plugins/loopx/skills/debug/SKILL.md +1 -1
- package/plugins/loopx/skills/doc-readability/SKILL.md +1 -1
- package/plugins/loopx/skills/exec/SKILL.md +2 -2
- package/plugins/loopx/skills/final-review/SKILL.md +1 -1
- package/plugins/loopx/skills/finish/SKILL.md +1 -1
- package/plugins/loopx/skills/fix-review/SKILL.md +1 -1
- package/plugins/loopx/skills/go-style/SKILL.md +1 -1
- package/plugins/loopx/skills/kratos/SKILL.md +1 -1
- package/plugins/loopx/skills/{plan → plan-to-exec}/SKILL.md +5 -5
- package/plugins/loopx/skills/refactor-plan/SKILL.md +1 -1
- package/plugins/loopx/skills/review/SKILL.md +1 -1
- package/plugins/loopx/skills/spec/DESIGN_SPEC_TEMPLATE.md +2 -2
- package/plugins/loopx/skills/spec/SKILL.md +4 -4
- package/plugins/loopx/skills/subagent-exec/SKILL.md +2 -2
- package/plugins/loopx/skills/tdd/SKILL.md +1 -1
- package/plugins/loopx/skills/verify/SKILL.md +1 -1
- package/scripts/claude-workflow-hook.mjs +2 -2
- package/scripts/codex-workflow-hook.mjs +4 -4
- package/skills/RESOLVER.md +4 -4
- package/skills/clarify/SKILL.md +3 -3
- package/skills/debug/SKILL.md +1 -1
- package/skills/doc-readability/SKILL.md +1 -1
- package/skills/exec/SKILL.md +2 -2
- package/skills/final-review/SKILL.md +1 -1
- package/skills/finish/SKILL.md +1 -1
- package/skills/fix-review/SKILL.md +1 -1
- package/skills/go-style/SKILL.md +1 -1
- package/skills/kratos/SKILL.md +1 -1
- package/skills/{plan → plan-to-exec}/SKILL.md +5 -5
- package/skills/refactor-plan/SKILL.md +1 -1
- package/skills/review/SKILL.md +1 -1
- package/skills/spec/DESIGN_SPEC_TEMPLATE.md +2 -2
- package/skills/spec/SKILL.md +4 -4
- package/skills/subagent-exec/SKILL.md +2 -2
- package/skills/tdd/SKILL.md +1 -1
- package/skills/verify/SKILL.md +1 -1
- package/src/cli.mjs +3 -3
- package/src/install-discovery.mjs +1 -1
- package/src/next-skill.mjs +2 -2
- package/src/workflow.mjs +4 -4
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
Recommended v1 flow:
|
|
16
16
|
|
|
17
17
|
```text
|
|
18
|
-
clarify -> spec? -> plan -> (subagent-exec | exec) -> final-review -> fix-review? -> finish
|
|
18
|
+
clarify -> spec? -> plan-to-exec -> (subagent-exec | exec) -> final-review -> fix-review? -> finish
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
## Quick start
|
|
@@ -54,7 +54,7 @@ Core workflow skills:
|
|
|
54
54
|
|
|
55
55
|
- `clarify`: interview until scope, non-goals, constraints, and decision boundaries are clear.
|
|
56
56
|
- `spec`: write a design document or lightweight design note when design decisions are required.
|
|
57
|
-
- `plan`: write a bite-sized implementation plan in the superpowers `writing-plans` style.
|
|
57
|
+
- `plan-to-exec`: write a bite-sized implementation plan in the superpowers `writing-plans` style.
|
|
58
58
|
- `subagent-exec`: execute an approved plan with fresh subagents and staged review.
|
|
59
59
|
- `exec`: execute an approved plan inline when subagents are unavailable or not desired.
|
|
60
60
|
- `review`: request independent code review against a git range and plan or requirements.
|
|
@@ -159,8 +159,8 @@ loopx doctor
|
|
|
159
159
|
Undo installed files when you want to remove loopx-managed user-level artifacts:
|
|
160
160
|
|
|
161
161
|
```bash
|
|
162
|
-
rm -rf ~/.agents/skills/{clarify,spec,plan,subagent-exec,exec,review,final-review,fix-review,finish,refactor-plan,tdd,debug,verify,go-style,kratos}
|
|
163
|
-
rm -rf ~/.claude/skills/{clarify,spec,plan,subagent-exec,exec,review,final-review,fix-review,finish,refactor-plan,tdd,debug,verify,go-style,kratos}
|
|
162
|
+
rm -rf ~/.agents/skills/{clarify,spec,plan-to-exec,subagent-exec,exec,review,final-review,fix-review,finish,refactor-plan,tdd,debug,verify,go-style,kratos}
|
|
163
|
+
rm -rf ~/.claude/skills/{clarify,spec,plan-to-exec,subagent-exec,exec,review,final-review,fix-review,finish,refactor-plan,tdd,debug,verify,go-style,kratos}
|
|
164
164
|
rm -f ~/.codex/hooks/codex-workflow-hook.mjs ~/.claude/hooks/loopx-workflow-hook.mjs
|
|
165
165
|
```
|
|
166
166
|
|
|
@@ -232,7 +232,7 @@ loopx status my-feature
|
|
|
232
232
|
loopx next my-feature
|
|
233
233
|
```
|
|
234
234
|
|
|
235
|
-
After `clarify`, hand control to the suggested skill command, usually `$plan <slug>`. Continue following `loopx status <slug>` or `loopx next <slug>` until `final-review` and `$finish` complete the work.
|
|
235
|
+
After `clarify`, hand control to the suggested skill command, usually `$plan-to-exec <slug>`. Continue following `loopx status <slug>` or `loopx next <slug>` until `final-review` and `$finish` complete the work.
|
|
236
236
|
|
|
237
237
|
## Governance
|
|
238
238
|
|
package/README.zh-CN.md
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
推荐 v1 流程:
|
|
16
16
|
|
|
17
17
|
```text
|
|
18
|
-
clarify -> spec? -> plan -> (subagent-exec | exec) -> final-review -> fix-review? -> finish
|
|
18
|
+
clarify -> spec? -> plan-to-exec -> (subagent-exec | exec) -> final-review -> fix-review? -> finish
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
## 快速开始
|
|
@@ -44,7 +44,7 @@ loopx install-skills --target all --json
|
|
|
44
44
|
|
|
45
45
|
默认 init 路径也可以使用 JSON 输出:`loopx init --json`。
|
|
46
46
|
|
|
47
|
-
`spec` 是条件设计门。涉及 API、数据、状态、权限、迁移、兼容、产品行为或架构决策时使用;只剩局部实现选择时可以跳过,直接进入 `plan`。
|
|
47
|
+
`spec` 是条件设计门。涉及 API、数据、状态、权限、迁移、兼容、产品行为或架构决策时使用;只剩局部实现选择时可以跳过,直接进入 `plan-to-exec`。
|
|
48
48
|
|
|
49
49
|
## Skills
|
|
50
50
|
|
|
@@ -54,7 +54,7 @@ loopx install-skills --target all --json
|
|
|
54
54
|
|
|
55
55
|
- `clarify`:持续追问直到范围、非目标、约束和决策边界清楚。
|
|
56
56
|
- `spec`:在需要设计决策时写设计文档或轻量 design note。
|
|
57
|
-
- `plan`:按 superpowers `writing-plans` 风格写小步实施计划。
|
|
57
|
+
- `plan-to-exec`:按 superpowers `writing-plans` 风格写小步实施计划。
|
|
58
58
|
- `subagent-exec`:用 fresh subagents 和 staged review 执行已批准计划。
|
|
59
59
|
- `exec`:没有 subagent 或用户选择 inline 时顺序执行计划。
|
|
60
60
|
- `review`:基于 git range 和计划/需求发起独立代码评审。
|
|
@@ -159,8 +159,8 @@ loopx doctor
|
|
|
159
159
|
撤销已安装文件,移除 loopx 管理的用户级 artifacts:
|
|
160
160
|
|
|
161
161
|
```bash
|
|
162
|
-
rm -rf ~/.agents/skills/{clarify,spec,plan,subagent-exec,exec,review,final-review,fix-review,finish,refactor-plan,tdd,debug,verify,go-style,kratos}
|
|
163
|
-
rm -rf ~/.claude/skills/{clarify,spec,plan,subagent-exec,exec,review,final-review,fix-review,finish,refactor-plan,tdd,debug,verify,go-style,kratos}
|
|
162
|
+
rm -rf ~/.agents/skills/{clarify,spec,plan-to-exec,subagent-exec,exec,review,final-review,fix-review,finish,refactor-plan,tdd,debug,verify,go-style,kratos}
|
|
163
|
+
rm -rf ~/.claude/skills/{clarify,spec,plan-to-exec,subagent-exec,exec,review,final-review,fix-review,finish,refactor-plan,tdd,debug,verify,go-style,kratos}
|
|
164
164
|
rm -f ~/.codex/hooks/codex-workflow-hook.mjs ~/.claude/hooks/loopx-workflow-hook.mjs
|
|
165
165
|
```
|
|
166
166
|
|
|
@@ -232,7 +232,7 @@ loopx status my-feature
|
|
|
232
232
|
loopx next my-feature
|
|
233
233
|
```
|
|
234
234
|
|
|
235
|
-
`clarify` 之后,把控制权交给提示的 skill 命令,通常是 `$plan <slug>`。后续继续跟随 `loopx status <slug>` 或 `loopx next <slug>`,直到 `final-review` 和 `$finish` 完成收尾。
|
|
235
|
+
`clarify` 之后,把控制权交给提示的 skill 命令,通常是 `$plan-to-exec <slug>`。后续继续跟随 `loopx status <slug>` 或 `loopx next <slug>`,直到 `final-review` 和 `$finish` 完成收尾。
|
|
236
236
|
|
|
237
237
|
## 治理
|
|
238
238
|
|
|
@@ -10,7 +10,7 @@ The v1 product surface is the installed and governed bundled skill suite:
|
|
|
10
10
|
|
|
11
11
|
- `clarify`
|
|
12
12
|
- `spec`
|
|
13
|
-
- `plan`
|
|
13
|
+
- `plan-to-exec`
|
|
14
14
|
- `subagent-exec`
|
|
15
15
|
- `exec`
|
|
16
16
|
- `review`
|
|
@@ -33,12 +33,12 @@ The repository may retain auxiliary or compatibility skill source directories fo
|
|
|
33
33
|
Recommended flow:
|
|
34
34
|
|
|
35
35
|
```text
|
|
36
|
-
clarify -> spec? -> plan -> (subagent-exec | exec) -> final-review -> fix-review? -> finish
|
|
36
|
+
clarify -> spec? -> plan-to-exec -> (subagent-exec | exec) -> final-review -> fix-review? -> finish
|
|
37
37
|
```
|
|
38
38
|
|
|
39
|
-
`spec` is a conditional design gate. `clarify` may route directly to `plan` when the remaining questions are local implementation choices. It routes to `spec` when product behavior, APIs, state, data, permissions, migration, compatibility, or architecture decisions need to be fixed before implementation planning.
|
|
39
|
+
`spec` is a conditional design gate. `clarify` may route directly to `plan-to-exec` when the remaining questions are local implementation choices. It routes to `spec` when product behavior, APIs, state, data, permissions, migration, compatibility, or architecture decisions need to be fixed before implementation planning.
|
|
40
40
|
|
|
41
|
-
`plan` is the superpowers `writing-plans` workflow under the loopx name. It writes executable plans and offers two execution options: `subagent-exec` recommended, or `exec` inline.
|
|
41
|
+
`plan-to-exec` is the superpowers `writing-plans` workflow under the loopx name. It writes executable plans and offers two execution options: `subagent-exec` recommended, or `exec` inline.
|
|
42
42
|
|
|
43
43
|
`review` is the task or checkpoint code review workflow inside `subagent-exec` or `exec`. `final-review` is the top-level whole-feature runtime, integration, and test-gap review before completion. `fix-review` handles feedback from either review layer.
|
|
44
44
|
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
|
|
23
23
|
- [ ] Rename canonical superpowers-derived skills to v1 names.
|
|
24
24
|
- [ ] Remove old runtime workflow skills from the bundled install list.
|
|
25
|
-
- [ ] Keep `plan` as the canonical implementation-planning skill.
|
|
25
|
+
- [ ] Keep `plan-to-exec` as the canonical implementation-planning skill.
|
|
26
26
|
- [ ] Mirror all bundled v1 canonical skill files into `plugins/loopx/skills/`.
|
|
27
27
|
- [ ] Update internal references from old names to new `loopx:` names.
|
|
28
28
|
- [ ] Keep auxiliary or compatibility skill sources outside the bundled install list unless explicitly promoted into the v1 product surface.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-content-space/loopx",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.8",
|
|
5
5
|
"description": "Skill-first workflow suite for agentic coding assistants",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"skills/fix-review/",
|
|
41
41
|
"skills/go-style/",
|
|
42
42
|
"skills/kratos/",
|
|
43
|
-
"skills/plan/",
|
|
43
|
+
"skills/plan-to-exec/",
|
|
44
44
|
"skills/refactor-plan/",
|
|
45
45
|
"skills/review/",
|
|
46
46
|
"skills/spec/",
|
|
@@ -3,7 +3,7 @@ name: clarify
|
|
|
3
3
|
description: "Grills ambiguous loopx work until material questions are answered, then routes to spec or plan using a design gate. Not for clear implementation tasks, approved specs, or code changes."
|
|
4
4
|
when_to_use: "clarify, requirements, ambiguous request, unclear scope, non-goals, decision boundaries, acceptance criteria, 需求澄清, 范围不清"
|
|
5
5
|
metadata:
|
|
6
|
-
version: "0.2.
|
|
6
|
+
version: "0.2.8"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# loopx Clarify
|
|
@@ -63,10 +63,10 @@ For `needs_spec`, immediately use the `spec` skill with the clarification contex
|
|
|
63
63
|
Then stop before implementation planning and report:
|
|
64
64
|
|
|
65
65
|
```text
|
|
66
|
-
$plan docs/loopx/design/<需求名>需求设计文档.md
|
|
66
|
+
$plan-to-exec docs/loopx/design/<需求名>需求设计文档.md
|
|
67
67
|
```
|
|
68
68
|
|
|
69
|
-
For `direct_to_plan`, hand off to the `plan` skill with the clarification context bundle as the source. `plan` writes:
|
|
69
|
+
For `direct_to_plan`, hand off to the `plan-to-exec` skill with the clarification context bundle as the source. `plan-to-exec` writes:
|
|
70
70
|
|
|
71
71
|
- `docs/loopx/plans/YYYY-MM-DD-<feature-name>.md`
|
|
72
72
|
|
|
@@ -3,7 +3,7 @@ name: debug
|
|
|
3
3
|
description: "Finds root cause for bugs, failing tests, build failures, regressions, and unexpected behavior before fixes. Not for new feature planning or routine code review."
|
|
4
4
|
when_to_use: "debug, bug, test failure, build failure, regression, unexpected behavior, root cause, 报错, 失败, 回归, 排查"
|
|
5
5
|
metadata:
|
|
6
|
-
version: "0.2.
|
|
6
|
+
version: "0.2.8"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# Systematic Debugging
|
|
@@ -3,7 +3,7 @@ name: doc-readability
|
|
|
3
3
|
description: "Use when evaluating, rewriting, or editing documents for human readability, unclear viewpoints, AI-like prose, bloated specs, PRDs, requirements docs, meeting notes, strategy docs, or internal knowledge-base articles. Not for code review, implementation planning, or file-format conversion."
|
|
4
4
|
when_to_use: "document readability, PRD assessment, requirements gaps, AI-like prose, unclear viewpoint, rewrite docs, editing docs, 文档可读性, 去AI味, 需求文档评估"
|
|
5
5
|
metadata:
|
|
6
|
-
version: "0.2.
|
|
6
|
+
version: "0.2.8"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# Doc Readability
|
|
@@ -3,7 +3,7 @@ name: exec
|
|
|
3
3
|
description: "Executes a written loopx implementation plan sequentially with review checkpoints. Not for unclear plans, missing requirements, or subagent-first execution."
|
|
4
4
|
when_to_use: "written implementation plan, inline execution, sequential plan execution, review checkpoints, no subagent lane"
|
|
5
5
|
metadata:
|
|
6
|
-
version: "0.2.
|
|
6
|
+
version: "0.2.8"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# Exec
|
|
@@ -80,7 +80,7 @@ After all tasks complete and verified:
|
|
|
80
80
|
## Integration
|
|
81
81
|
|
|
82
82
|
**Required workflow skills:**
|
|
83
|
-
- **loopx:plan** - Creates the plan this skill executes
|
|
83
|
+
- **loopx:plan-to-exec** - Creates the plan this skill executes
|
|
84
84
|
- **loopx:final-review** - Final whole-feature runtime and integration risk review
|
|
85
85
|
- **loopx:fix-review** - Handles final-review feedback before finish
|
|
86
86
|
- **loopx:finish** - Complete development after all tasks
|
|
@@ -3,7 +3,7 @@ name: final-review
|
|
|
3
3
|
description: "Performs whole-feature review after implementation and staged task review. Not for per-task review, unresolved scope, implementation, or pure documentation polish."
|
|
4
4
|
when_to_use: "final-review, final code review, whole feature review, integration review, pre-finish review, after subagent-exec, runtime risk review, 最终评审"
|
|
5
5
|
metadata:
|
|
6
|
-
version: "0.2.
|
|
6
|
+
version: "0.2.8"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# Final Review
|
|
@@ -3,7 +3,7 @@ name: finish
|
|
|
3
3
|
description: "Finishes completed loopx development work after tests pass by presenting merge, PR, keep, or discard options. Not for unfinished work or failing verification."
|
|
4
4
|
when_to_use: "implementation complete, tests pass, finish branch, create pull request, merge locally, keep branch, discard work"
|
|
5
5
|
metadata:
|
|
6
|
-
version: "0.2.
|
|
6
|
+
version: "0.2.8"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# Finish
|
|
@@ -3,7 +3,7 @@ name: fix-review
|
|
|
3
3
|
description: "Handles received code review feedback with verification, technical evaluation, pushback, and one-item-at-a-time fixes. Not for requesting a new review or implementing unrelated changes."
|
|
4
4
|
when_to_use: "fix-review, received code review feedback, review comments, reviewer suggestions, requested changes, 处理评审意见"
|
|
5
5
|
metadata:
|
|
6
|
-
version: "0.2.
|
|
6
|
+
version: "0.2.8"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# Fix Review
|
|
@@ -3,7 +3,7 @@ name: go-style
|
|
|
3
3
|
description: "Applies loopx Go coding style for .go edits, tests, errors, context, naming, and interface boundaries. Not for non-Go code or Kratos-specific architecture by itself."
|
|
4
4
|
when_to_use: "go-style, Go, golang, .go files, go tests, gofmt, idiomatic Go, Go style, Go 代码"
|
|
5
5
|
metadata:
|
|
6
|
-
version: "0.2.
|
|
6
|
+
version: "0.2.8"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# Go Style
|
|
@@ -3,7 +3,7 @@ name: kratos
|
|
|
3
3
|
description: "Supports Go-Kratos microservices, proto/buf APIs, service/biz/data layers, middleware, auth, config, and troubleshooting. Not for generic Go style alone."
|
|
4
4
|
when_to_use: "kratos, Go-Kratos, proto, buf, service layer, biz layer, data layer, middleware, auth, config, Kratos 微服务"
|
|
5
5
|
metadata:
|
|
6
|
-
version: "0.2.
|
|
6
|
+
version: "0.2.8"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# Kratos
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: plan
|
|
2
|
+
name: plan-to-exec
|
|
3
3
|
description: "Creates bite-sized implementation plans from approved requirements, clarify output, or design specs with exact files, tests, commands, expected output, and execution handoff. Not for unresolved requirements, design decisions, PRD generation, or code changes."
|
|
4
|
-
when_to_use: "plan, implementation plan, execution plan, task breakdown, approved requirements, approved design spec, docs/loopx/design, 实施计划, 执行计划, 任务拆分"
|
|
4
|
+
when_to_use: "plan-to-exec, plan, implementation plan, execution plan, task breakdown, approved requirements, approved design spec, docs/loopx/design, 实施计划, 执行计划, 任务拆分"
|
|
5
5
|
metadata:
|
|
6
|
-
version: "0.2.
|
|
6
|
+
version: "0.2.8"
|
|
7
7
|
argument-hint: "<design spec path or feature name>"
|
|
8
8
|
---
|
|
9
9
|
|
|
10
|
-
# loopx Plan
|
|
10
|
+
# loopx Plan-To-Exec
|
|
11
11
|
|
|
12
12
|
## Overview
|
|
13
13
|
|
|
@@ -23,7 +23,7 @@ Use this skill after requirements are clear. The source may be:
|
|
|
23
23
|
|
|
24
24
|
Do not re-decide product or architecture. If the source is incomplete, contradictory, or missing product behavior, API, data, state, permission, migration, compatibility, or architecture decisions, return to `clarify` or `spec` instead of filling those gaps inside `plan`.
|
|
25
25
|
|
|
26
|
-
**Announce at start:** "I'm using the plan skill to create the implementation plan."
|
|
26
|
+
**Announce at start:** "I'm using the plan-to-exec skill to create the implementation plan."
|
|
27
27
|
|
|
28
28
|
**Save plans to:** `docs/loopx/plans/YYYY-MM-DD-<feature-name>.md`
|
|
29
29
|
|
|
@@ -3,7 +3,7 @@ name: refactor-plan
|
|
|
3
3
|
description: "Creates a behavior-preserving refactor plan with user interview, repo evidence, tiny commits, scope boundaries, and testing decisions. Not for feature changes or immediate implementation."
|
|
4
4
|
when_to_use: "refactor-plan, refactor request, refactoring RFC, tiny commits, behavior-preserving cleanup, architecture cleanup, 重构计划"
|
|
5
5
|
metadata:
|
|
6
|
-
version: "0.2.
|
|
6
|
+
version: "0.2.8"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
This skill will be invoked when the user wants to create a refactor request. You should go through the steps below. You may skip steps if you don't consider them necessary.
|
|
@@ -3,7 +3,7 @@ name: review
|
|
|
3
3
|
description: "Dispatches a loopx code reviewer subagent against a concrete git range and requirements. Not for implementation, planning, or unresolved review scope."
|
|
4
4
|
when_to_use: "request code review, completed task review, major feature review, pre-merge review, subagent code quality check"
|
|
5
5
|
metadata:
|
|
6
|
-
version: "0.2.
|
|
6
|
+
version: "0.2.8"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# Review
|
|
@@ -299,13 +299,13 @@
|
|
|
299
299
|
|
|
300
300
|
### 10.5 Planning Handoff
|
|
301
301
|
|
|
302
|
-
- `plan` 可以决定:
|
|
302
|
+
- `plan-to-exec` 可以决定:
|
|
303
303
|
- 必须返回 `spec` 的事项:
|
|
304
304
|
- 必须返回 `clarify` 的事项:
|
|
305
305
|
- 推荐下一步:
|
|
306
306
|
|
|
307
307
|
```text
|
|
308
|
-
$plan docs/loopx/design/<需求名>需求设计文档.md
|
|
308
|
+
$plan-to-exec docs/loopx/design/<需求名>需求设计文档.md
|
|
309
309
|
```
|
|
310
310
|
|
|
311
311
|
## 十一、QA
|
|
@@ -3,7 +3,7 @@ name: spec
|
|
|
3
3
|
description: "Writes software design specs from already-clarified requirements, including solution approach, architecture outline, detailed design, tradeoffs, verification design, and handoff context. Not for unresolved requirements, PRD generation, implementation task planning, or code changes."
|
|
4
4
|
when_to_use: "spec, design spec, technical design, design proposal, detailed design, architecture design, 设计方案, 概要设计, 详细设计, 技术方案"
|
|
5
5
|
metadata:
|
|
6
|
-
version: "0.2.
|
|
6
|
+
version: "0.2.8"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# loopx Spec
|
|
@@ -63,14 +63,14 @@ The Markdown spec must include these sections:
|
|
|
63
63
|
- `十、排期与规划`
|
|
64
64
|
- `十一、QA`
|
|
65
65
|
|
|
66
|
-
The `十、排期与规划` section must include a `Planning Handoff` subsection stating what `plan` may decide without re-opening design and what must return to `clarify` or `spec`.
|
|
66
|
+
The `十、排期与规划` section must include a `Planning Handoff` subsection stating what `plan-to-exec` may decide without re-opening design and what must return to `clarify` or `spec`.
|
|
67
67
|
|
|
68
68
|
## Handoff
|
|
69
69
|
|
|
70
70
|
After the spec is complete, recommend:
|
|
71
71
|
|
|
72
72
|
```text
|
|
73
|
-
$plan docs/loopx/design/<需求名>需求设计文档.md
|
|
73
|
+
$plan-to-exec docs/loopx/design/<需求名>需求设计文档.md
|
|
74
74
|
```
|
|
75
75
|
|
|
76
|
-
Use `plan` only after the design document is internally consistent and all material requirements questions are resolved.
|
|
76
|
+
Use `plan-to-exec` only after the design document is internally consistent and all material requirements questions are resolved.
|
|
@@ -3,7 +3,7 @@ name: subagent-exec
|
|
|
3
3
|
description: "Executes approved loopx implementation plans with fresh subagents per independent task and staged review. Not for planning, unclear requirements, or tightly coupled edits."
|
|
4
4
|
when_to_use: "approved implementation plan, independent tasks, subagent execution, staged spec review, code quality review, parallel-capable execution"
|
|
5
5
|
metadata:
|
|
6
|
-
version: "0.2.
|
|
6
|
+
version: "0.2.8"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# Subagent Exec
|
|
@@ -283,7 +283,7 @@ Done!
|
|
|
283
283
|
|
|
284
284
|
**Required workflow skills:**
|
|
285
285
|
|
|
286
|
-
- **loopx:plan** - Creates the plan this skill executes
|
|
286
|
+
- **loopx:plan-to-exec** - Creates the plan this skill executes
|
|
287
287
|
- **loopx:review** - Code review template for reviewer subagents
|
|
288
288
|
- **loopx:final-review** - Final whole-feature runtime and integration risk review
|
|
289
289
|
- **loopx:finish** - Complete development after all tasks
|
|
@@ -3,7 +3,7 @@ name: tdd
|
|
|
3
3
|
description: "Guides feature and bugfix implementation through a failing test before production code and red-green-refactor discipline. Not for generated files or throwaway prototypes."
|
|
4
4
|
when_to_use: "tdd, failing test first, feature implementation, bugfix, regression test, red green refactor, 测试先行"
|
|
5
5
|
metadata:
|
|
6
|
-
version: "0.2.
|
|
6
|
+
version: "0.2.8"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# Test-Driven Development (TDD)
|
|
@@ -3,7 +3,7 @@ name: verify
|
|
|
3
3
|
description: "Requires fresh verification evidence before claiming work is complete, fixed, passing, review-ready, or ready to commit. Not for speculative confidence or stale results."
|
|
4
4
|
when_to_use: "verify, completion claim, fixed claim, tests pass, review-ready, commit, fresh evidence, 验证, 完成前检查"
|
|
5
5
|
metadata:
|
|
6
|
-
version: "0.2.
|
|
6
|
+
version: "0.2.8"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# Verification Before Completion
|
|
@@ -106,10 +106,10 @@ function nextSkill(state) {
|
|
|
106
106
|
return approvedReviewAction;
|
|
107
107
|
}
|
|
108
108
|
if (state.current_stage === 'clarify') {
|
|
109
|
-
return 'Use loopx:clarify until material questions are resolved, then route to loopx:spec or loopx:plan.';
|
|
109
|
+
return 'Use loopx:clarify until material questions are resolved, then route to loopx:spec or loopx:plan-to-exec.';
|
|
110
110
|
}
|
|
111
111
|
if (state.current_stage === 'plan') {
|
|
112
|
-
return 'For new v1 skill-suite work, prefer loopx:plan writing docs/loopx/plans/*.md.';
|
|
112
|
+
return 'For new v1 skill-suite work, prefer loopx:plan-to-exec writing docs/loopx/plans/*.md.';
|
|
113
113
|
}
|
|
114
114
|
if (state.current_stage === 'build') {
|
|
115
115
|
return 'Legacy runtime build detected. New v1 execution should use loopx:subagent-exec or loopx:exec from a docs/loopx/plans/*.md plan.';
|
|
@@ -32,7 +32,7 @@ function nextSkill(state) {
|
|
|
32
32
|
return null;
|
|
33
33
|
}
|
|
34
34
|
if (isClarifyReadyForPlan(state)) {
|
|
35
|
-
return `$plan ${state.slug}`;
|
|
35
|
+
return `$plan-to-exec ${state.slug}`;
|
|
36
36
|
}
|
|
37
37
|
if (state.current_stage === 'done'
|
|
38
38
|
&& state.completion_confirmed === true) {
|
|
@@ -74,7 +74,7 @@ function nextSkill(state) {
|
|
|
74
74
|
&& state.review_verdict === 'request-changes'
|
|
75
75
|
&& state.requested_transition === 'review->plan'
|
|
76
76
|
&& state.approval?.rollback === 'approved') {
|
|
77
|
-
return `$plan ${state.slug}`;
|
|
77
|
+
return `$plan-to-exec ${state.slug}`;
|
|
78
78
|
}
|
|
79
79
|
if (state.current_stage === 'review'
|
|
80
80
|
&& state.review_verdict === 'request-changes'
|
|
@@ -179,10 +179,10 @@ function isLegacyClarifyState(state) {
|
|
|
179
179
|
|
|
180
180
|
function nextActionLine(state, workflow) {
|
|
181
181
|
if (isLegacyClarifyState(state) && isClarifyReadyForPlan(state)) {
|
|
182
|
-
return `loopx migrate, then $plan ${state.slug || workflow}`;
|
|
182
|
+
return `loopx migrate, then $plan-to-exec ${state.slug || workflow}`;
|
|
183
183
|
}
|
|
184
184
|
if (isClarifyReadyForPlan(state) && state.approval?.plan !== 'approved') {
|
|
185
|
-
return `finish clarification, then $plan ${state.slug || workflow}`;
|
|
185
|
+
return `finish clarification, then $plan-to-exec ${state.slug || workflow}`;
|
|
186
186
|
}
|
|
187
187
|
return nextSkill(state) || nextCli(state) || persistedNextAction(state) || 'none';
|
|
188
188
|
}
|
package/skills/RESOLVER.md
CHANGED
|
@@ -10,7 +10,7 @@ Read the selected skill file before acting. If multiple skills match, read every
|
|
|
10
10
|
|---|---|
|
|
11
11
|
| Ambiguous request, unclear scope, non-goals, decision boundaries, requirements interview | `skills/clarify/SKILL.md` |
|
|
12
12
|
| Design方案, technical design, API/data/state/security decisions, or architecture tradeoffs | `skills/spec/SKILL.md` |
|
|
13
|
-
| Approved requirements or design need a bite-sized implementation plan | `skills/plan/SKILL.md` |
|
|
13
|
+
| Approved requirements or design need a bite-sized implementation plan | `skills/plan-to-exec/SKILL.md` |
|
|
14
14
|
| Approved plan has independent tasks and should run with subagents plus staged review | `skills/subagent-exec/SKILL.md` |
|
|
15
15
|
| Approved plan should run inline or without subagent-first execution | `skills/exec/SKILL.md` |
|
|
16
16
|
| Completed task, major feature, or pre-merge work needs independent code review | `skills/review/SKILL.md` |
|
|
@@ -34,8 +34,8 @@ Read the selected skill file before acting. If multiple skills match, read every
|
|
|
34
34
|
|
|
35
35
|
1. If intent, scope, non-goals, or decision boundaries are unresolved, use `clarify`.
|
|
36
36
|
2. If remaining questions are product behavior, API, state, data, permission, migration, compatibility, or architecture decisions, use `spec`.
|
|
37
|
-
3. If remaining questions are local implementation choices, use `plan`.
|
|
38
|
-
4. `plan` writes `docs/loopx/plans/*.md` and then offers `subagent-exec` or `exec`.
|
|
37
|
+
3. If remaining questions are local implementation choices, use `plan-to-exec`.
|
|
38
|
+
4. `plan-to-exec` writes `docs/loopx/plans/*.md` and then offers `subagent-exec` or `exec`.
|
|
39
39
|
5. Use `subagent-exec` when subagents are available and the plan has independent tasks.
|
|
40
40
|
6. Use `exec` when the user chooses inline execution or subagents are unavailable.
|
|
41
41
|
7. Use `review` to request code review of completed task or checkpoint work.
|
|
@@ -43,7 +43,7 @@ Read the selected skill file before acting. If multiple skills match, read every
|
|
|
43
43
|
9. Use `fix-review` only after feedback exists.
|
|
44
44
|
10. Use `finish` only after implementation, final review, and verification are complete.
|
|
45
45
|
11. Use `refactor-plan` for behavior-preserving refactor planning. If the refactor changes external behavior or contracts, route to `clarify` or `spec`.
|
|
46
|
-
12. Use `doc-readability` for document assessment or rewriting, especially PRDs, requirements docs, specs, meeting notes, and AI-like prose. If the document is a source artifact for implementation, assess or rewrite it first, then route clarified implementation work back through `clarify`, `spec`, or `plan`.
|
|
46
|
+
12. Use `doc-readability` for document assessment or rewriting, especially PRDs, requirements docs, specs, meeting notes, and AI-like prose. If the document is a source artifact for implementation, assess or rewrite it first, then route clarified implementation work back through `clarify`, `spec`, or `plan-to-exec`.
|
|
47
47
|
13. Treat `tdd`, `debug`, `verify`, `doc-readability`, `go-style`, and `kratos` as support lenses unless the user explicitly invokes them directly.
|
|
48
48
|
|
|
49
49
|
## Deterministic Guard
|
package/skills/clarify/SKILL.md
CHANGED
|
@@ -3,7 +3,7 @@ name: clarify
|
|
|
3
3
|
description: "Grills ambiguous loopx work until material questions are answered, then routes to spec or plan using a design gate. Not for clear implementation tasks, approved specs, or code changes."
|
|
4
4
|
when_to_use: "clarify, requirements, ambiguous request, unclear scope, non-goals, decision boundaries, acceptance criteria, 需求澄清, 范围不清"
|
|
5
5
|
metadata:
|
|
6
|
-
version: "0.2.
|
|
6
|
+
version: "0.2.8"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# loopx Clarify
|
|
@@ -63,10 +63,10 @@ For `needs_spec`, immediately use the `spec` skill with the clarification contex
|
|
|
63
63
|
Then stop before implementation planning and report:
|
|
64
64
|
|
|
65
65
|
```text
|
|
66
|
-
$plan docs/loopx/design/<需求名>需求设计文档.md
|
|
66
|
+
$plan-to-exec docs/loopx/design/<需求名>需求设计文档.md
|
|
67
67
|
```
|
|
68
68
|
|
|
69
|
-
For `direct_to_plan`, hand off to the `plan` skill with the clarification context bundle as the source. `plan` writes:
|
|
69
|
+
For `direct_to_plan`, hand off to the `plan-to-exec` skill with the clarification context bundle as the source. `plan-to-exec` writes:
|
|
70
70
|
|
|
71
71
|
- `docs/loopx/plans/YYYY-MM-DD-<feature-name>.md`
|
|
72
72
|
|
package/skills/debug/SKILL.md
CHANGED
|
@@ -3,7 +3,7 @@ name: debug
|
|
|
3
3
|
description: "Finds root cause for bugs, failing tests, build failures, regressions, and unexpected behavior before fixes. Not for new feature planning or routine code review."
|
|
4
4
|
when_to_use: "debug, bug, test failure, build failure, regression, unexpected behavior, root cause, 报错, 失败, 回归, 排查"
|
|
5
5
|
metadata:
|
|
6
|
-
version: "0.2.
|
|
6
|
+
version: "0.2.8"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# Systematic Debugging
|
|
@@ -3,7 +3,7 @@ name: doc-readability
|
|
|
3
3
|
description: "Use when evaluating, rewriting, or editing documents for human readability, unclear viewpoints, AI-like prose, bloated specs, PRDs, requirements docs, meeting notes, strategy docs, or internal knowledge-base articles. Not for code review, implementation planning, or file-format conversion."
|
|
4
4
|
when_to_use: "document readability, PRD assessment, requirements gaps, AI-like prose, unclear viewpoint, rewrite docs, editing docs, 文档可读性, 去AI味, 需求文档评估"
|
|
5
5
|
metadata:
|
|
6
|
-
version: "0.2.
|
|
6
|
+
version: "0.2.8"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# Doc Readability
|
package/skills/exec/SKILL.md
CHANGED
|
@@ -3,7 +3,7 @@ name: exec
|
|
|
3
3
|
description: "Executes a written loopx implementation plan sequentially with review checkpoints. Not for unclear plans, missing requirements, or subagent-first execution."
|
|
4
4
|
when_to_use: "written implementation plan, inline execution, sequential plan execution, review checkpoints, no subagent lane"
|
|
5
5
|
metadata:
|
|
6
|
-
version: "0.2.
|
|
6
|
+
version: "0.2.8"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# Exec
|
|
@@ -80,7 +80,7 @@ After all tasks complete and verified:
|
|
|
80
80
|
## Integration
|
|
81
81
|
|
|
82
82
|
**Required workflow skills:**
|
|
83
|
-
- **loopx:plan** - Creates the plan this skill executes
|
|
83
|
+
- **loopx:plan-to-exec** - Creates the plan this skill executes
|
|
84
84
|
- **loopx:final-review** - Final whole-feature runtime and integration risk review
|
|
85
85
|
- **loopx:fix-review** - Handles final-review feedback before finish
|
|
86
86
|
- **loopx:finish** - Complete development after all tasks
|
|
@@ -3,7 +3,7 @@ name: final-review
|
|
|
3
3
|
description: "Performs whole-feature review after implementation and staged task review. Not for per-task review, unresolved scope, implementation, or pure documentation polish."
|
|
4
4
|
when_to_use: "final-review, final code review, whole feature review, integration review, pre-finish review, after subagent-exec, runtime risk review, 最终评审"
|
|
5
5
|
metadata:
|
|
6
|
-
version: "0.2.
|
|
6
|
+
version: "0.2.8"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# Final Review
|
package/skills/finish/SKILL.md
CHANGED
|
@@ -3,7 +3,7 @@ name: finish
|
|
|
3
3
|
description: "Finishes completed loopx development work after tests pass by presenting merge, PR, keep, or discard options. Not for unfinished work or failing verification."
|
|
4
4
|
when_to_use: "implementation complete, tests pass, finish branch, create pull request, merge locally, keep branch, discard work"
|
|
5
5
|
metadata:
|
|
6
|
-
version: "0.2.
|
|
6
|
+
version: "0.2.8"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# Finish
|
|
@@ -3,7 +3,7 @@ name: fix-review
|
|
|
3
3
|
description: "Handles received code review feedback with verification, technical evaluation, pushback, and one-item-at-a-time fixes. Not for requesting a new review or implementing unrelated changes."
|
|
4
4
|
when_to_use: "fix-review, received code review feedback, review comments, reviewer suggestions, requested changes, 处理评审意见"
|
|
5
5
|
metadata:
|
|
6
|
-
version: "0.2.
|
|
6
|
+
version: "0.2.8"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# Fix Review
|
package/skills/go-style/SKILL.md
CHANGED
|
@@ -3,7 +3,7 @@ name: go-style
|
|
|
3
3
|
description: "Applies loopx Go coding style for .go edits, tests, errors, context, naming, and interface boundaries. Not for non-Go code or Kratos-specific architecture by itself."
|
|
4
4
|
when_to_use: "go-style, Go, golang, .go files, go tests, gofmt, idiomatic Go, Go style, Go 代码"
|
|
5
5
|
metadata:
|
|
6
|
-
version: "0.2.
|
|
6
|
+
version: "0.2.8"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# Go Style
|
package/skills/kratos/SKILL.md
CHANGED
|
@@ -3,7 +3,7 @@ name: kratos
|
|
|
3
3
|
description: "Supports Go-Kratos microservices, proto/buf APIs, service/biz/data layers, middleware, auth, config, and troubleshooting. Not for generic Go style alone."
|
|
4
4
|
when_to_use: "kratos, Go-Kratos, proto, buf, service layer, biz layer, data layer, middleware, auth, config, Kratos 微服务"
|
|
5
5
|
metadata:
|
|
6
|
-
version: "0.2.
|
|
6
|
+
version: "0.2.8"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# Kratos
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: plan
|
|
2
|
+
name: plan-to-exec
|
|
3
3
|
description: "Creates bite-sized implementation plans from approved requirements, clarify output, or design specs with exact files, tests, commands, expected output, and execution handoff. Not for unresolved requirements, design decisions, PRD generation, or code changes."
|
|
4
|
-
when_to_use: "plan, implementation plan, execution plan, task breakdown, approved requirements, approved design spec, docs/loopx/design, 实施计划, 执行计划, 任务拆分"
|
|
4
|
+
when_to_use: "plan-to-exec, plan, implementation plan, execution plan, task breakdown, approved requirements, approved design spec, docs/loopx/design, 实施计划, 执行计划, 任务拆分"
|
|
5
5
|
metadata:
|
|
6
|
-
version: "0.2.
|
|
6
|
+
version: "0.2.8"
|
|
7
7
|
argument-hint: "<design spec path or feature name>"
|
|
8
8
|
---
|
|
9
9
|
|
|
10
|
-
# loopx Plan
|
|
10
|
+
# loopx Plan-To-Exec
|
|
11
11
|
|
|
12
12
|
## Overview
|
|
13
13
|
|
|
@@ -23,7 +23,7 @@ Use this skill after requirements are clear. The source may be:
|
|
|
23
23
|
|
|
24
24
|
Do not re-decide product or architecture. If the source is incomplete, contradictory, or missing product behavior, API, data, state, permission, migration, compatibility, or architecture decisions, return to `clarify` or `spec` instead of filling those gaps inside `plan`.
|
|
25
25
|
|
|
26
|
-
**Announce at start:** "I'm using the plan skill to create the implementation plan."
|
|
26
|
+
**Announce at start:** "I'm using the plan-to-exec skill to create the implementation plan."
|
|
27
27
|
|
|
28
28
|
**Save plans to:** `docs/loopx/plans/YYYY-MM-DD-<feature-name>.md`
|
|
29
29
|
|
|
@@ -3,7 +3,7 @@ name: refactor-plan
|
|
|
3
3
|
description: "Creates a behavior-preserving refactor plan with user interview, repo evidence, tiny commits, scope boundaries, and testing decisions. Not for feature changes or immediate implementation."
|
|
4
4
|
when_to_use: "refactor-plan, refactor request, refactoring RFC, tiny commits, behavior-preserving cleanup, architecture cleanup, 重构计划"
|
|
5
5
|
metadata:
|
|
6
|
-
version: "0.2.
|
|
6
|
+
version: "0.2.8"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
This skill will be invoked when the user wants to create a refactor request. You should go through the steps below. You may skip steps if you don't consider them necessary.
|
package/skills/review/SKILL.md
CHANGED
|
@@ -3,7 +3,7 @@ name: review
|
|
|
3
3
|
description: "Dispatches a loopx code reviewer subagent against a concrete git range and requirements. Not for implementation, planning, or unresolved review scope."
|
|
4
4
|
when_to_use: "request code review, completed task review, major feature review, pre-merge review, subagent code quality check"
|
|
5
5
|
metadata:
|
|
6
|
-
version: "0.2.
|
|
6
|
+
version: "0.2.8"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# Review
|
|
@@ -299,13 +299,13 @@
|
|
|
299
299
|
|
|
300
300
|
### 10.5 Planning Handoff
|
|
301
301
|
|
|
302
|
-
- `plan` 可以决定:
|
|
302
|
+
- `plan-to-exec` 可以决定:
|
|
303
303
|
- 必须返回 `spec` 的事项:
|
|
304
304
|
- 必须返回 `clarify` 的事项:
|
|
305
305
|
- 推荐下一步:
|
|
306
306
|
|
|
307
307
|
```text
|
|
308
|
-
$plan docs/loopx/design/<需求名>需求设计文档.md
|
|
308
|
+
$plan-to-exec docs/loopx/design/<需求名>需求设计文档.md
|
|
309
309
|
```
|
|
310
310
|
|
|
311
311
|
## 十一、QA
|
package/skills/spec/SKILL.md
CHANGED
|
@@ -3,7 +3,7 @@ name: spec
|
|
|
3
3
|
description: "Writes software design specs from already-clarified requirements, including solution approach, architecture outline, detailed design, tradeoffs, verification design, and handoff context. Not for unresolved requirements, PRD generation, implementation task planning, or code changes."
|
|
4
4
|
when_to_use: "spec, design spec, technical design, design proposal, detailed design, architecture design, 设计方案, 概要设计, 详细设计, 技术方案"
|
|
5
5
|
metadata:
|
|
6
|
-
version: "0.2.
|
|
6
|
+
version: "0.2.8"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# loopx Spec
|
|
@@ -63,14 +63,14 @@ The Markdown spec must include these sections:
|
|
|
63
63
|
- `十、排期与规划`
|
|
64
64
|
- `十一、QA`
|
|
65
65
|
|
|
66
|
-
The `十、排期与规划` section must include a `Planning Handoff` subsection stating what `plan` may decide without re-opening design and what must return to `clarify` or `spec`.
|
|
66
|
+
The `十、排期与规划` section must include a `Planning Handoff` subsection stating what `plan-to-exec` may decide without re-opening design and what must return to `clarify` or `spec`.
|
|
67
67
|
|
|
68
68
|
## Handoff
|
|
69
69
|
|
|
70
70
|
After the spec is complete, recommend:
|
|
71
71
|
|
|
72
72
|
```text
|
|
73
|
-
$plan docs/loopx/design/<需求名>需求设计文档.md
|
|
73
|
+
$plan-to-exec docs/loopx/design/<需求名>需求设计文档.md
|
|
74
74
|
```
|
|
75
75
|
|
|
76
|
-
Use `plan` only after the design document is internally consistent and all material requirements questions are resolved.
|
|
76
|
+
Use `plan-to-exec` only after the design document is internally consistent and all material requirements questions are resolved.
|
|
@@ -3,7 +3,7 @@ name: subagent-exec
|
|
|
3
3
|
description: "Executes approved loopx implementation plans with fresh subagents per independent task and staged review. Not for planning, unclear requirements, or tightly coupled edits."
|
|
4
4
|
when_to_use: "approved implementation plan, independent tasks, subagent execution, staged spec review, code quality review, parallel-capable execution"
|
|
5
5
|
metadata:
|
|
6
|
-
version: "0.2.
|
|
6
|
+
version: "0.2.8"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# Subagent Exec
|
|
@@ -283,7 +283,7 @@ Done!
|
|
|
283
283
|
|
|
284
284
|
**Required workflow skills:**
|
|
285
285
|
|
|
286
|
-
- **loopx:plan** - Creates the plan this skill executes
|
|
286
|
+
- **loopx:plan-to-exec** - Creates the plan this skill executes
|
|
287
287
|
- **loopx:review** - Code review template for reviewer subagents
|
|
288
288
|
- **loopx:final-review** - Final whole-feature runtime and integration risk review
|
|
289
289
|
- **loopx:finish** - Complete development after all tasks
|
package/skills/tdd/SKILL.md
CHANGED
|
@@ -3,7 +3,7 @@ name: tdd
|
|
|
3
3
|
description: "Guides feature and bugfix implementation through a failing test before production code and red-green-refactor discipline. Not for generated files or throwaway prototypes."
|
|
4
4
|
when_to_use: "tdd, failing test first, feature implementation, bugfix, regression test, red green refactor, 测试先行"
|
|
5
5
|
metadata:
|
|
6
|
-
version: "0.2.
|
|
6
|
+
version: "0.2.8"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# Test-Driven Development (TDD)
|
package/skills/verify/SKILL.md
CHANGED
|
@@ -3,7 +3,7 @@ name: verify
|
|
|
3
3
|
description: "Requires fresh verification evidence before claiming work is complete, fixed, passing, review-ready, or ready to commit. Not for speculative confidence or stale results."
|
|
4
4
|
when_to_use: "verify, completion claim, fixed claim, tests pass, review-ready, commit, fresh evidence, 验证, 完成前检查"
|
|
5
5
|
metadata:
|
|
6
|
-
version: "0.2.
|
|
6
|
+
version: "0.2.8"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# Verification Before Completion
|
package/src/cli.mjs
CHANGED
|
@@ -272,10 +272,10 @@ function humanMissingArtifactsText(status) {
|
|
|
272
272
|
function humanNextAction(status) {
|
|
273
273
|
const state = status.state || null;
|
|
274
274
|
if (state?.current_stage === 'clarify') {
|
|
275
|
-
if (nextSkillCommand(state)?.startsWith('$plan ')) {
|
|
276
|
-
return `Follow $plan ${state.slug}.`;
|
|
275
|
+
if (nextSkillCommand(state)?.startsWith('$plan-to-exec ')) {
|
|
276
|
+
return `Follow $plan-to-exec ${state.slug}.`;
|
|
277
277
|
}
|
|
278
|
-
return 'Finish clarification, then follow $plan when ready.';
|
|
278
|
+
return 'Finish clarification, then follow $plan-to-exec when ready.';
|
|
279
279
|
}
|
|
280
280
|
const payload = nextPayloadFromStatus(status, { human: true });
|
|
281
281
|
if (payload.next_skill_command) {
|
package/src/next-skill.mjs
CHANGED
|
@@ -9,7 +9,7 @@ export function nextSkillCommand(state) {
|
|
|
9
9
|
&& state.clarify_decision_boundaries_resolved === true
|
|
10
10
|
&& state.clarify_pressure_pass_complete === true
|
|
11
11
|
) {
|
|
12
|
-
return `$plan ${state.slug}`;
|
|
12
|
+
return `$plan-to-exec ${state.slug}`;
|
|
13
13
|
}
|
|
14
14
|
if (state.current_stage === 'done'
|
|
15
15
|
&& state.completion_confirmed === true) {
|
|
@@ -51,7 +51,7 @@ export function nextSkillCommand(state) {
|
|
|
51
51
|
&& state.review_verdict === 'request-changes'
|
|
52
52
|
&& state.requested_transition === 'review->plan'
|
|
53
53
|
&& state.approval?.rollback === 'approved') {
|
|
54
|
-
return `$plan ${state.slug}`;
|
|
54
|
+
return `$plan-to-exec ${state.slug}`;
|
|
55
55
|
}
|
|
56
56
|
if (state.current_stage === 'review'
|
|
57
57
|
&& state.review_verdict === 'request-changes'
|
package/src/workflow.mjs
CHANGED
|
@@ -3131,8 +3131,8 @@ function recommendedAction(state, legacy = false) {
|
|
|
3131
3131
|
switch (state.current_stage) {
|
|
3132
3132
|
case STAGES.CLARIFY:
|
|
3133
3133
|
return state.approval.plan === APPROVAL_STATES.APPROVED
|
|
3134
|
-
? `Follow $plan ${state.slug}.`
|
|
3135
|
-
: 'Finish clarification, then follow $plan when ready.';
|
|
3134
|
+
? `Follow $plan-to-exec ${state.slug}.`
|
|
3135
|
+
: 'Finish clarification, then follow $plan-to-exec when ready.';
|
|
3136
3136
|
case STAGES.PLAN:
|
|
3137
3137
|
if (Array.isArray(state.plan_blockers) && state.plan_blockers.length > 0) {
|
|
3138
3138
|
return 'Run loopx plan to continue the planning review loop until architect, critic, and planning artifact blockers are cleared.';
|
|
@@ -3356,7 +3356,7 @@ function nextCommandForRollbackTarget(slug, target) {
|
|
|
3356
3356
|
return [
|
|
3357
3357
|
'Next:',
|
|
3358
3358
|
`loopx approve ${slug} --from review --to plan`,
|
|
3359
|
-
`$plan ${slug}`,
|
|
3359
|
+
`$plan-to-exec ${slug}`,
|
|
3360
3360
|
].join('\n');
|
|
3361
3361
|
}
|
|
3362
3362
|
|
|
@@ -3936,7 +3936,7 @@ export async function planStage(cwd, slug, options = {}) {
|
|
|
3936
3936
|
&& state.approval.plan === APPROVAL_STATES.APPROVED;
|
|
3937
3937
|
if (!options.directSpecPath) {
|
|
3938
3938
|
if (consumesReviewPlan || resumesConsumedReviewPlan || resumesClarifyPlan) {
|
|
3939
|
-
// A no-go review or a blocked planning run may route back to plan; the printed Next command is $plan.
|
|
3939
|
+
// A no-go review or a blocked planning run may route back to plan; the printed Next command is $plan-to-exec.
|
|
3940
3940
|
} else {
|
|
3941
3941
|
ensureApprovedTransition(state, TRANSITIONS.CLARIFY_TO_PLAN, 'plan');
|
|
3942
3942
|
}
|