@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.
- package/dist/cli-generator.cjs +28 -59
- package/dist/packages/ai-toolkit-nx-claude/src/cli-generator.d.ts +8 -10
- package/dist/packages/ai-toolkit-nx-claude/src/cli-generator.d.ts.map +1 -1
- package/dist/packages/ai-toolkit-nx-claude/src/index.d.ts +0 -1
- package/dist/packages/ai-toolkit-nx-claude/src/index.d.ts.map +1 -1
- package/generators.json +0 -15
- package/package.json +4 -35
- package/dist/content/agents/agnostic/CLAUDE.md +0 -282
- package/dist/content/agents/agnostic/agent-capability-analyst.md +0 -575
- package/dist/content/agents/agnostic/agent-optimizer.md +0 -396
- package/dist/content/agents/agnostic/agent-orchestrator.md +0 -475
- package/dist/content/agents/agnostic/cicd-agent.md +0 -301
- package/dist/content/agents/agnostic/claude-agent-discovery.md +0 -304
- package/dist/content/agents/agnostic/claude-docs-fact-checker.md +0 -435
- package/dist/content/agents/agnostic/claude-docs-initializer.md +0 -782
- package/dist/content/agents/agnostic/claude-docs-manager.md +0 -595
- package/dist/content/agents/agnostic/code-explainer.md +0 -269
- package/dist/content/agents/agnostic/code-generator.md +0 -785
- package/dist/content/agents/agnostic/commit-message-generator.md +0 -101
- package/dist/content/agents/agnostic/context-loader.md +0 -432
- package/dist/content/agents/agnostic/debug-assistant.md +0 -321
- package/dist/content/agents/agnostic/doc-writer.md +0 -536
- package/dist/content/agents/agnostic/feedback-collector.md +0 -165
- package/dist/content/agents/agnostic/infrastructure-agent.md +0 -406
- package/dist/content/agents/agnostic/migration-assistant.md +0 -489
- package/dist/content/agents/agnostic/pattern-learner.md +0 -481
- package/dist/content/agents/agnostic/performance-analyzer.md +0 -528
- package/dist/content/agents/agnostic/plan-reviewer.md +0 -173
- package/dist/content/agents/agnostic/planner.md +0 -235
- package/dist/content/agents/agnostic/pr-creator.md +0 -498
- package/dist/content/agents/agnostic/pr-reviewer.md +0 -142
- package/dist/content/agents/agnostic/prompt-engineer.md +0 -541
- package/dist/content/agents/agnostic/refactorer.md +0 -311
- package/dist/content/agents/agnostic/researcher.md +0 -349
- package/dist/content/agents/agnostic/security-analyzer.md +0 -1087
- package/dist/content/agents/agnostic/stack-splitter.md +0 -642
- package/dist/content/agents/agnostic/style-enforcer.md +0 -568
- package/dist/content/agents/agnostic/test-runner.md +0 -481
- package/dist/content/agents/agnostic/test-writer.md +0 -292
- package/dist/content/commands/agnostic/CLAUDE.md +0 -207
- package/dist/content/commands/agnostic/address-pr-issues.md +0 -205
- package/dist/content/commands/agnostic/auto-spec.md +0 -386
- package/dist/content/commands/agnostic/claude-docs.md +0 -409
- package/dist/content/commands/agnostic/claude-init-plus.md +0 -439
- package/dist/content/commands/agnostic/create-pr.md +0 -79
- package/dist/content/commands/agnostic/daily-standup.md +0 -185
- package/dist/content/commands/agnostic/deploy.md +0 -441
- package/dist/content/commands/agnostic/execute-plan.md +0 -167
- package/dist/content/commands/agnostic/explain-file.md +0 -303
- package/dist/content/commands/agnostic/explore.md +0 -82
- package/dist/content/commands/agnostic/fix-bug.md +0 -273
- package/dist/content/commands/agnostic/gen-tests.md +0 -185
- package/dist/content/commands/agnostic/generate-commit-message.md +0 -92
- package/dist/content/commands/agnostic/git-worktree-orchestrator.md +0 -647
- package/dist/content/commands/agnostic/implement-spec.md +0 -270
- package/dist/content/commands/agnostic/monitor.md +0 -581
- package/dist/content/commands/agnostic/perf-analyze.md +0 -214
- package/dist/content/commands/agnostic/plan.md +0 -453
- package/dist/content/commands/agnostic/refactor.md +0 -315
- package/dist/content/commands/agnostic/refine-linear-task.md +0 -575
- package/dist/content/commands/agnostic/research.md +0 -49
- package/dist/content/commands/agnostic/review-code.md +0 -321
- package/dist/content/commands/agnostic/review-plan.md +0 -109
- package/dist/content/commands/agnostic/review-pr.md +0 -393
- package/dist/content/commands/agnostic/split-stack.md +0 -705
- package/dist/content/commands/agnostic/update-claude-md.md +0 -401
- package/dist/content/commands/agnostic/work-through-pr-comments.md +0 -873
- package/dist/generators/add-agent/CLAUDE.md +0 -130
- package/dist/generators/add-agent/files/__name__.md.template +0 -37
- package/dist/generators/add-agent/generator.cjs +0 -640
- package/dist/generators/add-agent/schema.json +0 -59
- package/dist/generators/add-command/CLAUDE.md +0 -131
- package/dist/generators/add-command/files/__name__.md.template +0 -46
- package/dist/generators/add-command/generator.cjs +0 -643
- package/dist/generators/add-command/schema.json +0 -50
- package/dist/generators/files/src/index.ts.template +0 -1
- package/dist/generators/init/CLAUDE.md +0 -520
- package/dist/generators/init/generator.cjs +0 -3304
- package/dist/generators/init/schema.json +0 -180
- package/dist/packages/ai-toolkit-nx-claude/src/generators/add-agent/generator.d.ts +0 -5
- package/dist/packages/ai-toolkit-nx-claude/src/generators/add-agent/generator.d.ts.map +0 -1
- package/dist/packages/ai-toolkit-nx-claude/src/generators/add-command/generator.d.ts +0 -5
- package/dist/packages/ai-toolkit-nx-claude/src/generators/add-command/generator.d.ts.map +0 -1
- package/dist/packages/ai-toolkit-nx-claude/src/generators/init/generator.d.ts +0 -5
- package/dist/packages/ai-toolkit-nx-claude/src/generators/init/generator.d.ts.map +0 -1
- package/dist/packages/ai-toolkit-nx-claude/src/utils/auto-update-utils.d.ts +0 -30
- package/dist/packages/ai-toolkit-nx-claude/src/utils/auto-update-utils.d.ts.map +0 -1
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Generate comprehensive tests with advanced testing strategies, scenario generation, and edge case identification using the enhanced test-writer agent.
|
|
3
|
-
argument-hint: [paths...] [--framework jest|vitest|pytest|cypress|playwright] [--type unit|integration|e2e|all] [--strategy standard|scenario|property|mutation|accessibility] [--requirements "user stories"]
|
|
4
|
-
allowed-tools: Read(*), Grep(*), Task(subagent_type:test-writer), Task(subagent_type:context-loader)
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## Inputs
|
|
8
|
-
|
|
9
|
-
Parse arguments from `$ARGUMENTS`:
|
|
10
|
-
|
|
11
|
-
- **paths**: One or more file paths to generate tests for
|
|
12
|
-
- **--framework**: Testing framework (jest|vitest|pytest|cypress|playwright)
|
|
13
|
-
- **--type**: Test type (unit|integration|e2e|all) - default: unit
|
|
14
|
-
- **--strategy**: Testing strategy (standard|scenario|property|mutation|accessibility) - default: standard
|
|
15
|
-
- **--requirements**: Optional user stories or acceptance criteria for scenario generation
|
|
16
|
-
- **--edge-cases**: Flag to emphasize edge case identification (default: true)
|
|
17
|
-
- **--maintenance**: Flag to include test maintenance recommendations (default: false)
|
|
18
|
-
|
|
19
|
-
Examples:
|
|
20
|
-
|
|
21
|
-
- `/gen-tests src/auth/login.ts`
|
|
22
|
-
- `/gen-tests src/api/*.ts --type integration --framework jest`
|
|
23
|
-
- `/gen-tests src/components/Form.tsx --strategy scenario --requirements "As a user, I want to submit forms with validation"`
|
|
24
|
-
- `/gen-tests src/utils/ --type all --edge-cases --maintenance`
|
|
25
|
-
|
|
26
|
-
## Task
|
|
27
|
-
|
|
28
|
-
Generate comprehensive tests leveraging the enhanced test-writer agent's advanced capabilities:
|
|
29
|
-
|
|
30
|
-
1. **Context Analysis**: First understand the code structure and dependencies
|
|
31
|
-
2. **Test Generation**: Create tests based on the specified strategy
|
|
32
|
-
3. **Edge Case Identification**: Automatically identify boundary conditions
|
|
33
|
-
4. **Scenario Generation**: Create behavior-driven tests from requirements
|
|
34
|
-
5. **Maintenance Recommendations**: Suggest test organization and refactoring
|
|
35
|
-
|
|
36
|
-
## Orchestration Strategy
|
|
37
|
-
|
|
38
|
-
For complex test generation (multiple files or --type all), use orchestration:
|
|
39
|
-
|
|
40
|
-
1. **Context Loading Phase**:
|
|
41
|
-
|
|
42
|
-
- Invoke **context-loader** to understand the codebase area
|
|
43
|
-
- Identify dependencies and integration points
|
|
44
|
-
- Gather existing test patterns
|
|
45
|
-
|
|
46
|
-
2. **Test Generation Phase**:
|
|
47
|
-
|
|
48
|
-
- For unit tests: Direct delegation to **test-writer**
|
|
49
|
-
- For integration/e2e: Coordinate multiple agents:
|
|
50
|
-
- **test-writer** for test scenarios
|
|
51
|
-
- **context-loader** for API/database schemas
|
|
52
|
-
- **security-analyzer** for security test cases (if applicable)
|
|
53
|
-
|
|
54
|
-
3. **Quality Assurance Phase**:
|
|
55
|
-
- Validate test coverage completeness
|
|
56
|
-
- Check for test anti-patterns
|
|
57
|
-
- Ensure proper mocking strategies
|
|
58
|
-
|
|
59
|
-
## Delegation
|
|
60
|
-
|
|
61
|
-
### Simple Case (single file, unit tests)
|
|
62
|
-
|
|
63
|
-
Invoke **test-writer** with:
|
|
64
|
-
|
|
65
|
-
- `paths`: parsed file paths
|
|
66
|
-
- `framework`: from `--framework` or auto-detected
|
|
67
|
-
- `coverage`: from `--type` (map to coverage type)
|
|
68
|
-
- `testType`: from `--strategy`
|
|
69
|
-
- `requirements`: from `--requirements` if provided
|
|
70
|
-
- `context`: dependency information if needed
|
|
71
|
-
|
|
72
|
-
### Complex Case (multiple files or integration/e2e)
|
|
73
|
-
|
|
74
|
-
Invoke **agent-orchestrator** to coordinate:
|
|
75
|
-
|
|
76
|
-
- **context-loader**: Build comprehensive understanding
|
|
77
|
-
- **test-writer**: Generate test scenarios and implementations
|
|
78
|
-
- **security-analyzer**: Add security test cases (for APIs)
|
|
79
|
-
- **performance-analyzer**: Add performance benchmarks (for critical paths)
|
|
80
|
-
|
|
81
|
-
## Output Format
|
|
82
|
-
|
|
83
|
-
```typescript
|
|
84
|
-
{
|
|
85
|
-
summary: string; // Overview of test generation strategy
|
|
86
|
-
testStrategy: {
|
|
87
|
-
approach: string; // Selected testing approach
|
|
88
|
-
coverage: number; // Estimated coverage percentage
|
|
89
|
-
edgeCasesIdentified: number;
|
|
90
|
-
scenariosGenerated: number;
|
|
91
|
-
};
|
|
92
|
-
suggestedTests: Array<{
|
|
93
|
-
file: string; // Test file path
|
|
94
|
-
contents: string; // Complete test file
|
|
95
|
-
rationale: string[]; // Key test cases covered
|
|
96
|
-
scenarios: Array<{ // Generated test scenarios
|
|
97
|
-
name: string;
|
|
98
|
-
description: string;
|
|
99
|
-
type: 'happy-path' | 'edge-case' | 'error-handling' | 'security';
|
|
100
|
-
}>;
|
|
101
|
-
edgeCases: Array<{ // Identified edge cases
|
|
102
|
-
category: string;
|
|
103
|
-
cases: string[];
|
|
104
|
-
severity: 'critical' | 'important' | 'nice-to-have';
|
|
105
|
-
}>;
|
|
106
|
-
}>;
|
|
107
|
-
recommendations?: { // If --maintenance flag is set
|
|
108
|
-
refactoring: string[]; // Test refactoring opportunities
|
|
109
|
-
utilities: string[]; // Suggested test utilities
|
|
110
|
-
organization: string; // Test structure improvements
|
|
111
|
-
maintenance: string[]; // Maintenance guidelines
|
|
112
|
-
};
|
|
113
|
-
integrationPoints?: Array<{ // For integration/e2e tests
|
|
114
|
-
service: string;
|
|
115
|
-
mockingStrategy: string;
|
|
116
|
-
dependencies: string[];
|
|
117
|
-
}>;
|
|
118
|
-
}
|
|
119
|
-
```
|
|
120
|
-
|
|
121
|
-
## Advanced Features
|
|
122
|
-
|
|
123
|
-
### Scenario-Driven Testing
|
|
124
|
-
|
|
125
|
-
When `--strategy scenario` is used with `--requirements`:
|
|
126
|
-
|
|
127
|
-
- Parse user stories into Given-When-Then scenarios
|
|
128
|
-
- Generate behavior-driven test cases
|
|
129
|
-
- Create acceptance test suites
|
|
130
|
-
- Map requirements to test coverage
|
|
131
|
-
|
|
132
|
-
### Property-Based Testing
|
|
133
|
-
|
|
134
|
-
When `--strategy property` is used:
|
|
135
|
-
|
|
136
|
-
- Identify pure functions suitable for property testing
|
|
137
|
-
- Generate property-based test scenarios
|
|
138
|
-
- Create hypothesis-driven test cases
|
|
139
|
-
- Include random data generators with constraints
|
|
140
|
-
|
|
141
|
-
### Edge Case Emphasis
|
|
142
|
-
|
|
143
|
-
When `--edge-cases` flag is set (default):
|
|
144
|
-
|
|
145
|
-
- Comprehensive boundary value analysis
|
|
146
|
-
- Null/undefined/empty handling
|
|
147
|
-
- Overflow/underflow conditions
|
|
148
|
-
- Security edge cases (injection, XSS)
|
|
149
|
-
- Concurrency and race conditions
|
|
150
|
-
|
|
151
|
-
### Test Maintenance Mode
|
|
152
|
-
|
|
153
|
-
When `--maintenance` flag is set:
|
|
154
|
-
|
|
155
|
-
- Identify brittle tests
|
|
156
|
-
- Suggest test utilities and factories
|
|
157
|
-
- Recommend test organization improvements
|
|
158
|
-
- Provide documentation templates
|
|
159
|
-
|
|
160
|
-
## Examples
|
|
161
|
-
|
|
162
|
-
### Basic Unit Test Generation
|
|
163
|
-
|
|
164
|
-
```bash
|
|
165
|
-
/gen-tests src/utils/validator.ts
|
|
166
|
-
```
|
|
167
|
-
|
|
168
|
-
### Comprehensive Integration Testing
|
|
169
|
-
|
|
170
|
-
```bash
|
|
171
|
-
/gen-tests src/api/ --type integration --framework jest
|
|
172
|
-
```
|
|
173
|
-
|
|
174
|
-
### Scenario-Driven E2E Tests
|
|
175
|
-
|
|
176
|
-
```bash
|
|
177
|
-
/gen-tests src/features/checkout/ --type e2e --strategy scenario \
|
|
178
|
-
--requirements "As a customer, I want to complete checkout with multiple payment methods"
|
|
179
|
-
```
|
|
180
|
-
|
|
181
|
-
### Full Test Suite with Maintenance
|
|
182
|
-
|
|
183
|
-
```bash
|
|
184
|
-
/gen-tests src/core/ --type all --edge-cases --maintenance
|
|
185
|
-
```
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: generate-commit-message
|
|
3
|
-
description: Generate a structured git commit message based on current changes and repository patterns
|
|
4
|
-
argument-hint: [scope or focus area]
|
|
5
|
-
allowed-tools: Bash(git status:*), Bash(git diff:*), Bash(git log:*)
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
# /generate-commit-message Command
|
|
9
|
-
|
|
10
|
-
## Description
|
|
11
|
-
|
|
12
|
-
This command generates a well-structured git commit message that follows conventional format by analyzing current git state and repository patterns. It creates contextually appropriate commit messages with a concise summary line, detailed explanation of WHAT and WHY, and proper formatting.
|
|
13
|
-
|
|
14
|
-
## Usage
|
|
15
|
-
|
|
16
|
-
```
|
|
17
|
-
/generate-commit-message [scope or focus area]
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
## Arguments
|
|
21
|
-
|
|
22
|
-
- `scope`: Optional scope or component focus (e.g., "auth", "frontend", "api")
|
|
23
|
-
- Natural language descriptions like "focus on authentication changes" or "database migration"
|
|
24
|
-
|
|
25
|
-
## Instructions
|
|
26
|
-
|
|
27
|
-
This command accomplishes the following:
|
|
28
|
-
|
|
29
|
-
1. **Gather Git Information**:
|
|
30
|
-
|
|
31
|
-
- Runs `git status` to see staged and unstaged changes
|
|
32
|
-
- Runs `git diff --cached` to get detailed staged changes
|
|
33
|
-
- Runs `git diff` to get unstaged changes (if any)
|
|
34
|
-
- Runs `git log --oneline -10` to understand repository commit patterns
|
|
35
|
-
|
|
36
|
-
2. **Parse Input**: Extracts any scope or focus area from the user's natural language input
|
|
37
|
-
|
|
38
|
-
3. **Delegate to Agent**: Invokes the **commit-message-generator** agent with structured git data
|
|
39
|
-
|
|
40
|
-
The command generates a commit message that follows conventional format:
|
|
41
|
-
|
|
42
|
-
- Concise summary line (≤100 characters)
|
|
43
|
-
- Detailed explanation of WHAT and WHY (1-3 paragraphs, preferably 1 paragraph)
|
|
44
|
-
- Claude Code signature
|
|
45
|
-
|
|
46
|
-
**Expected Inputs**: Natural language scope or focus area (optional)
|
|
47
|
-
**Expected Outputs**: Formatted commit message ready for git commit
|
|
48
|
-
**Error Handling**: Informs user to make first make changes if there haven't been any code changes
|
|
49
|
-
**Special Considerations**: includes staged and unstaged changes for context, preserves repository's existing commit message conventions
|
|
50
|
-
|
|
51
|
-
## Examples
|
|
52
|
-
|
|
53
|
-
### Example 1: Basic usage without scope
|
|
54
|
-
|
|
55
|
-
```
|
|
56
|
-
/generate-commit-message
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
### Example 2: With specific scope
|
|
60
|
-
|
|
61
|
-
```
|
|
62
|
-
/generate-commit-message auth
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
### Example 3: With natural language focus
|
|
66
|
-
|
|
67
|
-
```
|
|
68
|
-
/generate-commit-message focusing on API changes
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
### Example 4: With descriptive focus
|
|
72
|
-
|
|
73
|
-
```
|
|
74
|
-
/generate-commit-message database refactoring
|
|
75
|
-
```
|
|
76
|
-
|
|
77
|
-
## Implementation Notes
|
|
78
|
-
|
|
79
|
-
The command delegates to the **commit-message-generator** agent with the following structured data:
|
|
80
|
-
|
|
81
|
-
```json
|
|
82
|
-
{
|
|
83
|
-
"staged_changes": "<git diff --cached output>",
|
|
84
|
-
"unstaged_changes": "<git diff output or null>",
|
|
85
|
-
"commit_history": "<git log output>",
|
|
86
|
-
"scope": "<extracted scope or null>"
|
|
87
|
-
}
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
**Dependencies**: Requires git repository with changes (staged or unstaged)
|
|
91
|
-
**Output Format**: Returns generated commit message in a code block for easy copying
|
|
92
|
-
**Safety**: Never executes `git commit` - only generates the message text
|