@uniswap/ai-toolkit-nx-claude 0.5.29 → 0.5.30-next.1

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,321 +0,0 @@
1
- ---
2
- description: Comprehensive code review using multiple specialized agents for architecture, security, performance, and style analysis.
3
- argument-hint: [paths...] [--depth shallow|deep] [--focus architecture|security|performance|all]
4
- allowed-tools: Read(*), Grep(*), Task(subagent_type:agent-orchestrator), Task(subagent_type:*)
5
- ---
6
-
7
- ## Inputs
8
-
9
- Parse arguments from `$ARGUMENTS`:
10
-
11
- - **paths**: Files or directories to review (defaults to current changes)
12
- - **--depth**: Review depth (shallow|deep) - default: shallow
13
- - **--focus**: Specific aspects to focus on (architecture|security|performance|all) - default: all
14
- - **--suggest-fixes**: Generate fix suggestions (default: true)
15
- - **--check-tests**: Review test coverage (default: false)
16
- - **--compare-baseline**: Compare against baseline branch (default: main)
17
-
18
- Examples:
19
-
20
- - `/review-code` (reviews current uncommitted changes)
21
- - `/review-code src/api/ --depth deep --focus security`
22
- - `/review-code src/components/Form.tsx --check-tests`
23
- - `/review-code . --focus architecture --compare-baseline develop`
24
-
25
- ## Task
26
-
27
- Perform comprehensive code review by orchestrating specialized analysis agents:
28
-
29
- 1. **Multi-Aspect Analysis**: Architecture, security, performance, and style
30
- 2. **Risk Assessment**: Identify potential issues and their severity
31
- 3. **Fix Suggestions**: Provide actionable improvement recommendations
32
- 4. **Pattern Validation**: Ensure consistency with codebase patterns
33
- 5. **Test Coverage**: Verify adequate testing (if requested)
34
-
35
- ## Orchestration Strategy
36
-
37
- ### Phase 1: Code Analysis Preparation
38
-
39
- 1. **Identify Review Scope**:
40
-
41
- - If no paths provided, get current git changes
42
- - Expand directories to file lists
43
- - Filter by file types and patterns
44
-
45
- 2. **Context Loading**:
46
- - Invoke **context-loader** to understand surrounding code
47
- - Identify architectural patterns and conventions
48
- - Load relevant documentation and standards
49
-
50
- ### Phase 2: Multi-Agent Review
51
-
52
- Invoke **agent-orchestrator** to coordinate parallel analysis:
53
-
54
- ```typescript
55
- {
56
- task: "Comprehensive code review",
57
- complexity: "complex",
58
- parallelGroups: [
59
- {
60
- name: "Code Quality",
61
- agents: [
62
- { agent: "style-enforcer", focus: "style-compliance" },
63
- { agent: "refactorer", focus: "improvement-opportunities" },
64
- { agent: "code-explainer", focus: "complexity-analysis" }
65
- ]
66
- },
67
- {
68
- name: "Architecture & Design",
69
- agents: [
70
- { agent: "architect-reviewer", focus: "pattern-consistency" },
71
- { agent: "plan-reviewer", focus: "design-validation" }
72
- ]
73
- },
74
- {
75
- name: "Security & Performance",
76
- agents: [
77
- { agent: "security-analyzer", focus: "vulnerability-assessment" },
78
- { agent: "performance-analyzer", focus: "bottleneck-detection" }
79
- ]
80
- },
81
- {
82
- name: "Testing",
83
- agents: [
84
- { agent: "test-writer", focus: "coverage-gaps" },
85
- { agent: "test-runner", focus: "test-validation" }
86
- ]
87
- }
88
- ]
89
- }
90
- ```
91
-
92
- ### Phase 3: Deep Analysis (if --depth deep)
93
-
94
- For deep review, additional specialized analysis:
95
-
96
- 1. **Dependency Analysis**:
97
-
98
- - Check for circular dependencies
99
- - Validate import structures
100
- - Identify unused dependencies
101
-
102
- 2. **Pattern Consistency**:
103
-
104
- - Compare with existing patterns
105
- - Identify deviations from standards
106
- - Suggest pattern alignment
107
-
108
- 3. **Impact Analysis**:
109
- - Assess breaking changes
110
- - Identify affected components
111
- - Evaluate migration requirements
112
-
113
- ### Phase 4: Result Aggregation
114
-
115
- Combine insights from all agents:
116
-
117
- 1. **Issue Prioritization**:
118
-
119
- - Critical: Security vulnerabilities, breaking changes
120
- - High: Performance issues, architectural violations
121
- - Medium: Style inconsistencies, missing tests
122
- - Low: Minor improvements, documentation
123
-
124
- 2. **Fix Generation**:
125
-
126
- - Automated fixes for style issues
127
- - Refactoring suggestions with examples
128
- - Security patches with explanations
129
-
130
- 3. **Consensus Building**:
131
- - Resolve conflicting recommendations
132
- - Prioritize based on impact and effort
133
- - Generate unified action plan
134
-
135
- ## Output Format
136
-
137
- ```typescript
138
- {
139
- summary: {
140
- filesReviewed: number;
141
- issuesFound: {
142
- critical: number;
143
- high: number;
144
- medium: number;
145
- low: number;
146
- };
147
- fixesAvailable: number;
148
- estimatedEffort: string; // "minutes", "hours", "days"
149
- };
150
-
151
- issues: Array<{
152
- file: string;
153
- line: number;
154
- severity: 'critical' | 'high' | 'medium' | 'low';
155
- category: 'architecture' | 'security' | 'performance' | 'style' | 'testing';
156
- issue: string;
157
- explanation: string;
158
- agent: string; // Which agent identified this
159
- suggestion?: {
160
- fix: string; // Suggested fix
161
- automated: boolean; // Can be auto-applied
162
- example?: string; // Code example
163
- };
164
- }>;
165
-
166
- architectureInsights?: {
167
- patterns: string[]; // Identified patterns
168
- violations: string[]; // Pattern violations
169
- recommendations: string[]; // Architectural improvements
170
- };
171
-
172
- securityReport?: {
173
- vulnerabilities: Array<{
174
- type: string; // e.g., "SQL Injection", "XSS"
175
- severity: 'critical' | 'high' | 'medium' | 'low';
176
- location: string;
177
- mitigation: string;
178
- }>;
179
- bestPractices: string[]; // Security best practices to follow
180
- };
181
-
182
- performanceReport?: {
183
- bottlenecks: Array<{
184
- location: string;
185
- issue: string;
186
- impact: 'high' | 'medium' | 'low';
187
- optimization: string;
188
- }>;
189
- metrics: {
190
- complexity: number; // Cyclomatic complexity
191
- memoryUsage: string; // Estimated memory impact
192
- timeComplexity: string; // Big O notation
193
- };
194
- };
195
-
196
- testCoverage?: {
197
- current: number; // Current coverage percentage
198
- recommended: number; // Recommended coverage
199
- gaps: Array<{
200
- file: string;
201
- uncoveredLines: number[];
202
- suggestedTests: string[];
203
- }>;
204
- };
205
-
206
- actionPlan: {
207
- immediate: string[]; // Fix now (critical/high)
208
- shortTerm: string[]; // Fix soon (medium)
209
- longTerm: string[]; // Consider for future (low)
210
- automated: Array<{ // Auto-applicable fixes
211
- file: string;
212
- fix: string;
213
- command: string; // Command to apply
214
- }>;
215
- };
216
- }
217
- ```
218
-
219
- ## Specialized Review Modes
220
-
221
- ### Architecture Focus
222
-
223
- When `--focus architecture`:
224
-
225
- - Emphasize design patterns and structure
226
- - Validate SOLID principles
227
- - Check dependency management
228
- - Assess modularity and coupling
229
-
230
- ### Security Focus
231
-
232
- When `--focus security`:
233
-
234
- - Deep vulnerability scanning
235
- - Input validation checks
236
- - Authentication/authorization review
237
- - Dependency vulnerability checks
238
- - Secrets and credential scanning
239
-
240
- ### Performance Focus
241
-
242
- When `--focus performance`:
243
-
244
- - Algorithm complexity analysis
245
- - Memory usage patterns
246
- - Database query optimization
247
- - Caching opportunities
248
- - Async/concurrent processing
249
-
250
- ## Quality Gates Integration
251
-
252
- The review can serve as a quality gate:
253
-
254
- ```typescript
255
- {
256
- passed: boolean; // Overall pass/fail
257
- blockers: string[]; // Critical issues blocking merge
258
- warnings: string[]; // Non-blocking concerns
259
- score: number; // Quality score (0-100)
260
- recommendation: 'approve' | 'request-changes' | 'comment';
261
- }
262
- ```
263
-
264
- ## Examples
265
-
266
- ### Basic Review of Current Changes
267
-
268
- ```bash
269
- /review-code
270
- # Reviews all uncommitted changes with standard depth
271
- ```
272
-
273
- ### Deep Security Review
274
-
275
- ```bash
276
- /review-code src/api/ --depth deep --focus security
277
- # Comprehensive security analysis of API code
278
- ```
279
-
280
- ### Architecture Review with Fixes
281
-
282
- ```bash
283
- /review-code src/core/ --focus architecture --suggest-fixes
284
- # Reviews architecture and provides refactoring suggestions
285
- ```
286
-
287
- ### Pre-Merge Comprehensive Review
288
-
289
- ```bash
290
- /review-code . --depth deep --check-tests --compare-baseline main
291
- # Full review comparing against main branch
292
- ```
293
-
294
- ## Integration Points
295
-
296
- ### Git Integration
297
-
298
- - Automatically detect changed files
299
- - Compare against baseline branches
300
- - Generate commit-ready fixes
301
-
302
- ### CI/CD Integration
303
-
304
- - Exit codes for pass/fail
305
- - Machine-readable output format
306
- - Threshold configuration
307
-
308
- ### IDE Integration
309
-
310
- - Inline issue annotations
311
- - Quick-fix suggestions
312
- - Real-time feedback
313
-
314
- ## Best Practices
315
-
316
- 1. **Regular Reviews**: Run on every significant change
317
- 2. **Focus Areas**: Use focused reviews for faster feedback
318
- 3. **Incremental Fixes**: Address critical issues first
319
- 4. **Automation**: Apply automated fixes to save time
320
- 5. **Team Standards**: Configure thresholds per team preferences
321
- 6. **Learning**: Use insights to improve coding practices
@@ -1,109 +0,0 @@
1
- ---
2
- description: Critically review an implementation plan for completeness, feasibility, and alignment with codebase patterns
3
- argument-hint: <plan-file-path> [--focus security|performance|testing]
4
- allowed-tools: Read(*), Glob(*), Grep(*), LS(*), WebSearch(*), WebFetch(*)
5
- ---
6
-
7
- # Review Plan Command
8
-
9
- Critically analyze an implementation plan to assess its quality, completeness, and feasibility without writing any code.
10
-
11
- ## Workflow Integration
12
-
13
- This command is **Step 3** of the implementation workflow:
14
-
15
- 1. Explore → 2. Plan → 3. **Review** → 4. Execute
16
-
17
- ### Recommended Workflow
18
-
19
- **BEST PRACTICE: Use this command AFTER creating a plan with `/plan`**
20
-
21
- 1. Context gathering: `/explore <relevant area>` - Builds comprehensive context
22
- 2. Plan creation: `/plan <task>` - Creates plan file using that context
23
- 3. Plan review: `/review-plan <plan-file-path>` - Reviews the plan critically
24
- 4. Execution: `/execute-plan <plan-file-path>` - Executes the approved plan
25
-
26
- This workflow ensures the reviewer has the same context as the planner for accurate assessment, and only validated plans move to execution.
27
-
28
- **Note for Claude Code**: When you have context-loader findings from a previous `/explore` command, automatically pass them to the plan-reviewer agent. The user doesn't need to specify any flags.
29
-
30
- ## Inputs
31
-
32
- Accept plan file path and optional focus area, then extract:
33
-
34
- - `plan_file_path`: The absolute path to the markdown plan file to review (required)
35
- - `review_focus`: Any specific focus area mentioned (optional, e.g., "security", "performance")
36
- - `context_findings`: Automatically include context-loader findings from `/explore` if available
37
-
38
- Examples:
39
-
40
- - `/review-plan /tmp/plans/plan-20250821-a4b3c2.md`
41
- - `/review-plan /tmp/plans/plan-20250821-a4b3c2.md --focus security`
42
- - `/review-plan /tmp/plans/plan-20250821-a4b3c2.md --focus performance`
43
-
44
- ## Task
45
-
46
- Generate a focused plan review that:
47
-
48
- 1. Leverages any context-loader findings if available
49
- 2. Analyzes the plan for completeness, conciseness, and feasibility
50
- 3. Validates scope adherence (no extras beyond requirements)
51
- 4. Identifies critical implementation risks
52
- 5. Assesses alignment with existing codebase patterns
53
- 6. Validates plan is appropriately concise (not over-documented)
54
- 7. Provides actionable feedback for plan improvement
55
-
56
- ## Context Integration
57
-
58
- **Claude Code**: When you have findings from a previous `/explore` command, automatically extract and pass:
59
-
60
- - Key components and their responsibilities
61
- - Existing patterns and conventions
62
- - Dependencies and integration points
63
- - Known gotchas and edge cases
64
-
65
- ## Delegation
66
-
67
- Invoke **plan-reviewer** with:
68
-
69
- - `plan_file_path`: The absolute path to the plan file
70
- - `review_focus`: Extracted focus area (optional)
71
- - `context_findings`: Structured findings from context-loader if available:
72
- - `key_components`: Core files and responsibilities
73
- - `patterns`: Conventions to follow
74
- - `dependencies`: External integrations
75
- - `gotchas`: Known issues/edge cases
76
-
77
- ## Output
78
-
79
- Return the structured review from plan-reviewer:
80
-
81
- - `summary`: Executive summary of plan quality and main assessment
82
- - `strengths`: What the plan does well
83
- - `concerns`: Specific issues with severity levels and suggestions (will NOT flag missing testing plans, success criteria, or agent assignments)
84
- - `gaps`: Missing critical implementation elements with rationale and suggestions (will NOT flag intentionally omitted sections)
85
- - `improvements`: Areas for enhancement with specific recommendations
86
- - `feasibility-assessment`: Complexity, critical risks, and timeline estimate
87
- - `alignment-check`: How well plan follows existing patterns
88
- - `scope-validation`: Whether plan adheres to exact requirements
89
-
90
- ## Integration Notes
91
-
92
- **File Path Handling**:
93
-
94
- - Validate that the plan file exists and is readable
95
- - Provide clear error messages for invalid paths
96
- - Support both absolute and relative paths
97
-
98
- **Context Reuse**:
99
-
100
- - Automatically use context-loader findings when available
101
- - Fall back gracefully when no context is available
102
- - Include context metadata in the review assessment
103
-
104
- **Focus Areas**:
105
-
106
- - `security`: Emphasize security considerations and potential vulnerabilities
107
- - `performance`: Focus on performance implications and optimizations
108
-
109
- **Note on Testing**: Plans no longer include testing strategies by default. The reviewer will not flag missing testing plans as problems unless explicitly requested.