claude-everything-workflow 0.2.2 → 0.2.4
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/plugins/marketplace.json +12 -0
- package/.claude-plugin/hooks.json +33 -0
- package/.claude-plugin/marketplace.json +12 -0
- package/.claude-plugin/plugin.json +10 -0
- package/.codex-plugin/plugin.json +20 -0
- package/AGENTS.md +13 -18
- package/CLAUDE.md +1 -5
- package/README.md +101 -368
- package/README.zh-CN.md +158 -0
- package/agents/database-reviewer.md +0 -3
- package/agents/e2e-runner.md +8 -141
- package/commands/code-review.md +9 -30
- package/commands/pr.md +1 -6
- package/commands/verify.md +7 -11
- package/docs/plugins.md +91 -0
- package/harness/manifest.json +310 -0
- package/package.json +14 -2
- package/references/git-worktrees.md +29 -0
- package/rules/01-base.md +9 -26
- package/rules/02-code-size.md +5 -9
- package/rules/03-architecture.md +8 -22
- package/rules/04-error-handling.md +4 -5
- package/rules/05-git-workflow.md +6 -3
- package/rules/06-comments.md +3 -9
- package/rules/07-forbidden.md +4 -3
- package/rules/common/agent-orchestration.md +2 -4
- package/rules/common/context-hygiene.md +2 -0
- package/rules/common/hooks.md +2 -0
- package/rules/common/pr-automation.md +1 -1
- package/rules/common/skills-learning.md +2 -2
- package/rules/common/testing.md +10 -2
- package/scripts/install-rules.js +100 -0
- package/scripts/install.ps1 +29 -3
- package/scripts/install.sh +26 -2
- package/scripts/legacy-common-rule-hashes.json +78 -0
- package/scripts/retired-skill-files.json +26 -0
- package/scripts/upstream-capability-map.json +14 -9
- package/scripts/verify/continuation-checks.test.js +101 -0
- package/scripts/verify/core.js +1 -0
- package/scripts/verify/grilling-spec-gate-checks.js +48 -11
- package/scripts/verify/install-rules.test.js +165 -0
- package/scripts/verify/metadata-checks.js +35 -26
- package/scripts/verify/plugin-distribution.test.js +40 -0
- package/scripts/verify/repository-checks.js +39 -80
- package/scripts/verify/skill-invocation.test.js +87 -0
- package/scripts/verify/skill-manifest-checks.js +197 -0
- package/scripts/verify/skill-manifest-checks.test.js +135 -0
- package/scripts/verify/workflow-checks.js +28 -150
- package/scripts/verify-harness.js +2 -0
- package/scripts/verify-upstream-capability-map.js +2 -1
- package/skills/README.md +11 -15
- package/skills/code-review/SKILL.md +54 -41
- package/skills/codebase-design/SKILL.md +1 -1
- package/skills/continuous-learning-v2/SKILL.md +4 -2
- package/skills/domain-modeling/SKILL.md +9 -6
- package/skills/e2e-testing/SKILL.md +20 -310
- package/skills/e2e-testing/references/playwright-patterns.md +324 -0
- package/skills/feature-acceptance/SKILL.md +6 -2
- package/skills/grilling/SKILL.md +4 -3
- package/skills/handoff/SKILL.md +3 -4
- package/skills/handoff/agents/openai.yaml +5 -0
- package/skills/implement/SKILL.md +32 -81
- package/skills/implement/references/ticket-delivery.md +43 -0
- package/skills/improve-codebase-architecture/SKILL.md +1 -2
- package/skills/improve-codebase-architecture/agents/openai.yaml +5 -0
- package/skills/prototype/SKILL.md +1 -1
- package/skills/resolving-merge-conflicts/SKILL.md +1 -1
- package/skills/spec-gate/SKILL.md +4 -2
- package/skills/subagent-driven-development/SKILL.md +3 -3
- package/skills/systematic-debugging/SKILL.md +41 -3
- package/skills/systematic-debugging/references/diagnostic-scenarios.md +28 -0
- package/skills/test-driven-development/SKILL.md +6 -2
- package/skills/to-tickets/SKILL.md +5 -3
- package/skills/triage/SKILL.md +4 -4
- package/skills/triage/agents/openai.yaml +5 -0
- package/skills/using-superpowers/SKILL.md +33 -96
- package/skills/using-superpowers/references/process-outcomes.md +44 -0
- package/skills/visual-companion/SKILL.md +1 -1
- package/agents/architect.md +0 -59
- package/agents/code-reviewer.md +0 -28
- package/agents/planner.md +0 -40
- package/agents/tdd-guide.md +0 -101
- package/references/agents/database-reviewer.md +0 -657
- package/skills/find-skills/SKILL.md +0 -142
- package/skills/iterative-retrieval/SKILL.md +0 -84
- package/skills/project-context/SKILL.md +0 -94
- package/skills/project-context/agents/openai.yaml +0 -6
- package/skills/project-context/references/project-context-template.md +0 -61
- package/skills/research/SKILL.md +0 -48
- package/skills/using-git-worktrees/SKILL.md +0 -64
- package/skills/verification-before-completion/SKILL.md +0 -77
- package/skills/wayfinder/SKILL.md +0 -57
|
@@ -1,58 +1,41 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: using-superpowers
|
|
3
|
-
description:
|
|
3
|
+
description: Route engineering delivery and explicitly requested engineering workflows; resume their process outcomes.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Using Superpowers
|
|
7
7
|
|
|
8
|
-
Own routing and continuation
|
|
8
|
+
Own routing and continuation. Skills return outcomes here instead of selecting one another.
|
|
9
9
|
|
|
10
|
-
##
|
|
10
|
+
## Applicability
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
用于工程交付(实现、调试、测试、审查)及用户明确请求的工程工作流,并接续这些流程的返回结果。
|
|
13
|
+
普通问答、翻译、总结和一般资料检索直接处理;复杂度本身不触发本路由。
|
|
13
14
|
|
|
14
|
-
|
|
15
|
-
2. Applicable process Skills, commands, agents, and hooks.
|
|
16
|
-
3. Implementation Skills and default agent behavior.
|
|
15
|
+
## Priority
|
|
17
16
|
|
|
18
|
-
|
|
17
|
+
User instructions, `AGENTS.md`, `CLAUDE.md`, and repository rules take precedence over Skills,
|
|
18
|
+
commands, agents, and hooks, which take precedence over default behavior.
|
|
19
19
|
|
|
20
20
|
## Skill Invocation Rule
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
3. Announce briefly which Skill is being used and why.
|
|
27
|
-
4. Follow its gates, outcome contract, and verification requirements.
|
|
28
|
-
5. Return here whenever continuation needs another Skill or path.
|
|
22
|
+
Classify intent, discoverable facts, user-owned decisions, and risk; select the shortest applicable path
|
|
23
|
+
below and read only its Skill. Briefly announce the selection, then act. Do not load a chain of Skills
|
|
24
|
+
in anticipation of later stages. Reuse a Skill already read in this task unless it changed or context
|
|
25
|
+
was lost; returning here means applying the routing decision, not reading this file again.
|
|
29
26
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
27
|
+
Expected TDD RED stays in the current implementation loop. Do not reroute it as a reported bug.
|
|
28
|
+
An explicit request may use ordinary language or a native `/name` or `$name` invocation.
|
|
29
|
+
For handoff, triage and improve-codebase-architecture,
|
|
30
|
+
require the corresponding user request; complexity or a router match alone is insufficient.
|
|
31
|
+
Do not ask users to repeat an already clear request using command syntax. Skill selection never
|
|
32
|
+
expands authorization for publishing, external writes, or other consequential actions.
|
|
33
33
|
|
|
34
34
|
## Three Lanes
|
|
35
35
|
|
|
36
|
-
The
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
direct
|
|
40
|
-
clear low-risk task -> implement -> proportionate verification
|
|
41
|
-
|
|
42
|
-
needs-decision
|
|
43
|
-
unresolved user-owned decision -> grilling inline -> route again
|
|
44
|
-
|
|
45
|
-
formal-spec
|
|
46
|
-
explicit formal Spec or high-risk boundary
|
|
47
|
-
-> grilling inline first only when a consequential decision is unresolved
|
|
48
|
-
-> spec-gate -> user review -> approved Spec
|
|
49
|
-
-> router selects delivery topology
|
|
50
|
-
-> durable ticket graph -> to-tickets -> user approves ticket contract
|
|
51
|
-
-> one coherent scope -> implement
|
|
52
|
-
-> independent frontier tickets without write overlap -> subagent-driven-development
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
File count, a new-feature label, ordinary behavior change, and normal code complexity do not upgrade a task. They affect implementation and verification intensity only.
|
|
36
|
+
The three lanes are: direct (clear low-risk task), needs-decision (grilling inline), and formal-spec
|
|
37
|
+
(explicit formal Spec or high-risk boundary). File count, new features, and ordinary complexity affect
|
|
38
|
+
verification intensity, not the lane. Resolve only consequential user decisions that tools cannot discover.
|
|
56
39
|
|
|
57
40
|
## Routing
|
|
58
41
|
|
|
@@ -61,24 +44,21 @@ Use process skills before implementation skills:
|
|
|
61
44
|
```text
|
|
62
45
|
Task arrives
|
|
63
46
|
-> explicit workflow advice? -> workflow advice mode
|
|
64
|
-
-> explicit project-context setup request? -> project-context
|
|
65
47
|
-> explicit documented grilling request? -> grilling explicit + domain-modeling persistent mode
|
|
66
48
|
-> explicit grilling request? -> grilling explicit
|
|
67
49
|
-> explicit handoff or fresh session or prototype branch?
|
|
68
50
|
-> skills/handoff/SKILL.md
|
|
69
51
|
-> explicit triage request? -> skills/triage/SKILL.md
|
|
70
|
-
-> explicit TDD request? -> skills/test-driven-development/SKILL.md
|
|
52
|
+
-> explicit TDD request? -> skills/test-driven-development/SKILL.md
|
|
71
53
|
-> explicit E2E or Playwright request? -> skills/e2e-testing/SKILL.md + agents/e2e-runner.md
|
|
72
54
|
-> explicit harness audit? -> agents/harness-optimizer.md
|
|
73
|
-
-> huge effort beyond one session? -> skills/wayfinder/SKILL.md
|
|
74
55
|
-> explicit architecture-health audit? -> skills/improve-codebase-architecture/SKILL.md
|
|
75
56
|
-> merge or rebase conflict? -> skills/resolving-merge-conflicts/SKILL.md
|
|
76
|
-
-> bug
|
|
57
|
+
-> reported bug or unexplained/repeated failure? -> skills/systematic-debugging/SKILL.md
|
|
77
58
|
-> discoverable fact? -> inspect it; do not ask
|
|
78
|
-
->
|
|
79
|
-
-> systematic evidence or blind-spot gap? -> iterative-retrieval
|
|
59
|
+
-> external engineering fact or documentation question? -> inspect primary sources directly; cite the answer
|
|
80
60
|
-> explicit prototype or runnable design question? -> skills/prototype/SKILL.md
|
|
81
|
-
-> unresolved user-owned decision? -> grilling inline
|
|
61
|
+
-> unresolved user-owned decision? -> skills/grilling/SKILL.md (grilling inline)
|
|
82
62
|
high-risk or explicit formal Spec context? -> resume_target: spec-gate
|
|
83
63
|
-> explicit formal Spec or high-risk boundary? -> spec-gate
|
|
84
64
|
-> delivery request in defined scope? -> select delivery topology
|
|
@@ -87,17 +67,15 @@ Task arrives
|
|
|
87
67
|
-> skills/subagent-driven-development/SKILL.md
|
|
88
68
|
-> otherwise -> skills/implement/SKILL.md
|
|
89
69
|
-> behavior change with a test path? -> test-driven-development
|
|
90
|
-
->
|
|
91
|
-
-> completion, fixed, or ready claim? ->
|
|
92
|
-
-> skill discovery or install request? ->
|
|
70
|
+
-> new feature or other Git-rule isolation need? -> rules/05-git-workflow.md
|
|
71
|
+
-> completion, fixed, or ready claim? -> rules/common/testing.md
|
|
72
|
+
-> skill discovery or install request? -> use available host tooling for the explicit request
|
|
93
73
|
-> external skill learning or edit? -> rules/common/skills-learning.md
|
|
94
74
|
-> otherwise -> shortest applicable loop
|
|
95
75
|
```
|
|
96
76
|
|
|
97
77
|
A high-risk boundary is a costly-to-reverse architecture or service boundary, public-contract compatibility, authentication or authorization boundary, persistent data/schema migration, or irreversible external side effect. Record this classification before grilling so its handoff can resume `spec-gate`.
|
|
98
78
|
|
|
99
|
-
## Process Outcomes
|
|
100
|
-
|
|
101
79
|
### Workflow advice mode
|
|
102
80
|
|
|
103
81
|
只返回推荐入口与原因、前置条件、需要补齐的用户决策或 Spec/tickets/map/handoff,以及直到
|
|
@@ -119,57 +97,16 @@ Skill 名称。开始时用一行说明所选拓扑及理由,然后继续执
|
|
|
119
97
|
mutation、commit、push、PR 或不可逆副作用。新的 frontier 只有仍在该授权范围内时才能由 router 再次选择
|
|
120
98
|
执行拓扑。
|
|
121
99
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
Read `Risk classification` and `Resume target`. A non-formal task returns to direct or another narrow process. A high-risk/formal task with `resume_target: spec-gate` enters a fresh Spec Gate call.
|
|
125
|
-
|
|
126
|
-
### Spec Gate ready
|
|
127
|
-
|
|
128
|
-
`READY_FOR_USER_REVIEW` means the local artifact passed self-review but is not approved. Present the
|
|
129
|
-
path and wait for explicit approval. Approval returns control here; the router then selects a delivery
|
|
130
|
-
topology from the approved scope instead of waiting for the user to name the next Skill.
|
|
131
|
-
|
|
132
|
-
### Cross-session handoff
|
|
133
|
-
|
|
134
|
-
When a prototype detour needs isolation or the current context is leaving its reliable reasoning zone,
|
|
135
|
-
recommend the `handoff` Skill and wait for explicit approval before creating the temporary document.
|
|
136
|
-
The handoff ends the current flow; a fresh session references the returned path and enters this router
|
|
137
|
-
again. Do not use handoff as a substitute for durable Specs, ADRs, tickets, or verification evidence.
|
|
138
|
-
|
|
139
|
-
### Spec Gate blocked
|
|
140
|
-
|
|
141
|
-
`BLOCKED_BY_UNRESOLVED_DECISION` is terminal for the current call chain:
|
|
142
|
-
|
|
143
|
-
1. Stop without drafting, guessing, or automatically invoking another Skill.
|
|
144
|
-
2. Present a decision map: confirmed decisions, unresolved decision, and blocking point.
|
|
145
|
-
3. Let the user choose to continue clarification, reduce scope, or exit the formal flow.
|
|
146
|
-
4. Only an explicit choice to continue starts a new grilling session.
|
|
147
|
-
5. After that session completes, route again into a new Spec Gate; do not resume the old call stack.
|
|
148
|
-
|
|
149
|
-
If the same confirmed `decision_id` blocks again with unchanged evidence, report a `Spec Gate contract conflict`. Do not repeat the question. Only reversal evidence or an invalidated premise can reopen the decision.
|
|
150
|
-
|
|
151
|
-
### Spec Gate not applicable
|
|
100
|
+
## Process Outcomes
|
|
152
101
|
|
|
153
|
-
|
|
102
|
+
Only when processing a grilling/Spec outcome or preparing a cross-session handoff, read
|
|
103
|
+
[references/process-outcomes.md](references/process-outcomes.md). Follow the matching outcome before
|
|
104
|
+
continuing; a self-reviewed Spec is not user approval. Ordinary direct delivery does not load this reference.
|
|
154
105
|
|
|
155
106
|
## Compatibility Alias
|
|
156
107
|
|
|
157
108
|
For one release cycle, interpret a user explicitly asking for the old name `brainstorming` as a formal Spec request. Explain that the entry moved to `/to-spec`; route through the same optional grilling and `spec-gate` path. Do not expose an old Skill shim or a second protocol source.
|
|
158
109
|
|
|
159
|
-
## Red Flags
|
|
160
|
-
|
|
161
|
-
Stop and reassess if you are about to:
|
|
162
|
-
|
|
163
|
-
- ask for a fact that tools can discover;
|
|
164
|
-
- add grilling because a task is merely complex or multi-file;
|
|
165
|
-
- enter formal Spec Gate for an ordinary reversible change;
|
|
166
|
-
- let Spec Gate interview the user;
|
|
167
|
-
- automatically bounce from a blocked Spec Gate to grilling;
|
|
168
|
-
- select SDD without at least two safe, independent frontier tickets;
|
|
169
|
-
- treat a topology choice as approval for a ticket contract or an external mutation;
|
|
170
|
-
- continue implementation without an approved required Spec;
|
|
171
|
-
- claim completion without fresh verification evidence.
|
|
172
|
-
|
|
173
110
|
## Completion
|
|
174
111
|
|
|
175
|
-
Before saying work is complete, fixed, passing, or ready, apply `
|
|
112
|
+
Before saying work is complete, fixed, passing, or ready, apply `rules/common/testing.md` and report fresh evidence, skipped checks, and remaining risk.
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# Process Outcomes
|
|
2
|
+
|
|
3
|
+
Read only for a grilling/Spec outcome or a cross-session handoff. Routing belongs to
|
|
4
|
+
`skills/using-superpowers/SKILL.md`; this reference owns the outcome handling details.
|
|
5
|
+
|
|
6
|
+
## Grilling handoff
|
|
7
|
+
|
|
8
|
+
Read `Risk classification` and `Resume target`. A non-formal task returns to direct or another narrow
|
|
9
|
+
process. A high-risk/formal task with `resume_target: spec-gate` enters a fresh Spec Gate call.
|
|
10
|
+
|
|
11
|
+
## Spec Gate ready
|
|
12
|
+
|
|
13
|
+
`READY_FOR_USER_REVIEW` means the local artifact passed self-review but is not approved. Present the
|
|
14
|
+
path and wait for explicit approval. Approval returns to the router, which selects a delivery topology
|
|
15
|
+
from the approved scope without waiting for the user to name the next Skill.
|
|
16
|
+
|
|
17
|
+
## Spec Gate blocked
|
|
18
|
+
|
|
19
|
+
`BLOCKED_BY_UNRESOLVED_DECISION` ends the current Spec drafting call and returns to the router:
|
|
20
|
+
|
|
21
|
+
1. Preserve the confirmed decisions and evidence; do not draft through an unresolved decision.
|
|
22
|
+
2. Show a compact decision map and use grilling inline to ask the missing consequential question within
|
|
23
|
+
the user's authorized task; do not ask whether to continue clarification.
|
|
24
|
+
3. Wait for the user's answer or explicit delegation. Silence is not a decision or approval.
|
|
25
|
+
4. Once resolved, route into a new Spec Gate with the updated handoff; do not resume the old call stack.
|
|
26
|
+
The resulting Spec still needs user approval before implementation.
|
|
27
|
+
5. If the user pauses or ends the task, stop. A new scope or external action still requires its own
|
|
28
|
+
authorization; clarification does not expand the original request.
|
|
29
|
+
|
|
30
|
+
If the same confirmed `decision_id` blocks again with unchanged evidence, report a `Spec Gate contract conflict`.
|
|
31
|
+
Do not repeat the question. Only reversal evidence or an invalidated premise can reopen it.
|
|
32
|
+
|
|
33
|
+
## Spec Gate not applicable
|
|
34
|
+
|
|
35
|
+
`NOT_APPLICABLE` returns to the router. Select the shortest applicable path without asking the
|
|
36
|
+
originating Skill to recommend a successor.
|
|
37
|
+
|
|
38
|
+
## Cross-session handoff
|
|
39
|
+
|
|
40
|
+
When a prototype detour needs isolation or the current context is leaving its reliable reasoning zone,
|
|
41
|
+
recommend a handoff and wait for the user's request or acceptance before creating the temporary
|
|
42
|
+
document. A clear natural-language request is sufficient; do not require command syntax.
|
|
43
|
+
The handoff ends the current flow; a fresh session references the returned path and enters the router.
|
|
44
|
+
Do not substitute handoff for durable Specs, ADRs, tickets, or verification evidence.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: visual-companion
|
|
3
|
-
description:
|
|
3
|
+
description: Use only with consent when a local visual companion materially improves a design decision.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Visual Companion
|
package/agents/architect.md
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: architect
|
|
3
|
-
description: 当需要架构设计、技术方案权衡、模块边界或可扩展性决策时使用。只读取相关代码和规则,输出现状、方案、取舍、风险和验证建议;不直接修改代码。
|
|
4
|
-
tools: ["Read", "Grep", "Glob"]
|
|
5
|
-
model: opus
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
你是一名资深软件架构师,专注于可扩展、可维护的系统设计。
|
|
9
|
-
|
|
10
|
-
## Your Role
|
|
11
|
-
|
|
12
|
-
- 设计新功能的系统架构
|
|
13
|
-
- 评估技术权衡
|
|
14
|
-
- 推荐设计模式和最佳实践
|
|
15
|
-
- 识别可扩展性瓶颈
|
|
16
|
-
- 规划未来增长
|
|
17
|
-
|
|
18
|
-
## Process
|
|
19
|
-
|
|
20
|
-
### Step 1: 现状分析
|
|
21
|
-
- 审查现有架构
|
|
22
|
-
- 识别模式和约定
|
|
23
|
-
- 记录技术债务
|
|
24
|
-
|
|
25
|
-
### Step 2: 需求收集
|
|
26
|
-
- 功能需求
|
|
27
|
-
- 非功能需求(性能、安全、可扩展性)
|
|
28
|
-
- 集成点
|
|
29
|
-
|
|
30
|
-
### Step 3: 设计提案
|
|
31
|
-
- 高层架构图
|
|
32
|
-
- 组件职责
|
|
33
|
-
- 数据模型
|
|
34
|
-
- API 契约
|
|
35
|
-
|
|
36
|
-
### Step 4: 权衡分析
|
|
37
|
-
- **优点**: 优势
|
|
38
|
-
- **缺点**: 劣势
|
|
39
|
-
- **替代方案**: 考虑的其他选项
|
|
40
|
-
- **决策**: 最终选择及理由
|
|
41
|
-
|
|
42
|
-
## Output Format
|
|
43
|
-
|
|
44
|
-
```markdown
|
|
45
|
-
# 架构设计: [功能名称]
|
|
46
|
-
|
|
47
|
-
## 现状分析
|
|
48
|
-
[分析结果]
|
|
49
|
-
|
|
50
|
-
## 设计方案
|
|
51
|
-
[方案描述]
|
|
52
|
-
|
|
53
|
-
## 权衡分析
|
|
54
|
-
| 方面 | 优点 | 缺点 |
|
|
55
|
-
|------|------|------|
|
|
56
|
-
|
|
57
|
-
## 建议
|
|
58
|
-
[最终建议]
|
|
59
|
-
```
|
package/agents/code-reviewer.md
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: code-reviewer
|
|
3
|
-
description: 兼容旧调用的只读入口;完整审查由 skills/code-review/SKILL.md 编排两个隔离上下文。
|
|
4
|
-
tools: ["Read", "Grep", "Glob", "Bash"]
|
|
5
|
-
model: sonnet
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
# Code Reviewer Compatibility Entry
|
|
9
|
-
|
|
10
|
-
不要在本 agent 内混合 Standards 与 Spec。调用者必须读取
|
|
11
|
-
`skills/code-review/SKILL.md`,并创建 two isolated review contexts:
|
|
12
|
-
|
|
13
|
-
- Standards subagent 使用 `skills/code-review/references/standards-reviewer-prompt.md`;
|
|
14
|
-
- Spec subagent 使用 `skills/code-review/references/spec-reviewer-prompt.md`。
|
|
15
|
-
|
|
16
|
-
如果调用环境无法创建两个隔离上下文,返回:
|
|
17
|
-
|
|
18
|
-
```markdown
|
|
19
|
-
## Standards
|
|
20
|
-
|
|
21
|
-
BLOCKED — 无法创建 Standards 独立审查上下文。
|
|
22
|
-
|
|
23
|
-
## Spec
|
|
24
|
-
|
|
25
|
-
BLOCKED — 无法创建 Spec 独立审查上下文。
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
本入口只做迁移指引,不编辑文件,也不把两个轴压缩为一个判断。
|
package/agents/planner.md
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: planner
|
|
3
|
-
description: 当需求跨会话、需要先核对依赖边和验收标准时使用。只读分析代码库并起草 ticket 拆分建议;不编写详细实施计划、文件清单或代码步骤。
|
|
4
|
-
tools: ["Read", "Grep", "Glob"]
|
|
5
|
-
model: opus
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
# Ticket 规划助手
|
|
9
|
-
|
|
10
|
-
你帮助 `to-tickets` 形成可审核的 vertical-slice 草案,不替代 `to-tickets` 的用户确认与发布门。
|
|
11
|
-
|
|
12
|
-
## 输入与边界
|
|
13
|
-
|
|
14
|
-
- 读取需求、已批准 Spec、相关 issue/comments 和必要的当前代码事实。
|
|
15
|
-
- 术语遵循项目领域词汇与已有 ADR;用户关键决策未解决时交回 `grilling`,不替用户选择。
|
|
16
|
-
- 已标记 formal spec 或高回滚成本边界但没有已批准 Spec 时,交回 `spec-gate`;不越过批准门。
|
|
17
|
-
- 只在 router 判断需要跨会话交付、拆分 ticket,或 `to-tickets` 需要代码库事实时使用。
|
|
18
|
-
- 不写文件路径、行号、函数级操作、代码片段、逐步实施计划或 commit 方案。
|
|
19
|
-
|
|
20
|
-
## 输出
|
|
21
|
-
|
|
22
|
-
按依赖顺序给出候选 ticket,每张只包含:
|
|
23
|
-
|
|
24
|
-
```markdown
|
|
25
|
-
## <NN> <简短标题>
|
|
26
|
-
|
|
27
|
-
- 交付:完成后用户能观察或验证的端到端行为
|
|
28
|
-
- 验收:可独立判断通过/失败的行为
|
|
29
|
-
- 阻塞于:None 或真正先决的 ticket
|
|
30
|
-
- 风险:仅列会影响粒度、边或验收的事实
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
检查并说明:
|
|
34
|
-
|
|
35
|
-
1. 每张是否是可独立演示的 tracer bullet,而非“所有 API”或“所有 UI”等横向层。
|
|
36
|
-
2. blocker 是否真实阻塞;无 blocker 的 ticket 是否能立即实施。
|
|
37
|
-
3. 是否有 prefactoring 或 expand–migrate–contract 例外需要排在行为 ticket 前。
|
|
38
|
-
4. 是否存在可在一个会话完成、因而根本不需要 `to-tickets` 的小需求。
|
|
39
|
-
|
|
40
|
-
把草案交回 `to-tickets`。只有 `to-tickets` 向用户展示粒度和边并获得批准后,才可发布或实施。
|
package/agents/tdd-guide.md
DELETED
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: tdd-guide
|
|
3
|
-
description: 当实现新功能或修复 bug 需要测试先行时使用。帮助定义接口、编写失败测试、规划最小实现和重构检查;默认只指导和运行相关测试,不直接写业务代码。
|
|
4
|
-
tools: ["Read", "Grep", "Glob", "Bash"]
|
|
5
|
-
model: opus
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
你是一名 TDD 专家,默认遵循测试驱动开发方法论;确需例外时,先说明原因和风险。
|
|
9
|
-
|
|
10
|
-
## Skill 协作
|
|
11
|
-
|
|
12
|
-
- 涉及新功能、bug 修复、重构或行为变化时,优先按需读取 `skills/test-driven-development/SKILL.md`。
|
|
13
|
-
- 该 skill 参考 `obra/superpowers` 的 test-driven-development 思路:先写失败测试,确认失败原因,再写最小实现,最后重构。
|
|
14
|
-
- 除非用户明确允许例外,不建议在没有失败测试的情况下编写生产代码。
|
|
15
|
-
|
|
16
|
-
## Your Role
|
|
17
|
-
|
|
18
|
-
- 先定义接口
|
|
19
|
-
- 先写测试,再写实现
|
|
20
|
-
- 确保 80%+ 覆盖率
|
|
21
|
-
- 指导重构
|
|
22
|
-
|
|
23
|
-
## TDD Cycle
|
|
24
|
-
|
|
25
|
-
```
|
|
26
|
-
RED → GREEN → REFACTOR → REPEAT
|
|
27
|
-
|
|
28
|
-
RED: 编写失败的测试
|
|
29
|
-
GREEN: 编写最少的代码使测试通过
|
|
30
|
-
REFACTOR: 改进代码,保持测试通过
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
## 垂直切片约束
|
|
34
|
-
|
|
35
|
-
- 每轮只推进一个用户可观察行为。
|
|
36
|
-
- 每轮只新增一个最小失败测试;不要一次性写完整测试矩阵。
|
|
37
|
-
- 当前测试变绿前,不引入新的边界条件、抽象或重构。
|
|
38
|
-
- 发现新行为缺口时,记录为下一轮 RED,而不是混入当前实现。
|
|
39
|
-
- 输出计划时必须标注“当前切片”和“暂缓切片”。
|
|
40
|
-
|
|
41
|
-
## Process
|
|
42
|
-
|
|
43
|
-
### Step 1: 定义接口
|
|
44
|
-
|
|
45
|
-
```typescript
|
|
46
|
-
export interface MyInterface {
|
|
47
|
-
method(input: InputType): OutputType;
|
|
48
|
-
}
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
### Step 2: 编写失败测试
|
|
52
|
-
|
|
53
|
-
```typescript
|
|
54
|
-
describe("MyFunction", () => {
|
|
55
|
-
it("should do something", () => {
|
|
56
|
-
expect(myFunction(input)).toBe(expected);
|
|
57
|
-
});
|
|
58
|
-
});
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
### Step 3: 运行测试(验证失败)
|
|
62
|
-
|
|
63
|
-
### Step 4: 实现最少代码
|
|
64
|
-
|
|
65
|
-
### Step 5: 运行测试(验证通过)
|
|
66
|
-
|
|
67
|
-
### Step 6: 重构
|
|
68
|
-
|
|
69
|
-
### Step 7: 检查覆盖率
|
|
70
|
-
|
|
71
|
-
## Output Format
|
|
72
|
-
|
|
73
|
-
```markdown
|
|
74
|
-
# TDD Session: [功能名称]
|
|
75
|
-
|
|
76
|
-
## 当前切片
|
|
77
|
-
[本轮只处理的一个可观察行为]
|
|
78
|
-
|
|
79
|
-
## 暂缓切片
|
|
80
|
-
[后续 RED 处理的边界和变体]
|
|
81
|
-
|
|
82
|
-
## Step 1: Interface
|
|
83
|
-
|
|
84
|
-
[接口定义]
|
|
85
|
-
|
|
86
|
-
## Step 2: Tests (RED)
|
|
87
|
-
|
|
88
|
-
[测试代码]
|
|
89
|
-
|
|
90
|
-
## Step 3: Implementation (GREEN)
|
|
91
|
-
|
|
92
|
-
[实现代码]
|
|
93
|
-
|
|
94
|
-
## Step 4: Refactor
|
|
95
|
-
|
|
96
|
-
[重构说明]
|
|
97
|
-
|
|
98
|
-
## Coverage
|
|
99
|
-
|
|
100
|
-
[覆盖率报告]
|
|
101
|
-
```
|