@winton979/task-cli 1.3.3 → 1.4.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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/init.js +50 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@winton979/task-cli",
3
- "version": "1.3.3",
3
+ "version": "1.4.0",
4
4
  "description": "Lightweight task workflow CLI for AI-assisted development",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -13,7 +13,7 @@
13
13
  },
14
14
  "type": "module",
15
15
  "bin": {
16
- "task": "./bin/task.js"
16
+ "task": "bin/task.js"
17
17
  },
18
18
  "files": [
19
19
  "bin",
package/src/init.js CHANGED
@@ -30,6 +30,20 @@ Use it narrowly:
30
30
  * treat the file as a source of durable project invariants, not as a second specification
31
31
  * if relevant decisions exist, summarize them briefly in Context or Constraints instead of copying them verbatim`;
32
32
 
33
+ const COMPLEXITY_ASSESSMENT_GUIDANCE = `Complexity Assessment
34
+
35
+ Before finalizing the brief, assess whether the requirement justifies added complexity.
36
+
37
+ * Treat added complexity as a cost that must be justified by the requirement.
38
+ * Flag any indication that the requirement may require:
39
+
40
+ - new project-wide capability
41
+ - new dependency
42
+ - cross-cutting architectural change
43
+
44
+ as a Risk, not a plan.
45
+ * When complexity appears justified, do not design the solution here. Simply record that additional implementation effort is likely required.`;
46
+
33
47
  const SKILLS = {
34
48
  'task-fast': {
35
49
  name: 'task-fast',
@@ -50,21 +64,24 @@ Workflow
50
64
  2. If no Grill Me compatible skill is available, clarify the requirement yourself with focused questions just far enough to remove ambiguity.
51
65
  3. Read the project code and conventions needed to avoid obvious conflicts.
52
66
  4. Read .ai/decisions/decisions.md if it exists and has entries. Pull in only decisions that materially constrain this task.
53
- 5. Create a concise task brief and save it to:
67
+ 5. Before finalizing the brief, perform a Complexity Assessment.
68
+ 6. Create a concise task brief and save it to:
54
69
 
55
70
  .ai/tasks/active/YYYY-MM-DD-task-name.md
56
71
 
57
- 6. Show the brief before coding.
58
- 7. If the user does not object, implement immediately.
59
- 8. Verify the result against the acceptance criteria.
60
- 9. Archive the brief automatically by moving it to:
72
+ 7. Show the brief before coding.
73
+ 8. If the user does not object, implement immediately.
74
+ 9. Verify the result against the acceptance criteria.
75
+ 10. Archive the brief automatically by moving it to:
61
76
 
62
77
  .ai/tasks/archive/YYYY-MM-DD-task-name.md
63
78
 
64
- 10. Summarize the outcome and any follow-up risks.
79
+ 11. Summarize the outcome and any follow-up risks.
65
80
 
66
81
  ${DECISIONS_READ_GUIDANCE}
67
82
 
83
+ ${COMPLEXITY_ASSESSMENT_GUIDANCE}
84
+
68
85
  Task Brief Format
69
86
 
70
87
  # Goal
@@ -77,7 +94,11 @@ Relevant project background.
77
94
 
78
95
  # Constraints
79
96
 
80
- Business or technical limitations.
97
+ Business or technical limitations. When materially supported by the exploration, record complexity expectations such as:
98
+
99
+ - A new dependency does not currently appear necessary.
100
+ - Existing project boundaries likely remain sufficient.
101
+ - Cross-cutting changes do not currently appear justified.
81
102
 
82
103
  # Risks
83
104
 
@@ -129,6 +150,8 @@ Workflow
129
150
 
130
151
  ${DECISIONS_READ_GUIDANCE}
131
152
 
153
+ ${COMPLEXITY_ASSESSMENT_GUIDANCE}
154
+
132
155
  Task Brief Format
133
156
 
134
157
  # Goal
@@ -141,7 +164,11 @@ Relevant project background.
141
164
 
142
165
  # Constraints
143
166
 
144
- Business or technical limitations.
167
+ Business or technical limitations. When materially supported by the exploration, record complexity expectations such as:
168
+
169
+ - A new dependency does not currently appear necessary.
170
+ - Existing project boundaries likely remain sufficient.
171
+ - Cross-cutting changes do not currently appear justified.
145
172
 
146
173
  # Risks
147
174
 
@@ -156,6 +183,7 @@ Requirements
156
183
  * Maximum 500 words
157
184
  * No code
158
185
  * No architecture design
186
+ * Stay implementation-agnostic; describe constraints, not solutions
159
187
  * Only information required for execution
160
188
 
161
189
  When complete output:
@@ -188,6 +216,14 @@ Rules
188
216
  7. Validate the result before stopping.
189
217
  8. If the work is complete, archive the brief automatically by moving it to .ai/tasks/archive/.
190
218
 
219
+ When making implementation decisions
220
+
221
+ * Reuse existing helpers, patterns, and APIs before introducing new ones.
222
+ * Before introducing a new abstraction, confirm that extending existing code would not satisfy the requirement.
223
+ * Choose the simplest implementation that satisfies the acceptance criteria.
224
+ * Introduce a new dependency or abstraction only when no in-project option exists, and state why.
225
+ * Do not optimize for hypothetical future reuse.
226
+
191
227
  Output
192
228
 
193
229
  ## Plan
@@ -375,6 +411,12 @@ Rules
375
411
  7. Validate the fix before stopping.
376
412
  8. If the bug is fixed, archive the brief automatically by moving it to .ai/bugs/archive/.
377
413
 
414
+ When making implementation decisions
415
+
416
+ * Extend existing behavior before introducing new abstractions.
417
+ * Prefer the smallest behavioral correction that resolves the confirmed root cause.
418
+ * Introduce new dependencies only when existing project capabilities cannot reasonably solve the problem.
419
+
378
420
  Output
379
421
 
380
422
  ## Root Cause