deepflow 0.1.87 → 0.1.89
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/bin/install.js +73 -7
- package/hooks/df-dashboard-push.js +170 -0
- package/hooks/df-execution-history.js +120 -0
- package/hooks/df-invariant-check.js +126 -0
- package/hooks/df-spec-lint.js +78 -4
- package/hooks/df-statusline.js +77 -5
- package/hooks/df-tool-usage-spike.js +41 -0
- package/hooks/df-tool-usage.js +86 -0
- package/hooks/df-worktree-guard.js +101 -0
- package/package.json +1 -1
- package/src/commands/df/auto-cycle.md +75 -558
- package/src/commands/df/auto.md +9 -48
- package/src/commands/df/consolidate.md +14 -38
- package/src/commands/df/dashboard.md +35 -0
- package/src/commands/df/debate.md +27 -156
- package/src/commands/df/discover.md +35 -181
- package/src/commands/df/execute.md +283 -563
- package/src/commands/df/note.md +37 -176
- package/src/commands/df/plan.md +80 -210
- package/src/commands/df/report.md +29 -184
- package/src/commands/df/resume.md +18 -101
- package/src/commands/df/spec.md +49 -145
- package/src/commands/df/verify.md +59 -606
- package/src/skills/browse-fetch/SKILL.md +32 -257
- package/src/skills/browse-verify/SKILL.md +40 -174
- package/src/skills/code-completeness/SKILL.md +2 -9
- package/src/skills/gap-discovery/SKILL.md +19 -86
- package/templates/config-template.yaml +10 -0
- package/templates/spec-template.md +12 -1
|
@@ -4,9 +4,7 @@ description: Discovers requirement gaps during ideation. Use when user describes
|
|
|
4
4
|
allowed-tools: [AskUserQuestion, Read]
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
# Gap Discovery
|
|
8
|
-
|
|
9
|
-
Proactively identify missing requirements before implementation.
|
|
7
|
+
# Gap Discovery — Proactive Requirement Gap Identification
|
|
10
8
|
|
|
11
9
|
## Gap Categories
|
|
12
10
|
|
|
@@ -19,82 +17,31 @@ Proactively identify missing requirements before implementation.
|
|
|
19
17
|
| **Success criteria** | "How will you know this works?" |
|
|
20
18
|
| **Anti-goals** | "What should this explicitly NOT do?" |
|
|
21
19
|
|
|
22
|
-
##
|
|
23
|
-
|
|
24
|
-
**Use the `AskUserQuestion` tool** to ask structured questions with predefined options.
|
|
25
|
-
|
|
26
|
-
### AskUserQuestion Format
|
|
20
|
+
## AskUserQuestion Format
|
|
27
21
|
|
|
28
22
|
```json
|
|
29
23
|
{
|
|
30
24
|
"questions": [
|
|
31
25
|
{
|
|
32
|
-
"question": "
|
|
33
|
-
"header": "
|
|
26
|
+
"question": "Clear, specific question ending with ?",
|
|
27
|
+
"header": "Short label (max 12 chars)",
|
|
34
28
|
"multiSelect": true,
|
|
35
29
|
"options": [
|
|
36
|
-
{"label": "
|
|
37
|
-
{"label": "
|
|
38
|
-
{"label": "Include GIF", "description": "Animated images supported"},
|
|
39
|
-
{"label": "Include video", "description": "MP4, WebM formats"}
|
|
30
|
+
{"label": "Option 1", "description": "What this means"},
|
|
31
|
+
{"label": "Option 2", "description": "What this means"}
|
|
40
32
|
]
|
|
41
33
|
}
|
|
42
34
|
]
|
|
43
35
|
}
|
|
44
36
|
```
|
|
45
37
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
### Example Questions by Category
|
|
55
|
-
|
|
56
|
-
**Scope:**
|
|
57
|
-
```json
|
|
58
|
-
{
|
|
59
|
-
"question": "Should this feature include admin management?",
|
|
60
|
-
"header": "Scope",
|
|
61
|
-
"multiSelect": false,
|
|
62
|
-
"options": [
|
|
63
|
-
{"label": "Yes, include admin", "description": "Add admin dashboard for management"},
|
|
64
|
-
{"label": "No, user-only", "description": "Only end-user functionality"},
|
|
65
|
-
{"label": "Phase 2", "description": "Add admin features later"}
|
|
66
|
-
]
|
|
67
|
-
}
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
**Constraints:**
|
|
71
|
-
```json
|
|
72
|
-
{
|
|
73
|
-
"question": "What's the maximum file size for uploads?",
|
|
74
|
-
"header": "Size limit",
|
|
75
|
-
"multiSelect": false,
|
|
76
|
-
"options": [
|
|
77
|
-
{"label": "5 MB", "description": "Conservative, fast uploads"},
|
|
78
|
-
{"label": "10 MB (Recommended)", "description": "Balanced for most images"},
|
|
79
|
-
{"label": "25 MB", "description": "High-res photos supported"},
|
|
80
|
-
{"label": "50 MB", "description": "Large files, slower uploads"}
|
|
81
|
-
]
|
|
82
|
-
}
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
**Dependencies:**
|
|
86
|
-
```json
|
|
87
|
-
{
|
|
88
|
-
"question": "What authentication is required?",
|
|
89
|
-
"header": "Auth",
|
|
90
|
-
"multiSelect": false,
|
|
91
|
-
"options": [
|
|
92
|
-
{"label": "Public access", "description": "No login required"},
|
|
93
|
-
{"label": "Logged-in users", "description": "Require authentication"},
|
|
94
|
-
{"label": "Role-based", "description": "Different permissions per role"}
|
|
95
|
-
]
|
|
96
|
-
}
|
|
97
|
-
```
|
|
38
|
+
| Constraint | Value |
|
|
39
|
+
|-----------|-------|
|
|
40
|
+
| header | Max 12 characters |
|
|
41
|
+
| options | 2-4 per question, each with label + description |
|
|
42
|
+
| multiSelect | true when choices aren't mutually exclusive |
|
|
43
|
+
| questions | Max 4 per tool call |
|
|
44
|
+
| Other | Users can always select "Other" for custom input |
|
|
98
45
|
|
|
99
46
|
## Process
|
|
100
47
|
|
|
@@ -102,26 +49,12 @@ Proactively identify missing requirements before implementation.
|
|
|
102
49
|
2. Identify categories lacking clarity
|
|
103
50
|
3. Use `AskUserQuestion` with 1-4 targeted questions
|
|
104
51
|
4. Wait for answers
|
|
105
|
-
5. Follow up if answers reveal new gaps
|
|
106
|
-
6. Signal
|
|
107
|
-
|
|
108
|
-
## Question Quality
|
|
109
|
-
|
|
110
|
-
```
|
|
111
|
-
BAD: "Any other requirements?"
|
|
112
|
-
GOOD: "Max file size for uploads?" with concrete options
|
|
113
|
-
|
|
114
|
-
BAD: "What about errors?"
|
|
115
|
-
GOOD: "If upload fails, retry automatically or show error to user?" with clear choices
|
|
116
|
-
```
|
|
52
|
+
5. Follow up if answers reveal new gaps
|
|
53
|
+
6. Signal: "Requirements clear. Ready to proceed."
|
|
117
54
|
|
|
118
55
|
## Rules
|
|
119
56
|
|
|
120
|
-
-
|
|
121
|
-
-
|
|
122
|
-
-
|
|
123
|
-
-
|
|
124
|
-
- Use multiSelect when choices can combine
|
|
125
|
-
- Be specific, offer choices with trade-offs explained
|
|
126
|
-
- Don't assume - ask
|
|
127
|
-
- Stop when gaps are covered
|
|
57
|
+
- Be specific — offer concrete choices with trade-offs explained
|
|
58
|
+
- BAD: "Any other requirements?" / GOOD: "Max file size?" with concrete options
|
|
59
|
+
- BAD: "What about errors?" / GOOD: "If upload fails, retry or show error?" with choices
|
|
60
|
+
- Don't assume — ask. Stop when gaps are covered.
|
|
@@ -96,6 +96,16 @@ quality:
|
|
|
96
96
|
# Timeout in seconds to wait for the dev server to become ready (default: 30)
|
|
97
97
|
browser_timeout: 30
|
|
98
98
|
|
|
99
|
+
# deepflow-dashboard team mode settings
|
|
100
|
+
# dashboard_url: URL of the shared team server for POST ingestion
|
|
101
|
+
# Leave blank (or omit) to use local-only mode (no data is pushed)
|
|
102
|
+
# Example: http://team-server:3334
|
|
103
|
+
dashboard_url: ""
|
|
104
|
+
|
|
105
|
+
# Port for `npx deepflow-dashboard serve` (team server mode)
|
|
106
|
+
# Default: 3334 (3333 is reserved for local mode)
|
|
107
|
+
dashboard_port: 3334
|
|
108
|
+
|
|
99
109
|
# Recommended .gitignore entries
|
|
100
110
|
# Add these entries to your .gitignore to exclude instrumentation artifacts
|
|
101
111
|
gitignore_entries:
|
|
@@ -37,7 +37,18 @@
|
|
|
37
37
|
---
|
|
38
38
|
|
|
39
39
|
<!--
|
|
40
|
-
Spec
|
|
40
|
+
Spec Layers (onion model):
|
|
41
|
+
Specs don't need to be complete to be useful. The layer is computed
|
|
42
|
+
from which sections exist — /df:plan gates task generation accordingly.
|
|
43
|
+
|
|
44
|
+
L0 (Objective only) → spikes only
|
|
45
|
+
L1 (+ Requirements) → targeted spikes
|
|
46
|
+
L2 (+ Acceptance Criteria) → implementation tasks
|
|
47
|
+
L3 (+ Constraints, Out of Scope, Tech) → full impact analysis + optimize
|
|
48
|
+
|
|
49
|
+
Start at L0. Let spikes deepen the spec. Each layer adds knowledge, not guesswork.
|
|
50
|
+
|
|
51
|
+
Other guidelines:
|
|
41
52
|
- Keep under 100 lines
|
|
42
53
|
- Requirements must be testable
|
|
43
54
|
- Acceptance criteria must be verifiable
|