@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
@@ -0,0 +1,128 @@
1
+ ---
2
+ description: Monitor development process health, performance metrics, and team productivity with comprehensive observability
3
+ tags: [monitoring, observability, metrics, performance, productivity, analytics, dashboards]
4
+ ---
5
+
6
+ Monitor development processes and team performance based on the arguments provided in $ARGUMENTS.
7
+
8
+ First, examine the current monitoring environment and available data sources:
9
+ !ps aux | grep -E "(monitor|metric|log)" | head -5
10
+ !find . -name "*.log" | head -5 2>/dev/null || echo "No log files found"
11
+ !git log --since="7 days ago" --pretty=format:"%ad" --date=short | sort | uniq -c 2>/dev/null || echo "No git activity"
12
+
13
+ Based on $ARGUMENTS, perform the appropriate monitoring operation:
14
+
15
+ ## 1. Process Health Monitoring
16
+
17
+ If monitoring process health (--health, --status):
18
+ !git log --since="24 hours ago" --oneline | wc -l 2>/dev/null || echo "0"
19
+ !find . -name "*test*" -name "*.py" -o -name "*.js" | wc -l
20
+ !python -m pytest --tb=short --collect-only 2>/dev/null | grep "test" | wc -l || echo "0"
21
+
22
+ Monitor development process health:
23
+ - Code commit frequency and patterns
24
+ - Test execution status and coverage
25
+ - Build success rates and duration
26
+ - Code quality metrics and trends
27
+ - Compliance and governance indicators
28
+
29
+ ## 2. Performance and Build Monitoring
30
+
31
+ If monitoring performance (--performance, --build-times):
32
+ !find . -name "*.log" -exec grep -l "build\|test\|deploy" {} \; 2>/dev/null | head -5
33
+ !tail -20 .github/workflows/*.log 2>/dev/null || echo "No CI/CD logs found"
34
+ !ps aux | grep -E "(build|test|deploy)" | head -3
35
+
36
+ Track performance metrics:
37
+ - Build and deployment duration trends
38
+ - Test execution time analysis
39
+ - CI/CD pipeline performance
40
+ - Resource utilization monitoring
41
+ - Bottleneck identification and analysis
42
+
43
+ ## 3. Team Productivity Analytics
44
+
45
+ If monitoring productivity (--productivity, --velocity):
46
+ !git shortlog -sn --since="30 days ago" 2>/dev/null || echo "No contributor data"
47
+ !git log --since="30 days ago" --pretty=format:"%ad" --date=short | sort | uniq -c
48
+ !find . -name "*.py" -o -name "*.js" -exec wc -l {} \; | awk '{sum+=$1} END {print "Total lines:", sum}'
49
+
50
+ Analyze team productivity:
51
+ - Development velocity and throughput
52
+ - Feature delivery lead times
53
+ - Individual and team contribution patterns
54
+ - Work distribution and collaboration metrics
55
+ - Sprint and milestone completion rates
56
+
57
+ ## 4. Quality and Technical Debt Monitoring
58
+
59
+ If monitoring quality (--quality, --technical-debt):
60
+ !python -m pytest --cov=. --cov-report=term-missing 2>/dev/null | grep "TOTAL" || echo "No coverage data"
61
+ !grep -r "TODO\|FIXME\|HACK" . --include="*.py" --include="*.js" | wc -l 2>/dev/null || echo "0"
62
+ !ruff check . --statistics 2>/dev/null || echo "No linting data"
63
+
64
+ Monitor code quality indicators:
65
+ - Test coverage trends and gaps
66
+ - Technical debt accumulation
67
+ - Code complexity and maintainability
68
+ - Linting and style violations
69
+ - Security vulnerability tracking
70
+
71
+ ## 5. Alert and Notification Management
72
+
73
+ If managing alerts (--alerts, --notifications):
74
+ !find . -name "*alert*" -o -name "*notification*" | head -3 2>/dev/null
75
+ !tail -10 /var/log/system.log 2>/dev/null || echo "No system logs accessible"
76
+ !ps aux | grep -E "(alert|notify)" | head -3
77
+
78
+ Configure monitoring alerts:
79
+ - Threshold-based alerts for key metrics
80
+ - Anomaly detection and early warnings
81
+ - Escalation procedures and routing
82
+ - Notification channel configuration
83
+ - Alert fatigue prevention strategies
84
+
85
+ ## 6. Dashboard and Reporting
86
+
87
+ If generating reports (--dashboard, --reports):
88
+ !find . -name "*.html" -o -name "*.json" | grep -E "(report|dashboard)" | head -3 2>/dev/null
89
+ !ls -la coverage.xml junit.xml test-results.xml 2>/dev/null || echo "No test reports found"
90
+ !date
91
+
92
+ Generate monitoring reports:
93
+ - Real-time dashboard visualizations
94
+ - Historical trend analysis
95
+ - Performance benchmark comparisons
96
+ - Team productivity summaries
97
+ - Executive summary reports
98
+
99
+ Think step by step about monitoring requirements and provide:
100
+
101
+ 1. **Current State Assessment**:
102
+ - Development process health indicators
103
+ - Performance metrics and trends
104
+ - Team productivity patterns
105
+ - Quality and technical debt levels
106
+
107
+ 2. **Monitoring Strategy**:
108
+ - Key metrics identification and prioritization
109
+ - Data collection and aggregation methods
110
+ - Alert thresholds and escalation procedures
111
+ - Dashboard design and visualization
112
+
113
+ 3. **Observability Implementation**:
114
+ - Real-time monitoring setup
115
+ - Historical data analysis capabilities
116
+ - Anomaly detection configuration
117
+ - Integration with existing tools
118
+
119
+ 4. **Reporting and Insights**:
120
+ - Automated report generation
121
+ - Trend analysis and forecasting
122
+ - Actionable insights extraction
123
+ - Stakeholder communication
124
+
125
+ Generate comprehensive monitoring solution with real-time observability, automated alerting, trend analysis, and actionable insights for development process optimization.
126
+
127
+ If no specific operation is provided, analyze current monitoring capabilities and recommend improvements for enhanced development process visibility.
128
+