@ai-content-space/loopx 0.1.10 → 0.2.0
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/AGENTS.md +50 -0
- package/README.md +59 -450
- package/README.zh-CN.md +59 -461
- package/docs/loopx/design/loopx-skill-suite-v1-design.md +73 -0
- package/docs/loopx/plans/loopx-skill-suite-v1-implementation.md +77 -0
- package/package.json +5 -2
- package/plugins/loopx/.codex-plugin/plugin.json +4 -4
- package/plugins/loopx/scripts/plugin-install.test.mjs +20 -20
- package/plugins/loopx/skills/clarify/SKILL.md +38 -311
- package/plugins/loopx/skills/debug/SKILL.md +1 -1
- package/plugins/loopx/skills/exec/SKILL.md +71 -0
- package/plugins/loopx/skills/finish/SKILL.md +254 -0
- package/plugins/loopx/skills/fix-review/SKILL.md +216 -0
- package/plugins/loopx/skills/go-style/SKILL.md +1 -1
- package/plugins/loopx/skills/kratos/SKILL.md +1 -1
- package/plugins/loopx/skills/plan/SKILL.md +138 -271
- package/plugins/loopx/skills/refactor-plan/SKILL.md +71 -0
- package/plugins/loopx/skills/review/SKILL.md +72 -105
- package/plugins/loopx/skills/review/code-reviewer.md +168 -0
- package/plugins/loopx/skills/spec/DESIGN_SPEC_TEMPLATE.md +323 -0
- package/plugins/loopx/skills/spec/SKILL.md +76 -0
- package/plugins/loopx/skills/subagent-exec/SKILL.md +282 -0
- package/plugins/loopx/skills/subagent-exec/agents/openai.yaml +3 -0
- package/plugins/loopx/skills/subagent-exec/code-quality-reviewer-prompt.md +25 -0
- package/plugins/loopx/skills/subagent-exec/codex-subagents.md +37 -0
- package/plugins/loopx/skills/subagent-exec/implementer-prompt.md +113 -0
- package/plugins/loopx/skills/subagent-exec/spec-reviewer-prompt.md +61 -0
- package/plugins/loopx/skills/tdd/SKILL.md +1 -1
- package/plugins/loopx/skills/verify/SKILL.md +1 -1
- package/scripts/claude-workflow-hook.mjs +109 -0
- package/scripts/codex-workflow-hook.mjs +2 -5
- package/scripts/install-skills.mjs +3 -3
- package/scripts/verify-skills.mjs +32 -1
- package/skills/RESOLVER.md +26 -17
- package/skills/clarify/SKILL.md +38 -311
- package/skills/debug/SKILL.md +1 -1
- package/skills/exec/SKILL.md +71 -0
- package/skills/finish/SKILL.md +254 -0
- package/skills/fix-review/SKILL.md +216 -0
- package/skills/go-style/SKILL.md +1 -1
- package/skills/kratos/SKILL.md +1 -1
- package/skills/plan/SKILL.md +138 -271
- package/skills/refactor-plan/SKILL.md +71 -0
- package/skills/review/SKILL.md +72 -105
- package/skills/review/code-reviewer.md +168 -0
- package/skills/spec/DESIGN_SPEC_TEMPLATE.md +323 -0
- package/skills/spec/SKILL.md +76 -0
- package/skills/subagent-exec/SKILL.md +282 -0
- package/skills/subagent-exec/agents/openai.yaml +3 -0
- package/skills/subagent-exec/code-quality-reviewer-prompt.md +25 -0
- package/skills/subagent-exec/codex-subagents.md +37 -0
- package/skills/subagent-exec/implementer-prompt.md +113 -0
- package/skills/subagent-exec/spec-reviewer-prompt.md +61 -0
- package/skills/tdd/SKILL.md +1 -1
- package/skills/verify/SKILL.md +1 -1
- package/src/autopilot-runtime.mjs +1 -1
- package/src/cli.mjs +77 -5
- package/src/context-manifest.mjs +2 -2
- package/src/html-views.mjs +129 -195
- package/src/install-discovery.mjs +210 -6
- package/src/next-skill.mjs +2 -4
- package/src/plan-runtime.mjs +571 -93
- package/src/runtime-maintenance.mjs +5 -2
- package/src/workflow.mjs +865 -68
- package/templates/architecture.md +58 -16
- package/templates/development-plan.md +42 -12
- package/plugins/loopx/skills/archive/SKILL.md +0 -55
- package/plugins/loopx/skills/autopilot/SKILL.md +0 -93
- package/plugins/loopx/skills/build/SKILL.md +0 -228
- package/skills/archive/SKILL.md +0 -55
- package/skills/autopilot/SKILL.md +0 -93
- package/skills/build/SKILL.md +0 -228
package/skills/build/SKILL.md
DELETED
|
@@ -1,228 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: build
|
|
3
|
-
description: "Executes an approved loopx plan or review rework contract with evidence, verification, deslop, and regression gates. Not for unclear requirements or independent review."
|
|
4
|
-
when_to_use: "build, implement approved plan, execute PRD, --from-review, review rework, implementation fixes, 执行, 实现, 修改"
|
|
5
|
-
metadata:
|
|
6
|
-
version: "0.1.10"
|
|
7
|
-
argument-hint: "[--no-deslop] <approved PRD path or workflow slug> | --from-review <review artifact path>"
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
# loopx Build
|
|
11
|
-
|
|
12
|
-
<Purpose>
|
|
13
|
-
`build` is loopx's canonical execution lane. It executes an approved plan with Ralph-style rigor while keeping the public loopx stage surface unchanged.
|
|
14
|
-
|
|
15
|
-
By default, `build` is not a one-shot draft writer. It is a persistence loop with internal parallel lanes, fresh verification, architect gating, deslop, and regression re-verification before `review` can start.
|
|
16
|
-
</Purpose>
|
|
17
|
-
|
|
18
|
-
<Use_When>
|
|
19
|
-
- `plan -> build` has already been explicitly approved.
|
|
20
|
-
- `review -> build` was requested for implementation fixes and a review artifact is supplied with `--from-review`.
|
|
21
|
-
- Canonical plan artifacts already exist and execution should now proceed.
|
|
22
|
-
- The task needs execution persistence, verification evidence, and explicit pre-review quality gates.
|
|
23
|
-
</Use_When>
|
|
24
|
-
|
|
25
|
-
<Do_Not_Use_When>
|
|
26
|
-
- Requirements or planning are still incomplete.
|
|
27
|
-
- The user wants to skip execution and only review or inspect the plan.
|
|
28
|
-
- A valid build run is already review-ready and the next action is `review`.
|
|
29
|
-
</Do_Not_Use_When>
|
|
30
|
-
|
|
31
|
-
<Core_Principles>
|
|
32
|
-
- Public surface stays `build`; internal strength can still match Ralph-style execution.
|
|
33
|
-
- Execution may parallelize internally without exposing a public `team` stage.
|
|
34
|
-
- `build` does not replace `review`.
|
|
35
|
-
- `execution-record.md` remains the sole canonical execution and verification artifact.
|
|
36
|
-
- `.loopx/config.json` is supporting context for existing project AI rules, existing spec sources, and discovered verification commands; use it to preserve local sources of truth, not to skip loopx stages.
|
|
37
|
-
- Feature work and bug fixes should use `tdd`: write a failing test, confirm it fails for the intended reason, then implement the smallest passing change.
|
|
38
|
-
- Bug, test-failure, build-failure, and unexpected-behavior work should use `debug` before proposing fixes.
|
|
39
|
-
- Completion and review-ready claims should use `verify` before they are stated.
|
|
40
|
-
- Go edits should use `go-style` and preserve local repository conventions.
|
|
41
|
-
- Go-Kratos work should use `kratos` when Kratos project signals or Kratos-specific tasks are present.
|
|
42
|
-
- Fresh evidence is required before review handoff.
|
|
43
|
-
- Deslop and regression re-verification are part of the default build path.
|
|
44
|
-
- `build` has one owner for persistence. Delegation may run in parallel, but the owner remains accountable for draining delegated work and proving completion before review handoff.
|
|
45
|
-
</Core_Principles>
|
|
46
|
-
|
|
47
|
-
<Preconditions>
|
|
48
|
-
For initial execution, `build` starts only when all of the following are true:
|
|
49
|
-
|
|
50
|
-
- approved `plan -> build` transition exists
|
|
51
|
-
- `.loopx/plans/prd-<slug>.md` exists
|
|
52
|
-
- `.loopx/plans/test-spec-<slug>.md` exists
|
|
53
|
-
- workflow-local planning artifacts required by the execution lane exist
|
|
54
|
-
|
|
55
|
-
For review-requested implementation fixes, `build` may instead start from:
|
|
56
|
-
|
|
57
|
-
- `$build --from-review .loopx/workflows/<slug>/review-report.md`
|
|
58
|
-
- or `$build --from-review .loopx/workflows/<slug>/review.md`
|
|
59
|
-
|
|
60
|
-
In that mode, the review artifact is the direct rework contract. The approved PRD, test spec, previous execution record, and workflow-local plan package remain required context, but they are not the primary user-facing argument.
|
|
61
|
-
</Preconditions>
|
|
62
|
-
|
|
63
|
-
<Inputs>
|
|
64
|
-
Preferred skill input:
|
|
65
|
-
|
|
66
|
-
- `.loopx/plans/prd-<slug>.md`
|
|
67
|
-
|
|
68
|
-
Preferred review rework input:
|
|
69
|
-
|
|
70
|
-
- `--from-review .loopx/workflows/<slug>/review-report.md`
|
|
71
|
-
|
|
72
|
-
Compatible skill / CLI input:
|
|
73
|
-
|
|
74
|
-
- `<slug>`
|
|
75
|
-
|
|
76
|
-
When invoked with a PRD path, derive `<slug>` from `prd-<slug>.md` and still use the matching workflow-local plan package and test spec.
|
|
77
|
-
|
|
78
|
-
When invoked with `--from-review`, derive `<slug>` from the workflow directory, treat the review artifact as the implementation-fix contract, and load the matching PRD, test spec, previous `execution-record.md`, and workflow-local plan package as supporting context. This Codex skill invocation consumes the `review -> build` rework intent; users should not need a separate bash `loopx approve ... --from review --to build` step for the normal Codex-facing flow.
|
|
79
|
-
|
|
80
|
-
Also load `.loopx/config.json` when present. Its `project_conventions` entries identify existing project rule/spec files that should be preserved, and its `verification_commands` entries are the first project-native commands to consider for fresh evidence.
|
|
81
|
-
</Inputs>
|
|
82
|
-
|
|
83
|
-
<Execution_Model>
|
|
84
|
-
`build` should behave like a Ralph-style execution runtime:
|
|
85
|
-
|
|
86
|
-
1. Initialize or resume build iteration state.
|
|
87
|
-
2. If running from `--from-review`, load the review artifact first and constrain implementation work to the requested implementation fixes unless the review artifact exposes a real plan or clarify blocker.
|
|
88
|
-
3. Run internal execution / evidence / verification lanes in parallel.
|
|
89
|
-
4. For implementation work, apply `tdd` unless the approved plan explicitly classifies the change as non-behavioral or test-inapplicable.
|
|
90
|
-
5. For failures discovered during execution or verification, apply `debug` before attempting fixes.
|
|
91
|
-
6. For `.go` edits, apply `go-style`; for Kratos API/service/biz/data work, apply `kratos` before changing framework structure.
|
|
92
|
-
7. Aggregate lane results into canonical `execution-record.md`.
|
|
93
|
-
8. Run fresh verification and read actual output using `verify` discipline.
|
|
94
|
-
9. Run architect verification as a hard pre-review gate.
|
|
95
|
-
10. Run deslop on build-owned changes.
|
|
96
|
-
11. Re-run regression verification after deslop.
|
|
97
|
-
12. Write/update the build delegation ledger and ensure blocking delegated work is drained.
|
|
98
|
-
13. Write/update the completion audit mapping approved plan, slices, and review rework inputs to evidence.
|
|
99
|
-
14. Stop only when review handoff gates are satisfied or a real blocker remains.
|
|
100
|
-
|
|
101
|
-
`build` may persist support artifacts for runtime inspection, but they must not replace `execution-record.md`.
|
|
102
|
-
</Execution_Model>
|
|
103
|
-
|
|
104
|
-
<Continuation_Discipline>
|
|
105
|
-
`build` is a persistence loop, not a "one phase per invocation" runner.
|
|
106
|
-
|
|
107
|
-
If approved plan work remains, continue executing within the same `$build` invocation until either review handoff gates are satisfied or a real blocker prevents further progress.
|
|
108
|
-
|
|
109
|
-
The following are **not** real blockers by themselves:
|
|
110
|
-
|
|
111
|
-
- a planned phase is unfinished
|
|
112
|
-
- a runtime adapter is not fully migrated yet
|
|
113
|
-
- store-layer branches still need to be moved to the new service/client path
|
|
114
|
-
- more files remain in the approved implementation scope
|
|
115
|
-
- verification has not been rerun after the latest edits
|
|
116
|
-
|
|
117
|
-
Those are remaining execution work. Keep working them down.
|
|
118
|
-
|
|
119
|
-
A real blocker must identify why execution cannot safely continue now, such as:
|
|
120
|
-
|
|
121
|
-
- missing human product/architecture decision that is not specified by the approved plan
|
|
122
|
-
- unavailable credential, service, fixture, dependency, or environment that cannot be mocked or bypassed responsibly
|
|
123
|
-
- verification failure caused by a pre-existing repository condition that blocks evaluating this change and cannot be isolated
|
|
124
|
-
- repeated implementation failure after the build iteration budget is exhausted
|
|
125
|
-
- a conflict between the approved plan and current repository facts that requires re-planning
|
|
126
|
-
|
|
127
|
-
Do not end a build response with "continue in the next build" for unfinished approved work. If work remains and no real blocker exists, keep executing. If a real blocker exists, name the concrete blocker and record it in `execution-record.md`.
|
|
128
|
-
</Continuation_Discipline>
|
|
129
|
-
|
|
130
|
-
<Runtime_State_Machine>
|
|
131
|
-
`build` should track at minimum:
|
|
132
|
-
|
|
133
|
-
- `build_run_id`
|
|
134
|
-
- `build_current_iteration`
|
|
135
|
-
- `build_max_iterations` (default `10`)
|
|
136
|
-
- `build_parallel_mode`
|
|
137
|
-
- `build_lane_statuses`
|
|
138
|
-
- `build_verification_status`
|
|
139
|
-
- `build_architect_verification_status`
|
|
140
|
-
- `build_deslop_status`
|
|
141
|
-
- `build_regression_status`
|
|
142
|
-
- `build_blockers`
|
|
143
|
-
- `build_progress_artifact_paths`
|
|
144
|
-
- `build_support_evidence_paths`
|
|
145
|
-
- `build_owner_id`
|
|
146
|
-
- `build_owner_session_id`
|
|
147
|
-
- `build_owner_status`
|
|
148
|
-
- `build_delegation_status`
|
|
149
|
-
- `build_delegation_ledger_path`
|
|
150
|
-
- `build_active_delegation_count`
|
|
151
|
-
- `build_completion_audit_status`
|
|
152
|
-
- `build_completion_audit_path`
|
|
153
|
-
- `execution_record_status`
|
|
154
|
-
|
|
155
|
-
`build -> review` is blocked until:
|
|
156
|
-
|
|
157
|
-
- all internal lanes are complete
|
|
158
|
-
- fresh verification passes
|
|
159
|
-
- architect verification is approved
|
|
160
|
-
- deslop is complete, unless explicitly skipped
|
|
161
|
-
- post-deslop regression passes
|
|
162
|
-
- blocking delegated build work is drained
|
|
163
|
-
- completion audit passes
|
|
164
|
-
- `execution-record.md` is complete
|
|
165
|
-
</Runtime_State_Machine>
|
|
166
|
-
|
|
167
|
-
<Artifact_Contract>
|
|
168
|
-
Canonical artifact:
|
|
169
|
-
|
|
170
|
-
- `execution-record.md`
|
|
171
|
-
|
|
172
|
-
`execution-record.md` must make the completion scope explicit when a plan is larger than the current implementation slice:
|
|
173
|
-
|
|
174
|
-
- `planned_scope`: the approved PRD/workflow scope being measured.
|
|
175
|
-
- `implemented_scope`: the scope actually completed in this build run.
|
|
176
|
-
- `remaining_scope`: empty only when the approved workflow scope is fully implemented.
|
|
177
|
-
- `completion_claim`: use `full` only when the whole approved workflow is complete; use `slice` or another non-full value for partial implementation.
|
|
178
|
-
|
|
179
|
-
If `remaining_scope` is non-empty or `completion_claim` is not `full`, build may still hand off for slice review, but review/archive must not treat that as full workflow completion.
|
|
180
|
-
|
|
181
|
-
Support artifacts may exist for:
|
|
182
|
-
|
|
183
|
-
- iteration progress
|
|
184
|
-
- lane evidence summaries
|
|
185
|
-
- architect gate summaries
|
|
186
|
-
- deslop summaries
|
|
187
|
-
- regression summaries
|
|
188
|
-
- `build-support/delegation-ledger.json`
|
|
189
|
-
- `build-support/completion-audit.json`
|
|
190
|
-
|
|
191
|
-
These support artifacts are runtime aids only. They must not become new canonical review inputs.
|
|
192
|
-
</Artifact_Contract>
|
|
193
|
-
|
|
194
|
-
<Review_Boundary>
|
|
195
|
-
- build-internal architect verification is an execution-quality gate
|
|
196
|
-
- review remains the final independent stage
|
|
197
|
-
- review continues to own provenance checks, evidence completeness checks, completion/rollback decisions, and code-review
|
|
198
|
-
</Review_Boundary>
|
|
199
|
-
|
|
200
|
-
<Final_Response_Contract>
|
|
201
|
-
When `build` reaches review handoff readiness, the final response must include an explicit next skill command using the execution record path:
|
|
202
|
-
|
|
203
|
-
Default review handoff after build readiness:
|
|
204
|
-
|
|
205
|
-
```text
|
|
206
|
-
Next:
|
|
207
|
-
$review .loopx/workflows/<slug>/execution-record.md
|
|
208
|
-
```
|
|
209
|
-
|
|
210
|
-
If the user needs the CLI/runtime-debug form, use:
|
|
211
|
-
|
|
212
|
-
```bash
|
|
213
|
-
loopx review <slug>
|
|
214
|
-
```
|
|
215
|
-
|
|
216
|
-
Do not end with prose-only guidance such as "next step should enter review" when the workflow is ready for review. Do not emit `$review <slug>` as the primary skill handoff when the execution record path is known. If review handoff is blocked, state the blocker instead of emitting a `$review` command.
|
|
217
|
-
</Final_Response_Contract>
|
|
218
|
-
|
|
219
|
-
<Flags>
|
|
220
|
-
- `--no-deslop`: skip the deslop pass and the post-deslop regression loop, while still requiring the latest successful pre-deslop verification evidence
|
|
221
|
-
</Flags>
|
|
222
|
-
|
|
223
|
-
<Must_Not_Decide_Automatically>
|
|
224
|
-
- do not self-approve review
|
|
225
|
-
- do not mark the workflow complete
|
|
226
|
-
- do not replace `execution-record.md` with support artifacts
|
|
227
|
-
- do not widen execution into public `team`, `ultrawork`, or `ralph` command surfaces
|
|
228
|
-
</Must_Not_Decide_Automatically>
|