@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.
Files changed (143) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +88 -37
  3. package/bin/claude-commands +307 -65
  4. package/commands/active/xarchitecture.md +393 -0
  5. package/commands/active/xconfig.md +127 -0
  6. package/commands/active/xcontinue.md +92 -0
  7. package/commands/active/xdebug.md +130 -0
  8. package/commands/active/xdocs.md +178 -0
  9. package/commands/active/xexplore.md +94 -0
  10. package/commands/active/xgit.md +149 -0
  11. package/commands/active/xpipeline.md +152 -0
  12. package/commands/active/xquality.md +96 -0
  13. package/commands/active/xrefactor.md +198 -0
  14. package/commands/active/xrelease.md +142 -0
  15. package/commands/active/xsecurity.md +92 -0
  16. package/commands/active/xspec.md +174 -0
  17. package/commands/active/xtdd.md +151 -0
  18. package/commands/active/xtest.md +89 -0
  19. package/commands/active/xverify.md +80 -0
  20. package/commands/experiments/xact.md +742 -0
  21. package/commands/experiments/xanalytics.md +113 -0
  22. package/commands/experiments/xanalyze.md +70 -0
  23. package/commands/experiments/xapi.md +161 -0
  24. package/commands/experiments/xatomic.md +112 -0
  25. package/commands/experiments/xaws.md +85 -0
  26. package/commands/experiments/xcicd.md +337 -0
  27. package/commands/experiments/xcommit.md +122 -0
  28. package/commands/experiments/xcompliance.md +182 -0
  29. package/commands/experiments/xconstraints.md +89 -0
  30. package/commands/experiments/xcoverage.md +90 -0
  31. package/commands/experiments/xdb.md +102 -0
  32. package/commands/experiments/xdesign.md +121 -0
  33. package/commands/experiments/xdevcontainer.md +238 -0
  34. package/commands/experiments/xevaluate.md +111 -0
  35. package/commands/experiments/xfootnote.md +12 -0
  36. package/commands/experiments/xgenerate.md +117 -0
  37. package/commands/experiments/xgovernance.md +149 -0
  38. package/commands/experiments/xgreen.md +66 -0
  39. package/commands/experiments/xiac.md +118 -0
  40. package/commands/experiments/xincident.md +137 -0
  41. package/commands/experiments/xinfra.md +115 -0
  42. package/commands/experiments/xknowledge.md +115 -0
  43. package/commands/experiments/xmaturity.md +120 -0
  44. package/commands/experiments/xmetrics.md +118 -0
  45. package/commands/experiments/xmonitoring.md +128 -0
  46. package/commands/experiments/xnew.md +903 -0
  47. package/commands/experiments/xobservable.md +114 -0
  48. package/commands/experiments/xoidc.md +165 -0
  49. package/commands/experiments/xoptimize.md +115 -0
  50. package/commands/experiments/xperformance.md +112 -0
  51. package/commands/experiments/xplanning.md +131 -0
  52. package/commands/experiments/xpolicy.md +115 -0
  53. package/commands/experiments/xproduct.md +98 -0
  54. package/commands/experiments/xreadiness.md +75 -0
  55. package/commands/experiments/xred.md +55 -0
  56. package/commands/experiments/xrisk.md +128 -0
  57. package/commands/experiments/xrules.md +124 -0
  58. package/commands/experiments/xsandbox.md +120 -0
  59. package/commands/experiments/xscan.md +102 -0
  60. package/commands/experiments/xsetup.md +123 -0
  61. package/commands/experiments/xtemplate.md +116 -0
  62. package/commands/experiments/xtrace.md +212 -0
  63. package/commands/experiments/xux.md +171 -0
  64. package/commands/experiments/xvalidate.md +104 -0
  65. package/commands/experiments/xworkflow.md +113 -0
  66. package/hooks/.smellrc.example.json +19 -0
  67. package/hooks/README.md +263 -0
  68. package/hooks/check-commit-signing.py +127 -0
  69. package/hooks/check-complexity.py +38 -0
  70. package/hooks/check-security.py +37 -0
  71. package/hooks/claude-wrapper.sh +29 -0
  72. package/hooks/config.py +110 -0
  73. package/hooks/file-logger.sh +100 -0
  74. package/hooks/lib/argument-parser.sh +427 -0
  75. package/hooks/lib/config-constants.sh +230 -0
  76. package/hooks/lib/context-manager.sh +560 -0
  77. package/hooks/lib/error-handler.sh +423 -0
  78. package/hooks/lib/execution-engine.sh +444 -0
  79. package/hooks/lib/execution-results.sh +113 -0
  80. package/hooks/lib/execution-simulation.sh +114 -0
  81. package/hooks/lib/field-validators.sh +104 -0
  82. package/hooks/lib/file-utils.sh +398 -0
  83. package/hooks/lib/subagent-discovery.sh +468 -0
  84. package/hooks/lib/subagent-validator.sh +407 -0
  85. package/hooks/lib/validation-reporter.sh +134 -0
  86. package/hooks/on-error-debug.sh +226 -0
  87. package/hooks/pre-commit-quality.sh +204 -0
  88. package/hooks/pre-commit-test-runner.sh +132 -0
  89. package/hooks/pre-write-security.sh +115 -0
  90. package/hooks/prevent-credential-exposure.sh +279 -0
  91. package/hooks/security_bandit.py +177 -0
  92. package/hooks/security_checks.py +97 -0
  93. package/hooks/security_secrets.py +81 -0
  94. package/hooks/security_trojan.py +61 -0
  95. package/hooks/settings.example.json +52 -0
  96. package/hooks/smell_checks.py +238 -0
  97. package/hooks/smell_javascript.py +231 -0
  98. package/hooks/smell_python.py +110 -0
  99. package/hooks/smell_ruff.py +70 -0
  100. package/hooks/smell_types.py +72 -0
  101. package/hooks/subagent-trigger-simple.sh +202 -0
  102. package/hooks/subagent-trigger.sh +253 -0
  103. package/hooks/suppression.py +82 -0
  104. package/hooks/tab-color.sh +70 -0
  105. package/hooks/verify-before-edit.sh +135 -0
  106. package/lib/backup-restore-command.js +140 -0
  107. package/lib/base/base-command.js +252 -0
  108. package/lib/base/command-result.js +184 -0
  109. package/lib/config/constants.js +255 -0
  110. package/lib/config.js +48 -6
  111. package/lib/configure-command.js +428 -0
  112. package/lib/dependency-validator.js +64 -5
  113. package/lib/hook-installer-core.js +2 -2
  114. package/lib/installation-instruction-generator.js +213 -495
  115. package/lib/installer.js +134 -56
  116. package/lib/oidc-command.js +740 -0
  117. package/lib/services/backup-list-service.js +226 -0
  118. package/lib/services/backup-service.js +230 -0
  119. package/lib/services/command-installer-service.js +217 -0
  120. package/lib/services/logger-service.js +201 -0
  121. package/lib/services/package-manager-service.js +319 -0
  122. package/lib/services/platform-instruction-service.js +294 -0
  123. package/lib/services/recovery-instruction-service.js +348 -0
  124. package/lib/services/restore-service.js +221 -0
  125. package/lib/setup-command.js +359 -0
  126. package/lib/setup-wizard.js +155 -262
  127. package/lib/uninstall-command.js +100 -0
  128. package/lib/utils/claude-path-config.js +184 -0
  129. package/lib/utils/file-system-utils.js +152 -0
  130. package/lib/utils.js +8 -4
  131. package/lib/verify-command.js +430 -0
  132. package/package.json +7 -3
  133. package/scripts/postinstall.js +172 -157
  134. package/subagents/debug-specialist.md +7 -0
  135. package/templates/README.md +115 -0
  136. package/templates/basic-settings.json +30 -0
  137. package/templates/comprehensive-settings.json +57 -0
  138. package/templates/global-claude.md +344 -0
  139. package/templates/hybrid-hook-config.yaml +132 -0
  140. package/templates/security-focused-settings.json +62 -0
  141. package/templates/subagent-hooks.yaml +188 -0
  142. package/lib/package-manager-service.js +0 -270
  143. 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
- [![npm version](https://badge.fury.io/js/claude-dev-toolkit.svg)](https://www.npmjs.com/package/claude-dev-toolkit)
4
- [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
5
- ![Test Status](https://img.shields.io/badge/tests-100%25%20passing-brightgreen)
6
- ![Active Commands](https://img.shields.io/badge/active%20commands-13-blue)
7
- ![Experimental Commands](https://img.shields.io/badge/experimental%20commands-45-orange)
8
- ![Total Commands](https://img.shields.io/badge/total%20commands-58-brightgreen)
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
- - **13 Active Commands**: Production-ready commands for immediate use
26
- - **45 Experimental Commands**: Cutting-edge features for early adopters
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**: 100% test coverage with 10 comprehensive test suites
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 13 production commands
44
- claude-commands install --experimental # Install 45 experimental commands
45
- claude-commands install --all # Install all 58 commands
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** (45 Additional)
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 --experimental # Install experimental commands
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 automatically applied during interactive setup or can be manually copied to `~/.claude/settings.json`.
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
- - **10 Test Suites**: 100% passing
141
- - **Command Validation**: All 58 commands validated
142
- - **Security Tests**: Comprehensive security pattern validation
143
- - **Integration Tests**: End-to-end workflow testing
144
- - **Configuration Tests**: Template and setup validation
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
- - **Symlink Consolidation**: Single source of truth with root directory
148
- - **JavaScript-Based**: Migrated from Python for better Node.js integration
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 --experimental # Install experimental set
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 root `slash-commands/active/` or `slash-commands/experiments/`
225
- 2. Commands automatically sync to NPM package via symlinks
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.1
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
- - โœ… **100% Test Coverage**: All 10 test suites passing
241
- - โœ… **58 Total Commands**: 13 active + 45 experimental commands
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