@ai-content-space/loopx 0.2.7 → 0.2.9
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 +21 -8
- package/README.zh-CN.md +22 -9
- 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/2026-06-14-loopx-spec-memory-context-loading.md +948 -0
- 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 +14 -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 +16 -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 +15 -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 +14 -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 +16 -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 +15 -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 +7 -4
- package/src/context-manifest.mjs +51 -1
- package/src/install-discovery.mjs +110 -1
- package/src/loopx-context-artifacts.mjs +114 -0
- package/src/next-skill.mjs +2 -2
- package/src/project-discovery.mjs +1 -0
- package/src/workflow.mjs +51 -7
|
@@ -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.9",
|
|
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.9"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# loopx Clarify
|
|
@@ -12,6 +12,17 @@ Do not accept vague answers. Do not optimize for speed. The goal is shared under
|
|
|
12
12
|
|
|
13
13
|
## Core Loop
|
|
14
14
|
|
|
15
|
+
## Repo Specs And Memory Context
|
|
16
|
+
|
|
17
|
+
Before using this skill in a repository, inspect loopx long-lived context when it exists:
|
|
18
|
+
|
|
19
|
+
- If `docs/loopx/specs/` exists, inspect the directory names and filenames. If `docs/loopx/specs/index.md` exists, use it as a map, but do not require it. Read only specs relevant to the requested domain, affected files, workflow behavior, or named source document.
|
|
20
|
+
- If `.loopx/memory/MEMORY.md` exists, read it as curated project memory before deciding what is already known.
|
|
21
|
+
- If `.loopx/memory/index.jsonl` exists, use it only as a retrieval index for relevant active memory cards; do not treat it as an append-only log.
|
|
22
|
+
- Treat current user instructions and the named source document as highest priority, `docs/loopx/specs/` as binding long-lived repo rules, and `.loopx/memory/` as advisory context. Memory is advisory and must not override current task instructions, approved source docs, or repo specs.
|
|
23
|
+
|
|
24
|
+
Do not read every file under `docs/loopx/specs/` by default. Prefer relevant specs selected by filename, title, frontmatter such as `applies_to`, or the files/domains involved in the task.
|
|
25
|
+
|
|
15
26
|
Interview me relentlessly about every aspect of this plan until we reach a shared understanding. Walk down each branch of the design tree, resolving dependencies between decisions one-by-one. For each question, provide your recommended answer.
|
|
16
27
|
|
|
17
28
|
Ask the questions one at a time.
|
|
@@ -63,10 +74,10 @@ For `needs_spec`, immediately use the `spec` skill with the clarification contex
|
|
|
63
74
|
Then stop before implementation planning and report:
|
|
64
75
|
|
|
65
76
|
```text
|
|
66
|
-
$plan docs/loopx/design/<需求名>需求设计文档.md
|
|
77
|
+
$plan-to-exec docs/loopx/design/<需求名>需求设计文档.md
|
|
67
78
|
```
|
|
68
79
|
|
|
69
|
-
For `direct_to_plan`, hand off to the `plan` skill with the clarification context bundle as the source. `plan` writes:
|
|
80
|
+
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
81
|
|
|
71
82
|
- `docs/loopx/plans/YYYY-MM-DD-<feature-name>.md`
|
|
72
83
|
|
|
@@ -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.9"
|
|
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.9"
|
|
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.9"
|
|
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.9"
|
|
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.9"
|
|
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.9"
|
|
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.9"
|
|
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.9"
|
|
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.9"
|
|
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
|
|
|
@@ -21,9 +21,20 @@ Use this skill after requirements are clear. The source may be:
|
|
|
21
21
|
- `.loopx/intake/clarify-<slug>-<timestamp>.md`
|
|
22
22
|
- an issue, PRD, or requirements document that already fixes material decisions
|
|
23
23
|
|
|
24
|
+
## Repo Specs And Memory Context
|
|
25
|
+
|
|
26
|
+
Before using this skill in a repository, inspect loopx long-lived context when it exists:
|
|
27
|
+
|
|
28
|
+
- If `docs/loopx/specs/` exists, inspect the directory names and filenames. If `docs/loopx/specs/index.md` exists, use it as a map, but do not require it. Read only specs relevant to the requested domain, affected files, workflow behavior, or named source document.
|
|
29
|
+
- If `.loopx/memory/MEMORY.md` exists, read it as curated project memory before deciding what is already known.
|
|
30
|
+
- If `.loopx/memory/index.jsonl` exists, use it only as a retrieval index for relevant active memory cards; do not treat it as an append-only log.
|
|
31
|
+
- Treat current user instructions and the named source document as highest priority, `docs/loopx/specs/` as binding long-lived repo rules, and `.loopx/memory/` as advisory context. Memory is advisory and must not override current task instructions, approved source docs, or repo specs.
|
|
32
|
+
|
|
33
|
+
Do not read every file under `docs/loopx/specs/` by default. Prefer relevant specs selected by filename, title, frontmatter such as `applies_to`, or the files/domains involved in the task.
|
|
34
|
+
|
|
24
35
|
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
36
|
|
|
26
|
-
**Announce at start:** "I'm using the plan skill to create the implementation plan."
|
|
37
|
+
**Announce at start:** "I'm using the plan-to-exec skill to create the implementation plan."
|
|
27
38
|
|
|
28
39
|
**Save plans to:** `docs/loopx/plans/YYYY-MM-DD-<feature-name>.md`
|
|
29
40
|
|
|
@@ -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.9"
|
|
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.9"
|
|
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.9"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# loopx Spec
|
|
@@ -12,6 +12,17 @@ Turn clarified requirements into design documents. Do not invent missing require
|
|
|
12
12
|
|
|
13
13
|
## Inputs
|
|
14
14
|
|
|
15
|
+
## Repo Specs And Memory Context
|
|
16
|
+
|
|
17
|
+
Before using this skill in a repository, inspect loopx long-lived context when it exists:
|
|
18
|
+
|
|
19
|
+
- If `docs/loopx/specs/` exists, inspect the directory names and filenames. If `docs/loopx/specs/index.md` exists, use it as a map, but do not require it. Read only specs relevant to the requested domain, affected files, workflow behavior, or named source document.
|
|
20
|
+
- If `.loopx/memory/MEMORY.md` exists, read it as curated project memory before deciding what is already known.
|
|
21
|
+
- If `.loopx/memory/index.jsonl` exists, use it only as a retrieval index for relevant active memory cards; do not treat it as an append-only log.
|
|
22
|
+
- Treat current user instructions and the named source document as highest priority, `docs/loopx/specs/` as binding long-lived repo rules, and `.loopx/memory/` as advisory context. Memory is advisory and must not override current task instructions, approved source docs, or repo specs.
|
|
23
|
+
|
|
24
|
+
Do not read every file under `docs/loopx/specs/` by default. Prefer relevant specs selected by filename, title, frontmatter such as `applies_to`, or the files/domains involved in the task.
|
|
25
|
+
|
|
15
26
|
Use the user's PRD, external requirements document, or approved `clarify` output as the source of truth.
|
|
16
27
|
|
|
17
28
|
Before writing, inspect relevant code and docs when the task touches an existing system. If a design question can be answered from the repo, answer it from evidence. If a material requirement, constraint, owner decision, or product behavior is still unclear, stop and route back to `clarify`.
|
|
@@ -63,14 +74,14 @@ The Markdown spec must include these sections:
|
|
|
63
74
|
- `十、排期与规划`
|
|
64
75
|
- `十一、QA`
|
|
65
76
|
|
|
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`.
|
|
77
|
+
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
78
|
|
|
68
79
|
## Handoff
|
|
69
80
|
|
|
70
81
|
After the spec is complete, recommend:
|
|
71
82
|
|
|
72
83
|
```text
|
|
73
|
-
$plan docs/loopx/design/<需求名>需求设计文档.md
|
|
84
|
+
$plan-to-exec docs/loopx/design/<需求名>需求设计文档.md
|
|
74
85
|
```
|
|
75
86
|
|
|
76
|
-
Use `plan` only after the design document is internally consistent and all material requirements questions are resolved.
|
|
87
|
+
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.9"
|
|
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.9"
|
|
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.9"
|
|
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.9"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# loopx Clarify
|
|
@@ -12,6 +12,17 @@ Do not accept vague answers. Do not optimize for speed. The goal is shared under
|
|
|
12
12
|
|
|
13
13
|
## Core Loop
|
|
14
14
|
|
|
15
|
+
## Repo Specs And Memory Context
|
|
16
|
+
|
|
17
|
+
Before using this skill in a repository, inspect loopx long-lived context when it exists:
|
|
18
|
+
|
|
19
|
+
- If `docs/loopx/specs/` exists, inspect the directory names and filenames. If `docs/loopx/specs/index.md` exists, use it as a map, but do not require it. Read only specs relevant to the requested domain, affected files, workflow behavior, or named source document.
|
|
20
|
+
- If `.loopx/memory/MEMORY.md` exists, read it as curated project memory before deciding what is already known.
|
|
21
|
+
- If `.loopx/memory/index.jsonl` exists, use it only as a retrieval index for relevant active memory cards; do not treat it as an append-only log.
|
|
22
|
+
- Treat current user instructions and the named source document as highest priority, `docs/loopx/specs/` as binding long-lived repo rules, and `.loopx/memory/` as advisory context. Memory is advisory and must not override current task instructions, approved source docs, or repo specs.
|
|
23
|
+
|
|
24
|
+
Do not read every file under `docs/loopx/specs/` by default. Prefer relevant specs selected by filename, title, frontmatter such as `applies_to`, or the files/domains involved in the task.
|
|
25
|
+
|
|
15
26
|
Interview me relentlessly about every aspect of this plan until we reach a shared understanding. Walk down each branch of the design tree, resolving dependencies between decisions one-by-one. For each question, provide your recommended answer.
|
|
16
27
|
|
|
17
28
|
Ask the questions one at a time.
|
|
@@ -63,10 +74,10 @@ For `needs_spec`, immediately use the `spec` skill with the clarification contex
|
|
|
63
74
|
Then stop before implementation planning and report:
|
|
64
75
|
|
|
65
76
|
```text
|
|
66
|
-
$plan docs/loopx/design/<需求名>需求设计文档.md
|
|
77
|
+
$plan-to-exec docs/loopx/design/<需求名>需求设计文档.md
|
|
67
78
|
```
|
|
68
79
|
|
|
69
|
-
For `direct_to_plan`, hand off to the `plan` skill with the clarification context bundle as the source. `plan` writes:
|
|
80
|
+
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
81
|
|
|
71
82
|
- `docs/loopx/plans/YYYY-MM-DD-<feature-name>.md`
|
|
72
83
|
|
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.9"
|
|
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.9"
|
|
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.9"
|
|
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.9"
|
|
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.9"
|
|
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.9"
|
|
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.9"
|
|
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.9"
|
|
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.9"
|
|
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
|
|
|
@@ -21,9 +21,20 @@ Use this skill after requirements are clear. The source may be:
|
|
|
21
21
|
- `.loopx/intake/clarify-<slug>-<timestamp>.md`
|
|
22
22
|
- an issue, PRD, or requirements document that already fixes material decisions
|
|
23
23
|
|
|
24
|
+
## Repo Specs And Memory Context
|
|
25
|
+
|
|
26
|
+
Before using this skill in a repository, inspect loopx long-lived context when it exists:
|
|
27
|
+
|
|
28
|
+
- If `docs/loopx/specs/` exists, inspect the directory names and filenames. If `docs/loopx/specs/index.md` exists, use it as a map, but do not require it. Read only specs relevant to the requested domain, affected files, workflow behavior, or named source document.
|
|
29
|
+
- If `.loopx/memory/MEMORY.md` exists, read it as curated project memory before deciding what is already known.
|
|
30
|
+
- If `.loopx/memory/index.jsonl` exists, use it only as a retrieval index for relevant active memory cards; do not treat it as an append-only log.
|
|
31
|
+
- Treat current user instructions and the named source document as highest priority, `docs/loopx/specs/` as binding long-lived repo rules, and `.loopx/memory/` as advisory context. Memory is advisory and must not override current task instructions, approved source docs, or repo specs.
|
|
32
|
+
|
|
33
|
+
Do not read every file under `docs/loopx/specs/` by default. Prefer relevant specs selected by filename, title, frontmatter such as `applies_to`, or the files/domains involved in the task.
|
|
34
|
+
|
|
24
35
|
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
36
|
|
|
26
|
-
**Announce at start:** "I'm using the plan skill to create the implementation plan."
|
|
37
|
+
**Announce at start:** "I'm using the plan-to-exec skill to create the implementation plan."
|
|
27
38
|
|
|
28
39
|
**Save plans to:** `docs/loopx/plans/YYYY-MM-DD-<feature-name>.md`
|
|
29
40
|
|
|
@@ -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.9"
|
|
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.9"
|
|
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
|