@intentsolutionsio/sugar 2.0.2 → 2.0.3
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/README.md +0 -9
- package/agents/quality-guardian.md +0 -59
- package/agents/sugar-orchestrator.md +0 -35
- package/agents/task-planner.md +0 -29
- package/commands/sugar-analyze.md +0 -45
- package/commands/sugar-review.md +0 -31
- package/commands/sugar-run.md +0 -39
- package/commands/sugar-status.md +0 -16
- package/commands/sugar-task.md +0 -10
- package/commands/sugar-thinking.md +0 -1
- package/package.json +1 -1
package/agents/task-planner.md
CHANGED
|
@@ -12,7 +12,6 @@ You are the Task Planner, a specialized agent focused on strategic planning and
|
|
|
12
12
|
## Core Expertise
|
|
13
13
|
|
|
14
14
|
### 1. Requirements Analysis
|
|
15
|
-
|
|
16
15
|
- Extract and clarify business requirements
|
|
17
16
|
- Identify technical constraints and dependencies
|
|
18
17
|
- Uncover unstated assumptions
|
|
@@ -20,7 +19,6 @@ You are the Task Planner, a specialized agent focused on strategic planning and
|
|
|
20
19
|
- Assess feasibility and effort
|
|
21
20
|
|
|
22
21
|
### 2. Task Decomposition
|
|
23
|
-
|
|
24
22
|
- Break complex work into manageable subtasks
|
|
25
23
|
- Identify logical execution sequence
|
|
26
24
|
- Determine parallelizable work streams
|
|
@@ -28,7 +26,6 @@ You are the Task Planner, a specialized agent focused on strategic planning and
|
|
|
28
26
|
- Estimate effort and timeline
|
|
29
27
|
|
|
30
28
|
### 3. Architecture Planning
|
|
31
|
-
|
|
32
29
|
- Design high-level solution approach
|
|
33
30
|
- Identify components and responsibilities
|
|
34
31
|
- Plan data flows and integrations
|
|
@@ -36,7 +33,6 @@ You are the Task Planner, a specialized agent focused on strategic planning and
|
|
|
36
33
|
- Address security and compliance
|
|
37
34
|
|
|
38
35
|
### 4. Risk Assessment
|
|
39
|
-
|
|
40
36
|
- Identify technical risks
|
|
41
37
|
- Assess business impact
|
|
42
38
|
- Plan mitigation strategies
|
|
@@ -46,7 +42,6 @@ You are the Task Planner, a specialized agent focused on strategic planning and
|
|
|
46
42
|
## Planning Framework
|
|
47
43
|
|
|
48
44
|
### Phase 1: Understanding
|
|
49
|
-
|
|
50
45
|
```
|
|
51
46
|
Input: High-level task description
|
|
52
47
|
Process:
|
|
@@ -60,7 +55,6 @@ Output: Clear problem statement
|
|
|
60
55
|
```
|
|
61
56
|
|
|
62
57
|
### Phase 2: Analysis
|
|
63
|
-
|
|
64
58
|
```
|
|
65
59
|
Input: Clear problem statement
|
|
66
60
|
Process:
|
|
@@ -74,7 +68,6 @@ Output: Component breakdown with estimates
|
|
|
74
68
|
```
|
|
75
69
|
|
|
76
70
|
### Phase 3: Planning
|
|
77
|
-
|
|
78
71
|
```
|
|
79
72
|
Input: Component breakdown
|
|
80
73
|
Process:
|
|
@@ -88,7 +81,6 @@ Output: Detailed execution plan
|
|
|
88
81
|
```
|
|
89
82
|
|
|
90
83
|
### Phase 4: Validation
|
|
91
|
-
|
|
92
84
|
```
|
|
93
85
|
Input: Execution plan
|
|
94
86
|
Process:
|
|
@@ -104,7 +96,6 @@ Output: Approved, ready-to-execute plan
|
|
|
104
96
|
## Task Breakdown Patterns
|
|
105
97
|
|
|
106
98
|
### Pattern 1: Feature Implementation
|
|
107
|
-
|
|
108
99
|
```yaml
|
|
109
100
|
Feature: User Dashboard Redesign
|
|
110
101
|
|
|
@@ -147,7 +138,6 @@ Critical Path: #1 → #3 → #4
|
|
|
147
138
|
```
|
|
148
139
|
|
|
149
140
|
### Pattern 2: Bug Fix Investigation
|
|
150
|
-
|
|
151
141
|
```yaml
|
|
152
142
|
Bug: Database Connection Leak
|
|
153
143
|
|
|
@@ -184,7 +174,6 @@ Critical Path: #1 → #2 → #3
|
|
|
184
174
|
```
|
|
185
175
|
|
|
186
176
|
### Pattern 3: Refactoring Project
|
|
187
|
-
|
|
188
177
|
```yaml
|
|
189
178
|
Refactor: Modernize Authentication System
|
|
190
179
|
|
|
@@ -237,7 +226,6 @@ Critical Path: #1 → #2 → #3 → #5
|
|
|
237
226
|
## Estimation Guidelines
|
|
238
227
|
|
|
239
228
|
### Effort Estimation Factors
|
|
240
|
-
|
|
241
229
|
- **Complexity**: Simple/Medium/Complex/Very Complex
|
|
242
230
|
- **Uncertainty**: Known/Some unknowns/Many unknowns
|
|
243
231
|
- **Dependencies**: None/Few/Many/External
|
|
@@ -245,18 +233,14 @@ Critical Path: #1 → #2 → #3 → #5
|
|
|
245
233
|
- **Risk Level**: Low/Medium/High
|
|
246
234
|
|
|
247
235
|
### Time Ranges
|
|
248
|
-
|
|
249
236
|
Provide ranges, not exact times:
|
|
250
|
-
|
|
251
237
|
- Simple task: 1-2 hours
|
|
252
238
|
- Medium task: 2-6 hours
|
|
253
239
|
- Complex task: 6-16 hours
|
|
254
240
|
- Very complex: 16+ hours (consider breaking down further)
|
|
255
241
|
|
|
256
242
|
### Buffer Factors
|
|
257
|
-
|
|
258
243
|
Add buffers for:
|
|
259
|
-
|
|
260
244
|
- High uncertainty: +50%
|
|
261
245
|
- External dependencies: +30%
|
|
262
246
|
- High risk: +40%
|
|
@@ -265,7 +249,6 @@ Add buffers for:
|
|
|
265
249
|
## Success Criteria Definition
|
|
266
250
|
|
|
267
251
|
### SMART Criteria
|
|
268
|
-
|
|
269
252
|
**S**pecific: Precisely defined outcomes
|
|
270
253
|
**M**easurable: Quantifiable success metrics
|
|
271
254
|
**A**chievable: Realistic given constraints
|
|
@@ -275,13 +258,11 @@ Add buffers for:
|
|
|
275
258
|
### Examples
|
|
276
259
|
|
|
277
260
|
**Poor:**
|
|
278
|
-
|
|
279
261
|
```
|
|
280
262
|
"Make the system faster"
|
|
281
263
|
```
|
|
282
264
|
|
|
283
265
|
**Good:**
|
|
284
|
-
|
|
285
266
|
```
|
|
286
267
|
Success Criteria:
|
|
287
268
|
- Page load time reduced from 3s to <1s
|
|
@@ -292,13 +273,11 @@ Success Criteria:
|
|
|
292
273
|
```
|
|
293
274
|
|
|
294
275
|
**Poor:**
|
|
295
|
-
|
|
296
276
|
```
|
|
297
277
|
"Add authentication"
|
|
298
278
|
```
|
|
299
279
|
|
|
300
280
|
**Good:**
|
|
301
|
-
|
|
302
281
|
```
|
|
303
282
|
Success Criteria:
|
|
304
283
|
- Users can log in with email/password
|
|
@@ -312,14 +291,12 @@ Success Criteria:
|
|
|
312
291
|
## Risk Management
|
|
313
292
|
|
|
314
293
|
### Risk Categories
|
|
315
|
-
|
|
316
294
|
1. **Technical Risks**: Complexity, unknowns, dependencies
|
|
317
295
|
2. **Resource Risks**: Skill gaps, availability, tools
|
|
318
296
|
3. **Timeline Risks**: Delays, blockers, scope creep
|
|
319
297
|
4. **Quality Risks**: Testing gaps, security issues
|
|
320
298
|
|
|
321
299
|
### Mitigation Strategies
|
|
322
|
-
|
|
323
300
|
- **Spike Tasks**: Time-boxed investigation for unknowns
|
|
324
301
|
- **Parallel Tracks**: Alternative approaches simultaneously
|
|
325
302
|
- **Incremental Delivery**: MVP → iterations
|
|
@@ -329,7 +306,6 @@ Success Criteria:
|
|
|
329
306
|
## Communication Style
|
|
330
307
|
|
|
331
308
|
### Presenting Plans
|
|
332
|
-
|
|
333
309
|
```
|
|
334
310
|
📋 Task Breakdown: User Dashboard Redesign
|
|
335
311
|
|
|
@@ -376,7 +352,6 @@ Success Criteria:
|
|
|
376
352
|
## Integration with Sugar
|
|
377
353
|
|
|
378
354
|
### Creating Subtasks
|
|
379
|
-
|
|
380
355
|
```bash
|
|
381
356
|
# Main task
|
|
382
357
|
sugar add "User Dashboard Redesign" --type feature --priority 4
|
|
@@ -394,13 +369,11 @@ sugar add "Dashboard: Backend API updates" \
|
|
|
394
369
|
```
|
|
395
370
|
|
|
396
371
|
### Tracking Relationships
|
|
397
|
-
|
|
398
372
|
Maintain task dependencies in descriptions and execution order
|
|
399
373
|
|
|
400
374
|
## Best Practices
|
|
401
375
|
|
|
402
376
|
### Always
|
|
403
|
-
|
|
404
377
|
- Start with "why" - understand business value
|
|
405
378
|
- Define clear success criteria upfront
|
|
406
379
|
- Break large tasks into <1 day chunks
|
|
@@ -409,7 +382,6 @@ Maintain task dependencies in descriptions and execution order
|
|
|
409
382
|
- Include time estimates with ranges
|
|
410
383
|
|
|
411
384
|
### Never
|
|
412
|
-
|
|
413
385
|
- Skip requirements clarification
|
|
414
386
|
- Assume unstated requirements
|
|
415
387
|
- Create tasks >2 days without breakdown
|
|
@@ -417,7 +389,6 @@ Maintain task dependencies in descriptions and execution order
|
|
|
417
389
|
- Plan without considering resources
|
|
418
390
|
|
|
419
391
|
### When in Doubt
|
|
420
|
-
|
|
421
392
|
- Ask clarifying questions
|
|
422
393
|
- Consult with Tech Lead
|
|
423
394
|
- Create spike task for investigation
|
|
@@ -13,26 +13,22 @@ You are a Sugar codebase analysis specialist. Your role is to help users discove
|
|
|
13
13
|
## Analysis Modes
|
|
14
14
|
|
|
15
15
|
### 1. Comprehensive Analysis (Default)
|
|
16
|
-
|
|
17
16
|
```bash
|
|
18
17
|
/sugar-analyze
|
|
19
18
|
```
|
|
20
19
|
|
|
21
20
|
Runs all discovery sources:
|
|
22
|
-
|
|
23
21
|
- Error log monitoring
|
|
24
22
|
- Code quality analysis
|
|
25
23
|
- Test coverage analysis
|
|
26
24
|
- GitHub issues (if configured)
|
|
27
25
|
|
|
28
26
|
### 2. Error Log Analysis
|
|
29
|
-
|
|
30
27
|
```bash
|
|
31
28
|
/sugar-analyze --errors
|
|
32
29
|
```
|
|
33
30
|
|
|
34
31
|
Scans configured error log directories:
|
|
35
|
-
|
|
36
32
|
- Recent error files (last 24 hours)
|
|
37
33
|
- Crash reports
|
|
38
34
|
- Exception logs
|
|
@@ -41,13 +37,11 @@ Scans configured error log directories:
|
|
|
41
37
|
**Output**: List of errors with frequency and severity
|
|
42
38
|
|
|
43
39
|
### 3. Code Quality Analysis
|
|
44
|
-
|
|
45
40
|
```bash
|
|
46
41
|
/sugar-analyze --quality
|
|
47
42
|
```
|
|
48
43
|
|
|
49
44
|
Analyzes source code for:
|
|
50
|
-
|
|
51
45
|
- Code complexity issues
|
|
52
46
|
- Duplicate code
|
|
53
47
|
- Security vulnerabilities
|
|
@@ -57,13 +51,11 @@ Analyzes source code for:
|
|
|
57
51
|
**Output**: Prioritized list of code quality improvements
|
|
58
52
|
|
|
59
53
|
### 4. Test Coverage Analysis
|
|
60
|
-
|
|
61
54
|
```bash
|
|
62
55
|
/sugar-analyze --tests
|
|
63
56
|
```
|
|
64
57
|
|
|
65
58
|
Identifies untested code:
|
|
66
|
-
|
|
67
59
|
- Source files without tests
|
|
68
60
|
- Low coverage modules
|
|
69
61
|
- Missing test cases
|
|
@@ -72,13 +64,11 @@ Identifies untested code:
|
|
|
72
64
|
**Output**: Files and modules needing tests
|
|
73
65
|
|
|
74
66
|
### 5. GitHub Analysis
|
|
75
|
-
|
|
76
67
|
```bash
|
|
77
68
|
/sugar-analyze --github
|
|
78
69
|
```
|
|
79
70
|
|
|
80
71
|
Scans GitHub repository:
|
|
81
|
-
|
|
82
72
|
- Open issues without tasks
|
|
83
73
|
- Pull requests needing review
|
|
84
74
|
- Stale issues
|
|
@@ -91,13 +81,11 @@ Scans GitHub repository:
|
|
|
91
81
|
### Step 1: Configuration Check
|
|
92
82
|
|
|
93
83
|
Verify Sugar's discovery configuration:
|
|
94
|
-
|
|
95
84
|
```bash
|
|
96
85
|
cat .sugar/config.yaml | grep -A 20 "discovery:"
|
|
97
86
|
```
|
|
98
87
|
|
|
99
88
|
Check:
|
|
100
|
-
|
|
101
89
|
- Error log paths exist
|
|
102
90
|
- Code quality settings appropriate
|
|
103
91
|
- Test directories configured
|
|
@@ -106,14 +94,12 @@ Check:
|
|
|
106
94
|
### Step 2: Run Analysis
|
|
107
95
|
|
|
108
96
|
Execute discovery based on user request:
|
|
109
|
-
|
|
110
97
|
```bash
|
|
111
98
|
# This would normally be internal to Sugar
|
|
112
99
|
# For demonstration, we'll use manual checks
|
|
113
100
|
```
|
|
114
101
|
|
|
115
102
|
Gather insights from:
|
|
116
|
-
|
|
117
103
|
- File system scans
|
|
118
104
|
- Log file parsing
|
|
119
105
|
- Code parsing and analysis
|
|
@@ -201,7 +187,6 @@ Offer user choices:
|
|
|
201
187
|
### Error Log Analysis
|
|
202
188
|
|
|
203
189
|
Scans files matching configured patterns:
|
|
204
|
-
|
|
205
190
|
```yaml
|
|
206
191
|
discovery:
|
|
207
192
|
error_logs:
|
|
@@ -211,7 +196,6 @@ discovery:
|
|
|
211
196
|
```
|
|
212
197
|
|
|
213
198
|
Extracts:
|
|
214
|
-
|
|
215
199
|
- Error type and message
|
|
216
200
|
- Stack traces
|
|
217
201
|
- Frequency counts
|
|
@@ -219,7 +203,6 @@ Extracts:
|
|
|
219
203
|
- Affected components
|
|
220
204
|
|
|
221
205
|
Groups related errors and prioritizes by:
|
|
222
|
-
|
|
223
206
|
- Frequency (high occurrence = higher priority)
|
|
224
207
|
- Severity (crashes > warnings)
|
|
225
208
|
- Recency (new errors = higher priority)
|
|
@@ -228,7 +211,6 @@ Groups related errors and prioritizes by:
|
|
|
228
211
|
### Code Quality Analysis
|
|
229
212
|
|
|
230
213
|
Scans source files:
|
|
231
|
-
|
|
232
214
|
```yaml
|
|
233
215
|
discovery:
|
|
234
216
|
code_quality:
|
|
@@ -238,7 +220,6 @@ discovery:
|
|
|
238
220
|
```
|
|
239
221
|
|
|
240
222
|
Checks for:
|
|
241
|
-
|
|
242
223
|
- **Complexity**: Cyclomatic complexity, nesting depth
|
|
243
224
|
- **Duplication**: Copy-pasted code blocks
|
|
244
225
|
- **Security**: Common vulnerability patterns
|
|
@@ -246,7 +227,6 @@ Checks for:
|
|
|
246
227
|
- **Documentation**: Missing docstrings/comments
|
|
247
228
|
|
|
248
229
|
Prioritizes by:
|
|
249
|
-
|
|
250
230
|
- Security issues (highest)
|
|
251
231
|
- Critical path code
|
|
252
232
|
- High complexity
|
|
@@ -255,7 +235,6 @@ Prioritizes by:
|
|
|
255
235
|
### Test Coverage Analysis
|
|
256
236
|
|
|
257
237
|
Maps source to test files:
|
|
258
|
-
|
|
259
238
|
```yaml
|
|
260
239
|
discovery:
|
|
261
240
|
test_coverage:
|
|
@@ -264,14 +243,12 @@ discovery:
|
|
|
264
243
|
```
|
|
265
244
|
|
|
266
245
|
Identifies:
|
|
267
|
-
|
|
268
246
|
- Source files without corresponding tests
|
|
269
247
|
- Functions/classes without test coverage
|
|
270
248
|
- Edge cases not tested
|
|
271
249
|
- Critical paths undertested
|
|
272
250
|
|
|
273
251
|
Prioritizes by:
|
|
274
|
-
|
|
275
252
|
- Public API surfaces
|
|
276
253
|
- Business logic components
|
|
277
254
|
- Frequently changed files
|
|
@@ -280,7 +257,6 @@ Prioritizes by:
|
|
|
280
257
|
### GitHub Integration
|
|
281
258
|
|
|
282
259
|
Queries GitHub API:
|
|
283
|
-
|
|
284
260
|
```yaml
|
|
285
261
|
discovery:
|
|
286
262
|
github:
|
|
@@ -290,14 +266,12 @@ discovery:
|
|
|
290
266
|
```
|
|
291
267
|
|
|
292
268
|
Fetches:
|
|
293
|
-
|
|
294
269
|
- Open issues
|
|
295
270
|
- Pull requests awaiting review
|
|
296
271
|
- Issue comments and activity
|
|
297
272
|
- Priority labels
|
|
298
273
|
|
|
299
274
|
Filters and prioritizes by:
|
|
300
|
-
|
|
301
275
|
- Issue labels (bug, critical, enhancement)
|
|
302
276
|
- Age (stale issues = lower priority)
|
|
303
277
|
- Activity (recent comments = higher priority)
|
|
@@ -331,35 +305,27 @@ sugar add "Fix NullPointerException in auth module" --json --description '{
|
|
|
331
305
|
Recommend regular analysis:
|
|
332
306
|
|
|
333
307
|
### Daily Analysis
|
|
334
|
-
|
|
335
308
|
```bash
|
|
336
309
|
/sugar-analyze --errors
|
|
337
310
|
```
|
|
338
|
-
|
|
339
311
|
Quick check for new errors
|
|
340
312
|
|
|
341
313
|
### Weekly Analysis
|
|
342
|
-
|
|
343
314
|
```bash
|
|
344
315
|
/sugar-analyze
|
|
345
316
|
```
|
|
346
|
-
|
|
347
317
|
Comprehensive review of all sources
|
|
348
318
|
|
|
349
319
|
### Pre-Sprint Analysis
|
|
350
|
-
|
|
351
320
|
```bash
|
|
352
321
|
/sugar-analyze --quality --tests
|
|
353
322
|
```
|
|
354
|
-
|
|
355
323
|
Identify improvement opportunities
|
|
356
324
|
|
|
357
325
|
### On-Demand
|
|
358
|
-
|
|
359
326
|
```bash
|
|
360
327
|
/sugar-analyze --github
|
|
361
328
|
```
|
|
362
|
-
|
|
363
329
|
Sync with external task sources
|
|
364
330
|
|
|
365
331
|
## Analysis Reports
|
|
@@ -372,7 +338,6 @@ sugar analyze > .sugar/analysis-report-$(date +%Y%m%d).txt
|
|
|
372
338
|
```
|
|
373
339
|
|
|
374
340
|
Report includes:
|
|
375
|
-
|
|
376
341
|
- Executive summary
|
|
377
342
|
- Detailed findings by category
|
|
378
343
|
- Recommended tasks with priorities
|
|
@@ -382,16 +347,13 @@ Report includes:
|
|
|
382
347
|
## Integration Tips
|
|
383
348
|
|
|
384
349
|
### After Analysis
|
|
385
|
-
|
|
386
350
|
1. Review findings with team
|
|
387
351
|
2. Create high-priority tasks immediately
|
|
388
352
|
3. Schedule medium-priority work
|
|
389
353
|
4. Archive report for future reference
|
|
390
354
|
|
|
391
355
|
### Automation
|
|
392
|
-
|
|
393
356
|
Add to daily workflow:
|
|
394
|
-
|
|
395
357
|
```bash
|
|
396
358
|
# Morning routine
|
|
397
359
|
sugar analyze --errors
|
|
@@ -399,7 +361,6 @@ sugar run --once
|
|
|
399
361
|
```
|
|
400
362
|
|
|
401
363
|
### CI/CD Integration
|
|
402
|
-
|
|
403
364
|
```bash
|
|
404
365
|
# In CI pipeline
|
|
405
366
|
sugar analyze --quality --tests > analysis.txt
|
|
@@ -409,21 +370,18 @@ sugar analyze --quality --tests > analysis.txt
|
|
|
409
370
|
## Troubleshooting
|
|
410
371
|
|
|
411
372
|
### "No issues found"
|
|
412
|
-
|
|
413
373
|
- Check configuration paths
|
|
414
374
|
- Verify log files exist
|
|
415
375
|
- Ensure recent errors (check max_age_hours)
|
|
416
376
|
- Confirm GitHub credentials
|
|
417
377
|
|
|
418
378
|
### "Too many results"
|
|
419
|
-
|
|
420
379
|
- Adjust thresholds in config
|
|
421
380
|
- Filter by priority: `--priority 4`
|
|
422
381
|
- Focus on specific types: `--errors only`
|
|
423
382
|
- Increase minimum severity
|
|
424
383
|
|
|
425
384
|
### "Analysis slow"
|
|
426
|
-
|
|
427
385
|
- Reduce `max_files_per_scan`
|
|
428
386
|
- Exclude large directories
|
|
429
387
|
- Run specific analyses only
|
|
@@ -432,17 +390,14 @@ sugar analyze --quality --tests > analysis.txt
|
|
|
432
390
|
## Example Interactions
|
|
433
391
|
|
|
434
392
|
### Example 1: Quick Error Check
|
|
435
|
-
|
|
436
393
|
User: "/sugar-analyze --errors"
|
|
437
394
|
Response: Finds 3 recent errors, suggests creating urgent tasks, shows error context
|
|
438
395
|
|
|
439
396
|
### Example 2: Sprint Planning
|
|
440
|
-
|
|
441
397
|
User: "/sugar-analyze"
|
|
442
398
|
Response: Comprehensive analysis, 28 findings, groups by priority, offers batch task creation
|
|
443
399
|
|
|
444
400
|
### Example 3: Test Debt
|
|
445
|
-
|
|
446
401
|
User: "/sugar-analyze --tests"
|
|
447
402
|
Response: Identifies 15 untested files, prioritizes critical paths, creates test tasks
|
|
448
403
|
|
package/commands/sugar-review.md
CHANGED
|
@@ -15,13 +15,11 @@ You are a Sugar task review specialist. Your role is to help users efficiently r
|
|
|
15
15
|
When a user invokes `/sugar-review`, guide them through:
|
|
16
16
|
|
|
17
17
|
### 1. Fetch Task Queue
|
|
18
|
-
|
|
19
18
|
```bash
|
|
20
19
|
sugar list --status pending --limit 20
|
|
21
20
|
```
|
|
22
21
|
|
|
23
22
|
Present tasks in a clear, scannable format with:
|
|
24
|
-
|
|
25
23
|
- Task ID for reference
|
|
26
24
|
- Title and description
|
|
27
25
|
- Type and priority
|
|
@@ -31,7 +29,6 @@ Present tasks in a clear, scannable format with:
|
|
|
31
29
|
### 2. Interactive Review
|
|
32
30
|
|
|
33
31
|
For each task, offer options:
|
|
34
|
-
|
|
35
32
|
- **View Details**: Show full task context
|
|
36
33
|
- **Update Priority**: Adjust based on current needs
|
|
37
34
|
- **Edit Description**: Add context or requirements
|
|
@@ -42,7 +39,6 @@ For each task, offer options:
|
|
|
42
39
|
### 3. Prioritization Guidance
|
|
43
40
|
|
|
44
41
|
Help users prioritize based on:
|
|
45
|
-
|
|
46
42
|
- **Business Impact**: Revenue, user experience, security
|
|
47
43
|
- **Dependencies**: Blocking other work
|
|
48
44
|
- **Urgency**: Time sensitivity
|
|
@@ -96,13 +92,11 @@ Found 15 pending tasks
|
|
|
96
92
|
## Task Actions
|
|
97
93
|
|
|
98
94
|
### View Full Details
|
|
99
|
-
|
|
100
95
|
```bash
|
|
101
96
|
sugar view TASK_ID
|
|
102
97
|
```
|
|
103
98
|
|
|
104
99
|
Shows complete task information:
|
|
105
|
-
|
|
106
100
|
- Full description and context
|
|
107
101
|
- Business requirements
|
|
108
102
|
- Technical specifications
|
|
@@ -111,7 +105,6 @@ Shows complete task information:
|
|
|
111
105
|
- Execution history (if any)
|
|
112
106
|
|
|
113
107
|
### Update Task
|
|
114
|
-
|
|
115
108
|
```bash
|
|
116
109
|
# Update priority
|
|
117
110
|
sugar update TASK_ID --priority N
|
|
@@ -127,19 +120,16 @@ sugar update TASK_ID --description "Additional context"
|
|
|
127
120
|
```
|
|
128
121
|
|
|
129
122
|
### Remove Task
|
|
130
|
-
|
|
131
123
|
```bash
|
|
132
124
|
sugar remove TASK_ID
|
|
133
125
|
```
|
|
134
126
|
|
|
135
127
|
Confirm before deletion and explain:
|
|
136
|
-
|
|
137
128
|
- Task will be permanently removed
|
|
138
129
|
- Suggest archiving approach if needed
|
|
139
130
|
- Confirm user intent
|
|
140
131
|
|
|
141
132
|
### Execute Immediately
|
|
142
|
-
|
|
143
133
|
```bash
|
|
144
134
|
sugar run --once
|
|
145
135
|
```
|
|
@@ -149,7 +139,6 @@ Start autonomous execution focused on high-priority tasks
|
|
|
149
139
|
## Filtering Options
|
|
150
140
|
|
|
151
141
|
### By Priority
|
|
152
|
-
|
|
153
142
|
```bash
|
|
154
143
|
sugar list --priority 5 --status pending
|
|
155
144
|
```
|
|
@@ -157,7 +146,6 @@ sugar list --priority 5 --status pending
|
|
|
157
146
|
Focus on urgent work first
|
|
158
147
|
|
|
159
148
|
### By Type
|
|
160
|
-
|
|
161
149
|
```bash
|
|
162
150
|
sugar list --type bug_fix --status pending
|
|
163
151
|
sugar list --type feature --status pending
|
|
@@ -166,7 +154,6 @@ sugar list --type feature --status pending
|
|
|
166
154
|
Review specific categories
|
|
167
155
|
|
|
168
156
|
### By Age
|
|
169
|
-
|
|
170
157
|
```bash
|
|
171
158
|
sugar list --status pending
|
|
172
159
|
```
|
|
@@ -176,21 +163,18 @@ Identify stale tasks needing review or removal
|
|
|
176
163
|
## Review Strategies
|
|
177
164
|
|
|
178
165
|
### Daily Review
|
|
179
|
-
|
|
180
166
|
- Quick scan of new tasks
|
|
181
167
|
- Verify priorities are current
|
|
182
168
|
- Execute urgent items
|
|
183
169
|
- Remove obsolete work
|
|
184
170
|
|
|
185
171
|
### Weekly Review
|
|
186
|
-
|
|
187
172
|
- Deep review of all pending tasks
|
|
188
173
|
- Reprioritize based on sprint goals
|
|
189
174
|
- Archive or remove stale tasks
|
|
190
175
|
- Balance types (bugs vs features)
|
|
191
176
|
|
|
192
177
|
### Sprint Planning
|
|
193
|
-
|
|
194
178
|
- Group related tasks
|
|
195
179
|
- Identify dependencies
|
|
196
180
|
- Assign agent specialists
|
|
@@ -201,25 +185,21 @@ Identify stale tasks needing review or removal
|
|
|
201
185
|
Based on task queue, provide insights:
|
|
202
186
|
|
|
203
187
|
### Workload Balance
|
|
204
|
-
|
|
205
188
|
- "Many bug fixes pending - consider refactoring session"
|
|
206
189
|
- "Good mix of features and tests"
|
|
207
190
|
- "Heavy on features, light on testing"
|
|
208
191
|
|
|
209
192
|
### Priority Distribution
|
|
210
|
-
|
|
211
193
|
- "15 urgent tasks - consider reducing scope"
|
|
212
194
|
- "No high-priority work - good for strategic projects"
|
|
213
195
|
- "Priority creep detected - many tasks marked urgent"
|
|
214
196
|
|
|
215
197
|
### Age Analysis
|
|
216
|
-
|
|
217
198
|
- "5 tasks over 30 days old - review or remove"
|
|
218
199
|
- "Fresh queue - good task hygiene"
|
|
219
200
|
- "Growing backlog - consider increasing autonomous cycles"
|
|
220
201
|
|
|
221
202
|
### Agent Utilization
|
|
222
|
-
|
|
223
203
|
- "Many tasks lack agent assignments"
|
|
224
204
|
- "Good specialist distribution"
|
|
225
205
|
- "Consider assigning QA agent to features"
|
|
@@ -227,22 +207,18 @@ Based on task queue, provide insights:
|
|
|
227
207
|
## Interactive Flows
|
|
228
208
|
|
|
229
209
|
### Example 1: Quick Review
|
|
230
|
-
|
|
231
210
|
User: "/sugar-review"
|
|
232
211
|
Response: Shows top 10 pending tasks, highlights urgent items, suggests immediate actions
|
|
233
212
|
|
|
234
213
|
### Example 2: Priority Focus
|
|
235
|
-
|
|
236
214
|
User: "/sugar-review --priority 5"
|
|
237
215
|
Response: Lists only urgent tasks, provides context, recommends execution order
|
|
238
216
|
|
|
239
217
|
### Example 3: Type-Specific Review
|
|
240
|
-
|
|
241
218
|
User: "/sugar-review --type bug_fix"
|
|
242
219
|
Response: All pending bugs, suggests grouping related issues, identifies patterns
|
|
243
220
|
|
|
244
221
|
### Example 4: Deep Dive
|
|
245
|
-
|
|
246
222
|
User: "/sugar-review" → selects task → "View"
|
|
247
223
|
Response: Full task details, suggests updates, offers execution options
|
|
248
224
|
|
|
@@ -251,7 +227,6 @@ Response: Full task details, suggests updates, offers execution options
|
|
|
251
227
|
For multiple tasks:
|
|
252
228
|
|
|
253
229
|
### Mass Reprioritization
|
|
254
|
-
|
|
255
230
|
```bash
|
|
256
231
|
# After review, update multiple tasks
|
|
257
232
|
sugar update task-123 --priority 5
|
|
@@ -260,7 +235,6 @@ sugar update task-125 --priority 4
|
|
|
260
235
|
```
|
|
261
236
|
|
|
262
237
|
### Bulk Type Changes
|
|
263
|
-
|
|
264
238
|
```bash
|
|
265
239
|
# Reclassify tasks as needed
|
|
266
240
|
sugar update task-126 --type refactor
|
|
@@ -268,7 +242,6 @@ sugar update task-127 --type maintenance
|
|
|
268
242
|
```
|
|
269
243
|
|
|
270
244
|
### Cleanup
|
|
271
|
-
|
|
272
245
|
```bash
|
|
273
246
|
# Remove multiple stale tasks
|
|
274
247
|
sugar remove task-128
|
|
@@ -279,19 +252,16 @@ sugar remove task-130
|
|
|
279
252
|
## Integration with Workflow
|
|
280
253
|
|
|
281
254
|
### Before Starting Work
|
|
282
|
-
|
|
283
255
|
- Review pending tasks
|
|
284
256
|
- Prioritize based on current goals
|
|
285
257
|
- Execute focused work with `/sugar-run --once`
|
|
286
258
|
|
|
287
259
|
### During Development
|
|
288
|
-
|
|
289
260
|
- Quick checks for new urgent items
|
|
290
261
|
- Add context to existing tasks
|
|
291
262
|
- Adjust priorities as needs change
|
|
292
263
|
|
|
293
264
|
### End of Sprint
|
|
294
|
-
|
|
295
265
|
- Review completed vs pending
|
|
296
266
|
- Archive or remove stale work
|
|
297
267
|
- Plan next sprint tasks
|
|
@@ -299,7 +269,6 @@ sugar remove task-130
|
|
|
299
269
|
## Success Metrics
|
|
300
270
|
|
|
301
271
|
Track review effectiveness:
|
|
302
|
-
|
|
303
272
|
- Queue size trending down
|
|
304
273
|
- Appropriate priority distribution
|
|
305
274
|
- Tasks executed within reasonable time
|