@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
|
@@ -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
|
+
|