aios-core 3.7.0 → 3.8.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 (47) hide show
  1. package/.aios-core/core/session/context-detector.js +3 -0
  2. package/.aios-core/core/session/context-loader.js +154 -0
  3. package/.aios-core/data/learned-patterns.yaml +3 -0
  4. package/.aios-core/data/workflow-patterns.yaml +347 -3
  5. package/.aios-core/development/agents/dev.md +6 -0
  6. package/.aios-core/development/agents/squad-creator.md +30 -0
  7. package/.aios-core/development/scripts/squad/squad-analyzer.js +638 -0
  8. package/.aios-core/development/scripts/squad/squad-extender.js +871 -0
  9. package/.aios-core/development/scripts/squad/squad-generator.js +107 -19
  10. package/.aios-core/development/scripts/squad/squad-migrator.js +3 -5
  11. package/.aios-core/development/scripts/squad/squad-validator.js +98 -0
  12. package/.aios-core/development/tasks/next.md +294 -0
  13. package/.aios-core/development/tasks/patterns.md +334 -0
  14. package/.aios-core/development/tasks/squad-creator-analyze.md +315 -0
  15. package/.aios-core/development/tasks/squad-creator-create.md +26 -3
  16. package/.aios-core/development/tasks/squad-creator-extend.md +411 -0
  17. package/.aios-core/development/tasks/squad-creator-validate.md +9 -1
  18. package/.aios-core/development/tasks/waves.md +205 -0
  19. package/.aios-core/development/templates/squad/agent-template.md +69 -0
  20. package/.aios-core/development/templates/squad/checklist-template.md +82 -0
  21. package/.aios-core/development/templates/squad/data-template.yaml +105 -0
  22. package/.aios-core/development/templates/squad/script-template.js +179 -0
  23. package/.aios-core/development/templates/squad/task-template.md +125 -0
  24. package/.aios-core/development/templates/squad/template-template.md +97 -0
  25. package/.aios-core/development/templates/squad/tool-template.js +103 -0
  26. package/.aios-core/development/templates/squad/workflow-template.yaml +108 -0
  27. package/.aios-core/install-manifest.yaml +89 -25
  28. package/.aios-core/quality/metrics-collector.js +27 -0
  29. package/.aios-core/scripts/session-context-loader.js +13 -254
  30. package/.aios-core/utils/aios-validator.js +25 -0
  31. package/.aios-core/workflow-intelligence/__tests__/confidence-scorer.test.js +334 -0
  32. package/.aios-core/workflow-intelligence/__tests__/integration.test.js +337 -0
  33. package/.aios-core/workflow-intelligence/__tests__/suggestion-engine.test.js +431 -0
  34. package/.aios-core/workflow-intelligence/__tests__/wave-analyzer.test.js +458 -0
  35. package/.aios-core/workflow-intelligence/__tests__/workflow-registry.test.js +302 -0
  36. package/.aios-core/workflow-intelligence/engine/confidence-scorer.js +305 -0
  37. package/.aios-core/workflow-intelligence/engine/output-formatter.js +285 -0
  38. package/.aios-core/workflow-intelligence/engine/suggestion-engine.js +603 -0
  39. package/.aios-core/workflow-intelligence/engine/wave-analyzer.js +676 -0
  40. package/.aios-core/workflow-intelligence/index.js +327 -0
  41. package/.aios-core/workflow-intelligence/learning/capture-hook.js +147 -0
  42. package/.aios-core/workflow-intelligence/learning/index.js +230 -0
  43. package/.aios-core/workflow-intelligence/learning/pattern-capture.js +340 -0
  44. package/.aios-core/workflow-intelligence/learning/pattern-store.js +498 -0
  45. package/.aios-core/workflow-intelligence/learning/pattern-validator.js +309 -0
  46. package/.aios-core/workflow-intelligence/registry/workflow-registry.js +358 -0
  47. package/package.json +1 -1
@@ -184,8 +184,11 @@ class ContextDetector {
184
184
  startTime: state.startTime || Date.now(),
185
185
  lastActivity: Date.now(),
186
186
  workflowActive: state.workflowActive || null,
187
+ workflowState: state.workflowState || null,
187
188
  lastCommands: state.lastCommands || [],
188
189
  agentSequence: state.agentSequence || [],
190
+ taskHistory: state.taskHistory || [],
191
+ currentStory: state.currentStory || null,
189
192
  };
190
193
 
191
194
  fs.writeFileSync(sessionFilePath, JSON.stringify(sessionData, null, 2), 'utf8');
@@ -259,6 +259,160 @@ class SessionContextLoader {
259
259
 
260
260
  return `\n${context.message}\n`;
261
261
  }
262
+
263
+ /**
264
+ * Hook called when a task completes
265
+ * Updates session state with task result and workflow transition
266
+ *
267
+ * @param {string} taskName - Name of the completed task
268
+ * @param {Object} result - Task execution result
269
+ * @param {boolean} result.success - Whether task succeeded
270
+ * @param {string} result.agentId - Agent that executed the task
271
+ * @param {string} result.storyPath - Associated story path (optional)
272
+ * @param {Object} result.metadata - Additional metadata (optional)
273
+ * @story WIS-3 - Task Completion Hook
274
+ */
275
+ onTaskComplete(taskName, result = {}) {
276
+ try {
277
+ const sessionState = this.loadSessionState();
278
+
279
+ // Initialize if new session
280
+ if (!sessionState.sessionId) {
281
+ sessionState.sessionId = `session-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`;
282
+ sessionState.startTime = Date.now();
283
+ }
284
+
285
+ // Update timestamp
286
+ sessionState.lastActivity = Date.now();
287
+
288
+ // Add command to history
289
+ if (!sessionState.lastCommands) {
290
+ sessionState.lastCommands = [];
291
+ }
292
+
293
+ const commandEntry = taskName.startsWith('*') ? taskName : `*${taskName}`;
294
+ sessionState.lastCommands.push(commandEntry);
295
+
296
+ // Keep last N commands
297
+ if (sessionState.lastCommands.length > MAX_COMMANDS_HISTORY) {
298
+ sessionState.lastCommands = sessionState.lastCommands.slice(-MAX_COMMANDS_HISTORY);
299
+ }
300
+
301
+ // Update task completion history
302
+ if (!sessionState.taskHistory) {
303
+ sessionState.taskHistory = [];
304
+ }
305
+
306
+ sessionState.taskHistory.push({
307
+ task: taskName,
308
+ completedAt: Date.now(),
309
+ success: result.success !== false,
310
+ agentId: result.agentId || null,
311
+ storyPath: result.storyPath || null,
312
+ });
313
+
314
+ // Keep last 20 task completions
315
+ if (sessionState.taskHistory.length > 20) {
316
+ sessionState.taskHistory = sessionState.taskHistory.slice(-20);
317
+ }
318
+
319
+ // Update current story if provided
320
+ if (result.storyPath) {
321
+ sessionState.currentStory = result.storyPath;
322
+ }
323
+
324
+ // Infer workflow state transition
325
+ const workflowState = this._inferWorkflowState(taskName, result);
326
+ if (workflowState) {
327
+ sessionState.workflowActive = workflowState.workflow;
328
+ sessionState.workflowState = workflowState.state;
329
+ }
330
+
331
+ // Save updated state
332
+ this.detector.updateSessionState(sessionState, this.sessionStatePath);
333
+
334
+ return {
335
+ success: true,
336
+ sessionId: sessionState.sessionId,
337
+ workflowState: sessionState.workflowState,
338
+ };
339
+ } catch (error) {
340
+ console.warn('[SessionContext] Failed to record task completion:', error.message);
341
+ return { success: false, error: error.message };
342
+ }
343
+ }
344
+
345
+ /**
346
+ * Infer workflow state from completed task
347
+ *
348
+ * @param {string} taskName - Completed task name
349
+ * @param {Object} _result - Task result (unused, reserved for future use)
350
+ * @returns {Object|null} Workflow state info
351
+ * @private
352
+ */
353
+ _inferWorkflowState(taskName, _result) {
354
+ const normalizedTask = taskName.toLowerCase().replace(/^\*/, '');
355
+
356
+ // Map task completions to workflow states
357
+ const stateMap = {
358
+ 'validate-story-draft': { workflow: 'story_development', state: 'validated' },
359
+ 'validate-next-story': { workflow: 'story_development', state: 'validated' },
360
+ 'develop': { workflow: 'story_development', state: 'in_development' },
361
+ 'develop-yolo': { workflow: 'story_development', state: 'in_development' },
362
+ 'develop-interactive': { workflow: 'story_development', state: 'in_development' },
363
+ 'review-qa': { workflow: 'story_development', state: 'qa_reviewed' },
364
+ 'apply-qa-fixes': { workflow: 'story_development', state: 'qa_reviewed' },
365
+ 'pre-push-quality-gate': { workflow: 'git_workflow', state: 'staged' },
366
+ 'create-epic': { workflow: 'epic_creation', state: 'epic_drafted' },
367
+ 'create-story': { workflow: 'epic_creation', state: 'stories_created' },
368
+ 'create-next-story': { workflow: 'epic_creation', state: 'stories_created' },
369
+ 'backlog-review': { workflow: 'backlog_management', state: 'reviewed' },
370
+ 'backlog-prioritize': { workflow: 'backlog_management', state: 'prioritized' },
371
+ 'analyze-impact': { workflow: 'architecture_review', state: 'analyzed' },
372
+ 'create-doc': { workflow: 'documentation_workflow', state: 'drafted' },
373
+ 'db-domain-modeling': { workflow: 'database_workflow', state: 'designed' },
374
+ 'db-apply-migration': { workflow: 'database_workflow', state: 'migrated' },
375
+ };
376
+
377
+ return stateMap[normalizedTask] || null;
378
+ }
379
+
380
+ /**
381
+ * Get current workflow state from session
382
+ *
383
+ * @returns {Object|null} Current workflow state
384
+ */
385
+ getWorkflowState() {
386
+ try {
387
+ const sessionState = this.loadSessionState();
388
+ if (sessionState.workflowActive) {
389
+ return {
390
+ workflow: sessionState.workflowActive,
391
+ state: sessionState.workflowState || null,
392
+ lastActivity: sessionState.lastActivity,
393
+ };
394
+ }
395
+ } catch (_error) {
396
+ // Ignore
397
+ }
398
+ return null;
399
+ }
400
+
401
+ /**
402
+ * Get task completion history
403
+ *
404
+ * @param {number} limit - Maximum number of entries to return
405
+ * @returns {Object[]} Task history entries
406
+ */
407
+ getTaskHistory(limit = 10) {
408
+ try {
409
+ const sessionState = this.loadSessionState();
410
+ const history = sessionState.taskHistory || [];
411
+ return history.slice(-limit);
412
+ } catch (_error) {
413
+ return [];
414
+ }
415
+ }
262
416
  }
263
417
 
264
418
  // CLI Interface
@@ -0,0 +1,3 @@
1
+ version: "1.0"
2
+ lastUpdated: "2025-12-26T00:00:00.000Z"
3
+ patterns: []
@@ -41,38 +41,48 @@ workflows:
41
41
  # Workflow transitions (Story 6.1.2.5 - Workflow Navigation)
42
42
  transitions:
43
43
  validated:
44
- trigger: "validate-story-draft completed successfully"
44
+ trigger: "validate-story-draft completed"
45
+ confidence: 0.90
45
46
  greeting_message: "Story validated! Ready to implement."
46
47
  next_steps:
47
48
  - command: develop-yolo
48
49
  args_template: "${story_path}"
49
50
  description: "Autonomous YOLO mode (no interruptions)"
51
+ priority: 1
50
52
  - command: develop-interactive
51
53
  args_template: "${story_path}"
52
54
  description: "Interactive mode with checkpoints (default)"
55
+ priority: 2
53
56
  - command: develop-preflight
54
57
  args_template: "${story_path}"
55
58
  description: "Plan everything upfront, then execute"
59
+ priority: 3
56
60
  in_development:
57
- trigger: "develop completed successfully"
61
+ trigger: "develop completed"
62
+ confidence: 0.85
58
63
  greeting_message: "Development complete! Ready for QA review."
59
64
  next_steps:
60
65
  - command: review-qa
61
66
  args_template: "${story_path}"
62
67
  description: "Run QA review and tests"
68
+ priority: 1
63
69
  - command: run-tests
64
70
  args_template: ""
65
71
  description: "Execute test suite manually"
72
+ priority: 2
66
73
  qa_reviewed:
67
- trigger: "review-qa completed successfully"
74
+ trigger: "review-qa completed"
75
+ confidence: 0.80
68
76
  greeting_message: "QA review complete!"
69
77
  next_steps:
70
78
  - command: apply-qa-fixes
71
79
  args_template: ""
72
80
  description: "Apply QA feedback and fixes"
81
+ priority: 1
73
82
  - command: pre-push-quality-gate
74
83
  args_template: ""
75
84
  description: "Run final quality checks before push"
85
+ priority: 2
76
86
 
77
87
  # Epic Creation Workflow
78
88
  epic_creation:
@@ -95,6 +105,43 @@ workflows:
95
105
  - "Epic documented"
96
106
  - "Initial stories created"
97
107
  - "Stories validated"
108
+ transitions:
109
+ epic_drafted:
110
+ trigger: "create-epic completed"
111
+ confidence: 0.90
112
+ next_steps:
113
+ - command: analyze-epic
114
+ args_template: "${epic_path}"
115
+ description: "Analyze epic for completeness"
116
+ priority: 1
117
+ - command: create-story
118
+ args_template: "${epic_path}"
119
+ description: "Create first story from epic"
120
+ priority: 2
121
+ stories_created:
122
+ trigger: "create-story completed"
123
+ confidence: 0.85
124
+ next_steps:
125
+ - command: validate-story-draft
126
+ args_template: "${story_path}"
127
+ description: "Validate story structure"
128
+ priority: 1
129
+ - command: create-next-story
130
+ args_template: "${epic_path}"
131
+ description: "Create additional stories"
132
+ priority: 2
133
+ validated:
134
+ trigger: "validate-story-draft completed"
135
+ confidence: 0.80
136
+ next_steps:
137
+ - command: analyze-impact
138
+ args_template: "${story_path}"
139
+ description: "Analyze technical impact"
140
+ priority: 1
141
+ - command: develop
142
+ args_template: "${story_path}"
143
+ description: "Begin story development"
144
+ priority: 2
98
145
 
99
146
  # Backlog Management Workflow
100
147
  backlog_management:
@@ -116,6 +163,43 @@ workflows:
116
163
  success_indicators:
117
164
  - "Backlog items prioritized"
118
165
  - "Sprint planned"
166
+ transitions:
167
+ reviewed:
168
+ trigger: "backlog-review completed"
169
+ confidence: 0.85
170
+ next_steps:
171
+ - command: backlog-prioritize
172
+ args_template: ""
173
+ description: "Prioritize reviewed items"
174
+ priority: 1
175
+ - command: backlog-debt
176
+ args_template: ""
177
+ description: "Review technical debt items"
178
+ priority: 2
179
+ prioritized:
180
+ trigger: "backlog-prioritize completed"
181
+ confidence: 0.90
182
+ next_steps:
183
+ - command: backlog-schedule
184
+ args_template: ""
185
+ description: "Schedule prioritized items to sprints"
186
+ priority: 1
187
+ - command: backlog-summary
188
+ args_template: ""
189
+ description: "Generate backlog summary report"
190
+ priority: 2
191
+ scheduled:
192
+ trigger: "backlog-schedule completed"
193
+ confidence: 0.80
194
+ next_steps:
195
+ - command: backlog-summary
196
+ args_template: ""
197
+ description: "Generate sprint planning summary"
198
+ priority: 1
199
+ - command: create-story
200
+ args_template: ""
201
+ description: "Create stories for scheduled items"
202
+ priority: 2
119
203
 
120
204
  # Architecture Review Workflow
121
205
  architecture_review:
@@ -138,6 +222,43 @@ workflows:
138
222
  - "Architecture documented"
139
223
  - "Decision reviewed"
140
224
  - "Implementation plan approved"
225
+ transitions:
226
+ analyzed:
227
+ trigger: "analyze-impact completed"
228
+ confidence: 0.85
229
+ next_steps:
230
+ - command: create-doc
231
+ args_template: "adr ${feature_name}"
232
+ description: "Create Architecture Decision Record"
233
+ priority: 1
234
+ - command: review-proposal
235
+ args_template: "${doc_path}"
236
+ description: "Review architectural proposal"
237
+ priority: 2
238
+ documented:
239
+ trigger: "create-doc completed"
240
+ confidence: 0.90
241
+ next_steps:
242
+ - command: review-story
243
+ args_template: "${story_path}"
244
+ description: "Review story for architectural alignment"
245
+ priority: 1
246
+ - command: shard-doc
247
+ args_template: "${doc_path}"
248
+ description: "Split large documentation into sections"
249
+ priority: 2
250
+ approved:
251
+ trigger: "review-proposal completed"
252
+ confidence: 0.80
253
+ next_steps:
254
+ - command: create-story
255
+ args_template: ""
256
+ description: "Create implementation stories"
257
+ priority: 1
258
+ - command: develop
259
+ args_template: "${story_path}"
260
+ description: "Begin implementation"
261
+ priority: 2
141
262
 
142
263
  # Git Workflow (DevOps)
143
264
  git_workflow:
@@ -156,6 +277,43 @@ workflows:
156
277
  - "Changes committed"
157
278
  - "PR created"
158
279
  - "Code merged"
280
+ transitions:
281
+ staged:
282
+ trigger: "git add completed"
283
+ confidence: 0.90
284
+ next_steps:
285
+ - command: pre-push-quality-gate
286
+ args_template: ""
287
+ description: "Run quality checks before commit"
288
+ priority: 1
289
+ - command: git-commit
290
+ args_template: ""
291
+ description: "Commit staged changes"
292
+ priority: 2
293
+ committed:
294
+ trigger: "git commit completed"
295
+ confidence: 0.85
296
+ next_steps:
297
+ - command: github-pr-automation
298
+ args_template: ""
299
+ description: "Create pull request"
300
+ priority: 1
301
+ - command: git-push
302
+ args_template: ""
303
+ description: "Push to remote"
304
+ priority: 2
305
+ pushed:
306
+ trigger: "git push completed"
307
+ confidence: 0.80
308
+ next_steps:
309
+ - command: github-pr-automation
310
+ args_template: ""
311
+ description: "Create or update PR"
312
+ priority: 1
313
+ - command: repository-cleanup
314
+ args_template: ""
315
+ description: "Clean up merged branches"
316
+ priority: 2
159
317
 
160
318
  # Database Development Workflow
161
319
  database_workflow:
@@ -179,6 +337,43 @@ workflows:
179
337
  - "Schema designed"
180
338
  - "Migrations tested"
181
339
  - "RLS policies validated"
340
+ transitions:
341
+ designed:
342
+ trigger: "db-domain-modeling completed"
343
+ confidence: 0.90
344
+ next_steps:
345
+ - command: db-schema-audit
346
+ args_template: ""
347
+ description: "Audit schema for best practices"
348
+ priority: 1
349
+ - command: db-dry-run
350
+ args_template: ""
351
+ description: "Test migration in dry-run mode"
352
+ priority: 2
353
+ migrated:
354
+ trigger: "db-apply-migration completed"
355
+ confidence: 0.85
356
+ next_steps:
357
+ - command: db-smoke-test
358
+ args_template: ""
359
+ description: "Run smoke tests on migrated schema"
360
+ priority: 1
361
+ - command: db-rls-audit
362
+ args_template: ""
363
+ description: "Audit Row Level Security policies"
364
+ priority: 2
365
+ validated:
366
+ trigger: "db-smoke-test completed"
367
+ confidence: 0.80
368
+ next_steps:
369
+ - command: db-verify-order
370
+ args_template: ""
371
+ description: "Verify migration order consistency"
372
+ priority: 1
373
+ - command: develop
374
+ args_template: "${story_path}"
375
+ description: "Continue with application development"
376
+ priority: 2
182
377
 
183
378
  # Code Quality Improvement Workflow
184
379
  code_quality_workflow:
@@ -199,6 +394,43 @@ workflows:
199
394
  - "Code refactored"
200
395
  - "Tests added"
201
396
  - "Quality metrics improved"
397
+ transitions:
398
+ assessed:
399
+ trigger: "nfr-assess completed"
400
+ confidence: 0.85
401
+ next_steps:
402
+ - command: suggest-refactoring
403
+ args_template: "${file_path}"
404
+ description: "Get refactoring suggestions"
405
+ priority: 1
406
+ - command: security-scan
407
+ args_template: ""
408
+ description: "Run security scan"
409
+ priority: 2
410
+ refactored:
411
+ trigger: "improve-code-quality completed"
412
+ confidence: 0.90
413
+ next_steps:
414
+ - command: generate-tests
415
+ args_template: "${file_path}"
416
+ description: "Generate tests for refactored code"
417
+ priority: 1
418
+ - command: optimize-performance
419
+ args_template: ""
420
+ description: "Optimize performance"
421
+ priority: 2
422
+ tested:
423
+ trigger: "generate-tests completed"
424
+ confidence: 0.80
425
+ next_steps:
426
+ - command: nfr-assess
427
+ args_template: ""
428
+ description: "Re-assess NFR compliance"
429
+ priority: 1
430
+ - command: pre-push-quality-gate
431
+ args_template: ""
432
+ description: "Run quality gate before push"
433
+ priority: 2
202
434
 
203
435
  # Documentation Workflow
204
436
  documentation_workflow:
@@ -220,6 +452,43 @@ workflows:
220
452
  - "Documentation created"
221
453
  - "Documentation synchronized"
222
454
  - "Documentation indexed"
455
+ transitions:
456
+ drafted:
457
+ trigger: "create-doc completed"
458
+ confidence: 0.85
459
+ next_steps:
460
+ - command: shard-doc
461
+ args_template: "${doc_path}"
462
+ description: "Split large documentation"
463
+ priority: 1
464
+ - command: index-docs
465
+ args_template: ""
466
+ description: "Index documentation for search"
467
+ priority: 2
468
+ reviewed:
469
+ trigger: "review-doc completed"
470
+ confidence: 0.90
471
+ next_steps:
472
+ - command: sync-documentation
473
+ args_template: ""
474
+ description: "Synchronize documentation"
475
+ priority: 1
476
+ - command: generate-documentation
477
+ args_template: ""
478
+ description: "Generate API documentation"
479
+ priority: 2
480
+ published:
481
+ trigger: "sync-documentation completed"
482
+ confidence: 0.80
483
+ next_steps:
484
+ - command: index-docs
485
+ args_template: ""
486
+ description: "Re-index documentation"
487
+ priority: 1
488
+ - command: document-project
489
+ args_template: ""
490
+ description: "Update project overview"
491
+ priority: 2
223
492
 
224
493
  # UX Design Workflow
225
494
  ux_workflow:
@@ -240,6 +509,43 @@ workflows:
240
509
  - "Wireframes created"
241
510
  - "Components implemented"
242
511
  - "UX validated"
512
+ transitions:
513
+ designed:
514
+ trigger: "ux-create-wireframe completed"
515
+ confidence: 0.90
516
+ next_steps:
517
+ - command: ux-user-research
518
+ args_template: ""
519
+ description: "Validate design with user research"
520
+ priority: 1
521
+ - command: ux-ds-scan-artifact
522
+ args_template: "${wireframe_path}"
523
+ description: "Scan for design system compliance"
524
+ priority: 2
525
+ implemented:
526
+ trigger: "build-component completed"
527
+ confidence: 0.85
528
+ next_steps:
529
+ - command: audit-codebase
530
+ args_template: ""
531
+ description: "Audit component implementation"
532
+ priority: 1
533
+ - command: ux-ds-scan-artifact
534
+ args_template: "${component_path}"
535
+ description: "Validate design system compliance"
536
+ priority: 2
537
+ validated:
538
+ trigger: "ux-user-research completed"
539
+ confidence: 0.80
540
+ next_steps:
541
+ - command: build-component
542
+ args_template: ""
543
+ description: "Implement validated designs"
544
+ priority: 1
545
+ - command: develop
546
+ args_template: "${story_path}"
547
+ description: "Continue with development"
548
+ priority: 2
243
549
 
244
550
  # Brainstorming and Research Workflow
245
551
  research_workflow:
@@ -259,9 +565,47 @@ workflows:
259
565
  - "Research completed"
260
566
  - "Ideas documented"
261
567
  - "Action items created"
568
+ transitions:
569
+ researched:
570
+ trigger: "create-deep-research-prompt completed"
571
+ confidence: 0.85
572
+ next_steps:
573
+ - command: analyst-facilitate-brainstorming
574
+ args_template: "${topic}"
575
+ description: "Facilitate brainstorming session"
576
+ priority: 1
577
+ - command: kb-mode-interaction
578
+ args_template: ""
579
+ description: "Interact with knowledge base"
580
+ priority: 2
581
+ analyzed:
582
+ trigger: "analyst-facilitate-brainstorming completed"
583
+ confidence: 0.90
584
+ next_steps:
585
+ - command: create-doc
586
+ args_template: "research-findings"
587
+ description: "Document research findings"
588
+ priority: 1
589
+ - command: advanced-elicitation
590
+ args_template: ""
591
+ description: "Deep dive on specific topics"
592
+ priority: 2
593
+ documented:
594
+ trigger: "create-doc completed"
595
+ confidence: 0.80
596
+ next_steps:
597
+ - command: create-epic
598
+ args_template: ""
599
+ description: "Create epic from research"
600
+ priority: 1
601
+ - command: create-story
602
+ args_template: ""
603
+ description: "Create actionable stories"
604
+ priority: 2
262
605
 
263
606
  # Validation Notes:
264
607
  # - Patterns cross-referenced with Epic 6.1 workflow analysis
265
608
  # - Commands verified against actual project usage in .aios-core/agents/*.md
266
609
  # - Agent sequences match actual workflow patterns from recent stories
267
610
  # - Threshold of 2 ensures workflow detection is accurate but not overly sensitive
611
+ # - All 10 workflows now have transition definitions (Story WIS-2)
@@ -110,6 +110,11 @@ commands:
110
110
  visibility: [full, quick]
111
111
  description: "Create new service from Handlebars template (api-integration, utility, agent-tool)"
112
112
 
113
+ # Workflow Intelligence (WIS-4)
114
+ - name: waves
115
+ visibility: [full, quick]
116
+ description: "Analyze workflow for parallel execution opportunities (--visual for ASCII art)"
117
+
113
118
  # Quality & Debt
114
119
  - name: apply-qa-fixes
115
120
  visibility: [quick, key]
@@ -166,6 +171,7 @@ dependencies:
166
171
  - dev-suggest-refactoring.md
167
172
  - sync-documentation.md
168
173
  - validate-next-story.md
174
+ - waves.md # WIS-4: Wave analysis for parallel execution
169
175
  tools:
170
176
  - coderabbit # Pre-commit code quality review, catches issues before commit
171
177
  - git # Local operations: add, commit, status, diff, log (NO PUSH)