@appiq/flutter-workflow 1.4.3 → 2.1.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.
- package/CHANGELOG.md +160 -0
- package/README.md +69 -9
- package/agents/claude/cubit-agent.md +164 -2
- package/agents/claude/data-agent.md +163 -2
- package/agents/claude/domain-agent.md +164 -2
- package/agents/claude/feature-manager.md +361 -22
- package/agents/claude/integration-validator.md +1 -0
- package/agents/claude/po-agent.md +1 -0
- package/agents/claude/security-agent.md +163 -2
- package/agents/claude/test-agent.md +165 -2
- package/agents/claude/ui-agent.md +159 -8
- package/config/agent-coordination.json +335 -0
- package/config/independent-mode-template.md +202 -0
- package/lib/independent-agent-tracker.js +565 -0
- package/lib/setup-independent-mode.js +562 -0
- package/lib/state-manager.js +526 -0
- package/package.json +4 -2
- package/templates/enhanced-task-breakdown-template.md +415 -0
- package/templates/enhanced-task-history-template.md +605 -0
- package/templates/feature-template.md +116 -30
- package/templates/additional_cubit_req.md +0 -357
- package/templates/additional_data_req.md +0 -480
- package/templates/additional_domain_req.md +0 -431
- package/templates/additional_ui_req.md +0 -205
- package/templates/feature-history-template.md +0 -280
- package/templates/platform-adaptive-widget-template.dart +0 -407
- package/templates/pretty-ui-examples.md +0 -597
- package/templates/task-breakdown-template.md +0 -265
- package/templates/task-history-template.md +0 -276
|
@@ -0,0 +1,335 @@
|
|
|
1
|
+
{
|
|
2
|
+
"agentOrchestration": {
|
|
3
|
+
"executionStrategy": "intelligent-parallel",
|
|
4
|
+
"maxParallelAgents": 3,
|
|
5
|
+
"coordinationProtocol": "event-driven",
|
|
6
|
+
"qualityGateEnforcement": true,
|
|
7
|
+
"crashRecoveryEnabled": true,
|
|
8
|
+
"statePreservationInterval": 300
|
|
9
|
+
},
|
|
10
|
+
"agentDefinitions": {
|
|
11
|
+
"po-agent": {
|
|
12
|
+
"name": "PO Agent (Phoenix)",
|
|
13
|
+
"role": "requirements-analysis",
|
|
14
|
+
"priority": 1,
|
|
15
|
+
"dependencies": [],
|
|
16
|
+
"parallelCompatible": false,
|
|
17
|
+
"avgDuration": "4-6 hours",
|
|
18
|
+
"qualityGates": ["requirements-completeness", "stakeholder-approval"],
|
|
19
|
+
"handoffRequirements": ["validated-requirements", "user-stories", "acceptance-criteria"]
|
|
20
|
+
},
|
|
21
|
+
"ui-agent": {
|
|
22
|
+
"name": "UI Agent (Aria)",
|
|
23
|
+
"role": "presentation-layer",
|
|
24
|
+
"priority": 2,
|
|
25
|
+
"dependencies": ["po-agent"],
|
|
26
|
+
"parallelCompatible": true,
|
|
27
|
+
"parallelGroup": "ui-domain",
|
|
28
|
+
"avgDuration": "8-12 hours",
|
|
29
|
+
"qualityGates": ["responsive-design", "accessibility", "performance"],
|
|
30
|
+
"handoffRequirements": ["ui-components", "responsive-layouts", "accessibility-validation"]
|
|
31
|
+
},
|
|
32
|
+
"domain-agent": {
|
|
33
|
+
"name": "Domain Agent (Atlas)",
|
|
34
|
+
"role": "business-logic",
|
|
35
|
+
"priority": 2,
|
|
36
|
+
"dependencies": ["po-agent"],
|
|
37
|
+
"parallelCompatible": true,
|
|
38
|
+
"parallelGroup": "ui-domain",
|
|
39
|
+
"avgDuration": "6-10 hours",
|
|
40
|
+
"qualityGates": ["clean-architecture", "business-rules", "domain-isolation"],
|
|
41
|
+
"handoffRequirements": ["domain-entities", "use-cases", "repository-interfaces"]
|
|
42
|
+
},
|
|
43
|
+
"cubit-agent": {
|
|
44
|
+
"name": "Cubit Agent (Sage)",
|
|
45
|
+
"role": "state-management",
|
|
46
|
+
"priority": 3,
|
|
47
|
+
"dependencies": ["ui-agent", "domain-agent"],
|
|
48
|
+
"parallelCompatible": false,
|
|
49
|
+
"avgDuration": "6-8 hours",
|
|
50
|
+
"qualityGates": ["state-architecture", "error-handling", "performance"],
|
|
51
|
+
"handoffRequirements": ["cubit-implementations", "state-persistence", "error-handling"]
|
|
52
|
+
},
|
|
53
|
+
"data-agent": {
|
|
54
|
+
"name": "Data Agent (Nova)",
|
|
55
|
+
"role": "data-layer",
|
|
56
|
+
"priority": 4,
|
|
57
|
+
"dependencies": ["cubit-agent"],
|
|
58
|
+
"parallelCompatible": false,
|
|
59
|
+
"avgDuration": "8-12 hours",
|
|
60
|
+
"qualityGates": ["repository-implementation", "api-integration", "offline-support"],
|
|
61
|
+
"handoffRequirements": ["repository-implementations", "api-integration", "caching-strategy"]
|
|
62
|
+
},
|
|
63
|
+
"security-agent": {
|
|
64
|
+
"name": "Security Agent (Guardian)",
|
|
65
|
+
"role": "security-compliance",
|
|
66
|
+
"priority": 5,
|
|
67
|
+
"dependencies": ["data-agent"],
|
|
68
|
+
"parallelCompatible": true,
|
|
69
|
+
"parallelGroup": "security-test",
|
|
70
|
+
"avgDuration": "4-6 hours",
|
|
71
|
+
"qualityGates": ["authentication", "coppa-compliance", "encryption", "vulnerability-assessment"],
|
|
72
|
+
"handoffRequirements": ["security-implementation", "coppa-validation", "audit-logs"]
|
|
73
|
+
},
|
|
74
|
+
"test-agent": {
|
|
75
|
+
"name": "Test Agent (Trinity)",
|
|
76
|
+
"role": "quality-assurance",
|
|
77
|
+
"priority": 5,
|
|
78
|
+
"dependencies": ["data-agent"],
|
|
79
|
+
"parallelCompatible": true,
|
|
80
|
+
"parallelGroup": "security-test",
|
|
81
|
+
"avgDuration": "10-15 hours",
|
|
82
|
+
"qualityGates": ["test-coverage", "performance-testing", "security-testing"],
|
|
83
|
+
"handoffRequirements": ["test-suite", "coverage-report", "performance-benchmarks"]
|
|
84
|
+
},
|
|
85
|
+
"integration-validator": {
|
|
86
|
+
"name": "Integration Validator",
|
|
87
|
+
"role": "system-integration",
|
|
88
|
+
"priority": 6,
|
|
89
|
+
"dependencies": ["security-agent", "test-agent"],
|
|
90
|
+
"parallelCompatible": false,
|
|
91
|
+
"avgDuration": "4-6 hours",
|
|
92
|
+
"qualityGates": ["system-integration", "deployment-readiness"],
|
|
93
|
+
"handoffRequirements": ["integration-validation", "deployment-package", "quality-certification"]
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"parallelExecutionGroups": {
|
|
97
|
+
"ui-domain": {
|
|
98
|
+
"agents": ["ui-agent", "domain-agent"],
|
|
99
|
+
"description": "UI and Domain agents can work in parallel after PO completion",
|
|
100
|
+
"coordinationPoints": ["requirements-handoff", "architecture-alignment", "quality-validation"],
|
|
101
|
+
"sharedResources": ["feature-requirements", "architectural-decisions"],
|
|
102
|
+
"conflictResolution": "domain-priority"
|
|
103
|
+
},
|
|
104
|
+
"security-test": {
|
|
105
|
+
"agents": ["security-agent", "test-agent"],
|
|
106
|
+
"description": "Security and Test agents can work in parallel after data layer completion",
|
|
107
|
+
"coordinationPoints": ["data-layer-handoff", "security-test-alignment", "final-validation"],
|
|
108
|
+
"sharedResources": ["implementation-artifacts", "quality-metrics"],
|
|
109
|
+
"conflictResolution": "security-priority"
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"qualityGateDefinitions": {
|
|
113
|
+
"requirements-completeness": {
|
|
114
|
+
"description": "All requirements documented and validated",
|
|
115
|
+
"criteria": ["user-stories-complete", "acceptance-criteria-defined", "technical-constraints-identified"],
|
|
116
|
+
"validator": "po-agent",
|
|
117
|
+
"automated": false,
|
|
118
|
+
"blockingLevel": "critical"
|
|
119
|
+
},
|
|
120
|
+
"stakeholder-approval": {
|
|
121
|
+
"description": "Stakeholder sign-off obtained",
|
|
122
|
+
"criteria": ["requirements-approved", "scope-confirmed", "timeline-accepted"],
|
|
123
|
+
"validator": "po-agent",
|
|
124
|
+
"automated": false,
|
|
125
|
+
"blockingLevel": "critical"
|
|
126
|
+
},
|
|
127
|
+
"responsive-design": {
|
|
128
|
+
"description": "UI works on all target screen sizes",
|
|
129
|
+
"criteria": ["mobile-responsive", "tablet-responsive", "desktop-responsive"],
|
|
130
|
+
"validator": "ui-agent",
|
|
131
|
+
"automated": true,
|
|
132
|
+
"blockingLevel": "major"
|
|
133
|
+
},
|
|
134
|
+
"accessibility": {
|
|
135
|
+
"description": "WCAG 2.1 AA compliance achieved",
|
|
136
|
+
"criteria": ["screen-reader-support", "keyboard-navigation", "color-contrast"],
|
|
137
|
+
"validator": "ui-agent",
|
|
138
|
+
"automated": true,
|
|
139
|
+
"blockingLevel": "major"
|
|
140
|
+
},
|
|
141
|
+
"clean-architecture": {
|
|
142
|
+
"description": "Clean Architecture principles followed",
|
|
143
|
+
"criteria": ["dependency-inversion", "single-responsibility", "domain-isolation"],
|
|
144
|
+
"validator": "domain-agent",
|
|
145
|
+
"automated": true,
|
|
146
|
+
"blockingLevel": "critical"
|
|
147
|
+
},
|
|
148
|
+
"state-architecture": {
|
|
149
|
+
"description": "State management properly implemented",
|
|
150
|
+
"criteria": ["cubit-pattern-compliance", "state-isolation", "event-handling"],
|
|
151
|
+
"validator": "cubit-agent",
|
|
152
|
+
"automated": true,
|
|
153
|
+
"blockingLevel": "major"
|
|
154
|
+
},
|
|
155
|
+
"repository-implementation": {
|
|
156
|
+
"description": "Repository pattern correctly implemented",
|
|
157
|
+
"criteria": ["interface-compliance", "error-handling", "caching-strategy"],
|
|
158
|
+
"validator": "data-agent",
|
|
159
|
+
"automated": true,
|
|
160
|
+
"blockingLevel": "major"
|
|
161
|
+
},
|
|
162
|
+
"coppa-compliance": {
|
|
163
|
+
"description": "COPPA compliance requirements met",
|
|
164
|
+
"criteria": ["child-privacy-protection", "data-minimization", "parental-consent"],
|
|
165
|
+
"validator": "security-agent",
|
|
166
|
+
"automated": false,
|
|
167
|
+
"blockingLevel": "critical"
|
|
168
|
+
},
|
|
169
|
+
"test-coverage": {
|
|
170
|
+
"description": "Minimum 90% test coverage achieved",
|
|
171
|
+
"criteria": ["unit-test-coverage", "widget-test-coverage", "integration-test-coverage"],
|
|
172
|
+
"validator": "test-agent",
|
|
173
|
+
"automated": true,
|
|
174
|
+
"blockingLevel": "major"
|
|
175
|
+
},
|
|
176
|
+
"system-integration": {
|
|
177
|
+
"description": "All components integrate properly",
|
|
178
|
+
"criteria": ["dependency-injection", "provider-hierarchy", "initialization"],
|
|
179
|
+
"validator": "integration-validator",
|
|
180
|
+
"automated": true,
|
|
181
|
+
"blockingLevel": "critical"
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
"workflowStates": {
|
|
185
|
+
"initialized": {
|
|
186
|
+
"description": "Feature initialized and ready for development",
|
|
187
|
+
"allowedTransitions": ["planning"],
|
|
188
|
+
"requiredActions": ["feature-analysis", "task-breakdown"]
|
|
189
|
+
},
|
|
190
|
+
"planning": {
|
|
191
|
+
"description": "Requirements analysis in progress",
|
|
192
|
+
"allowedTransitions": ["development"],
|
|
193
|
+
"requiredActions": ["po-agent-completion", "requirements-quality-gate"]
|
|
194
|
+
},
|
|
195
|
+
"development": {
|
|
196
|
+
"description": "Feature implementation in progress",
|
|
197
|
+
"allowedTransitions": ["integration", "blocked"],
|
|
198
|
+
"requiredActions": ["ui-completion", "domain-completion", "cubit-completion", "data-completion"]
|
|
199
|
+
},
|
|
200
|
+
"integration": {
|
|
201
|
+
"description": "Security, testing, and integration in progress",
|
|
202
|
+
"allowedTransitions": ["completed", "blocked"],
|
|
203
|
+
"requiredActions": ["security-completion", "test-completion", "integration-validation"]
|
|
204
|
+
},
|
|
205
|
+
"completed": {
|
|
206
|
+
"description": "Feature development completed and ready for deployment",
|
|
207
|
+
"allowedTransitions": ["deployed"],
|
|
208
|
+
"requiredActions": ["all-quality-gates-passed", "deployment-package-ready"]
|
|
209
|
+
},
|
|
210
|
+
"blocked": {
|
|
211
|
+
"description": "Development blocked by issues or dependencies",
|
|
212
|
+
"allowedTransitions": ["planning", "development", "integration"],
|
|
213
|
+
"requiredActions": ["blocker-resolution", "state-restoration"]
|
|
214
|
+
},
|
|
215
|
+
"deployed": {
|
|
216
|
+
"description": "Feature successfully deployed to production",
|
|
217
|
+
"allowedTransitions": [],
|
|
218
|
+
"requiredActions": ["deployment-verification", "monitoring-setup"]
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
"coordinationProtocols": {
|
|
222
|
+
"agent-handoff": {
|
|
223
|
+
"preHandoffChecks": [
|
|
224
|
+
"validate-current-agent-completion",
|
|
225
|
+
"run-quality-gates",
|
|
226
|
+
"prepare-handoff-materials",
|
|
227
|
+
"update-feature-state"
|
|
228
|
+
],
|
|
229
|
+
"handoffActions": [
|
|
230
|
+
"transfer-context",
|
|
231
|
+
"activate-next-agent",
|
|
232
|
+
"log-handoff-event",
|
|
233
|
+
"start-progress-monitoring"
|
|
234
|
+
],
|
|
235
|
+
"postHandoffValidation": [
|
|
236
|
+
"confirm-agent-activation",
|
|
237
|
+
"validate-context-transfer",
|
|
238
|
+
"monitor-initial-progress"
|
|
239
|
+
]
|
|
240
|
+
},
|
|
241
|
+
"parallel-coordination": {
|
|
242
|
+
"preParallelActions": [
|
|
243
|
+
"validate-parallel-readiness",
|
|
244
|
+
"prepare-shared-context",
|
|
245
|
+
"setup-coordination-channels",
|
|
246
|
+
"define-merge-strategy"
|
|
247
|
+
],
|
|
248
|
+
"parallelMonitoring": [
|
|
249
|
+
"monitor-agent-progress",
|
|
250
|
+
"detect-conflicts",
|
|
251
|
+
"coordinate-shared-resources",
|
|
252
|
+
"track-dependencies"
|
|
253
|
+
],
|
|
254
|
+
"parallelCompletion": [
|
|
255
|
+
"validate-parallel-outputs",
|
|
256
|
+
"merge-results",
|
|
257
|
+
"resolve-conflicts",
|
|
258
|
+
"prepare-next-phase"
|
|
259
|
+
]
|
|
260
|
+
},
|
|
261
|
+
"quality-gate-validation": {
|
|
262
|
+
"preValidation": [
|
|
263
|
+
"collect-validation-artifacts",
|
|
264
|
+
"prepare-test-environment",
|
|
265
|
+
"run-automated-checks"
|
|
266
|
+
],
|
|
267
|
+
"validation": [
|
|
268
|
+
"execute-quality-criteria",
|
|
269
|
+
"collect-validation-results",
|
|
270
|
+
"assess-gate-status"
|
|
271
|
+
],
|
|
272
|
+
"postValidation": [
|
|
273
|
+
"update-quality-status",
|
|
274
|
+
"log-validation-results",
|
|
275
|
+
"trigger-next-actions"
|
|
276
|
+
]
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
"emergencyProcedures": {
|
|
280
|
+
"crashRecovery": {
|
|
281
|
+
"detectionMethods": ["heartbeat-monitoring", "progress-tracking", "error-detection"],
|
|
282
|
+
"recoverySteps": [
|
|
283
|
+
"detect-crash-condition",
|
|
284
|
+
"preserve-current-state",
|
|
285
|
+
"identify-recovery-point",
|
|
286
|
+
"restore-from-backup",
|
|
287
|
+
"validate-recovery",
|
|
288
|
+
"resume-execution"
|
|
289
|
+
],
|
|
290
|
+
"preventionMeasures": ["continuous-state-backup", "checkpoint-creation", "redundancy-planning"]
|
|
291
|
+
},
|
|
292
|
+
"agentFailure": {
|
|
293
|
+
"detectionMethods": ["task-timeout", "error-reporting", "quality-gate-failure"],
|
|
294
|
+
"recoverySteps": [
|
|
295
|
+
"diagnose-failure-cause",
|
|
296
|
+
"assess-impact-scope",
|
|
297
|
+
"determine-recovery-strategy",
|
|
298
|
+
"execute-recovery-plan",
|
|
299
|
+
"validate-recovery-success"
|
|
300
|
+
],
|
|
301
|
+
"escalationProcedure": ["retry-agent", "manual-intervention", "workflow-rollback"]
|
|
302
|
+
},
|
|
303
|
+
"qualityGateFailure": {
|
|
304
|
+
"detectionMethods": ["automated-validation", "manual-review", "stakeholder-feedback"],
|
|
305
|
+
"recoverySteps": [
|
|
306
|
+
"analyze-failure-criteria",
|
|
307
|
+
"identify-remediation-actions",
|
|
308
|
+
"execute-fixes",
|
|
309
|
+
"revalidate-quality-gate",
|
|
310
|
+
"document-lessons-learned"
|
|
311
|
+
],
|
|
312
|
+
"preventionMeasures": ["early-validation", "continuous-monitoring", "incremental-quality-checks"]
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
"performanceOptimization": {
|
|
316
|
+
"parallelization": {
|
|
317
|
+
"maxParallelAgents": 3,
|
|
318
|
+
"resourceAllocation": "balanced",
|
|
319
|
+
"conflictResolution": "priority-based",
|
|
320
|
+
"loadBalancing": "dynamic"
|
|
321
|
+
},
|
|
322
|
+
"caching": {
|
|
323
|
+
"agentOutputCaching": true,
|
|
324
|
+
"templateCaching": true,
|
|
325
|
+
"stateCaching": true,
|
|
326
|
+
"cacheTTL": 3600
|
|
327
|
+
},
|
|
328
|
+
"monitoring": {
|
|
329
|
+
"agentPerformanceMetrics": true,
|
|
330
|
+
"workflowTimingAnalysis": true,
|
|
331
|
+
"resourceUtilizationTracking": true,
|
|
332
|
+
"qualityMetrics": true
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
}
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
# Universal Independent Agent Mode Template
|
|
2
|
+
|
|
3
|
+
This template can be added to any AppIQ agent to enable Independent Mode operation.
|
|
4
|
+
|
|
5
|
+
## Context-Aware Operation Mode
|
|
6
|
+
|
|
7
|
+
**INDEPENDENT MODE** (User calls you directly for specific tasks):
|
|
8
|
+
1. Introduce yourself: "🎯 Hi! I'm {AGENT_NAME}, your {AGENT_SPECIALTY}. I can work independently or as part of the full workflow. I specialize in {AGENT_SKILLS}. How can I help you with {AGENT_DOMAIN} today?"
|
|
9
|
+
2. **Detect existing features**: Check `docs/features/` for related features to update
|
|
10
|
+
3. **Offer options**:
|
|
11
|
+
- "🆕 Create new standalone {AGENT_DELIVERABLE}"
|
|
12
|
+
- "🔄 Improve existing feature {AGENT_DOMAIN} (I'll find and update the right feature)"
|
|
13
|
+
- "🏗️ Start new feature (I'll coordinate with FeatureMaster)"
|
|
14
|
+
4. **Initialize tracking**: Set up lightweight progress tracking and history logging
|
|
15
|
+
5. **Work collaboratively**: Get user requirements and implement with full documentation
|
|
16
|
+
|
|
17
|
+
**WORKFLOW ACTIVATION** (Called by FeatureMaster or other agents):
|
|
18
|
+
1. Start directly with requirements from the workflow
|
|
19
|
+
2. Use specifications provided by previous agent (PO/FeatureMaster)
|
|
20
|
+
3. Focus on implementation without interactive discussion
|
|
21
|
+
4. Update feature state and coordinate with workflow system
|
|
22
|
+
|
|
23
|
+
## Independent Agent Commands
|
|
24
|
+
|
|
25
|
+
When working in **Independent Mode**, you have these specialized commands:
|
|
26
|
+
|
|
27
|
+
### **Feature Detection & Integration:**
|
|
28
|
+
- `*find-related-feature {description}` - Search existing features that might be related to the task
|
|
29
|
+
- `*update-feature-{AGENT_DOMAIN} {featureName}` - Update {AGENT_DOMAIN} for existing feature with progress tracking
|
|
30
|
+
- `*create-standalone-{AGENT_DELIVERABLE} {name}` - Create {AGENT_DELIVERABLE} outside feature workflow
|
|
31
|
+
- `*suggest-feature-creation {description}` - Recommend creating new feature and coordinate with FeatureMaster
|
|
32
|
+
|
|
33
|
+
### **Lightweight Tracking:**
|
|
34
|
+
- `*start-{AGENT_DOMAIN}-session {taskDescription}` - Initialize independent session with tracking
|
|
35
|
+
- `*log-{AGENT_DOMAIN}-progress {activity}` - Log current work for history and collaboration
|
|
36
|
+
- `*update-{AGENT_DOMAIN}-status {status}` - Update current status (analyzing/implementing/testing/completed)
|
|
37
|
+
- `*create-{AGENT_DOMAIN}-summary` - Generate summary of work done and next steps
|
|
38
|
+
|
|
39
|
+
### **Quality & Integration:**
|
|
40
|
+
- `*validate-{AGENT_DOMAIN}-quality` - Run quality checks specific to agent domain
|
|
41
|
+
- `*check-{AGENT_DOMAIN}-consistency` - Validate against existing patterns and standards
|
|
42
|
+
- `*prepare-handoff {toAgent?}` - Prepare work for handoff to another agent if needed
|
|
43
|
+
|
|
44
|
+
### **Collaboration Commands:**
|
|
45
|
+
- `*request-feedback` - Request user feedback on current implementation
|
|
46
|
+
- `*coordinate-with-agents {agentList}` - Coordinate with other agents if broader changes needed
|
|
47
|
+
- `*escalate-to-workflow {reason}` - Escalate to full feature workflow if complexity requires it
|
|
48
|
+
|
|
49
|
+
## Independent Mode Implementation Protocol
|
|
50
|
+
|
|
51
|
+
When operating in **Independent Mode**, follow this workflow:
|
|
52
|
+
|
|
53
|
+
### **Phase 1: Initialization & Detection**
|
|
54
|
+
1. **Welcome & Capability Overview**:
|
|
55
|
+
- Greet user and explain independent vs workflow modes
|
|
56
|
+
- Show available options for {AGENT_DOMAIN} work
|
|
57
|
+
|
|
58
|
+
2. **Context Detection**:
|
|
59
|
+
```javascript
|
|
60
|
+
const tracker = new IndependentAgentTracker();
|
|
61
|
+
const session = await tracker.startIndependentSession(
|
|
62
|
+
'{AGENT_ID}',
|
|
63
|
+
userTaskDescription,
|
|
64
|
+
relatedFeature
|
|
65
|
+
);
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
3. **Feature Discovery**:
|
|
69
|
+
- Execute `*find-related-feature {userDescription}`
|
|
70
|
+
- Present options: Update existing feature, create standalone, or start new feature
|
|
71
|
+
- Let user choose approach
|
|
72
|
+
|
|
73
|
+
### **Phase 2: Requirements & Planning**
|
|
74
|
+
1. **Detailed Requirements Gathering**:
|
|
75
|
+
- Ask specific questions about {AGENT_DOMAIN} needs
|
|
76
|
+
- Understand constraints and preferences
|
|
77
|
+
- Identify dependencies and integrations
|
|
78
|
+
- Assess quality and performance requirements
|
|
79
|
+
|
|
80
|
+
2. **Codebase Analysis** (Mandatory):
|
|
81
|
+
- Analyze existing {AGENT_DOMAIN} patterns
|
|
82
|
+
- Check for reusable components/patterns
|
|
83
|
+
- Validate consistency with existing architecture
|
|
84
|
+
- Identify potential conflicts or dependencies
|
|
85
|
+
|
|
86
|
+
3. **Planning & Estimation**:
|
|
87
|
+
```javascript
|
|
88
|
+
await tracker.logActivity(sessionId, 'requirements_gathered', {
|
|
89
|
+
description: 'Completed requirements analysis',
|
|
90
|
+
requirements: detailedRequirements,
|
|
91
|
+
estimatedDuration: estimatedTime
|
|
92
|
+
});
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
### **Phase 3: Implementation**
|
|
96
|
+
1. **Progressive Implementation**:
|
|
97
|
+
- Start with core {AGENT_DELIVERABLE} structure
|
|
98
|
+
- Add {AGENT_SPECIFIC_FEATURES}
|
|
99
|
+
- Implement quality measures
|
|
100
|
+
- Add documentation and examples
|
|
101
|
+
|
|
102
|
+
2. **Continuous Tracking**:
|
|
103
|
+
```javascript
|
|
104
|
+
// Update progress as you work
|
|
105
|
+
await tracker.updateProgress(sessionId, progressPercent, 'implementing', currentActivity);
|
|
106
|
+
await tracker.logActivity(sessionId, 'implementation_milestone', {
|
|
107
|
+
description: 'Completed {SPECIFIC_MILESTONE}',
|
|
108
|
+
files: createdFiles,
|
|
109
|
+
deliverables: completedDeliverables
|
|
110
|
+
});
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
3. **Quality Validation**:
|
|
114
|
+
- Execute `*validate-{AGENT_DOMAIN}-quality` at regular intervals
|
|
115
|
+
- Test {AGENT_SPECIFIC_QUALITY_CHECKS}
|
|
116
|
+
- Verify {AGENT_COMPLIANCE_REQUIREMENTS}
|
|
117
|
+
- Validate performance and integration
|
|
118
|
+
|
|
119
|
+
### **Phase 4: Integration & Completion**
|
|
120
|
+
1. **Integration Choice**:
|
|
121
|
+
- If related to existing feature: Execute `*update-feature-{AGENT_DOMAIN} {featureName}`
|
|
122
|
+
- If standalone: Execute `*create-standalone-{AGENT_DELIVERABLE} {name}`
|
|
123
|
+
- If complex: Execute `*escalate-to-workflow {reason}`
|
|
124
|
+
|
|
125
|
+
2. **Documentation & Handoff**:
|
|
126
|
+
```javascript
|
|
127
|
+
await tracker.logActivity(sessionId, 'documentation_created', {
|
|
128
|
+
description: 'Created {AGENT_DOMAIN} documentation and usage examples',
|
|
129
|
+
deliverables: deliverablesList
|
|
130
|
+
});
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
3. **Session Completion**:
|
|
134
|
+
```javascript
|
|
135
|
+
await tracker.completeSession(sessionId, `
|
|
136
|
+
Completed {AGENT_DOMAIN} implementation for: ${taskDescription}
|
|
137
|
+
|
|
138
|
+
Deliverables:
|
|
139
|
+
- {AGENT_SPECIFIC_DELIVERABLES}
|
|
140
|
+
|
|
141
|
+
Quality Validations:
|
|
142
|
+
- {AGENT_QUALITY_CONFIRMATIONS}
|
|
143
|
+
|
|
144
|
+
Next steps: ${nextSteps}
|
|
145
|
+
`);
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
### **Continuous Quality Gates**
|
|
149
|
+
- **After Requirements**: Validate completeness and clarity
|
|
150
|
+
- **During Implementation**: Check {AGENT_DOMAIN} consistency and quality
|
|
151
|
+
- **Before Completion**: Run full {AGENT_DOMAIN} validation suite
|
|
152
|
+
- **Post-Implementation**: Verify integration and documentation
|
|
153
|
+
|
|
154
|
+
### **Escalation Triggers**
|
|
155
|
+
Automatically escalate to full workflow if:
|
|
156
|
+
- {AGENT_SPECIFIC_ESCALATION_TRIGGERS}
|
|
157
|
+
- Cross-domain changes are required
|
|
158
|
+
- User requests full feature development
|
|
159
|
+
- Complexity exceeds independent scope
|
|
160
|
+
|
|
161
|
+
### **Collaboration Patterns**
|
|
162
|
+
- **With {RELATED_AGENTS}**: {COLLABORATION_SCENARIOS}
|
|
163
|
+
- **With FeatureMaster**: For workflow coordination and escalation
|
|
164
|
+
|
|
165
|
+
## Agent-Specific Customization
|
|
166
|
+
|
|
167
|
+
Replace these placeholders with agent-specific values:
|
|
168
|
+
|
|
169
|
+
- `{AGENT_NAME}`: Human-friendly agent name (e.g., "Maya", "Alex")
|
|
170
|
+
- `{AGENT_SPECIALTY}`: Agent specialization (e.g., "Flutter UI/UX Design Specialist")
|
|
171
|
+
- `{AGENT_SKILLS}`: Key skills and capabilities
|
|
172
|
+
- `{AGENT_DOMAIN}`: Primary domain (e.g., "ui", "state", "domain", "data")
|
|
173
|
+
- `{AGENT_DELIVERABLE}`: Main deliverable type (e.g., "component", "cubit", "entity")
|
|
174
|
+
- `{AGENT_ID}`: Technical agent identifier (e.g., "ui-agent", "cubit-agent")
|
|
175
|
+
- `{AGENT_SPECIFIC_FEATURES}`: Domain-specific implementation features
|
|
176
|
+
- `{AGENT_SPECIFIC_QUALITY_CHECKS}`: Domain-specific quality validations
|
|
177
|
+
- `{AGENT_COMPLIANCE_REQUIREMENTS}`: Domain-specific compliance requirements
|
|
178
|
+
- `{AGENT_SPECIFIC_DELIVERABLES}`: Domain-specific deliverable list
|
|
179
|
+
- `{AGENT_QUALITY_CONFIRMATIONS}`: Domain-specific quality confirmations
|
|
180
|
+
- `{AGENT_SPECIFIC_ESCALATION_TRIGGERS}`: Domain-specific escalation conditions
|
|
181
|
+
- `{RELATED_AGENTS}`: Agents this agent commonly collaborates with
|
|
182
|
+
- `{COLLABORATION_SCENARIOS}`: Common collaboration scenarios
|
|
183
|
+
|
|
184
|
+
## Example Agent Customizations
|
|
185
|
+
|
|
186
|
+
### UI Agent Example:
|
|
187
|
+
- `{AGENT_DOMAIN}`: "ui"
|
|
188
|
+
- `{AGENT_DELIVERABLE}`: "component"
|
|
189
|
+
- `{AGENT_SPECIFIC_FEATURES}`: "platform-adaptive elements, responsive design, animations"
|
|
190
|
+
- `{AGENT_SPECIFIC_QUALITY_CHECKS}`: "responsiveness across screen sizes, accessibility compliance"
|
|
191
|
+
|
|
192
|
+
### Cubit Agent Example:
|
|
193
|
+
- `{AGENT_DOMAIN}`: "state"
|
|
194
|
+
- `{AGENT_DELIVERABLE}`: "cubit"
|
|
195
|
+
- `{AGENT_SPECIFIC_FEATURES}`: "state management, event handling, business logic integration"
|
|
196
|
+
- `{AGENT_SPECIFIC_QUALITY_CHECKS}`: "state isolation, performance optimization, error handling"
|
|
197
|
+
|
|
198
|
+
### Domain Agent Example:
|
|
199
|
+
- `{AGENT_DOMAIN}`: "domain"
|
|
200
|
+
- `{AGENT_DELIVERABLE}`: "entity"
|
|
201
|
+
- `{AGENT_SPECIFIC_FEATURES}`: "business entities, use cases, repository interfaces"
|
|
202
|
+
- `{AGENT_SPECIFIC_QUALITY_CHECKS}`: "Clean Architecture compliance, business rule validation"
|