@ai-content-space/loopx 0.2.0 → 0.2.2

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 (53) hide show
  1. package/AGENTS.md +7 -8
  2. package/README.md +22 -10
  3. package/README.zh-CN.md +22 -10
  4. package/docs/loopx/design/loopx-skill-suite-v1-design.md +14 -7
  5. package/docs/loopx/plans/loopx-skill-suite-v1-implementation.md +7 -3
  6. package/package.json +3 -2
  7. package/plugins/loopx/.codex-plugin/plugin.json +1 -1
  8. package/plugins/loopx/skills/clarify/SKILL.md +4 -4
  9. package/plugins/loopx/skills/debug/SKILL.md +1 -1
  10. package/plugins/loopx/skills/exec/SKILL.md +1 -1
  11. package/plugins/loopx/skills/final-review/SKILL.md +89 -0
  12. package/plugins/loopx/skills/final-review/final-reviewer.md +135 -0
  13. package/plugins/loopx/skills/finish/SKILL.md +110 -8
  14. package/plugins/loopx/skills/fix-review/SKILL.md +1 -1
  15. package/plugins/loopx/skills/go-style/SKILL.md +2 -2
  16. package/plugins/loopx/skills/kratos/SKILL.md +7 -1
  17. package/plugins/loopx/skills/plan/SKILL.md +2 -2
  18. package/plugins/loopx/skills/refactor-plan/SKILL.md +1 -1
  19. package/plugins/loopx/skills/review/SKILL.md +1 -1
  20. package/plugins/loopx/skills/spec/DESIGN_SPEC_TEMPLATE.md +2 -2
  21. package/plugins/loopx/skills/spec/SKILL.md +2 -2
  22. package/plugins/loopx/skills/subagent-exec/SKILL.md +7 -6
  23. package/plugins/loopx/skills/tdd/SKILL.md +1 -1
  24. package/plugins/loopx/skills/verify/SKILL.md +1 -1
  25. package/scripts/verify-skills.mjs +2 -1
  26. package/skills/RESOLVER.md +7 -8
  27. package/skills/clarify/SKILL.md +4 -4
  28. package/skills/debug/SKILL.md +1 -1
  29. package/skills/exec/SKILL.md +1 -1
  30. package/skills/final-review/SKILL.md +89 -0
  31. package/skills/final-review/final-reviewer.md +135 -0
  32. package/skills/finish/SKILL.md +110 -8
  33. package/skills/fix-review/SKILL.md +1 -1
  34. package/skills/go-style/SKILL.md +2 -2
  35. package/skills/kratos/SKILL.md +7 -1
  36. package/skills/plan/SKILL.md +2 -2
  37. package/skills/refactor-plan/SKILL.md +1 -1
  38. package/skills/review/SKILL.md +1 -1
  39. package/skills/spec/DESIGN_SPEC_TEMPLATE.md +2 -2
  40. package/skills/spec/SKILL.md +2 -2
  41. package/skills/subagent-exec/SKILL.md +7 -6
  42. package/skills/tdd/SKILL.md +1 -1
  43. package/skills/verify/SKILL.md +1 -1
  44. package/src/cli.mjs +1 -2
  45. package/src/install-discovery.mjs +1 -0
  46. package/src/plan-runtime.mjs +0 -352
  47. package/src/workflow.mjs +5 -124
  48. package/plugins/loopx/scripts/plugin-install.test.mjs +0 -125
  49. package/skills/ai-slop-cleaner/SKILL.md +0 -114
  50. package/skills/autoresearch/SKILL.md +0 -68
  51. package/skills/deep-interview/SKILL.md +0 -461
  52. package/skills/ralph/SKILL.md +0 -271
  53. package/skills/ralplan/SKILL.md +0 -49
@@ -0,0 +1,135 @@
1
+ # Final Reviewer Prompt Template
2
+
3
+ Use this template when dispatching a final-review subagent.
4
+
5
+ **Purpose:** Review the complete feature for integration and runtime risk after task-level implementation and review are already done.
6
+
7
+ ```
8
+ Native subagent:
9
+ description: "Final review completed feature"
10
+ prompt: |
11
+ You are a Senior Final Reviewer. Task-level implementation and review have
12
+ already happened. Your job is not to repeat per-task review. Your job is to
13
+ find whole-feature risks that can still break users, corrupt state, lose
14
+ data, or leave important behavior untested.
15
+
16
+ ## What Was Implemented
17
+
18
+ {DESCRIPTION}
19
+
20
+ ## Requirements / Plan / Spec
21
+
22
+ {REQUIREMENTS}
23
+
24
+ ## Verification Evidence
25
+
26
+ {VERIFICATION}
27
+
28
+ ## Per-Task Reviews
29
+
30
+ {PER_TASK_REVIEWS}
31
+
32
+ ## Full Feature Git Range
33
+
34
+ **Base:** {BASE_SHA}
35
+ **Head:** {HEAD_SHA}
36
+
37
+ ```bash
38
+ git diff --stat {BASE_SHA}..{HEAD_SHA}
39
+ git diff {BASE_SHA}..{HEAD_SHA}
40
+ ```
41
+
42
+ ## Review Priority
43
+
44
+ Review in this exact priority order:
45
+
46
+ 1. Runtime bugs, data loss, broken CLI behavior, state corruption
47
+ 2. Cross-task integration bugs
48
+ 3. Missing edge cases not covered by tests
49
+ 4. Test quality problems
50
+ 5. Architecture and maintainability issues
51
+ 6. Documentation defects that can mislead users or maintainers, omit
52
+ required operational facts, or contradict actual behavior
53
+
54
+ Do not report pure documentation polish, style preferences, or wording
55
+ tweaks. Do report documentation problems that create wrong usage, wrong
56
+ maintenance decisions, missing required commands, missing migration notes,
57
+ or false claims.
58
+
59
+ ## What to Check
60
+
61
+ **Runtime and state risk:**
62
+ - Can any command crash, hang, silently no-op, or report success incorrectly?
63
+ - Can repeated runs corrupt files, state, locks, indexes, caches, or config?
64
+ - Can user data, generated artifacts, branches, or worktrees be lost?
65
+ - Are filesystem, process, permission, platform, and concurrency errors handled?
66
+
67
+ **Integration risk:**
68
+ - Do task outputs match later task inputs?
69
+ - Do CLI flags, exported functions, filenames, state keys, and schemas align?
70
+ - Does the feature work as a complete workflow, not just as isolated pieces?
71
+ - Are old data, missing files, and partially completed states handled?
72
+
73
+ **Tests:**
74
+ - Do tests execute real behavior rather than only mocks or snapshots?
75
+ - Are failure paths, edge cases, repeat runs, and integration paths covered?
76
+ - Are the verification commands sufficient for the changed surface area?
77
+
78
+ **Architecture:**
79
+ - Is the implementation maintainable within existing module boundaries?
80
+ - Did the feature add avoidable coupling or hidden global state?
81
+ - Are abstractions justified by actual complexity?
82
+
83
+ **Documentation defects:**
84
+ - Does documentation contradict actual behavior?
85
+ - Are required user or maintainer steps missing?
86
+ - Would a future agent follow the docs and make the wrong change?
87
+
88
+ ## Output Format
89
+
90
+ ### Findings
91
+
92
+ #### Critical
93
+ [Must fix before finish: data loss, state corruption, broken workflow,
94
+ security issue, or reliable runtime failure]
95
+
96
+ #### Important
97
+ [Should fix before finish: integration bug, untested edge case, weak test
98
+ proving too little, misleading docs that affect usage or maintenance]
99
+
100
+ #### Minor
101
+ [Low-risk maintainability or clarity issues. No pure polish.]
102
+
103
+ For each finding:
104
+ - File:line reference
105
+ - What is wrong
106
+ - Why it matters
107
+ - How to fix or what evidence would resolve it
108
+
109
+ ### Coverage Notes
110
+ [Briefly state which runtime paths and tests you inspected.]
111
+
112
+ ### Assessment
113
+
114
+ **Ready for finish?** [Yes | No | With fixes]
115
+
116
+ **Reasoning:** [1-2 sentence risk-based assessment]
117
+
118
+ ## Critical Rules
119
+
120
+ **DO:**
121
+ - Read the actual diff, not only reports
122
+ - Focus on complete workflow behavior
123
+ - Treat tests as evidence to audit, not proof to trust blindly
124
+ - Report documentation defects that can mislead or omit required facts
125
+ - Give file:line references
126
+
127
+ **DON'T:**
128
+ - Repeat task-level nits unless they create whole-feature risk
129
+ - Report pure documentation polish
130
+ - Assume per-task reviews caught integration bugs
131
+ - Give a vague "looks good"
132
+ - Avoid a clear verdict
133
+ ```
134
+
135
+ **Reviewer returns:** Findings by severity, Coverage Notes, Assessment.
@@ -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.0"
6
+ version: "0.2.2"
7
7
  ---
8
8
 
9
9
  # Finish
@@ -12,7 +12,7 @@ metadata:
12
12
 
13
13
  Guide completion of development work by presenting clear options and handling chosen workflow.
14
14
 
15
- **Core principle:** Verify tests → Detect environment → Present options → Execute choice → Clean up.
15
+ **Core principle:** Verify tests → extract memory/spec learnings → Present options → Execute choice → Clean up.
16
16
 
17
17
  **Announce at start:** "I'm using the finish skill to complete this work."
18
18
 
@@ -66,7 +66,90 @@ git merge-base HEAD main 2>/dev/null || git merge-base HEAD master 2>/dev/null
66
66
 
67
67
  Or ask: "This branch split from main - is that correct?"
68
68
 
69
- ### Step 4: Present Options
69
+ ### Step 4: Learning Extraction
70
+
71
+ Run learning extraction before presenting merge, PR, keep, or discard options.
72
+
73
+ Allowed inputs:
74
+ - current git diff
75
+ - executed verification output
76
+ - plan, spec, and review artifacts used in this task
77
+ - explicit user decisions in the current conversation
78
+ - existing `.loopx/memory/MEMORY.md` and `.loopx/memory/index.jsonl`
79
+ - existing `docs/loopx/specs/*.md`
80
+
81
+ Learning extraction priority:
82
+ 1. Durable behavior, contracts, or constraints proven by the implementation
83
+ 2. State, file, CLI, API, install, migration, compatibility, or test invariants
84
+ 3. Explicit user decisions that constrain future work
85
+ 4. Review findings or fixes that reveal a reusable pitfall, pattern, or boundary
86
+ 5. Documentation changes when they define, correct, or preserve one of the above
87
+
88
+ Do not infer durable rules from agent intuition alone. Do not promote unverified implementation details.
89
+
90
+ #### Memory
91
+
92
+ Memory is local, agent-queryable project context. It is not repo-tracked by default.
93
+
94
+ Use:
95
+
96
+ ```text
97
+ .loopx/memory/MEMORY.md
98
+ .loopx/memory/index.jsonl
99
+ .loopx/memory/entries/
100
+ .loopx/memory/archive/
101
+ ```
102
+
103
+ `MEMORY.md` is the bounded curated summary an agent should read first. Keep it dense and useful.
104
+
105
+ `index.jsonl` is a curated active index, not an append-only history. It should point only to active memory cards worth querying.
106
+
107
+ Use memory only for facts that will help a future agent avoid rework, avoid mistakes, or preserve a decision. Do not record process negatives such as "no spec promotion".
108
+
109
+ One finish run may write 0-3 active memory cards. If more learnings appear, consolidate, promote to spec, archive stale cards, or skip low-signal items.
110
+
111
+ Memory entry index rows should use this shape:
112
+
113
+ ```json
114
+ {"id":"2026-06-02-example","type":"decision","domain":"workflow","tags":["finish"],"summary":"finish writes local memory and repo-tracked spec candidates","path":"entries/2026-06-02-example.md","created_at":"2026-06-02T00:00:00Z"}
115
+ ```
116
+
117
+ Allowed memory `type` values:
118
+ - `decision`
119
+ - `constraint`
120
+ - `pattern`
121
+ - `pitfall`
122
+ - `handoff`
123
+
124
+ Finish may automatically update `.loopx/memory/MEMORY.md`, `.loopx/memory/index.jsonl`, and active memory cards. The final response must list the memory changes.
125
+
126
+ #### Spec Candidates
127
+
128
+ Spec extraction is conditional. Run the audit every time, but write spec candidates only when the task produced stable, shared, reusable project rules.
129
+
130
+ Write repo-tracked candidates directly to:
131
+
132
+ ```text
133
+ docs/loopx/specs/<domain>.md
134
+ ```
135
+
136
+ If the domain is unclear, use:
137
+
138
+ ```text
139
+ docs/loopx/specs/inbox.md
140
+ ```
141
+
142
+ Recommended domains:
143
+ - `workflow`
144
+ - `skills`
145
+ - `installation`
146
+ - `memory`
147
+ - `testing`
148
+ - `inbox`
149
+
150
+ Spec candidates must be visible in the repo diff and reported in the final response. Do not silently change team specs.
151
+
152
+ ### Step 5: Present Options
70
153
 
71
154
  **Normal repo and named-branch worktree — present exactly these 4 options:**
72
155
 
@@ -95,7 +178,7 @@ Which option?
95
178
 
96
179
  **Don't add explanation** - keep options concise.
97
180
 
98
- ### Step 5: Execute Choice
181
+ ### Step 6: Execute Choice
99
182
 
100
183
  #### Option 1: Merge Locally
101
184
 
@@ -112,10 +195,10 @@ git merge <feature-branch>
112
195
  # Verify tests on merged result
113
196
  <test command>
114
197
 
115
- # Only after merge succeeds: cleanup worktree (Step 6), then delete branch
198
+ # Only after merge succeeds: cleanup worktree (Step 7), then delete branch
116
199
  ```
117
200
 
118
- Then: Cleanup worktree (Step 6), then delete branch:
201
+ Then: Cleanup worktree (Step 7), then delete branch:
119
202
 
120
203
  ```bash
121
204
  git branch -d <feature-branch>
@@ -166,12 +249,12 @@ MAIN_ROOT=$(git -C "$(git rev-parse --git-common-dir)/.." rev-parse --show-tople
166
249
  cd "$MAIN_ROOT"
167
250
  ```
168
251
 
169
- Then: Cleanup worktree (Step 6), then force-delete branch:
252
+ Then: Cleanup worktree (Step 7), then force-delete branch:
170
253
  ```bash
171
254
  git branch -D <feature-branch>
172
255
  ```
173
256
 
174
- ### Step 6: Cleanup Workspace
257
+ ### Step 7: Cleanup Workspace
175
258
 
176
259
  **Only runs for Options 1 and 4.** Options 2 and 3 always preserve the worktree.
177
260
 
@@ -203,6 +286,25 @@ git worktree prune # Self-healing: clean up any stale registrations
203
286
  | 3. Keep as-is | - | - | yes | - |
204
287
  | 4. Discard | - | - | - | yes (force) |
205
288
 
289
+ ## Final Response Contract
290
+
291
+ Every finish response must include the verification result, chosen completion action, memory changes, and Spec candidates.
292
+
293
+ Use this shape:
294
+
295
+ ```text
296
+ Memory:
297
+ - updated: .loopx/memory/MEMORY.md
298
+ - entries: <N> added, <N> archived
299
+ - summary:
300
+ - <high-signal memory change>
301
+
302
+ Spec candidates:
303
+ - docs/loopx/specs/<domain>.md: <candidate change>
304
+ ```
305
+
306
+ If there are no memory changes or spec candidates, report `none`. Do not write `none` into memory.
307
+
206
308
  ## Common Mistakes
207
309
 
208
310
  **Skipping test verification**
@@ -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.0"
6
+ version: "0.2.2"
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.0"
6
+ version: "0.2.2"
7
7
  ---
8
8
 
9
9
  # Go Style
@@ -12,7 +12,7 @@ metadata:
12
12
 
13
13
  `go-style` is a lightweight Go coding discipline skill. It should guide edits to `.go` files without overriding the repository's established conventions.
14
14
 
15
- Use it as a support skill from `build` when Go files are created or modified, and directly when the user asks for Go style, idiomatic Go, or Go code cleanup.
15
+ Use it as a support skill from `subagent-exec` or `exec` when Go files are created or modified, and directly when the user asks for Go style, idiomatic Go, or Go code cleanup.
16
16
 
17
17
  ## Core Rules
18
18
 
@@ -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.0"
6
+ version: "0.2.2"
7
7
  ---
8
8
 
9
9
  # Kratos
@@ -56,6 +56,12 @@ Use only the reference file needed for the current task:
56
56
  - Use validation annotations when the project already uses `buf.validate` or `protovalidate`.
57
57
  - Regenerate code with the repository's existing command, such as `buf generate`, `make api`, or project scripts.
58
58
 
59
+ ## Database DDL
60
+
61
+ - MySQL `CREATE TABLE` statements must include a table-level `COMMENT`.
62
+ - MySQL column definitions in `CREATE TABLE` or `ALTER TABLE ... ADD COLUMN` statements must include column-level `COMMENT`.
63
+ - When using Ent schema for MySQL tables, add `.Comment(...)` to fields that are persisted as columns.
64
+
59
65
  ## Integration With Other loopx Skills
60
66
 
61
67
  - Use `go-style` for handwritten `.go` edits.
@@ -3,8 +3,8 @@ name: plan
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
4
  when_to_use: "plan, implementation plan, execution plan, task breakdown, approved requirements, approved design spec, docs/loopx/design, 实施计划, 执行计划, 任务拆分"
5
5
  metadata:
6
- version: "0.2.0"
7
- argument-hint: "[--direct <design-spec-path>] <design spec path or feature name>"
6
+ version: "0.2.2"
7
+ argument-hint: "<design spec path or feature name>"
8
8
  ---
9
9
 
10
10
  # loopx Plan
@@ -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.0"
6
+ version: "0.2.2"
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.0"
6
+ version: "0.2.2"
7
7
  ---
8
8
 
9
9
  # Review
@@ -305,7 +305,7 @@
305
305
  - 推荐下一步:
306
306
 
307
307
  ```text
308
- $plan --direct docs/loopx/design/<需求名>需求设计文档.md
308
+ $plan docs/loopx/design/<需求名>需求设计文档.md
309
309
  ```
310
310
 
311
311
  ## 十一、QA
@@ -320,4 +320,4 @@ $plan --direct docs/loopx/design/<需求名>需求设计文档.md
320
320
 
321
321
  | 问题 | 需要谁确认 | 阻塞阶段 | 推荐答案 | 状态 |
322
322
  |---|---|---|---|---|
323
- | <问题> | <角色> | clarify/spec/plan/build | <建议> | open/closed |
323
+ | <问题> | <角色> | clarify/spec/plan/subagent-exec/exec/review | <建议> | open/closed |
@@ -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.0"
6
+ version: "0.2.2"
7
7
  ---
8
8
 
9
9
  # loopx Spec
@@ -70,7 +70,7 @@ The `十、排期与规划` section must include a `Planning Handoff` subsection
70
70
  After the spec is complete, recommend:
71
71
 
72
72
  ```text
73
- $plan --direct docs/loopx/design/<需求名>需求设计文档.md
73
+ $plan docs/loopx/design/<需求名>需求设计文档.md
74
74
  ```
75
75
 
76
76
  Use `plan` 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.0"
6
+ version: "0.2.2"
7
7
  ---
8
8
 
9
9
  # Subagent Exec
@@ -65,7 +65,7 @@ digraph process {
65
65
 
66
66
  "Read plan, extract all tasks with full text, note context, create update_plan" [shape=box];
67
67
  "More tasks remain?" [shape=diamond];
68
- "Dispatch final code reviewer subagent for entire implementation" [shape=box];
68
+ "Use loopx:final-review for entire implementation" [shape=box];
69
69
  "Use loopx:finish" [shape=box style=filled fillcolor=lightgreen];
70
70
 
71
71
  "Read plan, extract all tasks with full text, note context, create update_plan" -> "Dispatch implementer subagent (./implementer-prompt.md)";
@@ -84,8 +84,8 @@ digraph process {
84
84
  "Code quality reviewer subagent approves?" -> "Mark task complete in update_plan" [label="yes"];
85
85
  "Mark task complete in update_plan" -> "More tasks remain?";
86
86
  "More tasks remain?" -> "Dispatch implementer subagent (./implementer-prompt.md)" [label="yes"];
87
- "More tasks remain?" -> "Dispatch final code reviewer subagent for entire implementation" [label="no"];
88
- "Dispatch final code reviewer subagent for entire implementation" -> "Use loopx:finish";
87
+ "More tasks remain?" -> "Use loopx:final-review for entire implementation" [label="no"];
88
+ "Use loopx:final-review for entire implementation" -> "Use loopx:finish";
89
89
  }
90
90
  ```
91
91
 
@@ -199,8 +199,8 @@ Code reviewer: ✅ Approved
199
199
  ...
200
200
 
201
201
  [After all tasks]
202
- [Dispatch final code-reviewer]
203
- Final reviewer: All requirements met, ready to merge
202
+ [Use loopx:final-review]
203
+ Final reviewer: No whole-feature runtime or integration risks found. Ready for finish.
204
204
 
205
205
  Done!
206
206
  ```
@@ -273,6 +273,7 @@ Done!
273
273
 
274
274
  - **loopx:plan** - Creates the plan this skill executes
275
275
  - **loopx:review** - Code review template for reviewer subagents
276
+ - **loopx:final-review** - Final whole-feature runtime and integration risk review
276
277
  - **loopx:finish** - Complete development after all tasks
277
278
 
278
279
  **Subagents should use:**
@@ -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.0"
6
+ version: "0.2.2"
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.0"
6
+ version: "0.2.2"
7
7
  ---
8
8
 
9
9
  # Verification Before Completion
package/src/cli.mjs CHANGED
@@ -19,7 +19,7 @@ function usage() {
19
19
  ' loopx init [--slug <slug>] [--enable-agent-delegation] [--auto-agent-delegation] [--agent-delegation-threshold <local|critic-only|parallel-review>]',
20
20
  ' loopx clarify <slug> [--standard|--deep]',
21
21
  ' loopx approve <slug> --from <stage> --to <stage>',
22
- ' loopx plan [slug] [--direct <spec-path>] [--interactive] [--deliberate]',
22
+ ' loopx plan [slug] [--interactive] [--deliberate]',
23
23
  ' loopx build <slug> [--no-deslop]',
24
24
  ' loopx build --from-review <review-report-path> [--no-deslop]',
25
25
  ' loopx review <slug> [--reviewer <name>]',
@@ -242,7 +242,6 @@ async function main() {
242
242
  }
243
243
  case 'plan': {
244
244
  const result = await planStage(process.cwd(), positionals[0], {
245
- directSpecPath: options.get('--direct'),
246
245
  interactive: Boolean(options.get('--interactive')),
247
246
  deliberate: Boolean(options.get('--deliberate')),
248
247
  });
@@ -21,6 +21,7 @@ const LOOPX_SKILLS = [
21
21
  'subagent-exec',
22
22
  'exec',
23
23
  'review',
24
+ 'final-review',
24
25
  'fix-review',
25
26
  'finish',
26
27
  'refactor-plan',