@ai-content-space/loopx 0.2.0 → 0.2.1
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 +7 -8
- package/README.md +22 -10
- package/README.zh-CN.md +22 -10
- package/docs/loopx/design/loopx-skill-suite-v1-design.md +14 -7
- package/docs/loopx/plans/loopx-skill-suite-v1-implementation.md +7 -3
- package/package.json +3 -2
- package/plugins/loopx/.codex-plugin/plugin.json +1 -1
- package/plugins/loopx/skills/clarify/SKILL.md +4 -4
- package/plugins/loopx/skills/debug/SKILL.md +1 -1
- package/plugins/loopx/skills/exec/SKILL.md +1 -1
- package/plugins/loopx/skills/finish/SKILL.md +103 -8
- package/plugins/loopx/skills/fix-review/SKILL.md +1 -1
- package/plugins/loopx/skills/go-style/SKILL.md +2 -2
- package/plugins/loopx/skills/kratos/SKILL.md +1 -1
- package/plugins/loopx/skills/plan/SKILL.md +2 -2
- 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 +2 -2
- package/plugins/loopx/skills/subagent-exec/SKILL.md +1 -1
- package/plugins/loopx/skills/tdd/SKILL.md +1 -1
- package/plugins/loopx/skills/verify/SKILL.md +1 -1
- package/scripts/verify-skills.mjs +2 -1
- package/skills/RESOLVER.md +0 -4
- package/skills/clarify/SKILL.md +4 -4
- package/skills/debug/SKILL.md +1 -1
- package/skills/exec/SKILL.md +1 -1
- package/skills/finish/SKILL.md +103 -8
- package/skills/fix-review/SKILL.md +1 -1
- package/skills/go-style/SKILL.md +2 -2
- package/skills/kratos/SKILL.md +1 -1
- package/skills/plan/SKILL.md +2 -2
- 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 +2 -2
- package/skills/subagent-exec/SKILL.md +1 -1
- package/skills/tdd/SKILL.md +1 -1
- package/skills/verify/SKILL.md +1 -1
- package/src/cli.mjs +1 -2
- package/src/plan-runtime.mjs +0 -352
- package/src/workflow.mjs +5 -124
- package/plugins/loopx/scripts/plugin-install.test.mjs +0 -125
- package/skills/ai-slop-cleaner/SKILL.md +0 -114
- package/skills/autoresearch/SKILL.md +0 -68
- package/skills/deep-interview/SKILL.md +0 -461
- package/skills/ralph/SKILL.md +0 -271
- package/skills/ralplan/SKILL.md +0 -49
package/AGENTS.md
CHANGED
|
@@ -1,25 +1,24 @@
|
|
|
1
1
|
# Repository Guidelines
|
|
2
2
|
|
|
3
|
-
## Iron Law
|
|
3
|
+
## Iron Law
|
|
4
4
|
|
|
5
|
-
**
|
|
6
|
-
Skills should be kept as simple as possible. It is like a Swiss Army knife - versatile but not a universal key.**
|
|
5
|
+
**Skill frontmatter descriptions are required for discovery, but skill bodies should stay operational, clear, and bounded. Avoid vague narrative, broad promises, and ambiguous handoffs. Keep each skill focused: versatile enough to be useful, not a universal key.**
|
|
7
6
|
|
|
8
7
|
|
|
9
8
|
|
|
10
9
|
## Project Structure & Module Organization
|
|
11
10
|
|
|
12
|
-
This repository is a Node.js ESM CLI package for loopx, a skill-first workflow harness for Codex-style
|
|
11
|
+
This repository is a Node.js ESM CLI package for loopx, a skill-first workflow harness for Codex and Claude-style agentic coding assistants.
|
|
13
12
|
|
|
14
13
|
- `src/` contains runtime modules and the `src/cli.mjs` executable.
|
|
15
14
|
- `test/` contains Node test suites, mainly `workflow.test.mjs` and `trellis-hardening.test.mjs`.
|
|
16
|
-
- `skills/` contains
|
|
17
|
-
- `plugins/loopx/` mirrors plugin-ready skills and plugin install scripts.
|
|
15
|
+
- `skills/` contains canonical skill source files. The v1 installed set is controlled by `LOOPX_BUNDLED_SKILLS` in `src/install-discovery.mjs`; not every local skill source is installed or governed as part of v1.
|
|
16
|
+
- `plugins/loopx/` mirrors the bundled plugin-ready v1 skills and plugin install scripts.
|
|
18
17
|
- `templates/` stores canonical workflow artifact templates.
|
|
19
18
|
- `scripts/` contains postinstall and hook scripts.
|
|
20
|
-
- `assets
|
|
19
|
+
- `assets/` and `docs/` hold static assets, release notes, and design/planning documents.
|
|
21
20
|
|
|
22
|
-
Keep source changes close to the owning module. When changing workflow behavior, update matching tests and any affected skill docs in both `skills/` and `plugins/loopx/skills/` when they are intentionally mirrored.
|
|
21
|
+
Keep source changes close to the owning module. When changing workflow behavior, update matching tests and any affected bundled skill docs in both `skills/` and `plugins/loopx/skills/` when they are intentionally mirrored.
|
|
23
22
|
|
|
24
23
|
## Build, Test, and Development Commands
|
|
25
24
|
|
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
[中文文档](./README.zh-CN.md)
|
|
12
12
|
|
|
13
|
-
`loopx`
|
|
13
|
+
`loopx` installs a pragmatic v1 skill suite for Codex and Claude-style coding agents. It combines grill-me style clarification with superpowers-style planning, execution, review, and finishing workflows.
|
|
14
14
|
|
|
15
15
|
Recommended v1 flow:
|
|
16
16
|
|
|
@@ -22,6 +22,8 @@ clarify -> spec? -> plan -> subagent-exec | exec -> review -> fix-review? -> fin
|
|
|
22
22
|
|
|
23
23
|
## Skills
|
|
24
24
|
|
|
25
|
+
The installed and governed v1 skill surface is the list below. The repository may keep auxiliary or compatibility skill sources under `skills/`, but they are not installed by `loopx install-skills` unless they are in the bundled v1 set.
|
|
26
|
+
|
|
25
27
|
Core workflow skills:
|
|
26
28
|
|
|
27
29
|
- `clarify`: interview until scope, non-goals, constraints, and decision boundaries are clear.
|
|
@@ -44,14 +46,26 @@ Support skills:
|
|
|
44
46
|
|
|
45
47
|
## Artifacts
|
|
46
48
|
|
|
47
|
-
|
|
49
|
+
For the v1 skill-suite workflow, human-maintained artifacts live under `docs/loopx/`:
|
|
48
50
|
|
|
49
51
|
- `docs/loopx/design/`
|
|
50
52
|
- `docs/loopx/plans/`
|
|
51
53
|
- `docs/loopx/reviews/`
|
|
52
54
|
- `docs/loopx/refactors/`
|
|
55
|
+
- `docs/loopx/specs/`
|
|
56
|
+
|
|
57
|
+
`finish` may generate spec candidates in `docs/loopx/specs/` when completed work produces stable team rules. These candidates are repo-tracked and must remain visible in the git diff.
|
|
58
|
+
|
|
59
|
+
Generated support state, hook diagnostics, installer metadata, HTML views, manifests, and runtime JSON remain under `.loopx/`.
|
|
53
60
|
|
|
54
|
-
|
|
61
|
+
Local agent memory lives under `.loopx/memory/`:
|
|
62
|
+
|
|
63
|
+
- `.loopx/memory/MEMORY.md`
|
|
64
|
+
- `.loopx/memory/index.jsonl`
|
|
65
|
+
- `.loopx/memory/entries/`
|
|
66
|
+
- `.loopx/memory/archive/`
|
|
67
|
+
|
|
68
|
+
`MEMORY.md` is a bounded curated project memory summary. `index.jsonl` is a curated active index for agent file-search, not an append-only log.
|
|
55
69
|
|
|
56
70
|
## Installation
|
|
57
71
|
|
|
@@ -94,22 +108,22 @@ Plugin install script:
|
|
|
94
108
|
node plugins/loopx/scripts/plugin-install.mjs
|
|
95
109
|
```
|
|
96
110
|
|
|
97
|
-
The plugin mirrors the canonical `skills/`
|
|
111
|
+
The plugin mirrors the canonical bundled v1 skills from `skills/` and uses the same install/discovery core.
|
|
98
112
|
|
|
99
113
|
## CLI
|
|
100
114
|
|
|
101
|
-
The CLI supports installation, diagnostics, rendering, and
|
|
115
|
+
The CLI supports installation, diagnostics, rendering, and runtime maintenance:
|
|
102
116
|
|
|
103
117
|
```bash
|
|
118
|
+
loopx --version
|
|
104
119
|
loopx install-skills [--target <codex|claude|all>] [--project] [--mode <copy|symlink>] [--dir <path>] [--yes]
|
|
105
120
|
loopx init [--slug <slug>] [--enable-agent-delegation] [--auto-agent-delegation] [--agent-delegation-threshold <local|critic-only|parallel-review>]
|
|
106
121
|
loopx clarify <slug> [--standard|--deep]
|
|
107
122
|
loopx approve <slug> --from <stage> --to <stage>
|
|
108
|
-
loopx plan [slug] [--
|
|
123
|
+
loopx plan [slug] [--interactive] [--deliberate]
|
|
109
124
|
loopx build <slug> [--no-deslop]
|
|
110
125
|
loopx build --from-review <review-report-path> [--no-deslop]
|
|
111
126
|
loopx review <slug> [--reviewer <name>]
|
|
112
|
-
loopx archive <slug>
|
|
113
127
|
loopx autopilot <slug> [--reviewer <name>]
|
|
114
128
|
loopx render [slug|--all]
|
|
115
129
|
loopx status [slug] [--json]
|
|
@@ -119,8 +133,6 @@ loopx migrate
|
|
|
119
133
|
loopx repair-install
|
|
120
134
|
```
|
|
121
135
|
|
|
122
|
-
Legacy `.loopx/workflows/` commands remain available for compatibility. They are not the v1 skill-suite workflow.
|
|
123
|
-
|
|
124
136
|
## Governance
|
|
125
137
|
|
|
126
138
|
The bundled skill resolver lives at:
|
|
@@ -135,4 +147,4 @@ Run deterministic governance checks before release or when changing bundled skil
|
|
|
135
147
|
node scripts/verify-skills.mjs
|
|
136
148
|
```
|
|
137
149
|
|
|
138
|
-
The verifier checks bundled skill frontmatter, plugin mirrors, resolver coverage, local references, package inclusion, version alignment, and public docs.
|
|
150
|
+
The verifier checks the bundled v1 skill frontmatter, plugin mirrors, resolver coverage, local references, package inclusion, version alignment, and public docs. It intentionally verifies the installed v1 skill set, not every auxiliary source directory that may exist under `skills/`.
|
package/README.zh-CN.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
[English](./README.md)
|
|
12
12
|
|
|
13
|
-
`loopx` 为 Codex 和 Claude 风格的 coding agent
|
|
13
|
+
`loopx` 为 Codex 和 Claude 风格的 coding agent 安装一组实用的 v1 skills。它把 grill-me 式需求澄清和 superpowers 式计划、执行、评审、收尾流程组合成一套可安装、可治理的技能套件。
|
|
14
14
|
|
|
15
15
|
推荐 v1 流程:
|
|
16
16
|
|
|
@@ -22,6 +22,8 @@ clarify -> spec? -> plan -> subagent-exec | exec -> review -> fix-review? -> fin
|
|
|
22
22
|
|
|
23
23
|
## Skills
|
|
24
24
|
|
|
25
|
+
安装和治理意义上的 v1 skill surface 是下面这组。仓库里可以保留辅助或兼容 skill 源文件,但除非它们属于 bundled v1 集合,否则 `loopx install-skills` 不会安装它们。
|
|
26
|
+
|
|
25
27
|
核心工作流 skills:
|
|
26
28
|
|
|
27
29
|
- `clarify`:持续追问直到范围、非目标、约束和决策边界清楚。
|
|
@@ -44,14 +46,26 @@ clarify -> spec? -> plan -> subagent-exec | exec -> review -> fix-review? -> fin
|
|
|
44
46
|
|
|
45
47
|
## 产物
|
|
46
48
|
|
|
47
|
-
|
|
49
|
+
v1 skill-suite 工作流的人工维护长期产物放在 `docs/loopx/`:
|
|
48
50
|
|
|
49
51
|
- `docs/loopx/design/`
|
|
50
52
|
- `docs/loopx/plans/`
|
|
51
53
|
- `docs/loopx/reviews/`
|
|
52
54
|
- `docs/loopx/refactors/`
|
|
55
|
+
- `docs/loopx/specs/`
|
|
56
|
+
|
|
57
|
+
当完成的工作产生稳定团队规则时,`finish` 可以在 `docs/loopx/specs/` 生成 spec candidates。这些候选是 repo-tracked,必须保留在 git diff 中供审阅。
|
|
58
|
+
|
|
59
|
+
生成的支撑状态、hook 诊断、安装元数据、HTML views、manifests 和 runtime JSON 仍放在 `.loopx/` 下。
|
|
53
60
|
|
|
54
|
-
|
|
61
|
+
本地 agent memory 放在 `.loopx/memory/`:
|
|
62
|
+
|
|
63
|
+
- `.loopx/memory/MEMORY.md`
|
|
64
|
+
- `.loopx/memory/index.jsonl`
|
|
65
|
+
- `.loopx/memory/entries/`
|
|
66
|
+
- `.loopx/memory/archive/`
|
|
67
|
+
|
|
68
|
+
`MEMORY.md` 是有上限的 curated project memory summary。`index.jsonl` 是用于 agent 文件检索的 curated active index,不是 append-only log。
|
|
55
69
|
|
|
56
70
|
## 安装
|
|
57
71
|
|
|
@@ -94,22 +108,22 @@ plugins/loopx/
|
|
|
94
108
|
node plugins/loopx/scripts/plugin-install.mjs
|
|
95
109
|
```
|
|
96
110
|
|
|
97
|
-
插件镜像
|
|
111
|
+
插件镜像 `skills/` 中 canonical bundled v1 skills,并复用同一套 install/discovery core。
|
|
98
112
|
|
|
99
113
|
## CLI
|
|
100
114
|
|
|
101
|
-
CLI 用于安装、诊断、渲染和
|
|
115
|
+
CLI 用于安装、诊断、渲染和 runtime 维护:
|
|
102
116
|
|
|
103
117
|
```bash
|
|
118
|
+
loopx --version
|
|
104
119
|
loopx install-skills [--target <codex|claude|all>] [--project] [--mode <copy|symlink>] [--dir <path>] [--yes]
|
|
105
120
|
loopx init [--slug <slug>] [--enable-agent-delegation] [--auto-agent-delegation] [--agent-delegation-threshold <local|critic-only|parallel-review>]
|
|
106
121
|
loopx clarify <slug> [--standard|--deep]
|
|
107
122
|
loopx approve <slug> --from <stage> --to <stage>
|
|
108
|
-
loopx plan [slug] [--
|
|
123
|
+
loopx plan [slug] [--interactive] [--deliberate]
|
|
109
124
|
loopx build <slug> [--no-deslop]
|
|
110
125
|
loopx build --from-review <review-report-path> [--no-deslop]
|
|
111
126
|
loopx review <slug> [--reviewer <name>]
|
|
112
|
-
loopx archive <slug>
|
|
113
127
|
loopx autopilot <slug> [--reviewer <name>]
|
|
114
128
|
loopx render [slug|--all]
|
|
115
129
|
loopx status [slug] [--json]
|
|
@@ -119,8 +133,6 @@ loopx migrate
|
|
|
119
133
|
loopx repair-install
|
|
120
134
|
```
|
|
121
135
|
|
|
122
|
-
Legacy `.loopx/workflows/` 命令仍保留兼容,但不是 v1 skill-suite workflow。
|
|
123
|
-
|
|
124
136
|
## 治理
|
|
125
137
|
|
|
126
138
|
bundled skill resolver 位于:
|
|
@@ -135,4 +147,4 @@ skills/RESOLVER.md
|
|
|
135
147
|
node scripts/verify-skills.mjs
|
|
136
148
|
```
|
|
137
149
|
|
|
138
|
-
治理脚本检查 bundled skill frontmatter、plugin mirrors、resolver coverage
|
|
150
|
+
治理脚本检查 bundled v1 skill frontmatter、plugin mirrors、resolver coverage、本地引用、发布包包含项、版本一致性和公开文档。它刻意验证安装意义上的 v1 skill 集合,而不是 `skills/` 下可能存在的每个辅助源目录。
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
## Context
|
|
4
4
|
|
|
5
|
-
loopx is moving from a CLI-runtime-first workflow into a skill-first suite for agentic coding assistants. Codex and Claude are supported targets. The CLI remains as installer, governance, diagnostics, rendering, and
|
|
5
|
+
loopx is moving from a CLI-runtime-first workflow into a skill-first suite for agentic coding assistants. Codex and Claude are supported targets. The CLI remains as installer, governance, diagnostics, rendering, and runtime maintenance.
|
|
6
6
|
|
|
7
7
|
## Decision
|
|
8
8
|
|
|
9
|
-
The v1 product surface is
|
|
9
|
+
The v1 product surface is the installed and governed bundled skill suite:
|
|
10
10
|
|
|
11
11
|
- `clarify`
|
|
12
12
|
- `spec`
|
|
@@ -23,7 +23,9 @@ The v1 product surface is a bundled skill suite:
|
|
|
23
23
|
- `go-style`
|
|
24
24
|
- `kratos`
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
Runtime-only skills are not installed as Codex or Claude skills in v1.
|
|
27
|
+
|
|
28
|
+
The repository may retain auxiliary or compatibility skill source directories for development history or adjacent workflows. They are not part of the v1 product surface unless they are listed in the bundled install set and mirrored into the plugin skill set.
|
|
27
29
|
|
|
28
30
|
## Workflow
|
|
29
31
|
|
|
@@ -39,16 +41,21 @@ clarify -> spec? -> plan -> subagent-exec | exec -> review -> fix-review? -> fin
|
|
|
39
41
|
|
|
40
42
|
`review` is the superpowers `requesting-code-review` workflow under the loopx name. `fix-review` is the superpowers `receiving-code-review` workflow under the loopx name.
|
|
41
43
|
|
|
44
|
+
`finish` verifies completion, extracts local memory, proposes repo-tracked spec candidates when stable team rules emerged, then presents merge, PR, keep, or discard options.
|
|
45
|
+
|
|
42
46
|
## Artifacts
|
|
43
47
|
|
|
44
|
-
Human-maintained artifacts use `docs/loopx/`:
|
|
48
|
+
Human-maintained v1 skill-suite artifacts use `docs/loopx/`:
|
|
45
49
|
|
|
46
50
|
- `docs/loopx/design/`
|
|
47
51
|
- `docs/loopx/plans/`
|
|
48
52
|
- `docs/loopx/reviews/`
|
|
49
53
|
- `docs/loopx/refactors/`
|
|
54
|
+
- `docs/loopx/specs/`
|
|
55
|
+
|
|
56
|
+
Runtime state, hook diagnostics, installer metadata, manifests, generated HTML views, and runtime JSON use `.loopx/`.
|
|
50
57
|
|
|
51
|
-
|
|
58
|
+
Local agent memory uses `.loopx/memory/`. `.loopx/memory/MEMORY.md` is bounded curated project memory. `.loopx/memory/index.jsonl` is a curated active index for agent file-search. Stable shared rules belong in `docs/loopx/specs/<domain>.md`, with `docs/loopx/specs/inbox.md` as the fallback domain.
|
|
52
59
|
|
|
53
60
|
## Installer
|
|
54
61
|
|
|
@@ -63,11 +70,11 @@ Project-level Claude installation and custom directories are explicit installer
|
|
|
63
70
|
|
|
64
71
|
## Claude Hook
|
|
65
72
|
|
|
66
|
-
The Claude hook is advisory only. It must not block tools, mutate workflow state, or enforce git safety. It emits next-action context when loopx support
|
|
73
|
+
The Claude hook is advisory only. It must not block tools, mutate workflow state, or enforce git safety. It emits next-action context when loopx support context exists.
|
|
67
74
|
|
|
68
75
|
## Non-Goals
|
|
69
76
|
|
|
70
|
-
- No alias skills for renamed superpowers skills.
|
|
77
|
+
- No alias skills in the v1 bundled install surface for renamed superpowers skills.
|
|
71
78
|
- No automatic project-level `.claude/skills` writes in postinstall.
|
|
72
79
|
- No new mandatory CLI state machine for the v1 skill suite.
|
|
73
80
|
- No blocking Claude hook in v1.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# loopx Skill Suite v1 Implementation Plan
|
|
2
2
|
|
|
3
|
-
> **For agentic workers:** execute task-by-task. Preserve existing user edits and keep
|
|
3
|
+
> **For agentic workers:** execute task-by-task. Preserve existing user edits and keep runtime maintenance behavior unless a task explicitly changes skill installation behavior.
|
|
4
4
|
|
|
5
5
|
**Source Design:** `docs/loopx/design/loopx-skill-suite-v1-design.md`
|
|
6
6
|
|
|
7
7
|
**Goal:** Convert loopx into a Codex and Claude ready skill suite with renamed superpowers-style workflow skills, dual-target installation, and non-blocking Claude hook support.
|
|
8
8
|
|
|
9
|
-
**Architecture:** `skills/` remains canonical. `plugins/loopx/skills/` mirrors
|
|
9
|
+
**Architecture:** `skills/` remains the canonical source root. `plugins/loopx/skills/` mirrors the bundled v1 skill set for Codex plugin packaging, not every auxiliary source directory that may exist under `skills/`. `src/install-discovery.mjs` owns multi-target installation and lock metadata.
|
|
10
10
|
|
|
11
11
|
**Tech Stack:** Node.js ESM, `node:test`, filesystem APIs from `node:fs/promises`.
|
|
12
12
|
|
|
@@ -23,8 +23,9 @@
|
|
|
23
23
|
- [ ] Rename canonical superpowers-derived skills to v1 names.
|
|
24
24
|
- [ ] Remove old runtime workflow skills from the bundled install list.
|
|
25
25
|
- [ ] Keep `plan` as the canonical implementation-planning skill.
|
|
26
|
-
- [ ] Mirror all canonical skill files into `plugins/loopx/skills/`.
|
|
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
|
+
- [ ] Keep auxiliary or compatibility skill sources outside the bundled install list unless explicitly promoted into the v1 product surface.
|
|
28
29
|
|
|
29
30
|
### Task 2: Installer Targets
|
|
30
31
|
|
|
@@ -63,6 +64,9 @@
|
|
|
63
64
|
|
|
64
65
|
- [ ] Reframe loopx as a skill suite for agentic coding assistants.
|
|
65
66
|
- [ ] Document the new workflow and artifact paths.
|
|
67
|
+
- [ ] Clarify v1 `docs/loopx/` artifacts versus generated runtime support state.
|
|
68
|
+
- [ ] Document finish memory extraction and `docs/loopx/specs/` candidate promotion.
|
|
69
|
+
- [ ] Clarify installed bundled skills versus auxiliary skill source directories.
|
|
66
70
|
- [ ] Document Codex and Claude installation.
|
|
67
71
|
- [ ] Update governance checks for the v1 bundled skill list and mirrors.
|
|
68
72
|
- [ ] Update install tests for dual user targets and hooks.
|
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.1",
|
|
5
5
|
"description": "Skill-first workflow suite for agentic coding assistants",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -32,7 +32,8 @@
|
|
|
32
32
|
"src/",
|
|
33
33
|
"skills/",
|
|
34
34
|
"templates/",
|
|
35
|
-
"plugins/loopx/"
|
|
35
|
+
"plugins/loopx/",
|
|
36
|
+
"!plugins/loopx/scripts/plugin-install.test.mjs"
|
|
36
37
|
],
|
|
37
38
|
"publishConfig": {
|
|
38
39
|
"access": "public"
|
|
@@ -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.1"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# loopx Clarify
|
|
@@ -63,11 +63,11 @@ 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
|
|
66
|
+
$plan docs/loopx/design/<需求名>需求设计文档.md
|
|
67
67
|
```
|
|
68
68
|
|
|
69
|
-
For `direct_to_plan`,
|
|
69
|
+
For `direct_to_plan`, hand off to the `plan` skill with the clarification context bundle as the source. `plan` writes:
|
|
70
70
|
|
|
71
71
|
- `docs/loopx/plans/YYYY-MM-DD-<feature-name>.md`
|
|
72
72
|
|
|
73
|
-
Do not
|
|
73
|
+
Do not write implementation plans or start code changes inside `clarify`.
|
|
@@ -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.1"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# Systematic Debugging
|
|
@@ -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.1"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# Exec
|
|
@@ -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.1"
|
|
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 →
|
|
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,83 @@ 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:
|
|
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
|
+
Do not infer durable rules from agent intuition alone. Do not promote unverified implementation details.
|
|
82
|
+
|
|
83
|
+
#### Memory
|
|
84
|
+
|
|
85
|
+
Memory is local, agent-queryable project context. It is not repo-tracked by default.
|
|
86
|
+
|
|
87
|
+
Use:
|
|
88
|
+
|
|
89
|
+
```text
|
|
90
|
+
.loopx/memory/MEMORY.md
|
|
91
|
+
.loopx/memory/index.jsonl
|
|
92
|
+
.loopx/memory/entries/
|
|
93
|
+
.loopx/memory/archive/
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
`MEMORY.md` is the bounded curated summary an agent should read first. Keep it dense and useful.
|
|
97
|
+
|
|
98
|
+
`index.jsonl` is a curated active index, not an append-only history. It should point only to active memory cards worth querying.
|
|
99
|
+
|
|
100
|
+
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".
|
|
101
|
+
|
|
102
|
+
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.
|
|
103
|
+
|
|
104
|
+
Memory entry index rows should use this shape:
|
|
105
|
+
|
|
106
|
+
```json
|
|
107
|
+
{"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"}
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
Allowed memory `type` values:
|
|
111
|
+
- `decision`
|
|
112
|
+
- `constraint`
|
|
113
|
+
- `pattern`
|
|
114
|
+
- `pitfall`
|
|
115
|
+
- `handoff`
|
|
116
|
+
|
|
117
|
+
Finish may automatically update `.loopx/memory/MEMORY.md`, `.loopx/memory/index.jsonl`, and active memory cards. The final response must list the memory changes.
|
|
118
|
+
|
|
119
|
+
#### Spec Candidates
|
|
120
|
+
|
|
121
|
+
Spec extraction is conditional. Run the audit every time, but write spec candidates only when the task produced stable, shared, reusable project rules.
|
|
122
|
+
|
|
123
|
+
Write repo-tracked candidates directly to:
|
|
124
|
+
|
|
125
|
+
```text
|
|
126
|
+
docs/loopx/specs/<domain>.md
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
If the domain is unclear, use:
|
|
130
|
+
|
|
131
|
+
```text
|
|
132
|
+
docs/loopx/specs/inbox.md
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
Recommended domains:
|
|
136
|
+
- `workflow`
|
|
137
|
+
- `skills`
|
|
138
|
+
- `installation`
|
|
139
|
+
- `memory`
|
|
140
|
+
- `testing`
|
|
141
|
+
- `inbox`
|
|
142
|
+
|
|
143
|
+
Spec candidates must be visible in the repo diff and reported in the final response. Do not silently change team specs.
|
|
144
|
+
|
|
145
|
+
### Step 5: Present Options
|
|
70
146
|
|
|
71
147
|
**Normal repo and named-branch worktree — present exactly these 4 options:**
|
|
72
148
|
|
|
@@ -95,7 +171,7 @@ Which option?
|
|
|
95
171
|
|
|
96
172
|
**Don't add explanation** - keep options concise.
|
|
97
173
|
|
|
98
|
-
### Step
|
|
174
|
+
### Step 6: Execute Choice
|
|
99
175
|
|
|
100
176
|
#### Option 1: Merge Locally
|
|
101
177
|
|
|
@@ -112,10 +188,10 @@ git merge <feature-branch>
|
|
|
112
188
|
# Verify tests on merged result
|
|
113
189
|
<test command>
|
|
114
190
|
|
|
115
|
-
# Only after merge succeeds: cleanup worktree (Step
|
|
191
|
+
# Only after merge succeeds: cleanup worktree (Step 7), then delete branch
|
|
116
192
|
```
|
|
117
193
|
|
|
118
|
-
Then: Cleanup worktree (Step
|
|
194
|
+
Then: Cleanup worktree (Step 7), then delete branch:
|
|
119
195
|
|
|
120
196
|
```bash
|
|
121
197
|
git branch -d <feature-branch>
|
|
@@ -166,12 +242,12 @@ MAIN_ROOT=$(git -C "$(git rev-parse --git-common-dir)/.." rev-parse --show-tople
|
|
|
166
242
|
cd "$MAIN_ROOT"
|
|
167
243
|
```
|
|
168
244
|
|
|
169
|
-
Then: Cleanup worktree (Step
|
|
245
|
+
Then: Cleanup worktree (Step 7), then force-delete branch:
|
|
170
246
|
```bash
|
|
171
247
|
git branch -D <feature-branch>
|
|
172
248
|
```
|
|
173
249
|
|
|
174
|
-
### Step
|
|
250
|
+
### Step 7: Cleanup Workspace
|
|
175
251
|
|
|
176
252
|
**Only runs for Options 1 and 4.** Options 2 and 3 always preserve the worktree.
|
|
177
253
|
|
|
@@ -203,6 +279,25 @@ git worktree prune # Self-healing: clean up any stale registrations
|
|
|
203
279
|
| 3. Keep as-is | - | - | yes | - |
|
|
204
280
|
| 4. Discard | - | - | - | yes (force) |
|
|
205
281
|
|
|
282
|
+
## Final Response Contract
|
|
283
|
+
|
|
284
|
+
Every finish response must include the verification result, chosen completion action, memory changes, and Spec candidates.
|
|
285
|
+
|
|
286
|
+
Use this shape:
|
|
287
|
+
|
|
288
|
+
```text
|
|
289
|
+
Memory:
|
|
290
|
+
- updated: .loopx/memory/MEMORY.md
|
|
291
|
+
- entries: <N> added, <N> archived
|
|
292
|
+
- summary:
|
|
293
|
+
- <high-signal memory change>
|
|
294
|
+
|
|
295
|
+
Spec candidates:
|
|
296
|
+
- docs/loopx/specs/<domain>.md: <candidate change>
|
|
297
|
+
```
|
|
298
|
+
|
|
299
|
+
If there are no memory changes or spec candidates, report `none`. Do not write `none` into memory.
|
|
300
|
+
|
|
206
301
|
## Common Mistakes
|
|
207
302
|
|
|
208
303
|
**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.
|
|
6
|
+
version: "0.2.1"
|
|
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.1"
|
|
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 `
|
|
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.
|
|
6
|
+
version: "0.2.1"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# Kratos
|
|
@@ -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.
|
|
7
|
-
argument-hint: "
|
|
6
|
+
version: "0.2.1"
|
|
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.
|
|
6
|
+
version: "0.2.1"
|
|
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.1"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# Review
|
|
@@ -305,7 +305,7 @@
|
|
|
305
305
|
- 推荐下一步:
|
|
306
306
|
|
|
307
307
|
```text
|
|
308
|
-
$plan
|
|
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/
|
|
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.
|
|
6
|
+
version: "0.2.1"
|
|
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
|
|
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.
|