agentic-qe 2.0.0 → 2.1.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.
Files changed (144) hide show
  1. package/.claude/agents/qx-partner.md +17 -4
  2. package/.claude/skills/accessibility-testing/SKILL.md +144 -692
  3. package/.claude/skills/agentic-quality-engineering/SKILL.md +176 -529
  4. package/.claude/skills/api-testing-patterns/SKILL.md +180 -560
  5. package/.claude/skills/brutal-honesty-review/SKILL.md +113 -603
  6. package/.claude/skills/bug-reporting-excellence/SKILL.md +116 -517
  7. package/.claude/skills/chaos-engineering-resilience/SKILL.md +127 -72
  8. package/.claude/skills/cicd-pipeline-qe-orchestrator/SKILL.md +209 -404
  9. package/.claude/skills/code-review-quality/SKILL.md +158 -608
  10. package/.claude/skills/compatibility-testing/SKILL.md +148 -38
  11. package/.claude/skills/compliance-testing/SKILL.md +132 -63
  12. package/.claude/skills/consultancy-practices/SKILL.md +114 -446
  13. package/.claude/skills/context-driven-testing/SKILL.md +117 -381
  14. package/.claude/skills/contract-testing/SKILL.md +176 -141
  15. package/.claude/skills/database-testing/SKILL.md +137 -130
  16. package/.claude/skills/exploratory-testing-advanced/SKILL.md +160 -629
  17. package/.claude/skills/holistic-testing-pact/SKILL.md +140 -188
  18. package/.claude/skills/localization-testing/SKILL.md +145 -33
  19. package/.claude/skills/mobile-testing/SKILL.md +132 -448
  20. package/.claude/skills/mutation-testing/SKILL.md +147 -41
  21. package/.claude/skills/performance-testing/SKILL.md +200 -546
  22. package/.claude/skills/quality-metrics/SKILL.md +164 -519
  23. package/.claude/skills/refactoring-patterns/SKILL.md +132 -699
  24. package/.claude/skills/regression-testing/SKILL.md +120 -926
  25. package/.claude/skills/risk-based-testing/SKILL.md +157 -660
  26. package/.claude/skills/security-testing/SKILL.md +199 -538
  27. package/.claude/skills/sherlock-review/SKILL.md +163 -699
  28. package/.claude/skills/shift-left-testing/SKILL.md +161 -465
  29. package/.claude/skills/shift-right-testing/SKILL.md +161 -519
  30. package/.claude/skills/six-thinking-hats/SKILL.md +175 -1110
  31. package/.claude/skills/skills-manifest.json +71 -20
  32. package/.claude/skills/tdd-london-chicago/SKILL.md +131 -448
  33. package/.claude/skills/technical-writing/SKILL.md +103 -154
  34. package/.claude/skills/test-automation-strategy/SKILL.md +166 -772
  35. package/.claude/skills/test-data-management/SKILL.md +126 -910
  36. package/.claude/skills/test-design-techniques/SKILL.md +179 -89
  37. package/.claude/skills/test-environment-management/SKILL.md +136 -91
  38. package/.claude/skills/test-reporting-analytics/SKILL.md +169 -92
  39. package/.claude/skills/testability-scoring/SKILL.md +172 -538
  40. package/.claude/skills/testability-scoring/scripts/generate-html-report.js +0 -0
  41. package/.claude/skills/visual-testing-advanced/SKILL.md +155 -78
  42. package/.claude/skills/xp-practices/SKILL.md +151 -587
  43. package/CHANGELOG.md +86 -0
  44. package/README.md +23 -16
  45. package/dist/agents/QXPartnerAgent.d.ts +47 -1
  46. package/dist/agents/QXPartnerAgent.d.ts.map +1 -1
  47. package/dist/agents/QXPartnerAgent.js +2086 -125
  48. package/dist/agents/QXPartnerAgent.js.map +1 -1
  49. package/dist/agents/lifecycle/AgentLifecycleManager.d.ts.map +1 -1
  50. package/dist/agents/lifecycle/AgentLifecycleManager.js +34 -31
  51. package/dist/agents/lifecycle/AgentLifecycleManager.js.map +1 -1
  52. package/dist/cli/commands/init-claude-md-template.d.ts.map +1 -1
  53. package/dist/cli/commands/init-claude-md-template.js +14 -0
  54. package/dist/cli/commands/init-claude-md-template.js.map +1 -1
  55. package/dist/core/SwarmCoordinator.d.ts +180 -0
  56. package/dist/core/SwarmCoordinator.d.ts.map +1 -0
  57. package/dist/core/SwarmCoordinator.js +473 -0
  58. package/dist/core/SwarmCoordinator.js.map +1 -0
  59. package/dist/core/memory/ReflexionMemoryAdapter.d.ts +109 -0
  60. package/dist/core/memory/ReflexionMemoryAdapter.d.ts.map +1 -0
  61. package/dist/core/memory/ReflexionMemoryAdapter.js +306 -0
  62. package/dist/core/memory/ReflexionMemoryAdapter.js.map +1 -0
  63. package/dist/core/memory/RuVectorPatternStore.d.ts +28 -0
  64. package/dist/core/memory/RuVectorPatternStore.d.ts.map +1 -1
  65. package/dist/core/memory/RuVectorPatternStore.js +70 -0
  66. package/dist/core/memory/RuVectorPatternStore.js.map +1 -1
  67. package/dist/core/memory/SparseVectorSearch.d.ts +55 -0
  68. package/dist/core/memory/SparseVectorSearch.d.ts.map +1 -0
  69. package/dist/core/memory/SparseVectorSearch.js +130 -0
  70. package/dist/core/memory/SparseVectorSearch.js.map +1 -0
  71. package/dist/core/memory/TieredCompression.d.ts +81 -0
  72. package/dist/core/memory/TieredCompression.d.ts.map +1 -0
  73. package/dist/core/memory/TieredCompression.js +270 -0
  74. package/dist/core/memory/TieredCompression.js.map +1 -0
  75. package/dist/core/memory/index.d.ts +6 -0
  76. package/dist/core/memory/index.d.ts.map +1 -1
  77. package/dist/core/memory/index.js +29 -1
  78. package/dist/core/memory/index.js.map +1 -1
  79. package/dist/core/metrics/MetricsAggregator.d.ts +228 -0
  80. package/dist/core/metrics/MetricsAggregator.d.ts.map +1 -0
  81. package/dist/core/metrics/MetricsAggregator.js +482 -0
  82. package/dist/core/metrics/MetricsAggregator.js.map +1 -0
  83. package/dist/core/metrics/index.d.ts +5 -0
  84. package/dist/core/metrics/index.d.ts.map +1 -0
  85. package/dist/core/metrics/index.js +11 -0
  86. package/dist/core/metrics/index.js.map +1 -0
  87. package/dist/core/optimization/SwarmOptimizer.d.ts +5 -0
  88. package/dist/core/optimization/SwarmOptimizer.d.ts.map +1 -1
  89. package/dist/core/optimization/SwarmOptimizer.js +17 -0
  90. package/dist/core/optimization/SwarmOptimizer.js.map +1 -1
  91. package/dist/core/orchestration/AdaptiveScheduler.d.ts +190 -0
  92. package/dist/core/orchestration/AdaptiveScheduler.d.ts.map +1 -0
  93. package/dist/core/orchestration/AdaptiveScheduler.js +460 -0
  94. package/dist/core/orchestration/AdaptiveScheduler.js.map +1 -0
  95. package/dist/core/orchestration/WorkflowOrchestrator.d.ts +13 -0
  96. package/dist/core/orchestration/WorkflowOrchestrator.d.ts.map +1 -1
  97. package/dist/core/orchestration/WorkflowOrchestrator.js +32 -0
  98. package/dist/core/orchestration/WorkflowOrchestrator.js.map +1 -1
  99. package/dist/core/recovery/CircuitBreaker.d.ts +176 -0
  100. package/dist/core/recovery/CircuitBreaker.d.ts.map +1 -0
  101. package/dist/core/recovery/CircuitBreaker.js +382 -0
  102. package/dist/core/recovery/CircuitBreaker.js.map +1 -0
  103. package/dist/core/recovery/RecoveryOrchestrator.d.ts +186 -0
  104. package/dist/core/recovery/RecoveryOrchestrator.d.ts.map +1 -0
  105. package/dist/core/recovery/RecoveryOrchestrator.js +476 -0
  106. package/dist/core/recovery/RecoveryOrchestrator.js.map +1 -0
  107. package/dist/core/recovery/RetryStrategy.d.ts +127 -0
  108. package/dist/core/recovery/RetryStrategy.d.ts.map +1 -0
  109. package/dist/core/recovery/RetryStrategy.js +314 -0
  110. package/dist/core/recovery/RetryStrategy.js.map +1 -0
  111. package/dist/core/recovery/index.d.ts +8 -0
  112. package/dist/core/recovery/index.d.ts.map +1 -0
  113. package/dist/core/recovery/index.js +27 -0
  114. package/dist/core/recovery/index.js.map +1 -0
  115. package/dist/core/skills/DependencyResolver.d.ts +99 -0
  116. package/dist/core/skills/DependencyResolver.d.ts.map +1 -0
  117. package/dist/core/skills/DependencyResolver.js +260 -0
  118. package/dist/core/skills/DependencyResolver.js.map +1 -0
  119. package/dist/core/skills/ManifestGenerator.d.ts +114 -0
  120. package/dist/core/skills/ManifestGenerator.d.ts.map +1 -0
  121. package/dist/core/skills/ManifestGenerator.js +449 -0
  122. package/dist/core/skills/ManifestGenerator.js.map +1 -0
  123. package/dist/core/skills/index.d.ts +9 -0
  124. package/dist/core/skills/index.d.ts.map +1 -0
  125. package/dist/core/skills/index.js +24 -0
  126. package/dist/core/skills/index.js.map +1 -0
  127. package/dist/mcp/handlers/chaos/chaos-inject-failure.d.ts +5 -0
  128. package/dist/mcp/handlers/chaos/chaos-inject-failure.d.ts.map +1 -1
  129. package/dist/mcp/handlers/chaos/chaos-inject-failure.js +36 -2
  130. package/dist/mcp/handlers/chaos/chaos-inject-failure.js.map +1 -1
  131. package/dist/mcp/handlers/chaos/chaos-inject-latency.d.ts +5 -0
  132. package/dist/mcp/handlers/chaos/chaos-inject-latency.d.ts.map +1 -1
  133. package/dist/mcp/handlers/chaos/chaos-inject-latency.js +36 -2
  134. package/dist/mcp/handlers/chaos/chaos-inject-latency.js.map +1 -1
  135. package/dist/mcp/server.d.ts +9 -9
  136. package/dist/mcp/server.d.ts.map +1 -1
  137. package/dist/mcp/server.js +1 -2
  138. package/dist/mcp/server.js.map +1 -1
  139. package/dist/types/qx.d.ts +113 -7
  140. package/dist/types/qx.d.ts.map +1 -1
  141. package/dist/types/qx.js.map +1 -1
  142. package/dist/visualization/api/RestEndpoints.js +1 -1
  143. package/dist/visualization/api/RestEndpoints.js.map +1 -1
  144. package/package.json +15 -54
@@ -1,137 +1,214 @@
1
1
  ---
2
2
  name: test-reporting-analytics
3
- description: Advanced test reporting, quality dashboards, predictive analytics, trend analysis, and executive reporting for QE metrics. Use when communicating quality status, tracking trends, or making data-driven decisions.
3
+ description: "Advanced test reporting, quality dashboards, predictive analytics, trend analysis, and executive reporting for QE metrics. Use when communicating quality status, tracking trends, or making data-driven decisions."
4
+ category: analytics
5
+ priority: high
6
+ tokenEstimate: 850
7
+ agents: [qe-quality-analyzer, qe-quality-gate, qe-deployment-readiness]
8
+ implementation_status: optimized
9
+ optimization_version: 1.0
10
+ last_optimized: 2025-12-03
11
+ dependencies: []
12
+ quick_reference_card: true
13
+ tags: [reporting, analytics, dashboards, metrics, trends, predictive]
4
14
  ---
5
15
 
6
16
  # Test Reporting & Analytics
7
17
 
8
- ## Core Principle
18
+ <default_to_action>
19
+ When building test reports:
20
+ 1. DEFINE audience (dev team vs executives)
21
+ 2. CHOOSE key metrics (max 5-7)
22
+ 3. SHOW trends (not just snapshots)
23
+ 4. HIGHLIGHT actions (what to do about it)
24
+ 5. AUTOMATE generation
9
25
 
10
- **Measure to improve. Report to communicate.**
26
+ **Dashboard Quick Setup:**
27
+ ```
28
+ +------------------+------------------+------------------+
29
+ | Tests Passed | Code Coverage | Flaky Tests |
30
+ | 1,247/1,250 ✅ | 82.3% ⬆️ +2.1% | 1.2% ⬇️ -0.3% |
31
+ +------------------+------------------+------------------+
32
+ | Critical Bugs | Deploy Freq | MTTR |
33
+ | 0 open ✅ | 12x/day ⬆️ | 2.3h ⬇️ |
34
+ +------------------+------------------+------------------+
35
+ ```
11
36
 
12
- Test reporting transforms raw test data into actionable insights. Analytics enable data-driven quality decisions.
37
+ **Key Metrics by Audience:**
38
+ - **Dev Team**: Pass rate, flaky %, execution time, coverage gaps
39
+ - **QE Team**: Defect detection rate, test velocity, automation ROI
40
+ - **Leadership**: Escaped defects, deployment frequency, quality cost
41
+ </default_to_action>
13
42
 
14
- ## Key Metrics
43
+ ## Quick Reference Card
15
44
 
16
- ### Test Execution Metrics
17
- - Pass/Fail rate
18
- - Flaky test percentage
19
- - Execution time (total, per test)
20
- - Test coverage (code, requirements)
45
+ ### Essential Metrics
21
46
 
22
- ### Quality Metrics
23
- - Defect density
24
- - Defect detection rate
25
- - Escaped defects
26
- - Mean time to detect (MTTD)
27
- - Mean time to resolve (MTTR)
47
+ | Category | Metric | Target |
48
+ |----------|--------|--------|
49
+ | **Execution** | Pass Rate | >98% |
50
+ | **Execution** | Flaky Test % | <2% |
51
+ | **Execution** | Suite Duration | <10 min |
52
+ | **Coverage** | Line Coverage | >80% |
53
+ | **Coverage** | Branch Coverage | >70% |
54
+ | **Quality** | Escaped Defects | <5/release |
55
+ | **Quality** | MTTR | <4 hours |
56
+ | **Efficiency** | Automation Rate | >90% |
28
57
 
29
- ### Efficiency Metrics
30
- - Automation rate
31
- - Test maintenance cost
32
- - ROI of automation
33
- - Velocity (features tested/sprint)
58
+ ### Trend Indicators
34
59
 
35
- ## Dashboards
60
+ | Symbol | Meaning | Action |
61
+ |--------|---------|--------|
62
+ | ⬆️ | Improving | Continue current approach |
63
+ | ⬇️ | Declining | Investigate root cause |
64
+ | ➡️ | Stable | Maintain or improve |
65
+ | ⚠️ | Threshold breach | Immediate attention |
36
66
 
37
- **Real-Time Quality Dashboard:**
38
- ```
39
- +------------------+------------------+------------------+
40
- | Tests Passed | Code Coverage | Flaky Tests |
41
- | 1,247 / 1,250 | 82.3% | 1.2% |
42
- | 99.76% ✅ | ⬆️ +2.1% | ⬇️ -0.3% |
43
- +------------------+------------------+------------------+
67
+ ---
44
68
 
45
- +------------------+------------------+------------------+
46
- | Critical Bugs | Test Velocity | Deploy Freq |
47
- | 0 open | 47 tests/sprint | 12x/day |
48
- | ✅ | ⬆️ +5 | ⬆️ +2x |
49
- +------------------+------------------+------------------+
69
+ ## Report Types
50
70
 
51
- Recent Trends (30 days):
52
- [Graph showing pass rate, coverage, flaky tests over time]
71
+ ### Real-Time Dashboard
72
+ ```
73
+ Live quality status for CI/CD
74
+ - Build status (green/red)
75
+ - Test results (pass/fail counts)
76
+ - Coverage delta
77
+ - Flaky test alerts
53
78
  ```
54
79
 
55
- ## Trend Analysis
56
-
57
- ```javascript
58
- // Identify trends
59
- const testResults = await fetchTestResults(30); // 30 days
80
+ ### Sprint Summary
81
+ ```markdown
82
+ ## Sprint 47 Quality Summary
83
+
84
+ ### Metrics
85
+ | Metric | Value | Trend |
86
+ |--------|-------|-------|
87
+ | Tests Added | +47 | ⬆️ |
88
+ | Coverage | 82.3% | ⬆️ +2.1% |
89
+ | Bugs Found | 12 | ➡️ |
90
+ | Escaped | 0 | ✅ |
91
+
92
+ ### Highlights
93
+ - ✅ Zero escaped defects
94
+ - ⚠️ E2E suite now 45min (target: 30min)
95
+
96
+ ### Actions
97
+ 1. Optimize slow E2E tests
98
+ 2. Add coverage for payment module
99
+ ```
60
100
 
61
- const trend = analyzeTrend(testResults, 'passRate');
62
- if (trend === 'declining') {
63
- alert('⚠️ Test pass rate declining for 7 days');
64
- }
101
+ ### Executive Report
102
+ ```markdown
103
+ ## Monthly Quality Report - Oct 2025
65
104
 
66
- const coverage = analyzeTrend(testResults, 'coverage');
67
- if (coverage === 'stagnant') {
68
- alert('ℹ️ Code coverage unchanged. Add tests for new code.');
69
- }
105
+ ### Executive Summary
106
+ Production uptime: 99.97% (target: 99.95%)
107
+ Deploy frequency: 12x/day (up from 8x)
108
+ ⚠️ Coverage: 82.3% (target: 85%)
109
+
110
+ ### Business Impact
111
+ - Automation saves 120 hrs/month
112
+ - Bug cost: $150/bug found vs $5,000 escaped
113
+ - Estimated annual savings: $450K
114
+
115
+ ### Recommendations
116
+ 1. Invest in performance testing tooling
117
+ 2. Hire senior QE for mobile coverage
70
118
  ```
71
119
 
120
+ ---
121
+
72
122
  ## Predictive Analytics
73
123
 
74
124
  ```typescript
75
125
  // Predict test failures
76
- const prediction = await agent.predictTestFailures({
77
- historicalData: testResults,
126
+ const prediction = await Task("Predict Failures", {
78
127
  codeChanges: prDiff,
79
- teamMetrics: velocityData
80
- });
128
+ historicalData: last90Days,
129
+ model: 'gradient-boosting'
130
+ }, "qe-quality-analyzer");
81
131
 
82
132
  // Returns:
83
133
  // {
84
- // probabilityOfFailure: 0.73,
85
- // likelyFailingTests: ['payment.test.ts', 'checkout.test.ts'],
86
- // suggestedAction: 'Review payment module changes carefully',
134
+ // failureProbability: 0.73,
135
+ // likelyFailingTests: ['payment.test.ts'],
136
+ // suggestedAction: 'Review payment module carefully',
87
137
  // confidence: 0.89
88
138
  // }
139
+
140
+ // Trend analysis with anomaly detection
141
+ const trends = await Task("Analyze Trends", {
142
+ metrics: ['passRate', 'coverage', 'flakyRate'],
143
+ period: '30d',
144
+ detectAnomalies: true
145
+ }, "qe-quality-analyzer");
89
146
  ```
90
147
 
91
- ## Executive Reporting
148
+ ---
92
149
 
93
- **Monthly Quality Report:**
94
- ```markdown
95
- ## Quality Report - October 2025
150
+ ## Agent Integration
96
151
 
97
- ### Executive Summary
98
- Production: 99.97% uptime (target: 99.95%)
99
- Deployment: 12x/day (up from 8x/day)
100
- ⚠️ Test Coverage: 82.3% (target: 85%)
101
-
102
- ### Key Achievements
103
- - Reduced flaky tests from 3.2% to 1.2%
104
- - Automated 47 new tests (95% automation rate)
105
- - 0 critical bugs escaped to production
106
-
107
- ### Action Items
108
- - Increase coverage for new payment module
109
- - Address 3 long-running flaky tests
110
- - Train team on performance testing
111
-
112
- ### ROI
113
- - Automation saves 120 hours/month
114
- - Bug detection cost: $150/bug vs $5,000 in production
115
- - Estimated annual savings: $450k
152
+ ```typescript
153
+ // Generate comprehensive quality report
154
+ const report = await Task("Generate Quality Report", {
155
+ period: 'sprint',
156
+ audience: 'executive',
157
+ includeROI: true,
158
+ includeTrends: true
159
+ }, "qe-quality-analyzer");
160
+
161
+ // Real-time quality gate check
162
+ const gateResult = await Task("Quality Gate Check", {
163
+ metrics: currentMetrics,
164
+ thresholds: qualityPolicy,
165
+ environment: 'production'
166
+ }, "qe-quality-gate");
116
167
  ```
117
168
 
169
+ ---
170
+
171
+ ## Agent Coordination Hints
172
+
173
+ ### Memory Namespace
174
+ ```
175
+ aqe/reporting/
176
+ ├── dashboards/* - Dashboard configurations
177
+ ├── reports/* - Generated reports
178
+ ├── trends/* - Trend analysis data
179
+ └── predictions/* - Predictive model outputs
180
+ ```
181
+
182
+ ### Fleet Coordination
183
+ ```typescript
184
+ const reportingFleet = await FleetManager.coordinate({
185
+ strategy: 'quality-reporting',
186
+ agents: [
187
+ 'qe-quality-analyzer', // Metrics aggregation
188
+ 'qe-quality-gate', // Threshold validation
189
+ 'qe-deployment-readiness' // Release readiness
190
+ ],
191
+ topology: 'parallel'
192
+ });
193
+ ```
194
+
195
+ ---
196
+
118
197
  ## Related Skills
198
+ - [quality-metrics](../quality-metrics/) - Metric definitions
199
+ - [shift-right-testing](../shift-right-testing/) - Production metrics
200
+ - [consultancy-practices](../consultancy-practices/) - Client reporting
119
201
 
120
- - [quality-metrics](../quality-metrics/)
121
- - [agentic-quality-engineering](../agentic-quality-engineering/)
122
- - [continuous-testing-shift-left](../continuous-testing-shift-left/)
202
+ ---
123
203
 
124
204
  ## Remember
125
205
 
126
- **Track metrics to improve quality.**
127
-
128
- Report:
129
- - Test results (pass/fail trends)
130
- - Code coverage (gaps and trends)
131
- - Flaky test rate (reliability)
132
- - Defect metrics (escaped bugs)
133
- - ROI of testing (business value)
206
+ **Measure to improve. Report to communicate.**
134
207
 
135
- **Make data actionable, not just visible.**
208
+ Good reports:
209
+ - Answer "so what?" (actionable insights)
210
+ - Show trends (not just snapshots)
211
+ - Match audience needs
212
+ - Automate where possible
136
213
 
137
- **With Agents:** `qe-quality-analyzer` aggregates metrics, generates insights, predicts trends, and creates executive reports automatically.
214
+ **Data without action is noise. Action without data is guessing.**