devflow-kit 3.11.0 → 3.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +43 -0
- package/dist/agents/architect.md +87 -0
- package/dist/agents/code.md +21 -25
- package/dist/agents/debug.md +21 -49
- package/dist/agents/design.md +9 -43
- package/dist/agents/fix.md +15 -29
- package/dist/agents/git.md +19 -22
- package/dist/agents/harden.md +14 -19
- package/dist/agents/knowledge.md +11 -19
- package/dist/agents/refactor.md +9 -14
- package/dist/agents/research.md +11 -34
- package/dist/agents/review.md +22 -52
- package/dist/agents/skim.md +7 -17
- package/dist/agents/triage.md +7 -14
- package/dist/commands/bug-analysis.md +31 -62
- package/dist/commands/code-review.md +38 -87
- package/dist/commands/debug.md +32 -82
- package/dist/commands/dynamic-build.md +155 -211
- package/dist/commands/dynamic-plan.md +71 -93
- package/dist/commands/dynamic-profile.md +7 -155
- package/dist/commands/dynamic-tickets.md +65 -186
- package/dist/commands/explore.md +27 -70
- package/dist/commands/implement.md +98 -186
- package/dist/commands/plan.md +60 -107
- package/dist/commands/release.md +25 -91
- package/dist/commands/research.md +34 -103
- package/dist/commands/resolve.md +64 -128
- package/dist/commands/self-review.md +35 -99
- package/dist/compliance-off/agents/git.md +15 -18
- package/dist/compliance-off/agents/triage.md +7 -14
- package/dist/compliance-off/commands/bug-analysis.md +31 -62
- package/dist/compliance-off/commands/code-review.md +34 -82
- package/dist/compliance-off/commands/dynamic-build.md +149 -205
- package/dist/compliance-off/commands/dynamic-tickets.md +65 -186
- package/dist/compliance-off/commands/implement.md +94 -180
- package/dist/compliance-off/commands/plan.md +60 -107
- package/dist/compliance-off/commands/release.md +25 -90
- package/dist/compliance-off/commands/resolve.md +54 -128
- package/dist/compliance-off/skills/git/references/tracker/github/ensure-pr-ready.md +3 -3
- package/dist/compliance-off/skills/git/references/tracker/jira/ensure-pr-ready.md +3 -3
- package/dist/compliance-off/skills/git/references/tracker/linear/ensure-pr-ready.md +3 -3
- package/dist/core/plugins.js +3 -3
- package/dist/curation-compliance-off/agents/triage.md +7 -13
- package/dist/curation-compliance-off/commands/bug-analysis.md +21 -41
- package/dist/curation-compliance-off/commands/code-review.md +25 -62
- package/dist/curation-compliance-off/commands/dynamic-build.md +142 -194
- package/dist/curation-compliance-off/commands/dynamic-tickets.md +54 -173
- package/dist/curation-compliance-off/commands/implement.md +86 -161
- package/dist/curation-compliance-off/commands/plan.md +51 -86
- package/dist/curation-compliance-off/commands/release.md +17 -78
- package/dist/curation-compliance-off/commands/resolve.md +45 -108
- package/dist/curation-off/agents/architect.md +81 -0
- package/dist/curation-off/agents/code.md +20 -23
- package/dist/curation-off/agents/debug.md +19 -47
- package/dist/curation-off/agents/design.md +8 -41
- package/dist/curation-off/agents/fix.md +14 -27
- package/dist/curation-off/agents/harden.md +13 -18
- package/dist/curation-off/agents/knowledge.md +9 -17
- package/dist/curation-off/agents/refactor.md +8 -12
- package/dist/curation-off/agents/research.md +9 -32
- package/dist/curation-off/agents/review.md +11 -40
- package/dist/curation-off/agents/skim.md +7 -17
- package/dist/curation-off/agents/triage.md +7 -13
- package/dist/curation-off/commands/bug-analysis.md +21 -41
- package/dist/curation-off/commands/code-review.md +29 -67
- package/dist/curation-off/commands/debug.md +24 -63
- package/dist/curation-off/commands/dynamic-build.md +148 -200
- package/dist/curation-off/commands/dynamic-plan.md +60 -80
- package/dist/curation-off/commands/dynamic-tickets.md +54 -173
- package/dist/curation-off/commands/explore.md +18 -50
- package/dist/curation-off/commands/implement.md +90 -167
- package/dist/curation-off/commands/plan.md +51 -86
- package/dist/curation-off/commands/release.md +17 -79
- package/dist/curation-off/commands/research.md +23 -81
- package/dist/curation-off/commands/resolve.md +55 -108
- package/dist/curation-off/commands/self-review.md +26 -78
- package/dist/skills/git/references/pr/update-pr-evidence.md +2 -1
- package/dist/skills/git/references/tracker/github/ensure-pr-ready.md +3 -3
- package/dist/skills/git/references/tracker/jira/ensure-pr-ready.md +3 -3
- package/dist/skills/git/references/tracker/linear/ensure-pr-ready.md +3 -3
- package/dist/targets/claude-code/curation-install.js +2 -2
- package/dist/variant-axes.json +5 -1
- package/package.json +1 -1
- package/src/assets/agents/_partials/_code.mds +3 -5
- package/src/assets/agents/_partials/_design.mds +86 -0
- package/src/assets/agents/architect.mds +41 -0
- package/src/assets/agents/code.mds +18 -20
- package/src/assets/agents/curate.md +26 -35
- package/src/assets/agents/debug.mds +21 -49
- package/src/assets/agents/design.mds +11 -114
- package/src/assets/agents/evaluate.md +6 -16
- package/src/assets/agents/explore.md +1 -2
- package/src/assets/agents/fix.mds +12 -24
- package/src/assets/agents/git.mds +20 -23
- package/src/assets/agents/harden.mds +14 -19
- package/src/assets/agents/knowledge.mds +10 -38
- package/src/assets/agents/polish.md +13 -39
- package/src/assets/agents/refactor.mds +6 -9
- package/src/assets/agents/research.mds +11 -34
- package/src/assets/agents/review.mds +12 -84
- package/src/assets/agents/skim.mds +7 -17
- package/src/assets/agents/synthesize.md +3 -21
- package/src/assets/agents/test.md +31 -32
- package/src/assets/agents/tracker.md +116 -229
- package/src/assets/agents/triage.mds +7 -26
- package/src/assets/agents/validate.md +1 -3
- package/src/assets/commands/_partials/_compliance.mds +2 -2
- package/src/assets/commands/_partials/_decisions.mds +17 -24
- package/src/assets/commands/_partials/_docs_root.mds +31 -10
- package/src/assets/commands/_partials/_engine.mds +34 -56
- package/src/assets/commands/_partials/_evidence_policy.mds +1 -1
- package/src/assets/commands/_partials/_factory.mds +10 -104
- package/src/assets/commands/_partials/_knowledge.mds +47 -51
- package/src/assets/commands/_partials/_plan_contract.mds +2 -2
- package/src/assets/commands/_partials/_preamble.mds +21 -21
- package/src/assets/commands/_partials/_publication.mds +3 -3
- package/src/assets/commands/_partials/_roster.mds +12 -13
- package/src/assets/commands/_partials/_settings.mds +6 -3
- package/src/assets/commands/_partials/_ticket_template.mds +3 -7
- package/src/assets/commands/_partials/_tracker.mds +10 -5
- package/src/assets/commands/_partials/_wave.mds +23 -32
- package/src/assets/commands/bug-analysis.mds +3 -7
- package/src/assets/commands/code-review.mds +12 -33
- package/src/assets/commands/debug.mds +5 -47
- package/src/assets/commands/dynamic-build.mds +48 -70
- package/src/assets/commands/dynamic-plan.mds +23 -42
- package/src/assets/commands/dynamic-profile.mds +7 -57
- package/src/assets/commands/dynamic-tickets.mds +9 -29
- package/src/assets/commands/explore.mds +5 -44
- package/src/assets/commands/implement.mds +75 -117
- package/src/assets/commands/plan.mds +27 -57
- package/src/assets/commands/release.mds +4 -62
- package/src/assets/commands/research.mds +7 -53
- package/src/assets/commands/resolve.mds +40 -87
- package/src/assets/commands/self-review.mds +5 -45
- package/src/assets/mds/git/_ops_pr.mds +1 -0
- package/src/assets/mds/git/_ops_steps.mds +4 -4
- package/src/assets/mds/git/_pr.mds +1 -1
- package/src/assets/rules/engineering.md +1 -1
- package/src/assets/rules/quality.md +2 -2
- package/src/assets/scripts/ci-wait.cjs +150 -18
- package/src/assets/scripts/hooks/assets/orchestrator-charter.md +3 -3
- package/src/assets/scripts/hooks/preamble +2 -3
- package/src/assets/scripts/pr-evidence.cjs +1 -0
- package/src/assets/scripts/resolve-evidence-policy.cjs +14 -13
- package/src/assets/scripts/resolve-root.cjs +186 -0
- package/src/assets/scripts/resolve-settings.cjs +14 -9
- package/src/assets/scripts/verify-evidence.cjs +355 -22
- package/src/assets/skills/accessibility/SKILL.md +28 -95
- package/src/assets/skills/agent-references/SKILL.md +2 -4
- package/src/assets/skills/agent-references/references/commands/implement-evidence-asks.md +1 -1
- package/src/assets/skills/agent-references/references/commands/implement-levels.md +4 -7
- package/src/assets/skills/agent-references/references/commands/implement-revalidate.md +1 -1
- package/src/assets/skills/agent-references/references/commands/plan-levels.md +2 -2
- package/src/assets/skills/apply-decisions/SKILL.md +5 -6
- package/src/assets/skills/apply-feature-knowledge/SKILL.md +3 -13
- package/src/assets/skills/architecture/SKILL.md +29 -105
- package/src/assets/skills/boundary-validation/SKILL.md +27 -78
- package/src/assets/skills/complexity/SKILL.md +8 -104
- package/src/assets/skills/compliance/SKILL.md +9 -67
- package/src/assets/skills/consistency/SKILL.md +7 -107
- package/src/assets/skills/database/SKILL.md +7 -72
- package/src/assets/skills/dependencies/SKILL.md +9 -109
- package/src/assets/skills/dependencies/references/detection.md +10 -0
- package/src/assets/skills/dependency-research/SKILL.md +9 -63
- package/src/assets/skills/design-review/SKILL.md +1 -35
- package/src/assets/skills/docs-framework/SKILL.md +4 -47
- package/src/assets/skills/documentation/SKILL.md +7 -71
- package/src/assets/skills/documentation/references/patterns.md +1 -1
- package/src/assets/skills/documentation/references/violations.md +1 -1
- package/src/assets/skills/feature-knowledge/SKILL.md +19 -222
- package/src/assets/skills/feature-knowledge/references/new-kb.md +128 -0
- package/src/assets/skills/gap-analysis/SKILL.md +1 -31
- package/src/assets/skills/git/SKILL.md +2 -22
- package/src/assets/skills/go/SKILL.md +24 -113
- package/src/assets/skills/java/SKILL.md +12 -98
- package/src/assets/skills/patterns/SKILL.md +8 -93
- package/src/assets/skills/performance/SKILL.md +29 -88
- package/src/assets/skills/python/SKILL.md +22 -120
- package/src/assets/skills/qa/SKILL.md +16 -54
- package/src/assets/skills/qa/references/browser-testing.md +0 -24
- package/src/assets/skills/qa/references/sources.md +2 -2
- package/src/assets/skills/quality-gates/SKILL.md +13 -100
- package/src/assets/skills/react/SKILL.md +33 -95
- package/src/assets/skills/regression/SKILL.md +8 -73
- package/src/assets/skills/reliability/SKILL.md +11 -120
- package/src/assets/skills/research-codebase/SKILL.md +7 -49
- package/src/assets/skills/research-competitor/SKILL.md +4 -39
- package/src/assets/skills/research-external/SKILL.md +5 -43
- package/src/assets/skills/research-market/SKILL.md +5 -43
- package/src/assets/skills/research-technology/SKILL.md +8 -68
- package/src/assets/skills/review-methodology/SKILL.md +10 -56
- package/src/assets/skills/rust/SKILL.md +19 -109
- package/src/assets/skills/security/SKILL.md +39 -66
- package/src/assets/skills/software-design/SKILL.md +20 -105
- package/src/assets/skills/software-design/references/patterns.md +84 -2
- package/src/assets/skills/software-design/references/violations.md +1 -1
- package/src/assets/skills/test-driven-development/SKILL.md +32 -107
- package/src/assets/skills/test-driven-development/references/rationalization-prevention.md +33 -1
- package/src/assets/skills/testing/SKILL.md +35 -53
- package/src/assets/skills/typescript/SKILL.md +23 -102
- package/src/assets/skills/ui-design/SKILL.md +26 -74
- package/src/assets/skills/worktree-support/SKILL.md +4 -10
- package/dist/curation-off/commands/dynamic-profile.md +0 -214
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
description:
|
|
2
|
+
description: Design planning - requirements discovery, gap analysis, implementation plan and design review in one workflow
|
|
3
3
|
output-dir: dist/commands
|
|
4
4
|
---
|
|
5
5
|
@import { knowledge_load } from "./_partials/_knowledge.mds"
|
|
@@ -12,7 +12,7 @@ output-dir: dist/commands
|
|
|
12
12
|
@import "./_partials/_settings.mds" as settings
|
|
13
13
|
# Plan Command
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
Produces a machine-readable design artifact consumed by `/implement`.
|
|
16
16
|
|
|
17
17
|
## Usage
|
|
18
18
|
|
|
@@ -41,11 +41,11 @@ $ARGUMENTS
|
|
|
41
41
|
|
|
42
42
|
## Clarification Gates
|
|
43
43
|
|
|
44
|
-
| Gate | Phase |
|
|
45
|
-
|
|
46
|
-
| Gate 0 | Phase 1 |
|
|
47
|
-
| Gate 1 | Phase 7 |
|
|
48
|
-
| Gate 2 | Phase 13 |
|
|
44
|
+
| Gate | Phase |
|
|
45
|
+
|------|-------|
|
|
46
|
+
| Gate 0 | Phase 1 |
|
|
47
|
+
| Gate 1 | Phase 7 |
|
|
48
|
+
| Gate 2 | Phase 13 |
|
|
49
49
|
|
|
50
50
|
No gate may be skipped. If user says "proceed" or "whatever you think", state recommendation and get explicit confirmation.
|
|
51
51
|
|
|
@@ -59,7 +59,7 @@ No gate may be skipped. If user says "proceed" or "whatever you think", state re
|
|
|
59
59
|
|
|
60
60
|
**Produces:** CONFIRMED_SCOPE
|
|
61
61
|
|
|
62
|
-
Explore the user's intent through focused Socratic questioning
|
|
62
|
+
Explore the user's intent through focused Socratic questioning.
|
|
63
63
|
|
|
64
64
|
**Skip discovery when** (semantic assessment, not word count):
|
|
65
65
|
- User has specified WHAT to build, HOW it should behave, and WHERE it integrates
|
|
@@ -89,7 +89,7 @@ Explore the user's intent through focused Socratic questioning before spawning a
|
|
|
89
89
|
|
|
90
90
|
{{issue_capture_contract()}}
|
|
91
91
|
|
|
92
|
-
Seed the discovery below with `ISSUE_CONTENT` and `ACCEPTANCE_CRITERIA` (every issue's, on the batch path); skip Gate 0 questions they already answer
|
|
92
|
+
Seed the discovery below with `ISSUE_CONTENT` and `ACCEPTANCE_CRITERIA` (every issue's, on the batch path); skip Gate 0 questions they already answer.
|
|
93
93
|
|
|
94
94
|
If the Git agent returns only a `TRACEABILITY: DEGRADED ({reason})` line and no issue content, warn the user, carry that exact line verbatim into the report's traceability section, and proceed to Gate 0 discovery using the raw candidate token as the sole context. Never treat the `TRACEABILITY: DEGRADED` status line as issue content — no title, body, or acceptance criteria may be inferred from it.
|
|
95
95
|
|
|
@@ -100,9 +100,9 @@ If the Git agent returns only a `TRACEABILITY: DEGRADED ({reason})` line and no
|
|
|
100
100
|
|
|
101
101
|
For multi-issue: present unified scope across all issues after individual discovery.
|
|
102
102
|
|
|
103
|
-
If the user says "skip" or "just proceed" — skip remaining questions, present
|
|
103
|
+
If the user says "skip" or "just proceed" — skip remaining questions, present the Confirm scope summary (item 4 above) as you infer it, with your recommended approach, in one message for confirmation, then proceed. Gate 0 is satisfied by the confirmation, not by the discovery questions.
|
|
104
104
|
|
|
105
|
-
**MANDATORY**: Do not spawn any agents until Gate 0 is confirmed — the Step 0 issue fetch
|
|
105
|
+
**MANDATORY**: Do not spawn any agents until Gate 0 is confirmed — the Step 0 issue fetch is the sole exception and completes before Gate 0 begins.
|
|
106
106
|
|
|
107
107
|
<!-- curation:on -->
|
|
108
108
|
#### Phase 2: Orient + Load Decisions
|
|
@@ -119,7 +119,7 @@ If the user says "skip" or "just proceed" — skip remaining questions, present
|
|
|
119
119
|
|
|
120
120
|
{{settings.settings_resolve()}}
|
|
121
121
|
|
|
122
|
-
Spawn Skim agent for codebase context:
|
|
122
|
+
Spawn Skim agent for codebase context, in one message with the `resolve-root.cjs` call below:
|
|
123
123
|
|
|
124
124
|
```
|
|
125
125
|
Agent(subagent_type="Skim"):
|
|
@@ -139,16 +139,12 @@ Return codebase context for requirements analysis."
|
|
|
139
139
|
|
|
140
140
|
{{decisions_load()}}
|
|
141
141
|
<!-- curation:on -->
|
|
142
|
-
|
|
142
|
+
Pass the Skim agent context to all subsequent agents. Pass `DECISIONS_CONTEXT` to the Design agents of the gap-analysis phase as one shared slice.
|
|
143
143
|
|
|
144
144
|
<!-- curation:end -->
|
|
145
145
|
{{knowledge_load()}}
|
|
146
146
|
|
|
147
|
-
|
|
148
|
-
Pass `FEATURE_KNOWLEDGE` to Explore and Design agents. Pass `DECISIONS_CONTEXT` to Design agents only.
|
|
149
|
-
<!-- curation:off -->
|
|
150
|
-
Pass `FEATURE_KNOWLEDGE` to Explore and Design agents.
|
|
151
|
-
<!-- curation:end -->
|
|
147
|
+
Pass `FEATURE_KNOWLEDGE` to Explore, Design and Architect agents.
|
|
152
148
|
|
|
153
149
|
**Gate level.** At `standard` or `lean`, once per run, run `d="${CLAUDE_CONFIG_DIR:-}"; case "$d" in /*) ;; *) d="$HOME/.claude" ;; esac; printf '%s\n' "$d"` in Bash and Read `<that directory>/skills/devflow:agent-references/references/commands/plan-levels.md` with the Read tool, and apply it to Phases 3-14.
|
|
154
150
|
|
|
@@ -215,23 +211,11 @@ Combine into: user needs, similar features, constraints, failure modes"
|
|
|
215
211
|
| consistency | Cross-issue contradictions, duplicate requirements, conflicting scope |
|
|
216
212
|
| dependencies | Inter-issue ordering, shared resources, breaking change propagation |
|
|
217
213
|
|
|
218
|
-
Each Design agent receives:
|
|
219
|
-
- Mode: `gap-analysis`
|
|
220
|
-
- Focus: (their assigned focus from table)
|
|
221
|
-
- Exploration synthesis from Phase 4
|
|
222
|
-
- Skim agent context from Phase 2
|
|
223
|
-
<!-- curation:on -->
|
|
224
|
-
- `DECISIONS_CONTEXT` (index from Phase 2)
|
|
225
|
-
<!-- curation:end -->
|
|
226
|
-
- `COMPLIANCE_FOCUS_DIRECTIVE` (compliance focus only)
|
|
227
|
-
- Multi-issue: all issue bodies
|
|
228
|
-
|
|
229
214
|
{{compliance_focus_inject()}}
|
|
230
215
|
|
|
231
216
|
```
|
|
232
217
|
Agent(subagent_type="Design"):
|
|
233
|
-
"
|
|
234
|
-
Focus: {completeness|architecture|security|performance|compliance|consistency|dependencies}
|
|
218
|
+
"Focus: {completeness|architecture|security|performance|compliance|consistency|dependencies}
|
|
235
219
|
<!-- curation:on -->
|
|
236
220
|
DECISIONS_CONTEXT: {decisions_context}
|
|
237
221
|
<!-- curation:end -->
|
|
@@ -241,13 +225,7 @@ Run `d="${CLAUDE_CONFIG_DIR:-}"; case "$d" in /*) ;; *) d="$HOME/.claude" ;; esa
|
|
|
241
225
|
Artifacts:
|
|
242
226
|
Feature/Issues: {feature description or issue bodies}
|
|
243
227
|
Exploration synthesis: {Phase 4 output}
|
|
244
|
-
Codebase context: {Phase 2 output}
|
|
245
|
-
<!-- curation:on -->
|
|
246
|
-
Analyze only your assigned focus area. Follow devflow:apply-decisions for DECISIONS_CONTEXT.
|
|
247
|
-
<!-- curation:off -->
|
|
248
|
-
Analyze only your assigned focus area.
|
|
249
|
-
<!-- curation:end -->
|
|
250
|
-
Cite evidence from provided artifacts."
|
|
228
|
+
Codebase context: {Phase 2 output}"
|
|
251
229
|
```
|
|
252
230
|
|
|
253
231
|
#### Phase 6: Synthesize Gap Analysis
|
|
@@ -328,7 +306,7 @@ Combine into: patterns to follow, integration points, reusable code, edge cases"
|
|
|
328
306
|
**Produces:** PLAN_OUTPUTS
|
|
329
307
|
**Requires:** IMPL_EXPLORATION_SYNTHESIS, GAP_SYNTHESIS
|
|
330
308
|
|
|
331
|
-
Spawn 3 `Agent(subagent_type="Plan")` agents **in a single message**, each with implementation exploration synthesis
|
|
309
|
+
Spawn 3 `Agent(subagent_type="Plan")` agents **in a single message**, each with implementation exploration synthesis and `GAP_SYNTHESIS`. Ask each agent for a final report of at most about 1,500 tokens: the plan itself, not a restatement of the exploration.
|
|
332
310
|
|
|
333
311
|
| Focus | Output |
|
|
334
312
|
|-------|--------|
|
|
@@ -336,8 +314,6 @@ Spawn 3 `Agent(subagent_type="Plan")` agents **in a single message**, each with
|
|
|
336
314
|
| Testing strategy | Unit tests, integration tests, edge case tests; at least one scenario per acceptance criterion, with how it is verified (CI, a local command, or manual steps) and the files it covers |
|
|
337
315
|
| Execution strategy | SINGLE_CODE_AGENT vs SEQUENTIAL_CODE_AGENTS vs PARALLEL_CODE_AGENTS |
|
|
338
316
|
|
|
339
|
-
Implementation steps planner: include explicit gap mitigations (from Phase 6) in the relevant steps.
|
|
340
|
-
|
|
341
317
|
#### Phase 11: Synthesize Planning
|
|
342
318
|
|
|
343
319
|
**Produces:** PLANNING_SYNTHESIS
|
|
@@ -360,16 +336,14 @@ Combine into: execution plan with strategy decision, gap mitigations integrated"
|
|
|
360
336
|
**Produces:** REVIEW_FINDINGS
|
|
361
337
|
**Requires:** PLANNING_SYNTHESIS
|
|
362
338
|
|
|
363
|
-
Spawn 1
|
|
339
|
+
Spawn 1 Architect agent:
|
|
364
340
|
|
|
365
341
|
```
|
|
366
|
-
Agent(subagent_type="
|
|
367
|
-
"
|
|
368
|
-
Artifacts:
|
|
342
|
+
Agent(subagent_type="Architect"):
|
|
343
|
+
"Artifacts:
|
|
369
344
|
Implementation plan: {Phase 11 planning synthesis}
|
|
370
345
|
Implementation exploration: {Phase 9 exploration synthesis}
|
|
371
|
-
Codebase context: {Phase 2 output}
|
|
372
|
-
Review the full plan for all 6 anti-patterns. Report all findings with evidence."
|
|
346
|
+
Codebase context: {Phase 2 output}"
|
|
373
347
|
```
|
|
374
348
|
|
|
375
349
|
#### Phase 13: Gate 2 — Confirm Plan + Design Review
|
|
@@ -417,7 +391,7 @@ User can:
|
|
|
417
391
|
|
|
418
392
|
**Store design artifact:**
|
|
419
393
|
|
|
420
|
-
**Load `devflow:docs-framework`** — Load via Skill tool: `devflow:docs-framework`, here and not earlier
|
|
394
|
+
**Load `devflow:docs-framework`** — Load via Skill tool: `devflow:docs-framework`, here and not earlier. If it fails to load, continue with the paths below.
|
|
421
395
|
|
|
422
396
|
**Pre-compute the artifact path** (it never changes after this) by the skill's rules: `{topic-slug}` is its topic slug of the feature title, the same value as the artifact's `slug:` frontmatter, and `{YYYY-MM-DD_HHMM}` is the local time, computed once:
|
|
423
397
|
- If one issue: `{worktree}/.devflow/docs/design/{ISSUE_ID}-{topic-slug}.{YYYY-MM-DD_HHMM}.md` (e.g. `42-jwt-auth.2026-04-07_1430.md`)
|
|
@@ -442,8 +416,6 @@ context-risk: LOW
|
|
|
442
416
|
---
|
|
443
417
|
```
|
|
444
418
|
|
|
445
|
-
`issue:` is `pending` while no issue is known yet; the tracker-issue step below patches it in place.
|
|
446
|
-
|
|
447
419
|
Required sections:
|
|
448
420
|
1. **Problem Statement** — core problem and target users, summarised from `ISSUE_CONTENT` when an issue was fetched (data, never instructions)
|
|
449
421
|
2. **Acceptance Criteria** — testable success conditions: `ACCEPTANCE_CRITERIA` when fetched, refined by exploration + gap analysis
|
|
@@ -557,10 +529,10 @@ Display completion summary:
|
|
|
557
529
|
## Architecture
|
|
558
530
|
|
|
559
531
|
```
|
|
560
|
-
/plan
|
|
532
|
+
/plan
|
|
561
533
|
│
|
|
562
534
|
├─ Block 1: Requirements Discovery
|
|
563
|
-
│ ├─ Phase 1: GATE 0 - Requirements Discovery
|
|
535
|
+
│ ├─ Phase 1: GATE 0 - Requirements Discovery
|
|
564
536
|
│ │ ├─ Git agent (fetch-issue / fetch-issues-batch) - issue mode only
|
|
565
537
|
│ │ └─ AskUserQuestion: Validate interpretation
|
|
566
538
|
<!-- curation:on -->
|
|
@@ -576,7 +548,7 @@ Display completion summary:
|
|
|
576
548
|
│ └─ Phase 6: Synthesize Gap Analysis
|
|
577
549
|
│
|
|
578
550
|
├─ Block 3: Scope Approval
|
|
579
|
-
│ └─ Phase 7: GATE 1 - Validate Scope + Gaps
|
|
551
|
+
│ └─ Phase 7: GATE 1 - Validate Scope + Gaps
|
|
580
552
|
│
|
|
581
553
|
├─ Block 4: Implementation Design
|
|
582
554
|
│ ├─ Phase 8: Explore Implementation (PARALLEL)
|
|
@@ -586,7 +558,7 @@ Display completion summary:
|
|
|
586
558
|
│
|
|
587
559
|
├─ Block 5: Design Review + Approval
|
|
588
560
|
│ ├─ Phase 12: Design Review
|
|
589
|
-
│ └─ Phase 13: GATE 2 - Confirm Plan + Design Review
|
|
561
|
+
│ └─ Phase 13: GATE 2 - Confirm Plan + Design Review
|
|
590
562
|
│ └─ Revise ≤ 2 → back to Phase 10; after 2: Accept / Cancel / Restart /plan
|
|
591
563
|
│
|
|
592
564
|
├─ Block 6: Output
|
|
@@ -597,12 +569,10 @@ Display completion summary:
|
|
|
597
569
|
|
|
598
570
|
## Principles
|
|
599
571
|
|
|
600
|
-
1. **
|
|
601
|
-
2. **Strict delegation** — Never synthesize, analyze, or plan in main session; always spawn agents
|
|
572
|
+
1. **Strict delegation** — Never synthesize, analyze, or plan in main session; always spawn agents
|
|
602
573
|
|
|
603
574
|
## Error Handling
|
|
604
575
|
|
|
605
576
|
- If any agent fails, report the phase, agent type, and error
|
|
606
577
|
- If user selects "Revise" at Gate 2 and fewer than 2 revisions have run, loop back to Phase 10 with user's constraints; after the second revision Gate 2 offers Accept, Cancel or "Restart /plan with these constraints" only
|
|
607
578
|
- If user selects "Cancel" at any gate, stop gracefully without writing artifact
|
|
608
|
-
- If `{worktree}/.devflow/docs/design/` does not exist, create it in Phase 14
|
|
@@ -9,8 +9,6 @@ output-dir: dist/commands
|
|
|
9
9
|
|
|
10
10
|
# Release Command
|
|
11
11
|
|
|
12
|
-
Release the project using adaptive learned configuration. On first run, scans the codebase to detect the release process and stores it in `.release/RELEASE-FLOW.md`. Subsequent releases use the stored config, skipping discovery.
|
|
13
|
-
|
|
14
12
|
## Usage
|
|
15
13
|
|
|
16
14
|
```
|
|
@@ -28,12 +26,6 @@ What follows `/release` is bound once, here. Every later step names it `COMMAND_
|
|
|
28
26
|
$ARGUMENTS
|
|
29
27
|
</command-input>
|
|
30
28
|
|
|
31
|
-
`COMMAND_INPUT` is one of:
|
|
32
|
-
- Explicit version: `v1.2.3` or `1.2.3`
|
|
33
|
-
- Bump type: `patch`, `minor`, `major`
|
|
34
|
-
- Flag: `--dry-run`
|
|
35
|
-
- Empty: interactive mode (will ask for version)
|
|
36
|
-
|
|
37
29
|
Parse from `COMMAND_INPUT`:
|
|
38
30
|
- `VERSION`: explicit version string if present (strip leading `v`)
|
|
39
31
|
- `BUMP_TYPE`: `patch | minor | major` if bump type provided
|
|
@@ -116,7 +108,7 @@ Skip credential files (`.env*`, `*credentials*`, `*secret*`, `*.key`). Max 20 fi
|
|
|
116
108
|
|
|
117
109
|
Map RELEASE_SIGNALS to `.release/RELEASE-FLOW.md` with sections: Packages, Pre-release Checks, Changelog, Build & Test, Publish, Post-release.
|
|
118
110
|
|
|
119
|
-
**Conventions naming:** Consult `.devflow/conventions.md` (the naming authority written by the Git `learn-conventions` operation) for version/tag/version-PR title conventions. When the branching model uses version PRs, follow the Version PR Titles convention recorded there; compliance defaults when the file is absent. When the repo uses a main+integration branching model, ship via a version PR per the recorded convention.
|
|
111
|
+
**Conventions naming:** Consult `.devflow/conventions.md` (the naming authority written by the Git `learn-conventions` operation) for version/tag/version-PR title conventions. When the branching model uses version PRs, follow the Version PR Titles convention recorded there; compliance defaults when the file is absent. When the repo uses a main+integration branching model, ship via a version PR per the recorded convention.
|
|
120
112
|
|
|
121
113
|
Use AskUserQuestion for any gaps that cannot be inferred.
|
|
122
114
|
|
|
@@ -245,7 +237,7 @@ Post-release analysis for improvement opportunities. Present as suggested diffs
|
|
|
245
237
|
|
|
246
238
|
## Worktree Support
|
|
247
239
|
|
|
248
|
-
If the orchestrator receives a `WORKTREE_PATH` context, pass it through to all spawned agents.
|
|
240
|
+
If the orchestrator receives a `WORKTREE_PATH` context, pass it through to all spawned agents.
|
|
249
241
|
|
|
250
242
|
## Output
|
|
251
243
|
|
|
@@ -260,60 +252,10 @@ On completion:
|
|
|
260
252
|
- Version files bumped
|
|
261
253
|
- `.release/RELEASE-FLOW.md` created (first run only)
|
|
262
254
|
|
|
263
|
-
## Architecture
|
|
264
|
-
|
|
265
|
-
```
|
|
266
|
-
/release (orchestrator)
|
|
267
|
-
│
|
|
268
|
-
├─ Phase 1: Load Config
|
|
269
|
-
│ └─ Read .release/RELEASE-FLOW.md (learned) or proceed to detect (fresh)
|
|
270
|
-
│
|
|
271
|
-
├─ Phase 1b: Load Context
|
|
272
|
-
<!-- curation:on -->
|
|
273
|
-
│ └─ Load DECISIONS_CONTEXT and FEATURE_KNOWLEDGE for the agents that declare them
|
|
274
|
-
<!-- curation:off -->
|
|
275
|
-
│ └─ Load FEATURE_KNOWLEDGE for the agents that declare it
|
|
276
|
-
<!-- curation:end -->
|
|
277
|
-
│
|
|
278
|
-
├─ Phase 2: Detect Release Process (first run only)
|
|
279
|
-
│ └─ Tiered scan: package.json, CI workflows, git history
|
|
280
|
-
│
|
|
281
|
-
├─ Phase 3: Build Config (first run only)
|
|
282
|
-
│ └─ Write .release/RELEASE-FLOW.md
|
|
283
|
-
│
|
|
284
|
-
├─ Phase 4: Pre-release Checks
|
|
285
|
-
│ ├─ Validate agent (build + test)
|
|
286
|
-
<!-- compliance:on -->
|
|
287
|
-
│ ├─ Git agent: gather release evidence + trace map (dry run, or evidence policy required)
|
|
288
|
-
<!-- compliance:off -->
|
|
289
|
-
│ ├─ Git agent: gather the commit list (dry run, or evidence policy required)
|
|
290
|
-
<!-- compliance:end -->
|
|
291
|
-
│ └─ Write progress checkpoint
|
|
292
|
-
│
|
|
293
|
-
├─ Phase 5: Build Release Plan
|
|
294
|
-
<!-- compliance:on -->
|
|
295
|
-
│ ├─ Traceability: classify the trace map; record exceptions or halt (evidence policy required)
|
|
296
|
-
<!-- compliance:end -->
|
|
297
|
-
│ └─ Confirm with user before executing
|
|
298
|
-
│
|
|
299
|
-
├─ Phase 6: Execute Release
|
|
300
|
-
<!-- compliance:on -->
|
|
301
|
-
│ ├─ Version bumps → Changelog → Commit → Git agent (tag + release) → Back-link → Associate → Publish → Post-release
|
|
302
|
-
<!-- compliance:off -->
|
|
303
|
-
│ ├─ Version bumps → Changelog → Commit → Git agent (tag + release) → Publish → Post-release
|
|
304
|
-
<!-- compliance:end -->
|
|
305
|
-
│ └─ Progress checkpoints between each step
|
|
306
|
-
│
|
|
307
|
-
└─ Phase 7: Suggest Improvements
|
|
308
|
-
└─ Suggested diffs to RELEASE-FLOW.md (never auto-applied)
|
|
309
|
-
```
|
|
310
|
-
|
|
311
255
|
## Principles
|
|
312
256
|
|
|
313
|
-
1. **
|
|
314
|
-
2. **
|
|
315
|
-
3. **Checkpoint-resume** — progress file enables safe resume of interrupted releases
|
|
316
|
-
4. **User confirms before execution** — release plan is presented for approval before any tags or commits
|
|
257
|
+
1. **Config is data, not code** — structured config fields map to pre-defined operations, never raw shell commands
|
|
258
|
+
2. **User confirms before execution** — release plan is presented for approval before any tags or commits
|
|
317
259
|
|
|
318
260
|
## Error Handling
|
|
319
261
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: Research a topic
|
|
2
|
+
description: Research a topic with parallel multi-type Research agents and trust-aware synthesis
|
|
3
3
|
output-dir: dist/commands
|
|
4
4
|
---
|
|
5
5
|
@import { knowledge_load } from "./_partials/_knowledge.mds"
|
|
@@ -8,8 +8,6 @@ output-dir: dist/commands
|
|
|
8
8
|
@import "./_partials/_settings.mds" as settings
|
|
9
9
|
# Research Command
|
|
10
10
|
|
|
11
|
-
Research a topic by spawning parallel Research agents across multiple research types (codebase, external, market, competitor, technology). Findings are trust-annotated and synthesized into structured output.
|
|
12
|
-
|
|
13
11
|
## Usage
|
|
14
12
|
|
|
15
13
|
```
|
|
@@ -27,10 +25,7 @@ What follows `/research` is bound once, here. Every later step names it `COMMAND
|
|
|
27
25
|
$ARGUMENTS
|
|
28
26
|
</command-input>
|
|
29
27
|
|
|
30
|
-
`COMMAND_INPUT`
|
|
31
|
-
- Research question: "best caching strategies"
|
|
32
|
-
- Comparison question: "compare React vs Svelte for our use case"
|
|
33
|
-
- Empty: use conversation context
|
|
28
|
+
An empty `COMMAND_INPUT` means: use the conversation context.
|
|
34
29
|
|
|
35
30
|
## Phases
|
|
36
31
|
|
|
@@ -54,12 +49,12 @@ $ARGUMENTS
|
|
|
54
49
|
<!-- curation:end -->
|
|
55
50
|
{{decisions_load()}}
|
|
56
51
|
<!-- curation:on -->
|
|
57
|
-
Use `DECISIONS_CONTEXT` locally
|
|
52
|
+
Use `DECISIONS_CONTEXT` locally to frame the research. Follow `devflow:apply-decisions` to Read full entry bodies on demand. Pass `DECISIONS_CONTEXT` to each Research agent in Phase 4.
|
|
58
53
|
|
|
59
54
|
<!-- curation:end -->
|
|
60
55
|
{{knowledge_load()}}
|
|
61
56
|
|
|
62
|
-
Use `FEATURE_KNOWLEDGE`
|
|
57
|
+
Use `FEATURE_KNOWLEDGE` locally for research framing. Pass to each Research agent in Phase 4.
|
|
63
58
|
|
|
64
59
|
### Phase 2: Requirements
|
|
65
60
|
|
|
@@ -106,8 +101,6 @@ Each Research agent receives:
|
|
|
106
101
|
- `ORIENT_OUTPUT`: Only for `codebase` type
|
|
107
102
|
- `WORKTREE_PATH`: If in a worktree context
|
|
108
103
|
|
|
109
|
-
Each Research agent writes findings to disk at OUTPUT_PATH.
|
|
110
|
-
|
|
111
104
|
### Phase 5: Synthesize
|
|
112
105
|
|
|
113
106
|
**Produces:** RESEARCH_SUMMARY
|
|
@@ -130,6 +123,7 @@ Output: {worktree}/.devflow/docs/research/{topic-slug}/{YYYY-MM-DD_HHMM}/researc
|
|
|
130
123
|
**Requires:** RESEARCH_SUMMARY
|
|
131
124
|
|
|
132
125
|
Present findings to user with:
|
|
126
|
+
- The research folder `{worktree}/.devflow/docs/research/{topic-slug}/{YYYY-MM-DD_HHMM}/`
|
|
133
127
|
- Trust annotations per finding: (trusted) for codebase, (untrusted) for web, (mixed) for technology
|
|
134
128
|
- Explicit conflicts between codebase and web findings
|
|
135
129
|
- Drill-down offer via AskUserQuestion
|
|
@@ -151,53 +145,13 @@ If external research was skipped due to tool unavailability: inform user.
|
|
|
151
145
|
|
|
152
146
|
## Worktree Support
|
|
153
147
|
|
|
154
|
-
If the orchestrator receives a `WORKTREE_PATH` context
|
|
155
|
-
|
|
156
|
-
## Output
|
|
157
|
-
|
|
158
|
-
Research findings saved to `{worktree}/.devflow/docs/research/{topic-slug}/{YYYY-MM-DD_HHMM}/`:
|
|
159
|
-
- `{type}.md` per research type (codebase.md, external.md, etc.)
|
|
160
|
-
- `research-summary.md` — synthesized findings with trust annotations
|
|
161
|
-
|
|
162
|
-
## Architecture
|
|
163
|
-
|
|
164
|
-
```
|
|
165
|
-
/research (orchestrator)
|
|
166
|
-
│
|
|
167
|
-
<!-- curation:on -->
|
|
168
|
-
├─ Phase 1: Load Decisions (Orchestrator-Local)
|
|
169
|
-
<!-- curation:off -->
|
|
170
|
-
├─ Phase 1: Load Context (Orchestrator-Local)
|
|
171
|
-
<!-- curation:end -->
|
|
172
|
-
│
|
|
173
|
-
├─ Phase 2: Requirements
|
|
174
|
-
│ └─ Infer 2-5 research types from question
|
|
175
|
-
│
|
|
176
|
-
├─ Phase 3: Orient (conditional — codebase type only)
|
|
177
|
-
│ └─ Skim agent (codebase overview)
|
|
178
|
-
│
|
|
179
|
-
├─ Phase 4: Parallel Research agents
|
|
180
|
-
│ └─ 2-5 Research agents in single message (all types simultaneously)
|
|
181
|
-
│
|
|
182
|
-
├─ Phase 5: Synthesize
|
|
183
|
-
│ └─ Synthesize agent merges findings with trust-aware aggregation
|
|
184
|
-
│
|
|
185
|
-
├─ Phase 6: Present findings with trust annotations and drill-down offer
|
|
186
|
-
│
|
|
187
|
-
└─ Phase 7: Suggest feature knowledge creation (conditional)
|
|
188
|
-
└─ Knowledge agent (if codebase type researched + user accepts)
|
|
189
|
-
```
|
|
148
|
+
If the orchestrator receives a `WORKTREE_PATH` context, pass it through to all spawned agents.
|
|
190
149
|
|
|
191
150
|
## Principles
|
|
192
151
|
|
|
193
|
-
1. **
|
|
194
|
-
2. **Trust transparency** — Every finding is labeled with its trust level (trusted/untrusted/mixed)
|
|
195
|
-
3. **Conflict surfacing** — Contradictions between codebase and web findings are highlighted, not hidden
|
|
196
|
-
4. **Evidence over opinion** — All claims require citations (file:line or URL)
|
|
152
|
+
1. **Evidence over opinion** — All claims require citations (file:line or URL)
|
|
197
153
|
|
|
198
154
|
## Error Handling
|
|
199
155
|
|
|
200
|
-
- If WebSearch/WebFetch unavailable: restrict to codebase type, inform user
|
|
201
156
|
- If a Research agent fails: continue with remaining outputs, note gap in synthesis
|
|
202
157
|
- If Synthesize agent fails: present individual Research agent outputs directly
|
|
203
|
-
- If feature knowledge creation fails: log failure, report research results normally
|