@intentsolutionsio/sugar 2.0.2 → 2.0.6
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 +29 -62
- package/agents/sugar-orchestrator.md +29 -38
- package/agents/task-planner.md +29 -32
- 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/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
|
package/commands/sugar-run.md
CHANGED
|
@@ -22,14 +22,12 @@ You are a Sugar autonomous execution specialist. Your role is to safely guide us
|
|
|
22
22
|
## Execution Modes
|
|
23
23
|
|
|
24
24
|
### 1. Validation Mode (Recommended First)
|
|
25
|
-
|
|
26
25
|
```bash
|
|
27
26
|
sugar run --validate
|
|
28
27
|
```
|
|
29
28
|
|
|
30
29
|
**Purpose**: Verify configuration and environment before execution
|
|
31
30
|
**Checks**:
|
|
32
|
-
|
|
33
31
|
- Configuration file validity
|
|
34
32
|
- Claude CLI availability
|
|
35
33
|
- Database accessibility
|
|
@@ -39,14 +37,12 @@ sugar run --validate
|
|
|
39
37
|
**Output**: Comprehensive validation report
|
|
40
38
|
|
|
41
39
|
### 2. Dry Run Mode (Recommended for Testing)
|
|
42
|
-
|
|
43
40
|
```bash
|
|
44
41
|
sugar run --dry-run --once
|
|
45
42
|
```
|
|
46
43
|
|
|
47
44
|
**Purpose**: Simulate execution without making changes
|
|
48
45
|
**Benefits**:
|
|
49
|
-
|
|
50
46
|
- Safe testing of configuration
|
|
51
47
|
- Preview of what Sugar would do
|
|
52
48
|
- Identify issues before real execution
|
|
@@ -55,14 +51,12 @@ sugar run --dry-run --once
|
|
|
55
51
|
**Output**: Detailed simulation log
|
|
56
52
|
|
|
57
53
|
### 3. Single Cycle Mode
|
|
58
|
-
|
|
59
54
|
```bash
|
|
60
55
|
sugar run --once
|
|
61
56
|
```
|
|
62
57
|
|
|
63
58
|
**Purpose**: Execute one autonomous cycle and exit
|
|
64
59
|
**Use Cases**:
|
|
65
|
-
|
|
66
60
|
- Testing real execution
|
|
67
61
|
- Processing urgent tasks
|
|
68
62
|
- Controlled development sessions
|
|
@@ -71,14 +65,12 @@ sugar run --once
|
|
|
71
65
|
**Output**: Execution results and summary
|
|
72
66
|
|
|
73
67
|
### 4. Continuous Autonomous Mode
|
|
74
|
-
|
|
75
68
|
```bash
|
|
76
69
|
sugar run
|
|
77
70
|
```
|
|
78
71
|
|
|
79
72
|
**Purpose**: Continuous autonomous development
|
|
80
73
|
**Behavior**:
|
|
81
|
-
|
|
82
74
|
- Runs indefinitely until stopped
|
|
83
75
|
- Executes tasks based on priority
|
|
84
76
|
- Discovers new work automatically
|
|
@@ -91,33 +83,28 @@ sugar run
|
|
|
91
83
|
Before starting autonomous mode, verify:
|
|
92
84
|
|
|
93
85
|
### Configuration
|
|
94
|
-
|
|
95
86
|
```bash
|
|
96
87
|
cat .sugar/config.yaml | grep -E "dry_run|claude.command|loop_interval"
|
|
97
88
|
```
|
|
98
89
|
|
|
99
90
|
Check:
|
|
100
|
-
|
|
101
91
|
- [ ] `dry_run: false` (for real execution)
|
|
102
92
|
- [ ] Valid Claude CLI path
|
|
103
93
|
- [ ] Reasonable loop_interval (300 seconds recommended)
|
|
104
94
|
- [ ] Appropriate max_concurrent_work setting
|
|
105
95
|
|
|
106
96
|
### Environment
|
|
107
|
-
|
|
108
97
|
- [ ] Sugar initialized: `.sugar/` directory exists
|
|
109
98
|
- [ ] Claude Code CLI accessible
|
|
110
99
|
- [ ] Project in git repository (recommended)
|
|
111
100
|
- [ ] Proper gitignore configuration
|
|
112
101
|
|
|
113
102
|
### Task Queue
|
|
114
|
-
|
|
115
103
|
```bash
|
|
116
104
|
sugar list --limit 5
|
|
117
105
|
```
|
|
118
106
|
|
|
119
107
|
Verify:
|
|
120
|
-
|
|
121
108
|
- Tasks are well-defined
|
|
122
109
|
- Priorities are appropriate
|
|
123
110
|
- No duplicate work
|
|
@@ -126,7 +113,6 @@ Verify:
|
|
|
126
113
|
## Execution Monitoring
|
|
127
114
|
|
|
128
115
|
### Log Monitoring
|
|
129
|
-
|
|
130
116
|
```bash
|
|
131
117
|
# Real-time log viewing
|
|
132
118
|
tail -f .sugar/sugar.log
|
|
@@ -139,7 +125,6 @@ grep "task-123" .sugar/sugar.log
|
|
|
139
125
|
```
|
|
140
126
|
|
|
141
127
|
### Status Checks
|
|
142
|
-
|
|
143
128
|
```bash
|
|
144
129
|
# Check status periodically
|
|
145
130
|
sugar status
|
|
@@ -152,9 +137,7 @@ sugar list --status completed --limit 5
|
|
|
152
137
|
```
|
|
153
138
|
|
|
154
139
|
### Performance Metrics
|
|
155
|
-
|
|
156
140
|
Monitor:
|
|
157
|
-
|
|
158
141
|
- Task completion rate
|
|
159
142
|
- Average execution time
|
|
160
143
|
- Failure rate
|
|
@@ -165,35 +148,27 @@ Monitor:
|
|
|
165
148
|
### Interactive Workflow
|
|
166
149
|
|
|
167
150
|
1. **Validate Configuration**
|
|
168
|
-
|
|
169
151
|
```bash
|
|
170
152
|
sugar run --validate
|
|
171
153
|
```
|
|
172
|
-
|
|
173
154
|
Review output, fix any issues
|
|
174
155
|
|
|
175
156
|
2. **Test with Dry Run**
|
|
176
|
-
|
|
177
157
|
```bash
|
|
178
158
|
sugar run --dry-run --once
|
|
179
159
|
```
|
|
180
|
-
|
|
181
160
|
Verify task selection and approach
|
|
182
161
|
|
|
183
162
|
3. **Single Cycle Test**
|
|
184
|
-
|
|
185
163
|
```bash
|
|
186
164
|
sugar run --once
|
|
187
165
|
```
|
|
188
|
-
|
|
189
166
|
Execute one real task, verify results
|
|
190
167
|
|
|
191
168
|
4. **Start Continuous Mode**
|
|
192
|
-
|
|
193
169
|
```bash
|
|
194
170
|
sugar run
|
|
195
171
|
```
|
|
196
|
-
|
|
197
172
|
Monitor actively for first few cycles
|
|
198
173
|
|
|
199
174
|
### Background Execution
|
|
@@ -237,7 +212,6 @@ kill -9 $(cat .sugar/sugar.pid)
|
|
|
237
212
|
### Common Issues
|
|
238
213
|
|
|
239
214
|
**"Claude CLI not found"**
|
|
240
|
-
|
|
241
215
|
```bash
|
|
242
216
|
# Verify installation
|
|
243
217
|
claude --version
|
|
@@ -248,13 +222,11 @@ vim .sugar/config.yaml
|
|
|
248
222
|
```
|
|
249
223
|
|
|
250
224
|
**"No tasks to execute"**
|
|
251
|
-
|
|
252
225
|
- Run `/sugar-status` to check queue
|
|
253
226
|
- Create tasks with `/sugar-task`
|
|
254
227
|
- Run `/sugar-analyze` for work discovery
|
|
255
228
|
|
|
256
229
|
**"Tasks failing repeatedly"**
|
|
257
|
-
|
|
258
230
|
```bash
|
|
259
231
|
# Review failed tasks
|
|
260
232
|
sugar list --status failed
|
|
@@ -267,7 +239,6 @@ grep -A 10 "task-123" .sugar/sugar.log
|
|
|
267
239
|
```
|
|
268
240
|
|
|
269
241
|
**"Performance issues"**
|
|
270
|
-
|
|
271
242
|
- Reduce `max_concurrent_work` in config
|
|
272
243
|
- Increase `loop_interval` for less frequent cycles
|
|
273
244
|
- Check Claude API rate limits
|
|
@@ -275,21 +246,18 @@ grep -A 10 "task-123" .sugar/sugar.log
|
|
|
275
246
|
## Safety Reminders
|
|
276
247
|
|
|
277
248
|
### Before Starting
|
|
278
|
-
|
|
279
249
|
- ✅ Test with `--dry-run` first
|
|
280
250
|
- ✅ Start with `--once` for validation
|
|
281
251
|
- ✅ Monitor logs actively
|
|
282
252
|
- ✅ Have backups (git commits)
|
|
283
253
|
|
|
284
254
|
### During Execution
|
|
285
|
-
|
|
286
255
|
- ✅ Regular status checks
|
|
287
256
|
- ✅ Review completed tasks
|
|
288
257
|
- ✅ Monitor for failures
|
|
289
258
|
- ✅ Watch resource usage
|
|
290
259
|
|
|
291
260
|
### After Starting
|
|
292
|
-
|
|
293
261
|
- ✅ Verify task completions
|
|
294
262
|
- ✅ Review generated code
|
|
295
263
|
- ✅ Run tests
|
|
@@ -298,7 +266,6 @@ grep -A 10 "task-123" .sugar/sugar.log
|
|
|
298
266
|
## Integration with Development Workflow
|
|
299
267
|
|
|
300
268
|
### Development Sessions
|
|
301
|
-
|
|
302
269
|
```bash
|
|
303
270
|
# Morning startup
|
|
304
271
|
sugar run --once # Process overnight discoveries
|
|
@@ -312,7 +279,6 @@ git commit -am "Day's work"
|
|
|
312
279
|
```
|
|
313
280
|
|
|
314
281
|
### CI/CD Integration
|
|
315
|
-
|
|
316
282
|
```bash
|
|
317
283
|
# Single task execution
|
|
318
284
|
sugar run --once --validate
|
|
@@ -325,7 +291,6 @@ sugar run --once
|
|
|
325
291
|
## Expected Behavior
|
|
326
292
|
|
|
327
293
|
### Normal Operation
|
|
328
|
-
|
|
329
294
|
- Tasks selected by priority
|
|
330
295
|
- Execution respects timeout settings
|
|
331
296
|
- Progress logged to `.sugar/sugar.log`
|
|
@@ -333,7 +298,6 @@ sugar run --once
|
|
|
333
298
|
- Graceful handling of failures
|
|
334
299
|
|
|
335
300
|
### Resource Usage
|
|
336
|
-
|
|
337
301
|
- Moderate CPU during execution
|
|
338
302
|
- Memory usage scales with task complexity
|
|
339
303
|
- Disk I/O for logging and database
|
|
@@ -342,17 +306,14 @@ sugar run --once
|
|
|
342
306
|
## Example Interactions
|
|
343
307
|
|
|
344
308
|
### Example 1: First Time Setup
|
|
345
|
-
|
|
346
309
|
User: "/sugar-run"
|
|
347
310
|
Response: Guides through validation → dry-run → single cycle → continuous mode, with safety checks at each step
|
|
348
311
|
|
|
349
312
|
### Example 2: Quick Execution
|
|
350
|
-
|
|
351
313
|
User: "/sugar-run --once"
|
|
352
314
|
Response: Executes one cycle, reports results, suggests monitoring commands
|
|
353
315
|
|
|
354
316
|
### Example 3: Production Deployment
|
|
355
|
-
|
|
356
317
|
User: "/sugar-run --validate"
|
|
357
318
|
Response: Validates config, then guides through background execution setup with proper monitoring
|
|
358
319
|
|
package/commands/sugar-status.md
CHANGED
|
@@ -15,13 +15,11 @@ You are a Sugar status reporting specialist. Your role is to provide clear, acti
|
|
|
15
15
|
When a user invokes `/sugar-status`, collect and present:
|
|
16
16
|
|
|
17
17
|
### 1. System Status
|
|
18
|
-
|
|
19
18
|
```bash
|
|
20
19
|
sugar status
|
|
21
20
|
```
|
|
22
21
|
|
|
23
22
|
This provides:
|
|
24
|
-
|
|
25
23
|
- Total tasks in the system
|
|
26
24
|
- Task breakdown by status (pending, active, completed, failed)
|
|
27
25
|
- Active execution status
|
|
@@ -29,20 +27,17 @@ This provides:
|
|
|
29
27
|
- Configuration summary
|
|
30
28
|
|
|
31
29
|
### 2. Recent Task Queue
|
|
32
|
-
|
|
33
30
|
```bash
|
|
34
31
|
sugar list --limit 10
|
|
35
32
|
```
|
|
36
33
|
|
|
37
34
|
Shows:
|
|
38
|
-
|
|
39
35
|
- Recent tasks with their status
|
|
40
36
|
- Task IDs for reference
|
|
41
37
|
- Execution times and agent assignments
|
|
42
38
|
- Priority indicators
|
|
43
39
|
|
|
44
40
|
### 3. Execution Metrics (if available)
|
|
45
|
-
|
|
46
41
|
- Average task completion time
|
|
47
42
|
- Success rate
|
|
48
43
|
- Active autonomous execution status
|
|
@@ -51,7 +46,6 @@ Shows:
|
|
|
51
46
|
## Presentation Format
|
|
52
47
|
|
|
53
48
|
### Standard Status View
|
|
54
|
-
|
|
55
49
|
Present information in a clear, scannable format:
|
|
56
50
|
|
|
57
51
|
```
|
|
@@ -77,7 +71,6 @@ Present information in a clear, scannable format:
|
|
|
77
71
|
```
|
|
78
72
|
|
|
79
73
|
### Detailed Status View
|
|
80
|
-
|
|
81
74
|
When `--detailed` is requested:
|
|
82
75
|
|
|
83
76
|
```bash
|
|
@@ -87,7 +80,6 @@ sugar list --status failed
|
|
|
87
80
|
```
|
|
88
81
|
|
|
89
82
|
Include:
|
|
90
|
-
|
|
91
83
|
- Configuration summary (loop interval, concurrency)
|
|
92
84
|
- Failed tasks with error details
|
|
93
85
|
- Active tasks with progress indicators
|
|
@@ -99,28 +91,24 @@ Include:
|
|
|
99
91
|
Based on the status, provide contextual recommendations:
|
|
100
92
|
|
|
101
93
|
### If No Tasks
|
|
102
|
-
|
|
103
94
|
- "No tasks in queue. Consider:"
|
|
104
95
|
- Creating manual tasks with `/sugar-task`
|
|
105
96
|
- Running code analysis with `/sugar-analyze`
|
|
106
97
|
- Checking error logs for issues
|
|
107
98
|
|
|
108
99
|
### If Many Pending Tasks
|
|
109
|
-
|
|
110
100
|
- "Large task backlog detected. Consider:"
|
|
111
101
|
- Starting autonomous mode: `sugar run`
|
|
112
102
|
- Reviewing priorities: `sugar list --priority 5`
|
|
113
103
|
- Adjusting concurrency in `.sugar/config.yaml`
|
|
114
104
|
|
|
115
105
|
### If Failed Tasks
|
|
116
|
-
|
|
117
106
|
- "Failed tasks detected. Recommend:"
|
|
118
107
|
- Review failures: `sugar view TASK_ID`
|
|
119
108
|
- Check logs: `.sugar/sugar.log`
|
|
120
109
|
- Retry or remove failed tasks
|
|
121
110
|
|
|
122
111
|
### If Autonomous Mode Stopped
|
|
123
|
-
|
|
124
112
|
- "Autonomous mode not running. To start:"
|
|
125
113
|
- Test with: `sugar run --dry-run --once`
|
|
126
114
|
- Start: `sugar run`
|
|
@@ -144,17 +132,14 @@ Assess system health and flag issues:
|
|
|
144
132
|
## Example Interactions
|
|
145
133
|
|
|
146
134
|
### Example 1: Healthy System
|
|
147
|
-
|
|
148
135
|
User: "/sugar-status"
|
|
149
136
|
Response: Shows balanced task distribution, recent completions, autonomous mode running
|
|
150
137
|
|
|
151
138
|
### Example 2: Needs Attention
|
|
152
|
-
|
|
153
139
|
User: "/sugar-status"
|
|
154
140
|
Response: Highlights 15 pending tasks, suggests starting autonomous mode, shows last execution was 2 hours ago
|
|
155
141
|
|
|
156
142
|
### Example 3: Troubleshooting
|
|
157
|
-
|
|
158
143
|
User: "/sugar-status --detailed"
|
|
159
144
|
Response: Deep dive into failed tasks, configuration review, log file locations, specific remediation steps
|
|
160
145
|
|
|
@@ -179,7 +164,6 @@ sugar view TASK_ID
|
|
|
179
164
|
## Follow-up Actions
|
|
180
165
|
|
|
181
166
|
After presenting status, suggest relevant next steps:
|
|
182
|
-
|
|
183
167
|
- View specific tasks: `/sugar-review`
|
|
184
168
|
- Create new tasks: `/sugar-task`
|
|
185
169
|
- Analyze codebase: `/sugar-analyze`
|
package/commands/sugar-task.md
CHANGED
|
@@ -15,22 +15,18 @@ You are a Sugar task creation specialist. Your role is to help users create comp
|
|
|
15
15
|
When a user invokes `/sugar-task`, guide them through creating a detailed task specification:
|
|
16
16
|
|
|
17
17
|
### 1. Basic Information (Required)
|
|
18
|
-
|
|
19
18
|
- **Title**: Clear, actionable task description
|
|
20
19
|
- **Type**: bug_fix, feature, test, refactor, documentation, or custom types
|
|
21
20
|
- **Priority**: 1 (low) to 5 (urgent)
|
|
22
21
|
|
|
23
22
|
### 2. Rich Context (Recommended for complex tasks)
|
|
24
|
-
|
|
25
23
|
- **Context**: Detailed description of what needs to be done and why
|
|
26
24
|
- **Business Context**: Strategic importance and business value
|
|
27
25
|
- **Technical Requirements**: Specific technical constraints or requirements
|
|
28
26
|
- **Success Criteria**: Measurable outcomes that define completion
|
|
29
27
|
|
|
30
28
|
### 3. Agent Assignments (Optional for multi-faceted work)
|
|
31
|
-
|
|
32
29
|
Suggest appropriate specialized agents:
|
|
33
|
-
|
|
34
30
|
- `ux_design_specialist`: UI/UX design and customer experience
|
|
35
31
|
- `backend_developer`: Server architecture and database design
|
|
36
32
|
- `frontend_developer`: User-facing applications and interfaces
|
|
@@ -49,13 +45,11 @@ Suggest appropriate specialized agents:
|
|
|
49
45
|
## Command Formats
|
|
50
46
|
|
|
51
47
|
### Simple Task
|
|
52
|
-
|
|
53
48
|
```bash
|
|
54
49
|
sugar add "Task title" --type TYPE --priority N
|
|
55
50
|
```
|
|
56
51
|
|
|
57
52
|
### Rich Task with JSON Context
|
|
58
|
-
|
|
59
53
|
```bash
|
|
60
54
|
sugar add "Task Title" --json --description '{
|
|
61
55
|
"priority": 1-5,
|
|
@@ -71,7 +65,6 @@ sugar add "Task Title" --json --description '{
|
|
|
71
65
|
```
|
|
72
66
|
|
|
73
67
|
### Urgent Task
|
|
74
|
-
|
|
75
68
|
```bash
|
|
76
69
|
sugar add "Critical task" --type bug_fix --urgent
|
|
77
70
|
```
|
|
@@ -86,17 +79,14 @@ sugar add "Critical task" --type bug_fix --urgent
|
|
|
86
79
|
## Examples
|
|
87
80
|
|
|
88
81
|
### Example 1: Simple Bug Fix
|
|
89
|
-
|
|
90
82
|
User: "/sugar-task Fix login timeout issue"
|
|
91
83
|
Response: Creates task with type=bug_fix, priority=4, suggests checking error logs
|
|
92
84
|
|
|
93
85
|
### Example 2: Complex Feature
|
|
94
|
-
|
|
95
86
|
User: "/sugar-task Build customer dashboard"
|
|
96
87
|
Response: Asks clarifying questions, builds rich JSON context with UX designer and frontend developer assignments, success criteria for responsive design
|
|
97
88
|
|
|
98
89
|
### Example 3: Urgent Security Issue
|
|
99
|
-
|
|
100
90
|
User: "/sugar-task Critical auth vulnerability --urgent"
|
|
101
91
|
Response: Creates high-priority task with type=bug_fix, assigns tech-lead agent, emphasizes immediate attention
|
|
102
92
|
|