@dzhechkov/keysarium 1.3.0 → 1.5.0

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 (105) hide show
  1. package/README.md +70 -10
  2. package/bin/cli.js +0 -0
  3. package/package.json +5 -3
  4. package/src/utils.js +1 -1
  5. package/templates/.claude/commands/analyst-manual.md +38 -0
  6. package/templates/.claude/commands/brain-export.md +2 -0
  7. package/templates/.claude/commands/bto-benchmark.md +302 -0
  8. package/templates/.claude/commands/casarium.md +55 -4
  9. package/templates/.claude/commands/feature-adr.md +8 -0
  10. package/templates/.claude/commands/harvest.md +28 -46
  11. package/templates/.claude/rules/trust-tiers.md +6 -0
  12. package/templates/.claude/shards/feature-adr.shard.md +64 -10
  13. package/templates/.claude/shards/phase-ai-factory.shard.md +109 -0
  14. package/templates/.claude/skills/ai-factory-mapper/README.md +90 -0
  15. package/templates/.claude/skills/ai-factory-mapper/SKILL.md +309 -0
  16. package/templates/.claude/skills/ai-factory-mapper/assets/report-template.md +123 -0
  17. package/templates/.claude/skills/ai-factory-mapper/references/catalog.md +230 -0
  18. package/templates/.claude/skills/ai-factory-mapper/references/coverage-formula.md +219 -0
  19. package/templates/.claude/skills/ai-factory-mapper/references/decomposition-checklist.md +183 -0
  20. package/templates/.claude/skills/ai-factory-mapper/references/pattern-library.md +312 -0
  21. package/templates/.claude/skills/ai-factory-mapper/scripts/build_docx_report.js +423 -0
  22. package/templates/.claude/skills/analyst-manual-full/SKILL.md +286 -0
  23. package/templates/.claude/skills/edu-site-generator/SKILL.md +254 -0
  24. package/templates/.claude/skills/edu-site-generator/examples/sample-course-structure.md +116 -0
  25. package/templates/.claude/skills/edu-site-generator/modules/00-content-analysis.md +84 -0
  26. package/templates/.claude/skills/edu-site-generator/modules/01-course-structure.md +75 -0
  27. package/templates/.claude/skills/edu-site-generator/modules/02-data-generation.md +186 -0
  28. package/templates/.claude/skills/edu-site-generator/modules/03-scaffold.md +249 -0
  29. package/templates/.claude/skills/edu-site-generator/modules/04-components.md +130 -0
  30. package/templates/.claude/skills/edu-site-generator/modules/05-gamification.md +163 -0
  31. package/templates/.claude/skills/edu-site-generator/modules/06-deploy.md +88 -0
  32. package/templates/.claude/skills/edu-site-generator/modules/07-verification.md +97 -0
  33. package/templates/.claude/skills/edu-site-generator/references/component-templates.md +436 -0
  34. package/templates/.claude/skills/edu-site-generator/references/data-schemas.md +164 -0
  35. package/templates/.claude/skills/edu-site-generator/references/exercise-catalog.md +110 -0
  36. package/templates/.claude/skills/edu-site-generator/references/tech-stack.md +69 -0
  37. package/templates/.claude/skills/feature-adr/SKILL.md +245 -59
  38. package/templates/.claude/skills/feature-adr/modules/03-adr.md +43 -0
  39. package/templates/.claude/skills/feature-adr/modules/03.5-ideation-swarm.md +180 -0
  40. package/templates/.claude/skills/feature-adr/modules/06-implementation-plan.md +56 -7
  41. package/templates/.claude/skills/feature-adr/modules/08-qe.md +87 -23
  42. package/templates/.claude/skills/feature-adr/modules/09-fleet-qe.md +305 -0
  43. package/templates/.claude/skills/feature-adr/references/agentic-qe/README.md +143 -0
  44. package/templates/.claude/skills/feature-adr/references/agentic-qe/brutal-honesty-review.md +240 -0
  45. package/templates/.claude/skills/feature-adr/references/agentic-qe/chaos-engineering-resilience.md +163 -0
  46. package/templates/.claude/skills/feature-adr/references/agentic-qe/code-goal-planner.md +446 -0
  47. package/templates/.claude/skills/feature-adr/references/agentic-qe/enterprise-integration-testing.md +111 -0
  48. package/templates/.claude/skills/feature-adr/references/agentic-qe/mutation-testing.md +236 -0
  49. package/templates/.claude/skills/feature-adr/references/agentic-qe/performance-testing.md +315 -0
  50. package/templates/.claude/skills/feature-adr/references/agentic-qe/qcsd-ideation-swarm.md +126 -0
  51. package/templates/.claude/skills/feature-adr/references/agentic-qe/qcsd-production-swarm.md +108 -0
  52. package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-coverage-analysis.md +193 -0
  53. package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-requirements-validation.md +254 -0
  54. package/templates/.claude/skills/feature-adr/references/agentic-qe/regression-testing.md +233 -0
  55. package/templates/.claude/skills/feature-adr/references/agentic-qe/risk-based-testing.md +212 -0
  56. package/templates/.claude/skills/feature-adr/references/agentic-qe/security-testing.md +311 -0
  57. package/templates/.claude/skills/feature-adr/references/agentic-qe/shift-left-testing.md +231 -0
  58. package/templates/.claude/skills/feature-adr/references/agentic-qe/tdd-london-chicago.md +249 -0
  59. package/templates/.claude/skills/knowledge-extractor/SKILL.md +254 -0
  60. package/templates/.claude/skills/knowledge-extractor/modules/01-extract.md +188 -0
  61. package/templates/.claude/skills/knowledge-extractor/modules/02-classify.md +99 -0
  62. package/templates/.claude/skills/knowledge-extractor/modules/03-gate.md +150 -0
  63. package/templates/.claude/skills/knowledge-extractor/modules/04-integrate.md +159 -0
  64. package/templates/.claude/skills/knowledge-extractor/references/artifact-categories.md +100 -0
  65. package/templates/.claude/skills/knowledge-extractor/references/maturity-model.md +94 -0
  66. package/templates/.claude/skills/knowledge-extractor/references/quality-gates.md +98 -0
  67. package/templates/.claude/skills/knowledge-extractor/templates/artifact-card.md +63 -0
  68. package/templates/.claude/skills/knowledge-extractor/templates/harvest-report.md +102 -0
  69. package/templates/.claude/skills/transcript-site-generator/SKILL.md +287 -0
  70. package/templates/.claude/skills/transcript-site-generator/examples/sample-text-only-site.md +123 -0
  71. package/templates/.claude/skills/transcript-site-generator/examples/sample-transcript-site.md +134 -0
  72. package/templates/.claude/skills/transcript-site-generator/modules/00-input-analysis.md +132 -0
  73. package/templates/.claude/skills/transcript-site-generator/modules/01-content-parsing.md +117 -0
  74. package/templates/.claude/skills/transcript-site-generator/modules/02-site-generation.md +293 -0
  75. package/templates/.claude/skills/transcript-site-generator/modules/03-interactivity.md +406 -0
  76. package/templates/.claude/skills/transcript-site-generator/modules/04-deploy.md +130 -0
  77. package/templates/.claude/skills/transcript-site-generator/modules/05-verification.md +155 -0
  78. package/templates/.claude/skills/transcript-site-generator/references/component-catalog.md +86 -0
  79. package/templates/.claude/skills/transcript-site-generator/references/data-schemas.md +123 -0
  80. package/templates/.claude/skills/transcript-site-generator/references/tech-stack.md +132 -0
  81. package/templates/CLAUDE.md +30 -9
  82. package/templates/docs/continuous-learning-guide.md +622 -0
  83. package/templates/docs/edu-site-generator/01-deployment-guide.md +911 -0
  84. package/templates/docs/edu-site-generator/02-admin-guide.md +901 -0
  85. package/templates/docs/edu-site-generator/03-user-guide.md +1008 -0
  86. package/templates/docs/edu-site-generator/04-infrastructure-requirements.md +489 -0
  87. package/templates/docs/edu-site-generator/05-architecture.md +902 -0
  88. package/templates/docs/edu-site-generator/06-user-flows.md +759 -0
  89. package/templates/docs/improvement-directions.md +8 -4
  90. package/templates/docs/keysarium-core/02-functionality.md +3 -1
  91. package/templates/docs/skills-bto/01-deployment-guide.md +1 -1
  92. package/templates/docs/skills-bto/02-admin-guide.md +4 -1
  93. package/templates/docs/skills-bto/03-user-guide.md +4 -3
  94. package/templates/docs/skills-bto/04-infrastructure-requirements.md +2 -1
  95. package/templates/docs/skills-bto/05-architecture.md +11 -11
  96. package/templates/docs/skills-bto/06-user-flows.md +2 -1
  97. package/templates/docs/transcript-site-generator/01-deployment-guide.md +1042 -0
  98. package/templates/docs/transcript-site-generator/02-admin-guide.md +918 -0
  99. package/templates/docs/transcript-site-generator/03-user-guide.md +925 -0
  100. package/templates/docs/transcript-site-generator/04-infrastructure-requirements.md +482 -0
  101. package/templates/docs/transcript-site-generator/05-architecture.md +1068 -0
  102. package/templates/docs/transcript-site-generator/06-user-flows.md +855 -0
  103. package/templates/lib/dream-engine.md +1 -1
  104. package/templates/lib/memory-protocol.md +6 -2
  105. package/templates/lib/reward-tracker.md +6 -3
@@ -0,0 +1,233 @@
1
+ ---
2
+ name: regression-testing
3
+ description: "Strategic regression testing with test selection, impact analysis, and continuous regression management. Use when verifying fixes don't break existing functionality, planning regression suites, or optimizing test execution for faster feedback."
4
+ category: specialized-testing
5
+ priority: high
6
+ tokenEstimate: 1000
7
+ agents: [qe-regression-risk-analyzer, qe-test-executor, qe-coverage-analyzer]
8
+ implementation_status: optimized
9
+ optimization_version: 1.0
10
+ last_optimized: 2025-12-02
11
+ dependencies: []
12
+ quick_reference_card: true
13
+ tags: [regression, test-selection, impact-analysis, ci-cd, change-based, risk-based]
14
+ trust_tier: 3
15
+ validation:
16
+ schema_path: schemas/output.json
17
+ validator_path: scripts/validate-config.json
18
+ eval_path: evals/regression-testing.yaml
19
+
20
+ ---
21
+
22
+ # Regression Testing
23
+
24
+ <default_to_action>
25
+ When verifying changes don't break existing functionality:
26
+ 1. ANALYZE what changed (git diff, impact analysis)
27
+ 2. SELECT tests based on change + risk (not everything)
28
+ 3. RUN in priority order (smoke → selective → full)
29
+ 4. OPTIMIZE execution (parallel, sharding)
30
+ 5. MONITOR suite health (flakiness, execution time)
31
+
32
+ **Quick Regression Strategy:**
33
+ - Per-commit: Smoke + changed code tests (5-10 min)
34
+ - Nightly: Extended regression (30-60 min)
35
+ - Pre-release: Full regression (2-4 hours)
36
+
37
+ **Critical Success Factors:**
38
+ - Smart selection catches 90% of regressions in 10% of time
39
+ - Flaky tests waste more time than they save
40
+ - Every production bug becomes a regression test
41
+ </default_to_action>
42
+
43
+ ## Quick Reference Card
44
+
45
+ ### When to Use
46
+ - After any code change
47
+ - Before release
48
+ - After dependency updates
49
+ - After environment changes
50
+
51
+ ### Regression Types
52
+ | Type | When | Scope |
53
+ |------|------|-------|
54
+ | **Corrective** | No code change | Full suite |
55
+ | **Progressive** | New features | Existing + new |
56
+ | **Selective** | Specific changes | Changed + dependent |
57
+ | **Complete** | Major refactor | Everything |
58
+
59
+ ### Test Selection Strategies
60
+ | Strategy | How | Reduction |
61
+ |----------|-----|-----------|
62
+ | **Change-based** | Git diff analysis | 70-90% |
63
+ | **Risk-based** | Priority by impact | 50-70% |
64
+ | **Historical** | Frequently failing | 40-60% |
65
+ | **Time-budget** | Fixed time window | Variable |
66
+
67
+ ---
68
+
69
+ ## Change-Based Test Selection
70
+
71
+ ```typescript
72
+ // Analyze changed files and select impacted tests
73
+ function selectTests(changedFiles: string[]): string[] {
74
+ const testsToRun = new Set<string>();
75
+
76
+ for (const file of changedFiles) {
77
+ // Direct tests
78
+ testsToRun.add(`${file.replace('.ts', '.test.ts')}`);
79
+
80
+ // Dependent tests (via coverage mapping)
81
+ const dependentTests = testCoverage[file] || [];
82
+ dependentTests.forEach(t => testsToRun.add(t));
83
+ }
84
+
85
+ return Array.from(testsToRun);
86
+ }
87
+
88
+ // Example: payment.ts changed
89
+ // Runs: payment.test.ts, checkout.integration.test.ts, e2e/purchase.test.ts
90
+ ```
91
+
92
+ ---
93
+
94
+ ## Regression Suite Pyramid
95
+
96
+ ```
97
+ /\
98
+ / \ Full Regression (weekly)
99
+ / \ - All tests (2-4 hours)
100
+ /------\
101
+ / \ Extended Regression (nightly)
102
+ / \ - Unit + integration + critical E2E (30-60 min)
103
+ /------------\
104
+ / \ Quick Regression (per commit)
105
+ /________________\ - Changed code + smoke tests (5-10 min)
106
+ ```
107
+
108
+ ---
109
+
110
+ ## CI/CD Integration
111
+
112
+ ```yaml
113
+ # .github/workflows/regression.yml
114
+ jobs:
115
+ quick-regression:
116
+ runs-on: ubuntu-latest
117
+ timeout-minutes: 15
118
+ steps:
119
+ - name: Analyze changes
120
+ id: changes
121
+ uses: dorny/paths-filter@v2
122
+ with:
123
+ filters: |
124
+ payment:
125
+ - 'src/payment/**'
126
+ auth:
127
+ - 'src/auth/**'
128
+
129
+ - name: Run affected tests
130
+ run: npm run test:affected
131
+
132
+ - name: Smoke tests (always)
133
+ run: npm run test:smoke
134
+
135
+ nightly-regression:
136
+ if: github.event_name == 'schedule'
137
+ timeout-minutes: 120
138
+ steps:
139
+ - run: npm test -- --coverage
140
+ ```
141
+
142
+ ---
143
+
144
+ ## Optimization Techniques
145
+
146
+ ```javascript
147
+ // 1. Parallel execution
148
+ module.exports = {
149
+ maxWorkers: '50%', // Use half CPU cores
150
+ testTimeout: 30000
151
+ };
152
+
153
+ // 2. Sharding across CI workers
154
+ // npm test -- --shard=1/4
155
+
156
+ // 3. Incremental testing (only changed since last run)
157
+ // Track last run state, skip passing unchanged tests
158
+
159
+ // 4. Fast-fail on smoke
160
+ // Run critical tests first, abort if they fail
161
+ ```
162
+
163
+ ---
164
+
165
+ ## Agent-Driven Regression
166
+
167
+ ```typescript
168
+ // Smart test selection
169
+ await Task("Regression Analysis", {
170
+ pr: 1234,
171
+ strategy: 'change-based-with-risk',
172
+ timeBudget: '15min'
173
+ }, "qe-regression-risk-analyzer");
174
+
175
+ // Returns:
176
+ // {
177
+ // mustRun: ['payment.test.ts', 'checkout.integration.test.ts'],
178
+ // shouldRun: ['order.test.ts'],
179
+ // canSkip: ['profile.test.ts', 'search.test.ts'],
180
+ // estimatedTime: '12 min',
181
+ // riskCoverage: 0.94
182
+ // }
183
+
184
+ // Generate regression test from production bug
185
+ await Task("Bug Regression Test", {
186
+ bug: { id: 'BUG-567', description: 'Checkout fails > 100 items' },
187
+ preventRecurrence: true
188
+ }, "qe-test-generator");
189
+ ```
190
+
191
+ ---
192
+
193
+ ## Agent Coordination Hints
194
+
195
+ ### Memory Namespace
196
+ ```
197
+ aqe/regression-testing/
198
+ ├── test-selection/* - Impact analysis results
199
+ ├── suite-health/* - Flakiness, timing trends
200
+ ├── coverage-maps/* - Test-to-code mapping
201
+ └── bug-regressions/* - Tests from production bugs
202
+ ```
203
+
204
+ ### Fleet Coordination
205
+ ```typescript
206
+ const regressionFleet = await FleetManager.coordinate({
207
+ strategy: 'comprehensive-regression',
208
+ agents: [
209
+ 'qe-regression-risk-analyzer', // Analyze changes, select tests
210
+ 'qe-test-executor', // Execute selected tests
211
+ 'qe-coverage-analyzer', // Analyze coverage gaps
212
+ 'qe-quality-gate' // Go/no-go decision
213
+ ],
214
+ topology: 'sequential'
215
+ });
216
+ ```
217
+
218
+ ---
219
+
220
+ ## Related Skills
221
+ - [risk-based-testing](../risk-based-testing/) - Risk-based prioritization
222
+ - [test-automation-strategy](../test-automation-strategy/) - Automation pyramid
223
+ - [continuous-testing-shift-left](../continuous-testing-shift-left/) - CI/CD integration
224
+
225
+ ---
226
+
227
+ ## Remember
228
+
229
+ **Regression testing is insurance against change.** Every code change is a risk. Smart regression testing mitigates that risk by testing what matters based on what changed.
230
+
231
+ **Good regression testing is strategic, not exhaustive.** You cannot test everything, every time. Select based on changes, risk, and time budget.
232
+
233
+ **With Agents:** `qe-regression-risk-analyzer` provides intelligent test selection achieving 90% defect detection in 10% of execution time. Agents generate regression tests from production bugs automatically.
@@ -0,0 +1,212 @@
1
+ ---
2
+ name: risk-based-testing
3
+ description: "Focus testing effort on highest-risk areas using risk assessment and prioritization. Use when planning test strategy, allocating testing resources, or making coverage decisions."
4
+ category: testing-methodologies
5
+ priority: high
6
+ tokenEstimate: 1000
7
+ agents: [qe-regression-risk-analyzer, qe-test-generator, qe-production-intelligence, qe-quality-gate]
8
+ implementation_status: optimized
9
+ optimization_version: 1.0
10
+ last_optimized: 2025-12-02
11
+ dependencies: []
12
+ quick_reference_card: true
13
+ tags: [risk, prioritization, test-planning, coverage, impact-analysis]
14
+ trust_tier: 3
15
+ validation:
16
+ schema_path: schemas/output.json
17
+ validator_path: scripts/validate-config.json
18
+ eval_path: evals/risk-based-testing.yaml
19
+
20
+ ---
21
+
22
+ # Risk-Based Testing
23
+
24
+ <default_to_action>
25
+ When planning tests or allocating testing resources:
26
+ 1. IDENTIFY risks: What can go wrong? What's the impact? What's the likelihood?
27
+ 2. CALCULATE risk: Risk = Probability × Impact (use 1-5 scale for each)
28
+ 3. PRIORITIZE: Critical (20+) → High (12-19) → Medium (6-11) → Low (1-5)
29
+ 4. ALLOCATE effort: 60% critical, 25% high, 10% medium, 5% low
30
+ 5. REASSESS continuously: New info, changes, production incidents
31
+
32
+ **Quick Risk Assessment:**
33
+ - Probability factors: Complexity, change frequency, developer experience, technical debt
34
+ - Impact factors: User count, revenue, safety, reputation, regulatory
35
+ - Dynamic adjustment: Production bugs increase risk; stable code decreases
36
+
37
+ **Critical Success Factors:**
38
+ - Test where bugs hurt most, not everywhere equally
39
+ - Risk is dynamic - reassess with new information
40
+ - Production data informs risk (shift-right feeds shift-left)
41
+ </default_to_action>
42
+
43
+ ## Quick Reference Card
44
+
45
+ ### When to Use
46
+ - Planning sprint/release test strategy
47
+ - Deciding what to automate first
48
+ - Allocating limited testing time
49
+ - Justifying test coverage decisions
50
+
51
+ ### Risk Calculation
52
+ ```
53
+ Risk Score = Probability (1-5) × Impact (1-5)
54
+ ```
55
+
56
+ | Score | Priority | Effort | Action |
57
+ |-------|----------|--------|--------|
58
+ | 20-25 | Critical | 60% | Comprehensive testing, multiple techniques |
59
+ | 12-19 | High | 25% | Thorough testing, automation priority |
60
+ | 6-11 | Medium | 10% | Standard testing, basic automation |
61
+ | 1-5 | Low | 5% | Smoke test, exploratory only |
62
+
63
+ ### Probability Factors
64
+ | Factor | Low (1) | Medium (3) | High (5) |
65
+ |--------|---------|------------|----------|
66
+ | Complexity | Simple CRUD | Business logic | Algorithms, integrations |
67
+ | Change Rate | Stable 6+ months | Monthly changes | Weekly/daily changes |
68
+ | Developer Experience | Senior, domain expert | Mid-level | Junior, new to codebase |
69
+ | Technical Debt | Clean code | Some debt | Legacy, no tests |
70
+
71
+ ### Impact Factors
72
+ | Factor | Low (1) | Medium (3) | High (5) |
73
+ |--------|---------|------------|----------|
74
+ | Users Affected | Admin only | Department | All users |
75
+ | Revenue | None | Indirect | Direct (checkout) |
76
+ | Safety | Convenience | Data loss | Physical harm |
77
+ | Reputation | Internal | Industry | Public scandal |
78
+
79
+ ---
80
+
81
+ ## Risk Assessment Workflow
82
+
83
+ ### Step 1: List Features/Components
84
+ ```
85
+ Feature | Probability | Impact | Risk | Priority
86
+ --------|-------------|--------|------|----------
87
+ Checkout | 4 | 5 | 20 | Critical
88
+ User Auth | 3 | 5 | 15 | High
89
+ Admin Panel | 2 | 2 | 4 | Low
90
+ Search | 3 | 3 | 9 | Medium
91
+ ```
92
+
93
+ ### Step 2: Apply Test Depth
94
+ ```typescript
95
+ await Task("Risk-Based Test Generation", {
96
+ critical: {
97
+ features: ['checkout', 'payment'],
98
+ depth: 'comprehensive',
99
+ techniques: ['unit', 'integration', 'e2e', 'performance', 'security']
100
+ },
101
+ high: {
102
+ features: ['auth', 'user-profile'],
103
+ depth: 'thorough',
104
+ techniques: ['unit', 'integration', 'e2e']
105
+ },
106
+ medium: {
107
+ features: ['search', 'notifications'],
108
+ depth: 'standard',
109
+ techniques: ['unit', 'integration']
110
+ },
111
+ low: {
112
+ features: ['admin-panel', 'settings'],
113
+ depth: 'smoke',
114
+ techniques: ['smoke-tests']
115
+ }
116
+ }, "qe-test-generator");
117
+ ```
118
+
119
+ ### Step 3: Reassess Dynamically
120
+ ```typescript
121
+ // Production incident increases risk
122
+ await Task("Update Risk Score", {
123
+ feature: 'search',
124
+ event: 'production-incident',
125
+ previousRisk: 9,
126
+ newProbability: 5, // Increased due to incident
127
+ newRisk: 15 // Now HIGH priority
128
+ }, "qe-regression-risk-analyzer");
129
+ ```
130
+
131
+ ---
132
+
133
+ ## ML-Enhanced Risk Analysis
134
+
135
+ ```typescript
136
+ // Agent predicts risk using historical data
137
+ const riskAnalysis = await Task("ML Risk Analysis", {
138
+ codeChanges: changedFiles,
139
+ historicalBugs: bugDatabase,
140
+ prediction: {
141
+ model: 'gradient-boosting',
142
+ factors: ['complexity', 'change-frequency', 'author-experience', 'file-age']
143
+ }
144
+ }, "qe-regression-risk-analyzer");
145
+
146
+ // Output: 95% accuracy risk prediction per file
147
+ ```
148
+
149
+ ---
150
+
151
+ ## Agent Coordination Hints
152
+
153
+ ### Memory Namespace
154
+ ```
155
+ aqe/risk-based/
156
+ ├── risk-scores/* - Current risk assessments
157
+ ├── historical-bugs/* - Bug patterns by area
158
+ ├── production-data/* - Incident data for risk
159
+ └── coverage-map/* - Test depth by risk level
160
+ ```
161
+
162
+ ### Fleet Coordination
163
+ ```typescript
164
+ const riskFleet = await FleetManager.coordinate({
165
+ strategy: 'risk-based-testing',
166
+ agents: [
167
+ 'qe-regression-risk-analyzer', // Risk scoring
168
+ 'qe-test-generator', // Risk-appropriate tests
169
+ 'qe-production-intelligence', // Production feedback
170
+ 'qe-quality-gate' // Risk-based gates
171
+ ],
172
+ topology: 'sequential'
173
+ });
174
+ ```
175
+
176
+ ---
177
+
178
+ ## Integration with CI/CD
179
+
180
+ ```yaml
181
+ # Risk-based test selection in pipeline
182
+ - name: Risk Analysis
183
+ run: aqe risk-analyze --changes ${{ github.event.pull_request.files }}
184
+
185
+ - name: Run Critical Tests
186
+ if: risk.critical > 0
187
+ run: npm run test:critical
188
+
189
+ - name: Run High Tests
190
+ if: risk.high > 0
191
+ run: npm run test:high
192
+
193
+ - name: Skip Low Risk
194
+ if: risk.low_only
195
+ run: npm run test:smoke
196
+ ```
197
+
198
+ ---
199
+
200
+ ## Related Skills
201
+ - [agentic-quality-engineering](../agentic-quality-engineering/) - Risk-aware agents
202
+ - [context-driven-testing](../context-driven-testing/) - Context affects risk
203
+ - [regression-testing](../regression-testing/) - Risk-based regression selection
204
+ - [shift-right-testing](../shift-right-testing/) - Production informs risk
205
+
206
+ ---
207
+
208
+ ## Remember
209
+
210
+ **Risk = Probability × Impact.** Test where bugs hurt most. Critical gets 60%, low gets 5%. Risk is dynamic - reassess with new info. Production incidents raise risk scores.
211
+
212
+ **With Agents:** Agents calculate risk using ML on historical data, select risk-appropriate tests, and adjust scores from production feedback. Use agents to maintain dynamic risk profiles at scale.