@uniswap/ai-toolkit-nx-claude 0.5.29 → 0.5.30-next.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 (87) hide show
  1. package/dist/cli-generator.cjs +28 -59
  2. package/dist/packages/ai-toolkit-nx-claude/src/cli-generator.d.ts +8 -10
  3. package/dist/packages/ai-toolkit-nx-claude/src/cli-generator.d.ts.map +1 -1
  4. package/dist/packages/ai-toolkit-nx-claude/src/index.d.ts +0 -1
  5. package/dist/packages/ai-toolkit-nx-claude/src/index.d.ts.map +1 -1
  6. package/generators.json +0 -15
  7. package/package.json +4 -35
  8. package/dist/content/agents/agnostic/CLAUDE.md +0 -282
  9. package/dist/content/agents/agnostic/agent-capability-analyst.md +0 -575
  10. package/dist/content/agents/agnostic/agent-optimizer.md +0 -396
  11. package/dist/content/agents/agnostic/agent-orchestrator.md +0 -475
  12. package/dist/content/agents/agnostic/cicd-agent.md +0 -301
  13. package/dist/content/agents/agnostic/claude-agent-discovery.md +0 -304
  14. package/dist/content/agents/agnostic/claude-docs-fact-checker.md +0 -435
  15. package/dist/content/agents/agnostic/claude-docs-initializer.md +0 -782
  16. package/dist/content/agents/agnostic/claude-docs-manager.md +0 -595
  17. package/dist/content/agents/agnostic/code-explainer.md +0 -269
  18. package/dist/content/agents/agnostic/code-generator.md +0 -785
  19. package/dist/content/agents/agnostic/commit-message-generator.md +0 -101
  20. package/dist/content/agents/agnostic/context-loader.md +0 -432
  21. package/dist/content/agents/agnostic/debug-assistant.md +0 -321
  22. package/dist/content/agents/agnostic/doc-writer.md +0 -536
  23. package/dist/content/agents/agnostic/feedback-collector.md +0 -165
  24. package/dist/content/agents/agnostic/infrastructure-agent.md +0 -406
  25. package/dist/content/agents/agnostic/migration-assistant.md +0 -489
  26. package/dist/content/agents/agnostic/pattern-learner.md +0 -481
  27. package/dist/content/agents/agnostic/performance-analyzer.md +0 -528
  28. package/dist/content/agents/agnostic/plan-reviewer.md +0 -173
  29. package/dist/content/agents/agnostic/planner.md +0 -235
  30. package/dist/content/agents/agnostic/pr-creator.md +0 -498
  31. package/dist/content/agents/agnostic/pr-reviewer.md +0 -142
  32. package/dist/content/agents/agnostic/prompt-engineer.md +0 -541
  33. package/dist/content/agents/agnostic/refactorer.md +0 -311
  34. package/dist/content/agents/agnostic/researcher.md +0 -349
  35. package/dist/content/agents/agnostic/security-analyzer.md +0 -1087
  36. package/dist/content/agents/agnostic/stack-splitter.md +0 -642
  37. package/dist/content/agents/agnostic/style-enforcer.md +0 -568
  38. package/dist/content/agents/agnostic/test-runner.md +0 -481
  39. package/dist/content/agents/agnostic/test-writer.md +0 -292
  40. package/dist/content/commands/agnostic/CLAUDE.md +0 -207
  41. package/dist/content/commands/agnostic/address-pr-issues.md +0 -205
  42. package/dist/content/commands/agnostic/auto-spec.md +0 -386
  43. package/dist/content/commands/agnostic/claude-docs.md +0 -409
  44. package/dist/content/commands/agnostic/claude-init-plus.md +0 -439
  45. package/dist/content/commands/agnostic/create-pr.md +0 -79
  46. package/dist/content/commands/agnostic/daily-standup.md +0 -185
  47. package/dist/content/commands/agnostic/deploy.md +0 -441
  48. package/dist/content/commands/agnostic/execute-plan.md +0 -167
  49. package/dist/content/commands/agnostic/explain-file.md +0 -303
  50. package/dist/content/commands/agnostic/explore.md +0 -82
  51. package/dist/content/commands/agnostic/fix-bug.md +0 -273
  52. package/dist/content/commands/agnostic/gen-tests.md +0 -185
  53. package/dist/content/commands/agnostic/generate-commit-message.md +0 -92
  54. package/dist/content/commands/agnostic/git-worktree-orchestrator.md +0 -647
  55. package/dist/content/commands/agnostic/implement-spec.md +0 -270
  56. package/dist/content/commands/agnostic/monitor.md +0 -581
  57. package/dist/content/commands/agnostic/perf-analyze.md +0 -214
  58. package/dist/content/commands/agnostic/plan.md +0 -453
  59. package/dist/content/commands/agnostic/refactor.md +0 -315
  60. package/dist/content/commands/agnostic/refine-linear-task.md +0 -575
  61. package/dist/content/commands/agnostic/research.md +0 -49
  62. package/dist/content/commands/agnostic/review-code.md +0 -321
  63. package/dist/content/commands/agnostic/review-plan.md +0 -109
  64. package/dist/content/commands/agnostic/review-pr.md +0 -393
  65. package/dist/content/commands/agnostic/split-stack.md +0 -705
  66. package/dist/content/commands/agnostic/update-claude-md.md +0 -401
  67. package/dist/content/commands/agnostic/work-through-pr-comments.md +0 -873
  68. package/dist/generators/add-agent/CLAUDE.md +0 -130
  69. package/dist/generators/add-agent/files/__name__.md.template +0 -37
  70. package/dist/generators/add-agent/generator.cjs +0 -640
  71. package/dist/generators/add-agent/schema.json +0 -59
  72. package/dist/generators/add-command/CLAUDE.md +0 -131
  73. package/dist/generators/add-command/files/__name__.md.template +0 -46
  74. package/dist/generators/add-command/generator.cjs +0 -643
  75. package/dist/generators/add-command/schema.json +0 -50
  76. package/dist/generators/files/src/index.ts.template +0 -1
  77. package/dist/generators/init/CLAUDE.md +0 -520
  78. package/dist/generators/init/generator.cjs +0 -3304
  79. package/dist/generators/init/schema.json +0 -180
  80. package/dist/packages/ai-toolkit-nx-claude/src/generators/add-agent/generator.d.ts +0 -5
  81. package/dist/packages/ai-toolkit-nx-claude/src/generators/add-agent/generator.d.ts.map +0 -1
  82. package/dist/packages/ai-toolkit-nx-claude/src/generators/add-command/generator.d.ts +0 -5
  83. package/dist/packages/ai-toolkit-nx-claude/src/generators/add-command/generator.d.ts.map +0 -1
  84. package/dist/packages/ai-toolkit-nx-claude/src/generators/init/generator.d.ts +0 -5
  85. package/dist/packages/ai-toolkit-nx-claude/src/generators/init/generator.d.ts.map +0 -1
  86. package/dist/packages/ai-toolkit-nx-claude/src/utils/auto-update-utils.d.ts +0 -30
  87. package/dist/packages/ai-toolkit-nx-claude/src/utils/auto-update-utils.d.ts.map +0 -1
@@ -1,270 +0,0 @@
1
- ---
2
- description: Orchestrate implementation of spec-workflow tasks using intelligent agent coordination, parallel execution, and quality gates.
3
- argument-hint: <spec-name> [--task task-id] [--parallel] [--dry-run]
4
- allowed-tools: Read(*), Task(subagent_type:agent-orchestrator), Task(subagent_type:*), mcp__spec-workflow__manage-tasks(*), mcp__spec-workflow__get-spec-context(*)
5
- ---
6
-
7
- ## Inputs
8
-
9
- Parse arguments from `$ARGUMENTS`:
10
-
11
- - **spec-name**: Name of the spec to implement from `.spec-workflow/specs/`
12
- - **--task**: Specific task ID to implement (optional, defaults to next pending)
13
- - **--parallel**: Enable parallel execution of independent tasks
14
- - **--dry-run**: Preview the orchestration plan without executing
15
- - **--quality-gates**: Enable quality checks between phases (default: true)
16
- - **--meta-agents**: Enable meta-agent optimization during execution (default: false)
17
-
18
- Examples:
19
-
20
- - `/implement-spec user-authentication`
21
- - `/implement-spec payment-integration --task 3.2`
22
- - `/implement-spec refactor-api --parallel --meta-agents`
23
- - `/implement-spec migration-plan --dry-run`
24
-
25
- ## Task
26
-
27
- Orchestrate the implementation of spec-workflow tasks through intelligent agent coordination:
28
-
29
- 1. **Load Spec Context**: Retrieve requirements, design, and tasks from spec-workflow
30
- 2. **Task Analysis**: Decompose tasks and identify dependencies
31
- 3. **Agent Selection**: Match tasks to specialized agents based on capabilities
32
- 4. **Execution Orchestration**: Coordinate parallel/sequential execution
33
- 5. **Quality Assurance**: Validate outputs and ensure consistency
34
-
35
- ## Orchestration Strategy
36
-
37
- ### Phase 1: Context & Planning
38
-
39
- 1. **Spec Loading**:
40
-
41
- - Use `mcp__spec-workflow__get-spec-context` to load spec documents
42
- - Use `mcp__spec-workflow__manage-tasks` to get task status
43
- - Identify pending tasks and dependencies
44
-
45
- 2. **Dependency Analysis**:
46
- - Map task dependencies from the tasks.md structure
47
- - Identify parallel execution opportunities
48
- - Determine critical path for sequential tasks
49
-
50
- ### Phase 2: Agent Orchestration
51
-
52
- Invoke **agent-orchestrator** with comprehensive context:
53
-
54
- ```typescript
55
- {
56
- task: "Implement spec tasks",
57
- complexity: "highly-complex",
58
- decomposition: {
59
- specs: loadedSpecs,
60
- tasks: pendingTasks,
61
- dependencies: taskDependencies
62
- },
63
- execution: {
64
- strategy: parallel ? "hybrid" : "sequential",
65
- metaAgents: enableMetaAgents,
66
- qualityGates: enableQualityGates
67
- }
68
- }
69
- ```
70
-
71
- The orchestrator will:
72
-
73
- - Discover all available agents
74
- - Use **agent-capability-analyst** for optimal matching
75
- - Coordinate specialized agents for each task
76
- - Handle parallel execution groups
77
- - Manage result aggregation and conflict resolution
78
-
79
- ### Phase 3: Task Execution
80
-
81
- For each task, the orchestrator coordinates:
82
-
83
- 1. **Code Implementation Tasks**:
84
-
85
- - **code-generator**: Create new implementations
86
- - **test-writer**: Generate accompanying tests
87
- - **doc-writer**: Update documentation
88
-
89
- 2. **Refactoring Tasks**:
90
-
91
- - **refactorer**: Structural improvements
92
- - **style-enforcer**: Code style compliance
93
- - **test-runner**: Regression testing
94
-
95
- 3. **Infrastructure Tasks**:
96
-
97
- - **infrastructure-agent**: Cloud/scaling setup
98
- - **cicd-agent**: Pipeline configuration
99
- - **monitor**: Observability setup
100
-
101
- 4. **Migration Tasks**:
102
- - **migration-assistant**: Version upgrades
103
- - **test-runner**: Compatibility testing
104
- - **doc-writer**: Migration guides
105
-
106
- ### Phase 4: Quality Gates
107
-
108
- Between task groups, apply quality checks:
109
-
110
- 1. **Code Quality**:
111
-
112
- - **style-enforcer**: Verify code standards
113
- - **security-analyzer**: Security audit
114
- - **performance-analyzer**: Performance validation
115
-
116
- 2. **Test Coverage**:
117
-
118
- - **test-runner**: Execute generated tests
119
- - **test-writer**: Fill coverage gaps
120
-
121
- 3. **Documentation**:
122
- - **doc-writer**: Ensure docs are updated
123
- - **review-plan**: Validate against original spec
124
-
125
- ## Meta-Agent Integration
126
-
127
- When `--meta-agents` is enabled:
128
-
129
- 1. **Continuous Optimization**:
130
-
131
- - **agent-optimizer**: Monitor agent performance
132
- - **prompt-engineer**: Refine delegation prompts
133
- - **pattern-learner**: Extract reusable patterns
134
-
135
- 2. **Feedback Loop**:
136
- - **feedback-collector**: Gather quality metrics
137
- - Apply optimizations to ongoing tasks
138
- - Store learnings for future executions
139
-
140
- ## Output Format
141
-
142
- ```typescript
143
- {
144
- summary: {
145
- spec: string; // Spec name
146
- tasksCompleted: number;
147
- tasksRemaining: number;
148
- executionTime: number; // milliseconds
149
- parallelSpeedup: number; // if parallel execution used
150
- };
151
-
152
- executionPlan: {
153
- phases: Array<{
154
- name: string;
155
- tasks: string[];
156
- agents: string[];
157
- executionType: 'parallel' | 'sequential';
158
- dependencies: string[];
159
- }>;
160
- };
161
-
162
- results: Array<{
163
- taskId: string;
164
- taskDescription: string;
165
- status: 'completed' | 'failed' | 'skipped';
166
- agent: string;
167
- output: any; // Agent-specific output
168
- duration: number;
169
- qualityMetrics?: {
170
- confidence: number;
171
- coverage: number;
172
- issues: string[];
173
- };
174
- }>;
175
-
176
- metaInsights?: { // If meta-agents enabled
177
- optimizations: string[];
178
- patterns: string[];
179
- recommendations: string[];
180
- };
181
-
182
- nextSteps: {
183
- remainingTasks: string[];
184
- blockers: string[];
185
- recommendations: string[];
186
- };
187
- }
188
- ```
189
-
190
- ## Error Handling
191
-
192
- ### Task Failures
193
-
194
- - Automatic retry with refined prompts
195
- - Fallback to alternative agents
196
- - Mark task as blocked if unrecoverable
197
- - Continue with non-dependent tasks
198
-
199
- ### Dependency Violations
200
-
201
- - Detect circular dependencies
202
- - Reorder tasks when possible
203
- - Report unresolvable conflicts
204
-
205
- ### Quality Gate Failures
206
-
207
- - Report specific issues
208
- - Suggest remediation steps
209
- - Option to continue with warnings
210
- - Rollback capability for critical failures
211
-
212
- ## Examples
213
-
214
- ### Basic Implementation
215
-
216
- ```bash
217
- /implement-spec user-authentication
218
- # Implements next pending task in user-authentication spec
219
- ```
220
-
221
- ### Parallel Implementation
222
-
223
- ```bash
224
- /implement-spec api-refactor --parallel
225
- # Executes independent tasks in parallel for faster completion
226
- ```
227
-
228
- ### Specific Task Implementation
229
-
230
- ```bash
231
- /implement-spec payment-integration --task 3.2
232
- # Implements specific task 3.2 from payment-integration spec
233
- ```
234
-
235
- ### Dry Run with Meta-Agents
236
-
237
- ```bash
238
- /implement-spec migration-plan --dry-run --meta-agents
239
- # Preview execution plan with optimization insights
240
- ```
241
-
242
- ## Integration with Spec Workflow
243
-
244
- This command seamlessly integrates with the spec-workflow system:
245
-
246
- 1. **Reads from**: `.spec-workflow/specs/[spec-name]/`
247
-
248
- - requirements.md
249
- - design.md
250
- - tasks.md
251
-
252
- 2. **Updates**: Task status in tasks.md
253
-
254
- - Marks tasks as in-progress when starting
255
- - Marks tasks as completed when successful
256
- - Adds notes for failed/blocked tasks
257
-
258
- 3. **Coordination**: Works with spec-workflow dashboard
259
- - Real-time status updates
260
- - Progress tracking
261
- - Approval integration for critical tasks
262
-
263
- ## Best Practices
264
-
265
- 1. **Start Small**: Begin with single task implementation before parallel
266
- 2. **Enable Quality Gates**: Catch issues early in the implementation
267
- 3. **Use Dry Run**: Preview complex orchestrations before execution
268
- 4. **Monitor Progress**: Check spec-workflow dashboard during execution
269
- 5. **Review Outputs**: Validate generated code meets requirements
270
- 6. **Iterate**: Use meta-agent insights to improve future implementations