@uniswap/ai-toolkit-nx-claude 0.5.12 → 0.5.14

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.
@@ -246,7 +246,7 @@ Every CLAUDE.md file MUST start with a timestamp header as the very first line:
246
246
  <!-- CUSTOM:END -->
247
247
  ```
248
248
 
249
- #### For Package/Module CLAUDE.md:
249
+ #### For Package/Module CLAUDE.md
250
250
 
251
251
  ```markdown
252
252
  > **Last Updated:** YYYY-MM-DD
@@ -286,7 +286,7 @@ Every CLAUDE.md file MUST start with a timestamp header as the very first line:
286
286
  <!-- CUSTOM:END -->
287
287
  ```
288
288
 
289
- #### For Feature/Component CLAUDE.md:
289
+ #### For Feature/Component CLAUDE.md
290
290
 
291
291
  ```markdown
292
292
  # CLAUDE.md - [Feature/Component Name]
@@ -207,7 +207,7 @@ verified_facts:
207
207
 
208
208
  For each affected CLAUDE.md file, determine content updates:
209
209
 
210
- #### When to Create New CLAUDE.md Files:
210
+ #### When to Create New CLAUDE.md Files
211
211
 
212
212
  **Create a NEW CLAUDE.md when**:
213
213
 
@@ -227,7 +227,7 @@ For each affected CLAUDE.md file, determine content updates:
227
227
  - Pure type definition directories
228
228
  - Asset/static file directories
229
229
 
230
- #### If Root CLAUDE.md:
230
+ #### If Root CLAUDE.md
231
231
 
232
232
  Include:
233
233
 
@@ -239,7 +239,7 @@ Include:
239
239
  - Repository structure overview (immediate subdirectories only)
240
240
  - Code quality standards and setup
241
241
 
242
- #### If Package/Module CLAUDE.md:
242
+ #### If Package/Module CLAUDE.md
243
243
 
244
244
  Include:
245
245
 
@@ -251,7 +251,7 @@ Include:
251
251
  - Usage patterns and examples
252
252
  - Package-specific guidelines
253
253
 
254
- #### If Feature/Component CLAUDE.md:
254
+ #### If Feature/Component CLAUDE.md
255
255
 
256
256
  Include:
257
257
 
@@ -266,7 +266,7 @@ Include:
266
266
 
267
267
  Process all identified CLAUDE.md files:
268
268
 
269
- #### For Each Affected File:
269
+ #### For Each Affected File
270
270
 
271
271
  1. **New CLAUDE.md**: Generate complete structure appropriate for that level
272
272
  2. **Existing CLAUDE.md**:
@@ -510,7 +510,7 @@ error: # Only if success: false
510
510
 
511
511
  ## Directory Importance Examples
512
512
 
513
- ### ✅ **Deserves CLAUDE.md**:
513
+ ### ✅ **Deserves CLAUDE.md**
514
514
 
515
515
  ```
516
516
  /packages/auth # Package with package.json
@@ -521,7 +521,7 @@ error: # Only if success: false
521
521
  /packages/ui/components # Component library root
522
522
  ```
523
523
 
524
- ### ❌ **Skip CLAUDE.md**:
524
+ ### ❌ **Skip CLAUDE.md**
525
525
 
526
526
  ```
527
527
  /src/utils # Just utility functions
@@ -120,6 +120,7 @@ Return a structured report containing:
120
120
  ### Core Context Report
121
121
 
122
122
  - `summary`: Multi-level executive summary
123
+
123
124
  ```
124
125
  {
125
126
  executive: string, // 2-3 sentences
@@ -127,7 +128,9 @@ Return a structured report containing:
127
128
  technical: string // Full technical overview
128
129
  }
129
130
  ```
131
+
130
132
  - `relevance_scores`: Context relevance ratings
133
+
131
134
  ```
132
135
  {
133
136
  overall: number, // 0-100
@@ -135,7 +138,9 @@ Return a structured report containing:
135
138
  by_pattern: Record<string, number>
136
139
  }
137
140
  ```
141
+
138
142
  - `key-components`: Core files/modules with metadata
143
+
139
144
  ```
140
145
  {
141
146
  path: string,
@@ -146,7 +151,9 @@ Return a structured report containing:
146
151
  summary: string
147
152
  }[]
148
153
  ```
154
+
149
155
  - `patterns`: Identified patterns with advanced metrics
156
+
150
157
  ```
151
158
  {
152
159
  pattern: string,
@@ -158,7 +165,9 @@ Return a structured report containing:
158
165
  impact: 'low' | 'medium' | 'high'
159
166
  }[]
160
167
  ```
168
+
161
169
  - `dependencies`: External dependencies with risk assessment
170
+
162
171
  ```
163
172
  {
164
173
  type: 'library' | 'service' | 'config',
@@ -169,7 +178,9 @@ Return a structured report containing:
169
178
  alternatives?: string[]
170
179
  }[]
171
180
  ```
181
+
172
182
  - `data-flow`: Hierarchical data flow representation
183
+
173
184
  ```
174
185
  {
175
186
  overview: string,
@@ -182,7 +193,9 @@ Return a structured report containing:
182
193
  }[]
183
194
  }
184
195
  ```
196
+
185
197
  - `insights`: Key discoveries and recommendations
198
+
186
199
  ```
187
200
  {
188
201
  type: 'pattern' | 'risk' | 'opportunity' | 'gotcha',
@@ -26,6 +26,7 @@ You are **debug-assistant**, an advanced debugging specialist focused on compreh
26
26
  ### Root Cause Analysis
27
27
 
28
28
  - **rootCauses**: Ranked hypotheses with confidence scores
29
+
29
30
  ```
30
31
  [
31
32
  {
@@ -48,6 +49,7 @@ You are **debug-assistant**, an advanced debugging specialist focused on compreh
48
49
  ### Fix Strategy
49
50
 
50
51
  - **fixPlan**: Detailed remediation steps
52
+
51
53
  ```
52
54
  {
53
55
  "immediate": [
@@ -70,6 +72,7 @@ You are **debug-assistant**, an advanced debugging specialist focused on compreh
70
72
  ### Code Patches
71
73
 
72
74
  - **patches**: Concrete code changes with context
75
+
73
76
  ```
74
77
  [
75
78
  {
@@ -85,6 +88,7 @@ You are **debug-assistant**, an advanced debugging specialist focused on compreh
85
88
  ### Test Coverage
86
89
 
87
90
  - **tests**: Regression and validation tests
91
+
88
92
  ```
89
93
  [
90
94
  {
@@ -100,6 +104,7 @@ You are **debug-assistant**, an advanced debugging specialist focused on compreh
100
104
  ### Prevention Recommendations
101
105
 
102
106
  - **prevention**: Long-term improvements
107
+
103
108
  ```
104
109
  {
105
110
  "codeChanges": [
@@ -27,6 +27,7 @@ Critically analyze implementation plans WITHOUT writing any code. Focus on revie
27
27
 
28
28
  **MANDATORY DEEP THINKING PHASE:**
29
29
  Before providing any review, you MUST:
30
+
30
31
  1. Deeply read and understand the entire plan
31
32
  2. **Integrate context_findings if provided** - Use the deep understanding from context-loader
32
33
  3. Consider multiple potential issues with the plan
@@ -36,6 +37,7 @@ Before providing any review, you MUST:
36
37
  7. Assess conciseness vs over-documentation
37
38
 
38
39
  **Review Steps:**
40
+
39
41
  1. **Context Integration**: If context_findings provided, use them as foundation for review:
40
42
  - Cross-reference plan against key_components identified by context-loader
41
43
  - Verify plan follows the patterns and conventions already discovered
@@ -60,7 +62,7 @@ summary: |
60
62
  strengths:
61
63
  - [What the plan does well - be specific]
62
64
  - [Areas where plan shows good understanding]
63
-
65
+
64
66
  concerns:
65
67
  - issue: [Specific concern about the plan]
66
68
  severity: low|medium|high|critical
@@ -68,16 +70,22 @@ concerns:
68
70
  suggestion: [How to address it in the plan]
69
71
 
70
72
  gaps:
71
- - missing: [What's missing from the plan that's critical for implementation. Note: Do NOT flag missing testing plans, success criteria, risk matrices, or agent assignments as gaps - these are intentionally omitted]
73
+ - missing:
74
+ [
75
+ What's missing from the plan that's critical for implementation. Note: Do NOT flag missing testing plans,
76
+ success criteria,
77
+ risk matrices,
78
+ or agent assignments as gaps - these are intentionally omitted,
79
+ ]
72
80
  rationale: [Why this gap matters for the stated goal]
73
81
  suggestion: [How to fill this gap]
74
-
82
+
75
83
  improvements:
76
84
  - area: [What could be better in the plan]
77
85
  current: [Current approach described in plan]
78
86
  suggested: [Better approach]
79
87
  rationale: [Why the suggested approach is better]
80
-
88
+
81
89
  feasibility-assessment:
82
90
  complexity: low|medium|high
83
91
  risks:
@@ -97,6 +105,7 @@ scope-validation:
97
105
  ## Guidelines
98
106
 
99
107
  **ABSOLUTE REQUIREMENTS:**
108
+
100
109
  1. **NO CODE WRITING** - Do NOT write any implementation code, only review plans
101
110
  2. **NO EXTRA SUGGESTIONS** - Do NOT suggest features not in the original plan:
102
111
  - NO backwards compatibility suggestions unless plan requested it
@@ -110,6 +119,7 @@ scope-validation:
110
119
  7. **VALIDATE CONCISENESS** - Plans should be strategic roadmaps, not exhaustive documentation
111
120
 
112
121
  **Review Principles:**
122
+
113
123
  - **Leverage context_findings when available** - Don't duplicate analysis already done by context-loader
114
124
  - Focus on plan quality, not implementation details
115
125
  - Verify plan follows existing architectural decisions (especially those identified in context_findings)
@@ -118,12 +128,14 @@ scope-validation:
118
128
  - Be explicit about scope adherence
119
129
 
120
130
  **Context Integration Best Practices:**
131
+
121
132
  - If context_findings are provided, treat them as authoritative
122
133
  - Verify plan builds upon the patterns and conventions already identified
123
134
  - Flag if plan contradicts the gotchas and edge cases discovered
124
135
  - Reference specific files from key_components when assessing plan accuracy
125
136
 
126
137
  **Quality Focus Areas:**
138
+
127
139
  - Is the plan actionable without ambiguity?
128
140
  - Are all steps concrete and specific?
129
141
  - Have edge cases been considered (including those from context)?
@@ -133,12 +145,14 @@ scope-validation:
133
145
  - Are there any missing critical steps or considerations?
134
146
 
135
147
  **Critical Scope Enforcement:**
148
+
136
149
  - Flag any suggestions for backwards compatibility not explicitly requested
137
150
  - Identify any legacy support not specifically required
138
151
  - Point out future-proofing or nice-to-haves beyond current needs
139
152
  - Ensure plan implements EXACTLY what was asked for
140
153
 
141
154
  **What NOT to Flag as Problems:**
155
+
142
156
  - Missing testing plans (testing is handled during execution, not planning)
143
157
  - Missing success criteria checklists (implementer validates)
144
158
  - Missing comprehensive risk matrices (only critical risks should be documented)
@@ -148,6 +162,7 @@ scope-validation:
148
162
  - Plans being "too concise" if they cover all critical information
149
163
 
150
164
  **What SHOULD be Flagged:**
165
+
151
166
  - Over-documentation or exhaustive details that make plan hard to use
152
167
  - Missing critical implementation steps or decisions
153
168
  - Unclear API interfaces when needed
@@ -155,4 +170,4 @@ scope-validation:
155
170
  - Scope creep or extras not requested
156
171
  - Plans where strategic direction is unclear
157
172
 
158
- Remember: Your role is critical analysis of the plan's quality and feasibility. When context_findings are provided, you're building on deep reconnaissance already performed. Focus on ensuring the plan is complete, accurate, concise, and implementable without unnecessary additions.
173
+ Remember: Your role is critical analysis of the plan's quality and feasibility. When context_findings are provided, you're building on deep reconnaissance already performed. Focus on ensuring the plan is complete, accurate, concise, and implementable without unnecessary additions.
@@ -70,6 +70,7 @@ You are **researcher**, a specialized research subagent that synthesizes externa
70
70
  #### C. Technology Comparison
71
71
 
72
72
  - **Evaluation Framework**:
73
+
73
74
  ```
74
75
  Performance: Benchmarks, latency, throughput, resource usage
75
76
  Scalability: Horizontal/vertical scaling capabilities, limits
@@ -80,6 +81,7 @@ You are **researcher**, a specialized research subagent that synthesizes externa
80
81
  Cost: Licensing, infrastructure requirements, operational costs
81
82
  Security: Known vulnerabilities, security features, compliance
82
83
  ```
84
+
83
85
  - **Comparison Matrix**: Create structured comparisons with weighted criteria
84
86
  - **Use Case Alignment**: Match technology characteristics to specific requirements
85
87
  - **Sources**: Official benchmarks, case studies, Stack Overflow surveys, GitHub statistics
@@ -51,7 +51,7 @@ Review the specified pull request, address all review comments, and fix any CI/C
51
51
 
52
52
  - If owner/repo not provided, infer from current git repository
53
53
  - Validate that the PR exists and is accessible
54
- - If at any point it becomes clear the user has not installed the GitHub MCP, direct them to the following Notion page where they can follow a tutorial for how to correctly install the GitHub MCP on Claude Code: https://www.notion.so/uniswaplabs/Using-a-GitHub-MCP-with-Claude-Code-270c52b2548b8015b11ee5e905796cb5
54
+ - If at any point it becomes clear the user has not installed the GitHub MCP, direct them to the following Notion page where they can follow a tutorial for how to correctly install the GitHub MCP on Claude Code: <https://www.notion.so/uniswaplabs/Using-a-GitHub-MCP-with-Claude-Code-270c52b2548b8015b11ee5e905796cb5>
55
55
 
56
56
  2. **Analyze PR**:
57
57
 
@@ -13,6 +13,7 @@ Intelligently manages CLAUDE.md documentation files across your repository. Supp
13
13
  Accept natural language input and extract intent:
14
14
 
15
15
  - **Input text**: Parse the user's request to understand intent
16
+
16
17
  - **"init" keywords**: "init", "initialize", "setup", "create", "bootstrap", "start"
17
18
  - Triggers: "init docs", "initialize documentation", "setup CLAUDE.md files"
18
19
  - Routes to: **INIT Path** (claude-docs-initializer agent)
@@ -24,6 +25,7 @@ Accept natural language input and extract intent:
24
25
  - Path references: "in packages/ui", "for the UI package", specific paths mentioned
25
26
 
26
27
  - **Mode determination**:
28
+
27
29
  1. Explicitly check for init keywords first → Use **INIT Path**
28
30
  2. Otherwise → Use **UPDATE Path** (default)
29
31
  3. Extract any file limit specification (e.g., "init with max 50 files per agent")
@@ -45,6 +47,7 @@ Accept natural language input and extract intent:
45
47
  ### Task for Update
46
48
 
47
49
  1. **Analyze Change Significance**:
50
+
48
51
  - Identify significant vs insignificant changes
49
52
  - Filter out minor fixes, typos, formatting
50
53
 
@@ -55,6 +58,7 @@ Accept natural language input and extract intent:
55
58
  ### Delegation for Update
56
59
 
57
60
  Invoke **claude-docs-manager** with:
61
+
58
62
  - `changes`: Complete list of all significant file changes
59
63
  - `filePath`: Absolute path to changed file
60
64
  - `changeType`: added|modified|deleted
@@ -68,6 +72,7 @@ Invoke **claude-docs-manager** with:
68
72
  - `rootGuidelines`: (Optional) Key guidelines from existing root CLAUDE.md
69
73
 
70
74
  The agent will:
75
+
71
76
  - Identify ALL CLAUDE.md files that need updates
72
77
  - Update each file with appropriate scope (component/module/package/root)
73
78
  - Create new CLAUDE.md files where needed
@@ -76,6 +81,7 @@ The agent will:
76
81
  ### Output for Update
77
82
 
78
83
  Return results from claude-docs-manager:
84
+
79
85
  ```yaml
80
86
  summary: |
81
87
  Successfully updated N CLAUDE.md files
@@ -148,12 +154,14 @@ Please be patient - the process is working even during apparent pauses.
148
154
  ### Task for Init
149
155
 
150
156
  1. **Repository Analysis**:
157
+
151
158
  - Use git to quickly understand structure: `git ls-files | wc -l`
152
159
  - Find major boundaries: packages, apps, services
153
160
  - Count files per area: `git ls-files [area] | wc -l`
154
161
  - Assess complexity by file types and patterns
155
162
 
156
163
  2. **Intelligent Area Splitting**:
164
+
157
165
  - Default: 100 files at most per agent (or user-specified limit)
158
166
  - Split areas exceeding limits into logical sub-areas
159
167
  - Identify natural boundaries (pages vs components, routes vs services)
@@ -165,6 +173,7 @@ Please be patient - the process is working even during apparent pauses.
165
173
  - Track dependencies between levels
166
174
 
167
175
  Example execution plan for large monorepo:
176
+
168
177
  ```
169
178
  Level 1 (Parallel leaf documentation):
170
179
  - Agent A: "Document user-facing frontend pages in /frontend/pages/user (50 files)"
@@ -195,11 +204,13 @@ Execute hierarchical parallelized documentation creation:
195
204
  #### Phase 1: Repository Analysis
196
205
 
197
206
  **⚠️ CRITICAL: ALWAYS prefer git commands over find/glob for discovery!**
207
+
198
208
  - Git automatically excludes node_modules, build outputs, and ignored files
199
209
  - Only use find/glob as fallback for non-git repositories
200
210
  - If using find, MUST use `*/node_modules/*` not `./node_modules/*` for exclusions
201
211
 
202
212
  Quickly analyze repository structure using git:
213
+
203
214
  - Get total file count: `git ls-files | wc -l`
204
215
  - Find package boundaries: `git ls-files | grep 'package\.json$'`
205
216
  - Identify tech stacks used and major directories and their sizes
@@ -214,6 +225,7 @@ Based on analysis, determine splitting strategy
214
225
  Invoke multiple **claude-docs-initializer** agents in PARALLEL:
215
226
 
216
227
  For each Level 1 agent:
228
+
217
229
  - `target`: "Document [specific area description] in [path]"
218
230
  - `siblingContext`: "Other agents are documenting: [list of other Level 1 areas]"
219
231
 
@@ -243,6 +255,7 @@ After all Level 2 agents complete, invoke **claude-docs-manager**:
243
255
  ### Output for Init
244
256
 
245
257
  Return aggregated results from all agents (claude-docs-initializer for all levels except repository root, claude-docs-manager for repository root only):
258
+
246
259
  ```yaml
247
260
  summary: |
248
261
  Repository analysis: [monorepo with X packages | single app | library]
@@ -254,41 +267,41 @@ executionPlan:
254
267
  level1Agents: 5 # Parallel leaf documentation
255
268
  level2Agents: 2 # Area roots
256
269
  level3Agents: 1 # Repository root
257
- totalExecutionTime: "2m 34s"
270
+ totalExecutionTime: '2m 34s'
258
271
 
259
272
  createdFilesByLevel:
260
273
  leafDocumentation:
261
- - agent: "frontend-user-pages"
274
+ - agent: 'frontend-user-pages'
262
275
  files: 3
263
- paths: ["/frontend/pages/user/CLAUDE.md", ...]
264
- - agent: "frontend-admin-pages"
276
+ paths: ['/frontend/pages/user/CLAUDE.md', ...]
277
+ - agent: 'frontend-admin-pages'
265
278
  files: 2
266
- paths: ["/frontend/pages/admin/CLAUDE.md", ...]
279
+ paths: ['/frontend/pages/admin/CLAUDE.md', ...]
267
280
 
268
281
  areaRoots:
269
- - path: "/frontend/CLAUDE.md"
270
- synthesizedFrom: ["frontend-user-pages", "frontend-admin-pages", "frontend-components"]
271
- - path: "/backend/CLAUDE.md"
272
- synthesizedFrom: ["backend-routes", "backend-services"]
282
+ - path: '/frontend/CLAUDE.md'
283
+ synthesizedFrom: ['frontend-user-pages', 'frontend-admin-pages', 'frontend-components']
284
+ - path: '/backend/CLAUDE.md'
285
+ synthesizedFrom: ['backend-routes', 'backend-services']
273
286
 
274
287
  repositoryRoot:
275
- - path: "/CLAUDE.md"
276
- synthesizedFrom: ["frontend-root", "backend-root", "database"]
288
+ - path: '/CLAUDE.md'
289
+ synthesizedFrom: ['frontend-root', 'backend-root', 'database']
277
290
 
278
291
  architecturalFindings: # Aggregated from all agents
279
- frontend: "Next.js 14 with App Router, Tailwind CSS, 234 total components"
280
- backend: "Express with layered architecture, 23 RESTful endpoints"
281
- database: "PostgreSQL with Prisma ORM, 15 models"
282
- patterns: "Consistent use of TypeScript, feature-based organization"
292
+ frontend: 'Next.js 14 with App Router, Tailwind CSS, 234 total components'
293
+ backend: 'Express with layered architecture, 23 RESTful endpoints'
294
+ database: 'PostgreSQL with Prisma ORM, 15 models'
295
+ patterns: 'Consistent use of TypeScript, feature-based organization'
283
296
 
284
297
  recommendations: # Collected from all agents
285
- - "Split large UserDashboard component (500+ lines)"
286
- - "Add CLAUDE.md for growing analytics module"
287
- - "Consider documenting complex auth flow separately"
298
+ - 'Split large UserDashboard component (500+ lines)'
299
+ - 'Add CLAUDE.md for growing analytics module'
300
+ - 'Consider documenting complex auth flow separately'
288
301
 
289
302
  errors: # Any failures across all agents
290
- - agent: "frontend-utils"
291
- error: "Failed to analyze due to circular dependencies"
303
+ - agent: 'frontend-utils'
304
+ error: 'Failed to analyze due to circular dependencies'
292
305
  ```
293
306
 
294
307
  ### Examples for Init
@@ -320,6 +333,7 @@ errors: # Any failures across all agents
320
333
  When user runs: `/claude-docs init`
321
334
 
322
335
  1. **Quick Analysis** determines:
336
+
323
337
  ```
324
338
  Total files: 2500
325
339
  Frontend: /app (1800 files)
@@ -328,6 +342,7 @@ When user runs: `/claude-docs init`
328
342
  ```
329
343
 
330
344
  2. **Intelligent Splitting** creates plan:
345
+
331
346
  ```
332
347
  Frontend needs splitting (1800 > 100):
333
348
  - /app/(user) → 450 files (complex pages) → split to 150x3
@@ -343,6 +358,7 @@ When user runs: `/claude-docs init`
343
358
  ```
344
359
 
345
360
  3. **Hierarchical Execution**:
361
+
346
362
  ```
347
363
  Level 1 (14 agents in parallel):
348
364
  ├── frontend-user-1 (150 files)
@@ -390,4 +406,4 @@ When user runs: `/claude-docs init`
390
406
  5. **Parallel Execution**: Use Task tool to spawn multiple agents simultaneously
391
407
  6. **Session-First Default**: For updates, prioritize session changes unless specified
392
408
  7. **Preserve Custom Content**: Both agents respect user-added content sections
393
- 8. **Documentation Hierarchy**: Agents create docs only at their assigned level
409
+ 8. **Documentation Hierarchy**: Agents create docs only at their assigned level
@@ -58,7 +58,7 @@ For complex test generation (multiple files or --type all), use orchestration:
58
58
 
59
59
  ## Delegation
60
60
 
61
- ### Simple Case (single file, unit tests):
61
+ ### Simple Case (single file, unit tests)
62
62
 
63
63
  Invoke **test-writer** with:
64
64
 
@@ -69,7 +69,7 @@ Invoke **test-writer** with:
69
69
  - `requirements`: from `--requirements` if provided
70
70
  - `context`: dependency information if needed
71
71
 
72
- ### Complex Case (multiple files or integration/e2e):
72
+ ### Complex Case (multiple files or integration/e2e)
73
73
 
74
74
  Invoke **agent-orchestrator** to coordinate:
75
75
 
@@ -46,4 +46,4 @@ Return structured research findings:
46
46
  - `codebase_insights`: Relevant patterns from code (when applicable)
47
47
  - `recommendations`: Actionable next steps
48
48
  - `warnings`: Important gotchas or risks
49
- - `references`: Sources consulted with links
49
+ - `references`: Sources consulted with links