@curdx/flow 2.2.4 → 2.2.5
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/.claude-plugin/marketplace.json +3 -2
- package/.claude-plugin/plugin.json +2 -1
- package/CHANGELOG.md +4 -566
- package/README.md +47 -113
- package/agents/flow-adversary.md +1 -0
- package/agents/flow-architect.md +9 -36
- package/agents/flow-brownfield-analyst.md +7 -18
- package/agents/flow-debugger.md +1 -0
- package/agents/flow-edge-hunter.md +1 -0
- package/agents/flow-executor.md +1 -0
- package/agents/flow-planner.md +11 -37
- package/agents/flow-product-designer.md +9 -41
- package/agents/flow-qa-engineer.md +1 -0
- package/agents/flow-researcher.md +9 -45
- package/agents/flow-reviewer.md +1 -0
- package/agents/flow-security-auditor.md +1 -0
- package/agents/flow-triage-analyst.md +1 -0
- package/agents/flow-ui-researcher.md +1 -0
- package/agents/flow-ux-designer.md +1 -0
- package/agents/flow-verifier.md +1 -0
- package/cli/install-companions.js +8 -8
- package/gates/coverage-audit-gate.md +1 -3
- package/gates/tdd-gate.md +0 -6
- package/gates/verification-gate.md +1 -5
- package/knowledge/artifact-output-discipline.md +24 -0
- package/knowledge/artifact-summary-contracts.md +50 -0
- package/knowledge/execution-strategies.md +6 -4
- package/knowledge/poc-first-workflow.md +2 -6
- package/knowledge/spec-driven-development.md +0 -4
- package/knowledge/systematic-debugging.md +0 -6
- package/knowledge/two-stage-review.md +8 -6
- package/knowledge/wave-execution.md +2 -1
- package/package.json +2 -2
- package/schemas/agent-frontmatter.schema.json +4 -0
- package/skills/brownfield-index/SKILL.md +14 -20
- package/skills/brownfield-index/references/applicability.md +12 -0
- package/skills/brownfield-index/references/handoff.md +8 -0
- package/skills/brownfield-index/references/index-contract.md +10 -0
- package/skills/browser-qa/SKILL.md +15 -35
- package/skills/browser-qa/references/handoff.md +6 -0
- package/skills/browser-qa/references/prerequisites.md +10 -0
- package/skills/browser-qa/references/qa-contract.md +20 -0
- package/skills/cancel/SKILL.md +20 -61
- package/skills/cancel/references/destructive-mode.md +17 -0
- package/skills/cancel/references/reporting.md +18 -0
- package/skills/cancel/references/state-recovery.md +30 -0
- package/skills/cancel/references/target-resolution.md +7 -0
- package/skills/debug/SKILL.md +23 -87
- package/skills/debug/references/context-gathering.md +11 -0
- package/skills/debug/references/failure-guard.md +25 -0
- package/skills/debug/references/intake.md +12 -0
- package/skills/debug/references/phase-workflow.md +34 -0
- package/skills/debug/references/reporting.md +20 -0
- package/skills/epic/SKILL.md +18 -50
- package/skills/epic/references/epic-artifacts.md +20 -0
- package/skills/epic/references/epic-intake.md +9 -0
- package/skills/epic/references/slice-handoff.md +16 -0
- package/skills/fast/SKILL.md +34 -102
- package/skills/fast/references/applicability.md +25 -0
- package/skills/fast/references/clarification.md +20 -0
- package/skills/fast/references/execution-contract.md +56 -0
- package/skills/help/SKILL.md +26 -132
- package/skills/help/references/dispatch.md +20 -0
- package/skills/help/references/overview.md +39 -0
- package/skills/help/references/troubleshoot.md +47 -0
- package/skills/help/references/workflow.md +37 -0
- package/skills/implement/SKILL.md +61 -237
- package/skills/implement/references/error-recovery.md +36 -0
- package/skills/implement/references/linear-execution.md +32 -0
- package/skills/implement/references/preflight.md +43 -0
- package/skills/implement/references/progress-contract.md +32 -0
- package/skills/implement/references/state-init.md +33 -0
- package/skills/implement/references/stop-hook-execution.md +36 -0
- package/skills/implement/references/strategy-router.md +38 -0
- package/skills/implement/references/subagent-execution.md +43 -0
- package/skills/init/SKILL.md +26 -95
- package/skills/init/references/gitignore-and-health.md +26 -0
- package/skills/init/references/next-steps.md +22 -0
- package/skills/init/references/preflight.md +15 -0
- package/skills/init/references/scaffold-contract.md +27 -0
- package/skills/review/SKILL.md +45 -153
- package/skills/review/references/optional-passes.md +48 -0
- package/skills/review/references/preflight.md +38 -0
- package/skills/review/references/report-contract.md +49 -0
- package/skills/review/references/reporting.md +20 -0
- package/skills/review/references/stage-execution.md +32 -0
- package/skills/security-audit/SKILL.md +16 -34
- package/skills/security-audit/references/audit-contract.md +21 -0
- package/skills/security-audit/references/gate-handoff.md +8 -0
- package/skills/security-audit/references/scope-and-depth.md +9 -0
- package/skills/spec/SKILL.md +55 -182
- package/skills/spec/references/artifact-landing.md +31 -0
- package/skills/spec/references/phase-execution.md +50 -0
- package/skills/spec/references/planning-review.md +31 -0
- package/skills/spec/references/preflight-and-routing.md +46 -0
- package/skills/spec/references/reporting.md +21 -0
- package/skills/start/SKILL.md +40 -123
- package/skills/start/references/branch-routing.md +51 -0
- package/skills/start/references/mode-semantics.md +12 -0
- package/skills/start/references/preflight.md +13 -0
- package/skills/start/references/reporting.md +20 -0
- package/skills/start/references/state-seeding.md +44 -0
- package/skills/start/references/workflow-handoff.md +26 -0
- package/skills/status/SKILL.md +17 -61
- package/skills/status/references/gather-contract.md +27 -0
- package/skills/status/references/health-rules.md +27 -0
- package/skills/status/references/output-contract.md +24 -0
- package/skills/status/references/preflight.md +10 -0
- package/skills/status/references/recovery-hints.md +18 -0
- package/skills/ui-sketch/SKILL.md +15 -34
- package/skills/ui-sketch/references/brief-intake.md +10 -0
- package/skills/ui-sketch/references/iteration-handoff.md +5 -0
- package/skills/ui-sketch/references/variant-contract.md +15 -0
- package/skills/verify/SKILL.md +31 -86
- package/skills/verify/references/evidence-workflow.md +39 -0
- package/skills/verify/references/output-contract.md +23 -0
- package/skills/verify/references/preflight.md +11 -0
- package/skills/verify/references/report-handoff.md +35 -0
- package/skills/verify/references/strict-mode.md +12 -0
- package/README.zh.md +0 -160
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Re-export barrel preserving the
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
2
|
+
* Re-export barrel preserving the stable import surface. New callers should
|
|
3
|
+
* import directly from the concern-specific modules below instead of going
|
|
4
|
+
* through this barrel. Kept in place so existing imports in cli/install.js
|
|
5
|
+
* and cli/install-workflow.js keep working unchanged.
|
|
6
6
|
*
|
|
7
|
-
* Concern split
|
|
8
|
-
* install-required-plugins.js
|
|
9
|
-
* install-bundled-mcps.js
|
|
7
|
+
* Concern split:
|
|
8
|
+
* install-required-plugins.js — required Claude Code companion plugins
|
|
9
|
+
* install-bundled-mcps.js — user-level MCP registration
|
|
10
10
|
* install-recommended-plugins.js — optional recommended plugins
|
|
11
|
-
* install-context7-config.js
|
|
11
|
+
* install-context7-config.js — context7 API-key prompt (private to required)
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
14
|
export {
|
|
@@ -7,8 +7,6 @@ depends_on: []
|
|
|
7
7
|
|
|
8
8
|
# Coverage Audit Gate — Multi-Source Coverage Audit
|
|
9
9
|
|
|
10
|
-
> Derived from get-shit-done's "Multi-Source Coverage Audit".
|
|
11
|
-
>
|
|
12
10
|
> Rule: every claim in the spec must be covered by implementation/tests. Uncovered = missed = future bug.
|
|
13
11
|
|
|
14
12
|
---
|
|
@@ -181,4 +179,4 @@ Fix recommendations:
|
|
|
181
179
|
|
|
182
180
|
---
|
|
183
181
|
|
|
184
|
-
_Source:
|
|
182
|
+
_Source: CurDX-Flow multi-source coverage audit contract._
|
package/gates/tdd-gate.md
CHANGED
|
@@ -8,8 +8,6 @@ depends_on: []
|
|
|
8
8
|
# TDD Gate — Red/Green/Yellow Cycle Enforcement
|
|
9
9
|
|
|
10
10
|
> **Iron rule**: NO PRODUCTION CODE WITHOUT A FAILING TEST FIRST.
|
|
11
|
-
>
|
|
12
|
-
> Source: superpowers' test-driven-development skill.
|
|
13
11
|
|
|
14
12
|
---
|
|
15
13
|
|
|
@@ -182,7 +180,3 @@ Compliant: 4
|
|
|
182
180
|
Fix recommendations:
|
|
183
181
|
T2: add test test(auth): red - password hashing, verify it fails, then redo GREEN
|
|
184
182
|
```
|
|
185
|
-
|
|
186
|
-
---
|
|
187
|
-
|
|
188
|
-
_Source: superpowers' test-driven-development skill._
|
|
@@ -7,7 +7,7 @@ depends_on: []
|
|
|
7
7
|
|
|
8
8
|
# Verification Gate — Verification Required Before Completion
|
|
9
9
|
|
|
10
|
-
> **Always enabled**. No evidence = no completion.
|
|
10
|
+
> **Always enabled**. No evidence = no completion. Verification must be based on observed proof, not claimed completion.
|
|
11
11
|
|
|
12
12
|
---
|
|
13
13
|
|
|
@@ -177,7 +177,3 @@ Warnings: 1
|
|
|
177
177
|
Fix recommendations:
|
|
178
178
|
V1: dispatch flow-executor to run tests, add evidence to the commit message body
|
|
179
179
|
```
|
|
180
|
-
|
|
181
|
-
---
|
|
182
|
-
|
|
183
|
-
_Source: superpowers' verification-before-completion skill. CurdX-Flow turns it into a gate._
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Artifact Output Discipline
|
|
2
|
+
|
|
3
|
+
Use this discipline for artifact-producing agents that write canonical files
|
|
4
|
+
such as `research.md`, `requirements.md`, `design.md`, `tasks.md`, or
|
|
5
|
+
`codebase-index.md`.
|
|
6
|
+
|
|
7
|
+
## Core Rules
|
|
8
|
+
|
|
9
|
+
1. Write the artifact first. The first substantive action should be the `Write`
|
|
10
|
+
tool call for the final file content.
|
|
11
|
+
2. Do not preview or paraphrase the artifact inline. The file is the
|
|
12
|
+
deliverable.
|
|
13
|
+
3. Keep status updates minimal: short bullets or fixed summary lines only.
|
|
14
|
+
4. End with the exact compact output contract defined by the agent-specific
|
|
15
|
+
section. No extra explanation before or after it.
|
|
16
|
+
5. If something blocks the write, report the blocker directly instead of
|
|
17
|
+
emitting a fake success summary.
|
|
18
|
+
|
|
19
|
+
## Why
|
|
20
|
+
|
|
21
|
+
- Prevents context waste from duplicating the artifact in chat
|
|
22
|
+
- Makes the written file the canonical output surface
|
|
23
|
+
- Keeps artifact-producing subagents consistent across research, product,
|
|
24
|
+
architecture, planning, and brownfield mapping
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# Artifact Summary Contracts
|
|
2
|
+
|
|
3
|
+
Use these compact summary contracts after an artifact lands successfully. Pair
|
|
4
|
+
them with `artifact-output-discipline.md`: write first, no preview, then emit
|
|
5
|
+
the exact contract below and stop.
|
|
6
|
+
|
|
7
|
+
## research.md
|
|
8
|
+
|
|
9
|
+
```text
|
|
10
|
+
✓ research.md generated
|
|
11
|
+
Recommendations: N
|
|
12
|
+
Next: /curdx-flow:spec --phase=requirements
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## requirements.md
|
|
16
|
+
|
|
17
|
+
```text
|
|
18
|
+
✓ requirements.md generated
|
|
19
|
+
User stories: N
|
|
20
|
+
Functional requirements: N
|
|
21
|
+
Next: /curdx-flow:spec --phase=design
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## design.md
|
|
25
|
+
|
|
26
|
+
```text
|
|
27
|
+
✓ design.md generated
|
|
28
|
+
Architecture decisions: N
|
|
29
|
+
Components: N
|
|
30
|
+
Next: /curdx-flow:spec --phase=tasks
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## tasks.md
|
|
34
|
+
|
|
35
|
+
```text
|
|
36
|
+
✓ tasks.md generated
|
|
37
|
+
Total tasks: N
|
|
38
|
+
Coverage audit: PASS
|
|
39
|
+
Phases: 1-5
|
|
40
|
+
Next: /curdx-flow:implement
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## codebase-index.md
|
|
44
|
+
|
|
45
|
+
```text
|
|
46
|
+
✓ codebase-index.md generated
|
|
47
|
+
Modules: N
|
|
48
|
+
Entry points: N
|
|
49
|
+
Next: /curdx-flow:start <feature-name>
|
|
50
|
+
```
|
|
@@ -76,7 +76,7 @@ main agent
|
|
|
76
76
|
- ✓ Quality-first (every task must be high-quality, avoid context pollution)
|
|
77
77
|
- ✓ Moderate task size (2-15 minutes)
|
|
78
78
|
- ✓ Tasks relatively independent, no complex shared context needed
|
|
79
|
-
- ✓
|
|
79
|
+
- ✓ Stable per-task quality matters more than dispatch overhead
|
|
80
80
|
|
|
81
81
|
### Advantages
|
|
82
82
|
- Each subagent uses at most ~30% context → stable quality
|
|
@@ -127,7 +127,7 @@ Safety invariant: `ALL_TASKS_COMPLETE` is advisory, not authoritative. If `tasks
|
|
|
127
127
|
- ✓ Long task chains (20+)
|
|
128
128
|
- ✓ Unattended execution (overnight automation)
|
|
129
129
|
- ✓ You don't want to trigger each step manually
|
|
130
|
-
- ✓
|
|
130
|
+
- ✓ Long-running sequential work with checkpointed continuation
|
|
131
131
|
|
|
132
132
|
### Advantages
|
|
133
133
|
- Truly autonomous execution — the user can walk away
|
|
@@ -169,7 +169,7 @@ main agent
|
|
|
169
169
|
- ✓ Many `[P]` markers in tasks.md
|
|
170
170
|
- ✓ Tasks are independent (different files, different components)
|
|
171
171
|
- ✓ Time-pressured (parallelism is faster)
|
|
172
|
-
- ✓
|
|
172
|
+
- ✓ Parallel-safe delivery work
|
|
173
173
|
|
|
174
174
|
### Advantages
|
|
175
175
|
- Wall-clock time greatly reduced (N parallel tasks at once)
|
|
@@ -298,4 +298,6 @@ Claude Code checkpoints plus `.flow/specs/<name>/.progress.md` are the current r
|
|
|
298
298
|
|
|
299
299
|
---
|
|
300
300
|
|
|
301
|
-
|
|
301
|
+
This document defines CurDX-Flow's shipped strategy semantics: stop-hook for
|
|
302
|
+
checkpointed continuation, subagent for serial isolated execution, and wave for
|
|
303
|
+
parallel batches.
|
|
@@ -114,7 +114,7 @@ Commit: `refactor(scope): yellow - <what was cleaned up>`
|
|
|
114
114
|
### Pitfalls
|
|
115
115
|
- **Code first, tests after** → not TDD, this is post-hoc testing. Easily misses edge cases.
|
|
116
116
|
- **Tests only cover happy path** → no error handling coverage; the common cause of production issues.
|
|
117
|
-
- **Too much mocking** → tests disconnected from real behavior.
|
|
117
|
+
- **Too much mocking** → tests disconnected from real behavior. Keep primary evidence anchored to real integrations at system boundaries.
|
|
118
118
|
|
|
119
119
|
---
|
|
120
120
|
|
|
@@ -211,7 +211,7 @@ Feature is verified, reviewed, and ready for a human PR/release decision.
|
|
|
211
211
|
|
|
212
212
|
## Relationship to the TDD Iron Rule
|
|
213
213
|
|
|
214
|
-
**TDD iron rule
|
|
214
|
+
**TDD iron rule**: "NO PRODUCTION CODE WITHOUT A FAILING TEST FIRST"
|
|
215
215
|
|
|
216
216
|
**POC-First's compromise**: Phase 1 allows skipping tests because the purpose of POC is to validate the idea, not to deliver.
|
|
217
217
|
|
|
@@ -221,7 +221,3 @@ Feature is verified, reviewed, and ready for a human PR/release decision.
|
|
|
221
221
|
- Newly added **production code**: must be covered by Phase 3 TDD loop
|
|
222
222
|
|
|
223
223
|
The two don't conflict: POC is not production code; production code starts at Phase 2.
|
|
224
|
-
|
|
225
|
-
---
|
|
226
|
-
|
|
227
|
-
_Adapted from smart-ralph's POC-First workflow, extended with superpowers' TDD discipline._
|
|
@@ -178,7 +178,3 @@ The two complement each other:
|
|
|
178
178
|
- Agents `mcp__claude_mem__search` the history before starting research
|
|
179
179
|
- What gets written into research.md is filtered, retention-worthy conclusions
|
|
180
180
|
- Subsequent sessions: claude-mem auto-injects recent context; spec files provide the structured overview
|
|
181
|
-
|
|
182
|
-
---
|
|
183
|
-
|
|
184
|
-
_Adapted from smart-ralph's spec engine, extended with get-shit-done's multi-source audit._
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
# Systematic Debugging — 4-Stage Methodology
|
|
2
2
|
|
|
3
|
-
> Inherited from superpowers' systematic-debugging skill.
|
|
4
|
-
>
|
|
5
3
|
> Agents reference this via `@${CLAUDE_PLUGIN_ROOT}/knowledge/systematic-debugging.md`.
|
|
6
4
|
|
|
7
5
|
---
|
|
@@ -378,7 +376,3 @@ The value of systematic debugging:
|
|
|
378
376
|
Unsystematic → fixes fast but fragile → bitten again by the same bug
|
|
379
377
|
Systematic → fixes slow but thorough → solved once, never looked back
|
|
380
378
|
```
|
|
381
|
-
|
|
382
|
-
---
|
|
383
|
-
|
|
384
|
-
_Source: superpowers' systematic-debugging skill._
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Two-Stage Review — Two-Stage Code Review
|
|
2
2
|
|
|
3
|
-
>
|
|
3
|
+
> CurDX-Flow runtime contract for two-stage review.
|
|
4
4
|
>
|
|
5
5
|
> Agents reference this via `@${CLAUDE_PLUGIN_ROOT}/knowledge/two-stage-review.md`.
|
|
6
6
|
|
|
@@ -129,6 +129,12 @@ Stage 2 applies all enabled Gates (from `.flow/config.json`):
|
|
|
129
129
|
- Each applicable edge-case category addressed (N/A noted for the rest)?
|
|
130
130
|
- Gap list has priorities?
|
|
131
131
|
|
|
132
|
+
#### 2.8 (enterprise) DevEx review (devex-gate)
|
|
133
|
+
|
|
134
|
+
- Are naming, comments, and structure maintainable for the next engineer?
|
|
135
|
+
- Is setup, typing, and test ergonomics acceptable without tribal knowledge?
|
|
136
|
+
- Does the developer loop stay fast enough to keep future changes safe?
|
|
137
|
+
|
|
132
138
|
### Stage 2 verdict
|
|
133
139
|
|
|
134
140
|
- **EXCELLENT**: all enabled Gates pass, adversarial review clean or only low-severity findings
|
|
@@ -232,7 +238,7 @@ Some reviewers list 50 minor improvements — the user can't process.
|
|
|
232
238
|
↓ ↓
|
|
233
239
|
↓ review-report.md
|
|
234
240
|
↓
|
|
235
|
-
(optional) /curdx-flow:review --adversarial --edge-case
|
|
241
|
+
(optional) /curdx-flow:review --adversarial --edge-case --devex
|
|
236
242
|
↓
|
|
237
243
|
adversarial-review.md
|
|
238
244
|
edge-cases.md
|
|
@@ -241,7 +247,3 @@ Ready for human PR/release handoff with verification + review evidence
|
|
|
241
247
|
```
|
|
242
248
|
|
|
243
249
|
Verify is "did we implement the right thing", Review is "is the implementation good", Audit is "what else could be better". CurdX-Flow currently stops at evidence-backed handoff; do not reference non-existent ship/land commands.
|
|
244
|
-
|
|
245
|
-
---
|
|
246
|
-
|
|
247
|
-
_Source: superpowers' code-review two-stage design, extended with CurdX-Flow's Gate system._
|
|
@@ -399,4 +399,5 @@ As in "Case 3" above. Solutions:
|
|
|
399
399
|
|
|
400
400
|
---
|
|
401
401
|
|
|
402
|
-
_Source:
|
|
402
|
+
_Source: CurDX-Flow wave execution contract. This file defines the executable
|
|
403
|
+
parallel-delivery rules used by the plugin runtime._
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@curdx/flow",
|
|
3
|
-
"version": "2.2.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "2.2.5",
|
|
4
|
+
"description": "Skill-first discipline layer and CLI installer for Claude Code",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"curdx-flow": "bin/curdx-flow.js"
|
|
@@ -30,30 +30,24 @@ paths:
|
|
|
30
30
|
|
|
31
31
|
# Brownfield Index
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
This is a fast structural mapping skill for inherited codebases. Keep the
|
|
34
|
+
entrypoint focused on when to index, what the analyst must produce, and where
|
|
35
|
+
to route the user next. Detailed rules live in:
|
|
34
36
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
2. The project is not a new `/curdx-flow:init`-ed greenfield project (if it is, direct the user to `/curdx-flow:start` instead).
|
|
39
|
-
|
|
40
|
-
## Workflow
|
|
37
|
+
- `references/applicability.md`
|
|
38
|
+
- `references/index-contract.md`
|
|
39
|
+
- `references/handoff.md`
|
|
41
40
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
1. Detect the actual stack from the repo's manifests.
|
|
45
|
-
2. Scan structure, entry points, module boundaries, and developer-loop commands.
|
|
46
|
-
3. Map API / CLI surfaces when they exist.
|
|
47
|
-
4. Write `.flow/codebase-index.md` with concrete next actions.
|
|
41
|
+
## Preconditions
|
|
48
42
|
|
|
49
|
-
|
|
43
|
+
Use `references/applicability.md` to decide whether the repository actually
|
|
44
|
+
needs a brownfield index first.
|
|
50
45
|
|
|
51
|
-
|
|
52
|
-
- "Looking to add a feature here? Run `/curdx-flow:start <name>` to begin a spec."
|
|
53
|
-
- "Debugging something specific? Run `/curdx-flow:debug '<symptom>'`."
|
|
46
|
+
## Index Contract
|
|
54
47
|
|
|
55
|
-
|
|
48
|
+
`flow-brownfield-analyst` writes the structural map defined in
|
|
49
|
+
`references/index-contract.md`.
|
|
56
50
|
|
|
57
|
-
|
|
51
|
+
## Handoff
|
|
58
52
|
|
|
59
|
-
|
|
53
|
+
Use `references/handoff.md` to route the user to the next relevant command.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Brownfield Applicability — When to Index First
|
|
2
|
+
|
|
3
|
+
Use this skill when:
|
|
4
|
+
|
|
5
|
+
- the repository is unfamiliar, inherited, or legacy
|
|
6
|
+
- the user needs a quick structural map before feature work
|
|
7
|
+
|
|
8
|
+
Do not use it for a fresh greenfield repo that should start directly with:
|
|
9
|
+
|
|
10
|
+
```text
|
|
11
|
+
/curdx-flow:start <name> "<goal>"
|
|
12
|
+
```
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Brownfield Handoff — What to Do After Indexing
|
|
2
|
+
|
|
3
|
+
Route to the next concrete action:
|
|
4
|
+
|
|
5
|
+
- feature work -> `/curdx-flow:start <name> "<goal>"`
|
|
6
|
+
- targeted bug work -> `/curdx-flow:debug "<symptom>"`
|
|
7
|
+
|
|
8
|
+
For deep framework or library research, use Context7 directly.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Brownfield Index Contract — What the Analyst Must Produce
|
|
2
|
+
|
|
3
|
+
`flow-brownfield-analyst` should:
|
|
4
|
+
|
|
5
|
+
1. detect the actual stack from manifests
|
|
6
|
+
2. scan structure, entry points, boundaries, and developer-loop commands
|
|
7
|
+
3. map API or CLI surfaces when they exist
|
|
8
|
+
4. write `.flow/codebase-index.md`
|
|
9
|
+
|
|
10
|
+
The index should be quick and decision-useful, not exhaustive.
|
|
@@ -15,45 +15,25 @@ paths:
|
|
|
15
15
|
|
|
16
16
|
# Browser QA
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
This skill orchestrates real-browser validation, not a generic UI review. Keep
|
|
19
|
+
the entrypoint focused on prerequisites, QA artifact requirements, and the
|
|
20
|
+
handoff after findings. Detailed rules live in:
|
|
19
21
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
2. A URL (dev server or deployed) is available. Prompt for it if not provided.
|
|
24
|
-
|
|
25
|
-
## Workflow
|
|
26
|
-
|
|
27
|
-
### Step 1: Clarify scope
|
|
22
|
+
- `references/prerequisites.md`
|
|
23
|
+
- `references/qa-contract.md`
|
|
24
|
+
- `references/handoff.md`
|
|
28
25
|
|
|
29
|
-
|
|
30
|
-
- **URL under test** (local `http://localhost:3000` or remote)
|
|
31
|
-
- **Flow to test** (e.g., "sign up → dashboard → logout")
|
|
32
|
-
- **What success looks like** (accessibility / performance / zero console errors / visual match)
|
|
33
|
-
|
|
34
|
-
### Step 2: Run via `flow-qa-engineer`
|
|
35
|
-
|
|
36
|
-
This skill executes in a forked context through `flow-qa-engineer`. The agent will:
|
|
37
|
-
1. Open the target URL via `mcp__chrome_devtools__new_page`
|
|
38
|
-
2. Drive the flow with `mcp__chrome_devtools__click` / `fill` / `navigate_page`
|
|
39
|
-
3. Capture `list_console_messages`, `list_network_requests`, `take_screenshot`, optionally `lighthouse_audit`
|
|
40
|
-
4. Compare against expected behavior
|
|
41
|
-
|
|
42
|
-
### Step 3: Report findings
|
|
26
|
+
## Preconditions
|
|
43
27
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
- **Accessibility** (axe violations with WCAG references)
|
|
48
|
-
- **Console errors** (full stack traces)
|
|
49
|
-
- **Screenshots** (attached)
|
|
28
|
+
Use `references/prerequisites.md` to confirm browser MCP availability and the
|
|
29
|
+
URL or flow under test. Real browser execution in this skill depends on
|
|
30
|
+
`mcp__chrome_devtools__*`.
|
|
50
31
|
|
|
51
|
-
|
|
32
|
+
## QA Contract
|
|
52
33
|
|
|
53
|
-
|
|
54
|
-
|
|
34
|
+
`flow-qa-engineer` should execute the browser workflow in
|
|
35
|
+
`references/qa-contract.md`.
|
|
55
36
|
|
|
56
|
-
##
|
|
37
|
+
## Handoff
|
|
57
38
|
|
|
58
|
-
-
|
|
59
|
-
- chrome-devtools MCP docs: https://github.com/ChromeDevTools/chrome-devtools-mcp
|
|
39
|
+
Post-QA routing and bug follow-up live in `references/handoff.md`.
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
# Browser QA Handoff — Where Findings Go Next
|
|
2
|
+
|
|
3
|
+
- if reproducible bugs are found -> `/curdx-flow:debug "<bug title>"`
|
|
4
|
+
- if accessibility issues are found -> report concrete WCAG-linked fixes
|
|
5
|
+
- if the flow is clean -> hand off `qa-report.md` as additional evidence, not a
|
|
6
|
+
replacement for `verify` or `review`
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Browser QA Prerequisites — Browser and URL Required
|
|
2
|
+
|
|
3
|
+
Before dispatching:
|
|
4
|
+
|
|
5
|
+
- confirm `mcp__chrome_devtools__*` is available
|
|
6
|
+
- confirm a URL under test exists
|
|
7
|
+
- confirm the flow and success criteria
|
|
8
|
+
|
|
9
|
+
If browser MCP is missing, fall back to a manual checklist rather than
|
|
10
|
+
pretending a real-browser run happened.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Browser QA Contract — What the QA Agent Must Do
|
|
2
|
+
|
|
3
|
+
`flow-qa-engineer` should:
|
|
4
|
+
|
|
5
|
+
1. open the target URL
|
|
6
|
+
2. drive the flow in a real browser
|
|
7
|
+
3. collect console, network, screenshot, and optional Lighthouse evidence
|
|
8
|
+
4. compare observed behavior to expected behavior
|
|
9
|
+
|
|
10
|
+
## Required Artifacts
|
|
11
|
+
|
|
12
|
+
- `.flow/specs/<active>/qa-report.md`
|
|
13
|
+
- `.flow/specs/<active>/qa-screenshots/`
|
|
14
|
+
|
|
15
|
+
The report should include:
|
|
16
|
+
|
|
17
|
+
- bugs by severity
|
|
18
|
+
- performance metrics
|
|
19
|
+
- accessibility findings
|
|
20
|
+
- console errors
|
package/skills/cancel/SKILL.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: cancel
|
|
3
|
-
description:
|
|
3
|
+
description: Cancel the active execution loop or delete a spec with explicit confirmation.
|
|
4
4
|
when_to_use: Use when the user wants to stop the current execution loop, abort a stuck run, or delete the active spec intentionally.
|
|
5
5
|
argument-hint: "[spec-name] [--delete-spec --yes]"
|
|
6
6
|
disable-model-invocation: true
|
|
@@ -9,74 +9,33 @@ allowed-tools: [Read, Bash]
|
|
|
9
9
|
|
|
10
10
|
# CurdX-Flow Cancel
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
`cancel` is a recovery control, not an execution path. Keep this entrypoint
|
|
13
|
+
focused on target selection, destructive-mode gating, and the final recovery
|
|
14
|
+
message. Detailed cancel rules live in:
|
|
13
15
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
3. If no target exists, print `No active spec to cancel` and stop.
|
|
19
|
-
|
|
20
|
-
## Default: Cancel Execution Loop Only
|
|
21
|
-
|
|
22
|
-
Default mode removes stop-hook/subagent execution state while preserving all human-readable artifacts:
|
|
23
|
-
|
|
24
|
-
1. Read `.flow/specs/<target>/.state.json`.
|
|
25
|
-
2. Use `Edit` or `Write` to set `phase` to `tasks`.
|
|
26
|
-
3. Set `phase_status.execute` to `cancelled`.
|
|
27
|
-
4. Remove `execute_state` and `strategy`.
|
|
28
|
-
5. If the state file is missing, print `No execution state for <target>. Nothing to cancel.` and stop.
|
|
29
|
-
|
|
30
|
-
Do not rewrite `.state.json` with a Bash heredoc or ad-hoc Python writer; use checkpoint-tracked `Edit`/`Write` operations.
|
|
31
|
-
|
|
32
|
-
Append to `.progress.md`:
|
|
16
|
+
- `references/target-resolution.md`
|
|
17
|
+
- `references/state-recovery.md`
|
|
18
|
+
- `references/destructive-mode.md`
|
|
19
|
+
- `references/reporting.md`
|
|
33
20
|
|
|
34
|
-
|
|
35
|
-
## Execution Cancelled YYYY-MM-DD
|
|
36
|
-
- Cancelled by: /curdx-flow:cancel
|
|
37
|
-
- Preserved: research.md, requirements.md, design.md, tasks.md, progress, reports
|
|
38
|
-
- Resume: /curdx-flow:implement --strategy=subagent or /curdx-flow:spec --phase=tasks --regenerate
|
|
39
|
-
```
|
|
21
|
+
## Target Resolution
|
|
40
22
|
|
|
41
|
-
|
|
23
|
+
Use `references/target-resolution.md` to resolve the target spec.
|
|
42
24
|
|
|
43
|
-
|
|
25
|
+
## Default Behavior
|
|
44
26
|
|
|
45
|
-
|
|
46
|
-
/curdx-flow:cancel <spec-name> --delete-spec --yes
|
|
47
|
-
```
|
|
27
|
+
Default mode is non-destructive. Use `references/state-recovery.md` to:
|
|
48
28
|
|
|
49
|
-
|
|
29
|
+
- roll execution state back safely
|
|
30
|
+
- preserve spec artifacts and reports
|
|
31
|
+
- append a recovery note to `.progress.md`
|
|
32
|
+
- recommend the best resume command
|
|
50
33
|
|
|
51
|
-
Destructive
|
|
34
|
+
## Destructive Behavior
|
|
52
35
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
3. If it was active, remove `.flow/.active-spec`.
|
|
56
|
-
4. Do not delete `.flow/PROJECT.md`, `.flow/CONTEXT.md`, `.flow/STATE.md`, or other specs.
|
|
36
|
+
Delete a spec only when both `--delete-spec` and `--yes` are present. The
|
|
37
|
+
deletion rules live in `references/destructive-mode.md`.
|
|
57
38
|
|
|
58
39
|
## Output
|
|
59
40
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
```markdown
|
|
63
|
-
✓ Cancelled execution loop: <spec-name>
|
|
64
|
-
State: execute → cancelled, phase → tasks
|
|
65
|
-
Preserved: spec artifacts and progress
|
|
66
|
-
Resume: /curdx-flow:implement --strategy=subagent
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
Destructive mode:
|
|
70
|
-
|
|
71
|
-
```markdown
|
|
72
|
-
✓ Deleted spec: <spec-name>
|
|
73
|
-
Removed: .flow/specs/<spec-name>
|
|
74
|
-
Active spec cleared: yes|no
|
|
75
|
-
```
|
|
76
|
-
|
|
77
|
-
## Safety Rules
|
|
78
|
-
|
|
79
|
-
- Never delete a spec unless `--delete-spec --yes` is present.
|
|
80
|
-
- Never delete project-level `.flow` files.
|
|
81
|
-
- If state JSON is corrupt, rename it to `.state.json.corrupt.<timestamp>` instead of deleting it.
|
|
82
|
-
- Prefer `/curdx-flow:status` after cancel to confirm recovery state.
|
|
41
|
+
Use `references/reporting.md` for the default and destructive-mode summaries.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Cancel Destructive Mode — Explicit and Narrow
|
|
2
|
+
|
|
3
|
+
Delete the spec directory only when both flags are present:
|
|
4
|
+
|
|
5
|
+
```text
|
|
6
|
+
/curdx-flow:cancel <spec-name> --delete-spec --yes
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## Destructive Flow
|
|
10
|
+
|
|
11
|
+
1. print the target path and removal scope
|
|
12
|
+
2. delete `.flow/specs/<target>`
|
|
13
|
+
3. if it was active, clear `.flow/.active-spec`
|
|
14
|
+
4. leave all project-level `.flow` files untouched
|
|
15
|
+
|
|
16
|
+
If `--delete-spec` appears without `--yes`, stop and print the exact command
|
|
17
|
+
required.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Cancel Reporting — Recovery vs Deletion Summary
|
|
2
|
+
|
|
3
|
+
Default mode:
|
|
4
|
+
|
|
5
|
+
```text
|
|
6
|
+
✓ Cancelled execution loop: <spec-name>
|
|
7
|
+
State: execute → cancelled, phase → tasks
|
|
8
|
+
Preserved: spec artifacts and progress
|
|
9
|
+
Resume: /curdx-flow:implement --strategy=subagent
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
Destructive mode:
|
|
13
|
+
|
|
14
|
+
```text
|
|
15
|
+
✓ Deleted spec: <spec-name>
|
|
16
|
+
Removed: .flow/specs/<spec-name>
|
|
17
|
+
Active spec cleared: yes|no
|
|
18
|
+
```
|