@paulduvall/claude-dev-toolkit 0.0.1-alpha.2 โ 0.0.1-alpha.21
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/LICENSE +21 -0
- package/README.md +88 -37
- package/bin/claude-commands +307 -65
- package/commands/active/xarchitecture.md +393 -0
- package/commands/active/xconfig.md +127 -0
- package/commands/active/xcontinue.md +92 -0
- package/commands/active/xdebug.md +130 -0
- package/commands/active/xdocs.md +178 -0
- package/commands/active/xexplore.md +94 -0
- package/commands/active/xgit.md +149 -0
- package/commands/active/xpipeline.md +152 -0
- package/commands/active/xquality.md +96 -0
- package/commands/active/xrefactor.md +198 -0
- package/commands/active/xrelease.md +142 -0
- package/commands/active/xsecurity.md +92 -0
- package/commands/active/xspec.md +174 -0
- package/commands/active/xtdd.md +151 -0
- package/commands/active/xtest.md +89 -0
- package/commands/active/xverify.md +80 -0
- package/commands/experiments/xact.md +742 -0
- package/commands/experiments/xanalytics.md +113 -0
- package/commands/experiments/xanalyze.md +70 -0
- package/commands/experiments/xapi.md +161 -0
- package/commands/experiments/xatomic.md +112 -0
- package/commands/experiments/xaws.md +85 -0
- package/commands/experiments/xcicd.md +337 -0
- package/commands/experiments/xcommit.md +122 -0
- package/commands/experiments/xcompliance.md +182 -0
- package/commands/experiments/xconstraints.md +89 -0
- package/commands/experiments/xcoverage.md +90 -0
- package/commands/experiments/xdb.md +102 -0
- package/commands/experiments/xdesign.md +121 -0
- package/commands/experiments/xdevcontainer.md +238 -0
- package/commands/experiments/xevaluate.md +111 -0
- package/commands/experiments/xfootnote.md +12 -0
- package/commands/experiments/xgenerate.md +117 -0
- package/commands/experiments/xgovernance.md +149 -0
- package/commands/experiments/xgreen.md +66 -0
- package/commands/experiments/xiac.md +118 -0
- package/commands/experiments/xincident.md +137 -0
- package/commands/experiments/xinfra.md +115 -0
- package/commands/experiments/xknowledge.md +115 -0
- package/commands/experiments/xmaturity.md +120 -0
- package/commands/experiments/xmetrics.md +118 -0
- package/commands/experiments/xmonitoring.md +128 -0
- package/commands/experiments/xnew.md +903 -0
- package/commands/experiments/xobservable.md +114 -0
- package/commands/experiments/xoidc.md +165 -0
- package/commands/experiments/xoptimize.md +115 -0
- package/commands/experiments/xperformance.md +112 -0
- package/commands/experiments/xplanning.md +131 -0
- package/commands/experiments/xpolicy.md +115 -0
- package/commands/experiments/xproduct.md +98 -0
- package/commands/experiments/xreadiness.md +75 -0
- package/commands/experiments/xred.md +55 -0
- package/commands/experiments/xrisk.md +128 -0
- package/commands/experiments/xrules.md +124 -0
- package/commands/experiments/xsandbox.md +120 -0
- package/commands/experiments/xscan.md +102 -0
- package/commands/experiments/xsetup.md +123 -0
- package/commands/experiments/xtemplate.md +116 -0
- package/commands/experiments/xtrace.md +212 -0
- package/commands/experiments/xux.md +171 -0
- package/commands/experiments/xvalidate.md +104 -0
- package/commands/experiments/xworkflow.md +113 -0
- package/hooks/.smellrc.example.json +19 -0
- package/hooks/README.md +263 -0
- package/hooks/check-commit-signing.py +127 -0
- package/hooks/check-complexity.py +38 -0
- package/hooks/check-security.py +37 -0
- package/hooks/claude-wrapper.sh +29 -0
- package/hooks/config.py +110 -0
- package/hooks/file-logger.sh +100 -0
- package/hooks/lib/argument-parser.sh +427 -0
- package/hooks/lib/config-constants.sh +230 -0
- package/hooks/lib/context-manager.sh +560 -0
- package/hooks/lib/error-handler.sh +423 -0
- package/hooks/lib/execution-engine.sh +444 -0
- package/hooks/lib/execution-results.sh +113 -0
- package/hooks/lib/execution-simulation.sh +114 -0
- package/hooks/lib/field-validators.sh +104 -0
- package/hooks/lib/file-utils.sh +398 -0
- package/hooks/lib/subagent-discovery.sh +468 -0
- package/hooks/lib/subagent-validator.sh +407 -0
- package/hooks/lib/validation-reporter.sh +134 -0
- package/hooks/on-error-debug.sh +226 -0
- package/hooks/pre-commit-quality.sh +204 -0
- package/hooks/pre-commit-test-runner.sh +132 -0
- package/hooks/pre-write-security.sh +115 -0
- package/hooks/prevent-credential-exposure.sh +279 -0
- package/hooks/security_bandit.py +177 -0
- package/hooks/security_checks.py +97 -0
- package/hooks/security_secrets.py +81 -0
- package/hooks/security_trojan.py +61 -0
- package/hooks/settings.example.json +52 -0
- package/hooks/smell_checks.py +238 -0
- package/hooks/smell_javascript.py +231 -0
- package/hooks/smell_python.py +110 -0
- package/hooks/smell_ruff.py +70 -0
- package/hooks/smell_types.py +72 -0
- package/hooks/subagent-trigger-simple.sh +202 -0
- package/hooks/subagent-trigger.sh +253 -0
- package/hooks/suppression.py +82 -0
- package/hooks/tab-color.sh +70 -0
- package/hooks/verify-before-edit.sh +135 -0
- package/lib/backup-restore-command.js +140 -0
- package/lib/base/base-command.js +252 -0
- package/lib/base/command-result.js +184 -0
- package/lib/config/constants.js +255 -0
- package/lib/config.js +48 -6
- package/lib/configure-command.js +428 -0
- package/lib/dependency-validator.js +64 -5
- package/lib/hook-installer-core.js +2 -2
- package/lib/installation-instruction-generator.js +213 -495
- package/lib/installer.js +134 -56
- package/lib/oidc-command.js +740 -0
- package/lib/services/backup-list-service.js +226 -0
- package/lib/services/backup-service.js +230 -0
- package/lib/services/command-installer-service.js +217 -0
- package/lib/services/logger-service.js +201 -0
- package/lib/services/package-manager-service.js +319 -0
- package/lib/services/platform-instruction-service.js +294 -0
- package/lib/services/recovery-instruction-service.js +348 -0
- package/lib/services/restore-service.js +221 -0
- package/lib/setup-command.js +359 -0
- package/lib/setup-wizard.js +155 -262
- package/lib/uninstall-command.js +100 -0
- package/lib/utils/claude-path-config.js +184 -0
- package/lib/utils/file-system-utils.js +152 -0
- package/lib/utils.js +8 -4
- package/lib/verify-command.js +430 -0
- package/package.json +7 -3
- package/scripts/postinstall.js +172 -157
- package/subagents/debug-specialist.md +7 -0
- package/templates/README.md +115 -0
- package/templates/basic-settings.json +30 -0
- package/templates/comprehensive-settings.json +57 -0
- package/templates/global-claude.md +344 -0
- package/templates/hybrid-hook-config.yaml +132 -0
- package/templates/security-focused-settings.json +62 -0
- package/templates/subagent-hooks.yaml +188 -0
- package/lib/package-manager-service.js +0 -270
- package/subagents/debug-context.md +0 -197
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Paul Duvall
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,19 +1,12 @@
|
|
|
1
1
|
# Claude Dev Toolkit
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
[](https://opensource.org/licenses/MIT)
|
|
5
|
-

|
|
6
|
-

|
|
7
|
-

|
|
8
|
-

|
|
9
|
-
|
|
10
|
-
**Transform Claude Code into a complete development platform** with 58 AI-powered custom commands that automate your entire software development workflow.
|
|
3
|
+
**Transform Claude Code into a complete development platform** with 62 AI-powered custom commands that automate your entire software development workflow.
|
|
11
4
|
|
|
12
5
|
## ๐ Quick Installation
|
|
13
6
|
|
|
14
7
|
```bash
|
|
15
8
|
# Install globally via NPM
|
|
16
|
-
npm install -g claude-dev-toolkit
|
|
9
|
+
npm install -g @paulduvall/claude-dev-toolkit
|
|
17
10
|
|
|
18
11
|
# Commands are immediately available in Claude Code
|
|
19
12
|
claude
|
|
@@ -22,33 +15,34 @@ claude
|
|
|
22
15
|
|
|
23
16
|
## ๐ฆ What's Included
|
|
24
17
|
|
|
25
|
-
- **
|
|
26
|
-
- **
|
|
18
|
+
- **16 Active Commands**: Production-ready commands for immediate use
|
|
19
|
+
- **46 Experimental Commands**: Cutting-edge features for early adopters
|
|
27
20
|
- **Security Hooks**: Automated security validation and governance
|
|
28
21
|
- **Configuration Templates**: Pre-configured settings for different workflows
|
|
29
22
|
- **Interactive Setup Wizard**: Guided installation with customization options
|
|
30
|
-
- **JavaScript Test Suite**:
|
|
23
|
+
- **JavaScript Test Suite**: 25 test suites validating package structure, commands, and integration
|
|
31
24
|
|
|
32
25
|
## ๐ฏ Quick Start
|
|
33
26
|
|
|
34
27
|
### Option 1: Automatic Setup (Recommended)
|
|
35
28
|
```bash
|
|
36
|
-
npm install -g claude-dev-toolkit
|
|
29
|
+
npm install -g @paulduvall/claude-dev-toolkit
|
|
37
30
|
# Interactive setup wizard runs automatically
|
|
38
31
|
```
|
|
39
32
|
|
|
40
33
|
### Option 2: Manual Command Installation
|
|
41
34
|
```bash
|
|
42
35
|
# Install specific command sets
|
|
43
|
-
claude-commands install --active # Install
|
|
44
|
-
claude-commands install --
|
|
45
|
-
claude-commands install --all # Install all
|
|
36
|
+
claude-commands install --active # Install 16 production commands
|
|
37
|
+
claude-commands install --experiments # Install 46 experimental commands
|
|
38
|
+
claude-commands install --all # Install all 62 commands
|
|
46
39
|
```
|
|
47
40
|
|
|
48
41
|
### Option 3: Custom Installation
|
|
49
42
|
```bash
|
|
50
43
|
claude-commands list # See all available commands
|
|
51
44
|
claude-commands status # Check installation status
|
|
45
|
+
claude-commands oidc --help # Configure GitHub Actions OIDC with AWS
|
|
52
46
|
```
|
|
53
47
|
|
|
54
48
|
## ๐ Available Commands
|
|
@@ -74,7 +68,7 @@ claude-commands status # Check installation status
|
|
|
74
68
|
- **`/xconfig`** - Configuration management
|
|
75
69
|
- **`/xtdd`** - Test-driven development automation
|
|
76
70
|
|
|
77
|
-
### ๐งช **Experimental Commands** (
|
|
71
|
+
### ๐งช **Experimental Commands** (46 Additional)
|
|
78
72
|
Advanced commands for specialized workflows:
|
|
79
73
|
- **Planning & Analytics**: `/xplanning`, `/xanalytics`, `/xmetrics`
|
|
80
74
|
- **Infrastructure**: `/xinfra`, `/xmonitoring`, `/xaws`
|
|
@@ -89,9 +83,24 @@ Advanced commands for specialized workflows:
|
|
|
89
83
|
claude-commands list # List all available commands
|
|
90
84
|
claude-commands status # Show installation status
|
|
91
85
|
claude-commands install --active # Install production commands
|
|
92
|
-
claude-commands install --
|
|
86
|
+
claude-commands install --experiments # Install experimental commands
|
|
93
87
|
claude-commands install --all # Install all commands
|
|
94
88
|
|
|
89
|
+
# Configuration Management
|
|
90
|
+
claude-commands config --list # List available templates
|
|
91
|
+
claude-commands config --template <name> # Apply configuration template
|
|
92
|
+
claude-commands config --help # Show config command help
|
|
93
|
+
|
|
94
|
+
# OIDC Configuration (NEW)
|
|
95
|
+
claude-commands oidc --help # Show OIDC configuration options
|
|
96
|
+
claude-commands oidc --dry-run # Preview OIDC setup actions
|
|
97
|
+
claude-commands oidc --region us-west-2 --stack-name my-oidc # Configure AWS OIDC
|
|
98
|
+
|
|
99
|
+
# Subagents Management
|
|
100
|
+
claude-commands subagents --list # List available subagents
|
|
101
|
+
claude-commands subagents --install # Install subagents to Claude Code
|
|
102
|
+
claude-commands subagents --help # Show subagents command help
|
|
103
|
+
|
|
95
104
|
# In Claude Code
|
|
96
105
|
/xhelp # Show command help
|
|
97
106
|
/xtest # Run intelligent test suite
|
|
@@ -102,19 +111,37 @@ claude-commands install --all # Install all commands
|
|
|
102
111
|
|
|
103
112
|
## ๐ง Configuration
|
|
104
113
|
|
|
114
|
+
### Configuration Management
|
|
115
|
+
|
|
116
|
+
Use the built-in config command to manage Claude Code settings:
|
|
117
|
+
|
|
118
|
+
```bash
|
|
119
|
+
# List available configuration templates
|
|
120
|
+
claude-commands config --list
|
|
121
|
+
|
|
122
|
+
# Apply a specific template
|
|
123
|
+
claude-commands config --template basic-settings.json
|
|
124
|
+
claude-commands config --template security-focused-settings.json
|
|
125
|
+
claude-commands config --template comprehensive-settings.json
|
|
126
|
+
|
|
127
|
+
# Show help for config command
|
|
128
|
+
claude-commands config --help
|
|
129
|
+
```
|
|
130
|
+
|
|
105
131
|
### Installation Locations
|
|
106
132
|
- **Commands**: `~/.claude/commands/active/` and `~/.claude/commands/experiments/`
|
|
107
133
|
- **Configuration**: `~/.claude/settings.json`
|
|
108
134
|
- **Security Hooks**: `~/.claude/hooks/`
|
|
135
|
+
- **Templates**: Bundled with package installation
|
|
109
136
|
|
|
110
137
|
### Configuration Templates
|
|
111
138
|
The package includes three pre-configured templates:
|
|
112
139
|
|
|
113
140
|
1. **Basic** (`basic-settings.json`): Minimal setup for command functionality
|
|
114
|
-
2. **Security-Focused** (`security-focused-settings.json`): Enhanced security with hooks
|
|
141
|
+
2. **Security-Focused** (`security-focused-settings.json`): Enhanced security with hooks
|
|
115
142
|
3. **Comprehensive** (`comprehensive-settings.json`): Full feature set with governance
|
|
116
143
|
|
|
117
|
-
Templates are
|
|
144
|
+
Templates are applied via the config command with automatic backup of existing settings.
|
|
118
145
|
|
|
119
146
|
## ๐งช Development & Testing
|
|
120
147
|
|
|
@@ -127,6 +154,8 @@ npm test
|
|
|
127
154
|
npm run test:commands # Command validation
|
|
128
155
|
npm run test:workflow # Core workflow tests
|
|
129
156
|
npm run test:security # Security command tests
|
|
157
|
+
npm run test:config # Configuration command tests
|
|
158
|
+
npm run test:subagents # Subagents CLI command tests
|
|
130
159
|
npm run test:req007 # Interactive setup wizard
|
|
131
160
|
npm run test:req009 # Configuration templates
|
|
132
161
|
npm run test:req018 # Security hook installation
|
|
@@ -137,15 +166,15 @@ npm run lint # Code linting
|
|
|
137
166
|
```
|
|
138
167
|
|
|
139
168
|
### Test Coverage
|
|
140
|
-
- **
|
|
141
|
-
- **Command Validation**: All
|
|
142
|
-
- **Security Tests**:
|
|
143
|
-
- **Integration Tests**:
|
|
144
|
-
- **
|
|
169
|
+
- **25 Test Suites**: Package structure, CLI, and command validation
|
|
170
|
+
- **Command Validation**: All commands validated for structure and naming
|
|
171
|
+
- **Security Tests**: Credential exposure and placeholder detection
|
|
172
|
+
- **Integration Tests**: Hook and subagent workflow testing
|
|
173
|
+
- **Shell Tests**: 8 bash test suites for hooks and lib modules
|
|
145
174
|
|
|
146
175
|
### Architecture
|
|
147
|
-
- **
|
|
148
|
-
- **JavaScript-Based**:
|
|
176
|
+
- **Self-Contained Package**: No dependencies on repository cloning
|
|
177
|
+
- **JavaScript-Based**: Native Node.js integration with comprehensive testing
|
|
149
178
|
- **Modular Design**: Separate installer, config, and validation modules
|
|
150
179
|
- **Cross-Platform**: Works on macOS, Linux, and Windows
|
|
151
180
|
|
|
@@ -173,7 +202,7 @@ claude-commands install --active # Reinstall commands
|
|
|
173
202
|
chmod 755 ~/.claude/commands/*.md # Fix permissions
|
|
174
203
|
|
|
175
204
|
# Missing experimental commands?
|
|
176
|
-
claude-commands install --
|
|
205
|
+
claude-commands install --experiments # Install experimental set
|
|
177
206
|
|
|
178
207
|
# Test failures?
|
|
179
208
|
npm test # Run full test suite
|
|
@@ -182,13 +211,13 @@ npm run validate # Validate package
|
|
|
182
211
|
|
|
183
212
|
### Validation Commands
|
|
184
213
|
```bash
|
|
185
|
-
# Repository validation (from main repo)
|
|
186
|
-
./validate-commands.sh # JavaScript-based validation
|
|
187
|
-
./verify-setup.sh # Complete setup verification
|
|
188
|
-
|
|
189
214
|
# Package validation
|
|
190
215
|
npm run validate # Package structure validation
|
|
191
216
|
npm test # Comprehensive test suite
|
|
217
|
+
|
|
218
|
+
# CLI validation
|
|
219
|
+
claude-commands verify # Complete setup verification
|
|
220
|
+
claude-commands list # Check installed commands
|
|
192
221
|
```
|
|
193
222
|
|
|
194
223
|
## ๐ Documentation
|
|
@@ -204,6 +233,7 @@ Every command includes built-in help:
|
|
|
204
233
|
/xtest help # Show all testing options
|
|
205
234
|
/xquality help # Show quality check options
|
|
206
235
|
/xsecurity help # Show security scanning options
|
|
236
|
+
/xconfig help # Show configuration options
|
|
207
237
|
```
|
|
208
238
|
|
|
209
239
|
## ๐ค Contributing
|
|
@@ -221,8 +251,8 @@ npm test
|
|
|
221
251
|
```
|
|
222
252
|
|
|
223
253
|
### Adding Commands
|
|
224
|
-
1. Create command files in
|
|
225
|
-
2. Commands
|
|
254
|
+
1. Create command files in repository `slash-commands/active/` or `slash-commands/experiments/`
|
|
255
|
+
2. Commands are included in NPM package through build process
|
|
226
256
|
3. Validate with `npm run test:commands`
|
|
227
257
|
4. Follow existing patterns and security guidelines
|
|
228
258
|
|
|
@@ -233,12 +263,33 @@ npm test
|
|
|
233
263
|
|
|
234
264
|
## ๐ Recent Updates
|
|
235
265
|
|
|
236
|
-
### Version 0.0.1-alpha.
|
|
266
|
+
### Version 0.0.1-alpha.9
|
|
267
|
+
- โ
**NEW: OIDC Command**: GitHub Actions to AWS OIDC integration (`claude-commands oidc`)
|
|
268
|
+
- โ
**TDD Implementation**: Phase 1 foundation with comprehensive test coverage (14/14 tests)
|
|
269
|
+
- โ
**CLI Integration**: Full command-line interface with help, dry-run, and configuration options
|
|
270
|
+
- โ
**Error Framework**: Enhanced error handling with context-aware recovery suggestions
|
|
271
|
+
- โ
**Dependency Validation**: AWS CLI, Git, and GitHub CLI availability checking
|
|
272
|
+
|
|
273
|
+
### Version 0.0.1-alpha.8
|
|
274
|
+
- โ
**Documentation Consistency**: Fixed command counts and subagent counts
|
|
275
|
+
- โ
**Test Infrastructure**: Enhanced test-results directory handling
|
|
276
|
+
- โ
**Repository Cleanup**: Removed outdated documentation and test artifacts
|
|
277
|
+
- โ
**Validation Logic**: Improved scenario-aware test validation
|
|
278
|
+
- โ
**Version Alignment**: Synchronized all version references
|
|
279
|
+
|
|
280
|
+
### Version 0.0.1-alpha.7
|
|
281
|
+
- โ
**NPM Scoped Package**: Published as `@paulduvall/claude-dev-toolkit`
|
|
282
|
+
- โ
**Configuration Command**: Built-in `config` command for template management
|
|
283
|
+
- โ
**Workflow Reporting**: Comprehensive GitHub Actions reporting
|
|
284
|
+
- โ
**Subagents Support**: Multi-agent coordination capabilities
|
|
285
|
+
- โ
**Enhanced Documentation**: Updated installation and usage instructions
|
|
286
|
+
|
|
287
|
+
### Version 0.0.1-alpha.2
|
|
237
288
|
- โ
**Symlink Consolidation**: Eliminated duplicate directories
|
|
238
289
|
- โ
**JavaScript Migration**: Complete test suite migration from Python
|
|
239
290
|
- โ
**Enhanced Templates**: Fixed configuration template issues
|
|
240
|
-
- โ
**
|
|
241
|
-
- โ
**
|
|
291
|
+
- โ
**Test Suites**: Package structure and command validation
|
|
292
|
+
- โ
**62 Total Commands**: 16 active + 46 experimental commands
|
|
242
293
|
- โ
**Security Enhancements**: Comprehensive security hook system
|
|
243
294
|
|
|
244
295
|
## ๐ License
|