agentic-qe 1.6.0 → 1.7.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 (117) hide show
  1. package/.claude/skills/brutal-honesty-review/README.md +218 -0
  2. package/.claude/skills/brutal-honesty-review/SKILL.md +725 -0
  3. package/.claude/skills/brutal-honesty-review/resources/assessment-rubrics.md +295 -0
  4. package/.claude/skills/brutal-honesty-review/resources/review-template.md +102 -0
  5. package/.claude/skills/brutal-honesty-review/scripts/assess-code.sh +179 -0
  6. package/.claude/skills/brutal-honesty-review/scripts/assess-tests.sh +223 -0
  7. package/.claude/skills/cicd-pipeline-qe-orchestrator/README.md +301 -0
  8. package/.claude/skills/cicd-pipeline-qe-orchestrator/SKILL.md +510 -0
  9. package/.claude/skills/cicd-pipeline-qe-orchestrator/resources/workflows/microservice-pipeline.md +239 -0
  10. package/.claude/skills/cicd-pipeline-qe-orchestrator/resources/workflows/mobile-pipeline.md +375 -0
  11. package/.claude/skills/cicd-pipeline-qe-orchestrator/resources/workflows/monolith-pipeline.md +268 -0
  12. package/.claude/skills/six-thinking-hats/README.md +190 -0
  13. package/.claude/skills/six-thinking-hats/SKILL.md +1215 -0
  14. package/.claude/skills/six-thinking-hats/resources/examples/api-testing-example.md +345 -0
  15. package/.claude/skills/six-thinking-hats/resources/templates/solo-session-template.md +167 -0
  16. package/.claude/skills/six-thinking-hats/resources/templates/team-session-template.md +336 -0
  17. package/CHANGELOG.md +2359 -2157
  18. package/README.md +41 -7
  19. package/dist/agents/BaseAgent.d.ts +22 -0
  20. package/dist/agents/BaseAgent.d.ts.map +1 -1
  21. package/dist/agents/BaseAgent.js +74 -0
  22. package/dist/agents/BaseAgent.js.map +1 -1
  23. package/dist/agents/FleetCommanderAgent.d.ts +16 -0
  24. package/dist/agents/FleetCommanderAgent.d.ts.map +1 -1
  25. package/dist/agents/FleetCommanderAgent.js +35 -20
  26. package/dist/agents/FleetCommanderAgent.js.map +1 -1
  27. package/dist/agents/index.d.ts.map +1 -1
  28. package/dist/agents/index.js +0 -2
  29. package/dist/agents/index.js.map +1 -1
  30. package/dist/agents/lifecycle/AgentLifecycleManager.d.ts +5 -0
  31. package/dist/agents/lifecycle/AgentLifecycleManager.d.ts.map +1 -1
  32. package/dist/agents/lifecycle/AgentLifecycleManager.js +10 -0
  33. package/dist/agents/lifecycle/AgentLifecycleManager.js.map +1 -1
  34. package/dist/cli/commands/agentdb/learn.d.ts.map +1 -1
  35. package/dist/cli/commands/agentdb/learn.js +190 -71
  36. package/dist/cli/commands/agentdb/learn.js.map +1 -1
  37. package/dist/cli/commands/debug/agent.d.ts.map +1 -1
  38. package/dist/cli/commands/debug/agent.js +40 -13
  39. package/dist/cli/commands/debug/agent.js.map +1 -1
  40. package/dist/cli/commands/debug/diagnostics.js +38 -11
  41. package/dist/cli/commands/debug/diagnostics.js.map +1 -1
  42. package/dist/cli/commands/debug/health-check.js +47 -12
  43. package/dist/cli/commands/debug/health-check.js.map +1 -1
  44. package/dist/cli/commands/debug/profile.js +7 -7
  45. package/dist/cli/commands/debug/profile.js.map +1 -1
  46. package/dist/cli/commands/debug/trace.js +4 -4
  47. package/dist/cli/commands/debug/trace.js.map +1 -1
  48. package/dist/cli/commands/debug/troubleshoot.js +41 -27
  49. package/dist/cli/commands/debug/troubleshoot.js.map +1 -1
  50. package/dist/cli/commands/init-claude-md-template.d.ts +16 -0
  51. package/dist/cli/commands/init-claude-md-template.d.ts.map +1 -0
  52. package/dist/cli/commands/init-claude-md-template.js +69 -0
  53. package/dist/cli/commands/init-claude-md-template.js.map +1 -0
  54. package/dist/cli/commands/init.d.ts +1 -1
  55. package/dist/cli/commands/init.d.ts.map +1 -1
  56. package/dist/cli/commands/init.js +499 -469
  57. package/dist/cli/commands/init.js.map +1 -1
  58. package/dist/cli/commands/test/clean.d.ts.map +1 -1
  59. package/dist/cli/commands/test/clean.js +26 -9
  60. package/dist/cli/commands/test/clean.js.map +1 -1
  61. package/dist/cli/commands/test/debug.js +6 -7
  62. package/dist/cli/commands/test/debug.js.map +1 -1
  63. package/dist/cli/commands/test/diff.js +4 -37
  64. package/dist/cli/commands/test/diff.js.map +1 -1
  65. package/dist/cli/commands/test/profile.js +7 -40
  66. package/dist/cli/commands/test/profile.js.map +1 -1
  67. package/dist/cli/commands/test/trace.js +4 -37
  68. package/dist/cli/commands/test/trace.js.map +1 -1
  69. package/dist/core/ArtifactWorkflow.d.ts +4 -0
  70. package/dist/core/ArtifactWorkflow.d.ts.map +1 -1
  71. package/dist/core/ArtifactWorkflow.js +34 -13
  72. package/dist/core/ArtifactWorkflow.js.map +1 -1
  73. package/dist/core/coordination/BlackboardCoordination.d.ts +4 -0
  74. package/dist/core/coordination/BlackboardCoordination.d.ts.map +1 -1
  75. package/dist/core/coordination/BlackboardCoordination.js +28 -22
  76. package/dist/core/coordination/BlackboardCoordination.js.map +1 -1
  77. package/dist/core/coordination/ConsensusGating.d.ts +4 -0
  78. package/dist/core/coordination/ConsensusGating.d.ts.map +1 -1
  79. package/dist/core/coordination/ConsensusGating.js +25 -18
  80. package/dist/core/coordination/ConsensusGating.js.map +1 -1
  81. package/dist/core/memory/AgentDBService.d.ts.map +1 -1
  82. package/dist/core/memory/AgentDBService.js +6 -3
  83. package/dist/core/memory/AgentDBService.js.map +1 -1
  84. package/dist/learning/LearningEngine.js +1 -1
  85. package/dist/learning/LearningEngine.js.map +1 -1
  86. package/dist/learning/StateExtractor.d.ts +1 -1
  87. package/dist/learning/StateExtractor.d.ts.map +1 -1
  88. package/dist/learning/StateExtractor.js +62 -13
  89. package/dist/learning/StateExtractor.js.map +1 -1
  90. package/dist/utils/Config.d.ts.map +1 -1
  91. package/dist/utils/Config.js +14 -5
  92. package/dist/utils/Config.js.map +1 -1
  93. package/dist/utils/Database.d.ts.map +1 -1
  94. package/dist/utils/Database.js +5 -2
  95. package/dist/utils/Database.js.map +1 -1
  96. package/dist/utils/Logger.d.ts +1 -1
  97. package/dist/utils/Logger.d.ts.map +1 -1
  98. package/dist/utils/Logger.js +4 -4
  99. package/dist/utils/Logger.js.map +1 -1
  100. package/dist/utils/SecurityScanner.js +1 -1
  101. package/dist/utils/SecurityScanner.js.map +1 -1
  102. package/package.json +2 -2
  103. package/.claude/agents/.claude-flow/metrics/agent-metrics.json +0 -1
  104. package/.claude/agents/.claude-flow/metrics/performance.json +0 -87
  105. package/.claude/agents/.claude-flow/metrics/task-metrics.json +0 -10
  106. package/.claude/commands/analysis/COMMAND_COMPLIANCE_REPORT.md +0 -54
  107. package/.claude/commands/analysis/performance-bottlenecks.md +0 -59
  108. package/.claude/commands/flow-nexus/app-store.md +0 -124
  109. package/.claude/commands/flow-nexus/challenges.md +0 -120
  110. package/.claude/commands/flow-nexus/login-registration.md +0 -65
  111. package/.claude/commands/flow-nexus/neural-network.md +0 -134
  112. package/.claude/commands/flow-nexus/payments.md +0 -116
  113. package/.claude/commands/flow-nexus/sandbox.md +0 -83
  114. package/.claude/commands/flow-nexus/swarm.md +0 -87
  115. package/.claude/commands/flow-nexus/user-tools.md +0 -152
  116. package/.claude/commands/flow-nexus/workflow.md +0 -115
  117. package/.claude/commands/memory/usage.md +0 -46
@@ -43,6 +43,7 @@ const inquirer_1 = __importDefault(require("inquirer"));
43
43
  const ora_1 = __importDefault(require("ora"));
44
44
  const fs = __importStar(require("fs-extra"));
45
45
  const path = __importStar(require("path"));
46
+ const init_claude_md_template_1 = require("./init-claude-md-template");
46
47
  // Import version from package.json to maintain consistency
47
48
  const packageJson = require('../../../package.json');
48
49
  const PACKAGE_VERSION = packageJson.version;
@@ -782,13 +783,13 @@ For full capabilities, install the complete agentic-qe package.
782
783
  return files.filter(f => f.endsWith('.md')).length;
783
784
  }
784
785
  /**
785
- * Copy all 35 QE Fleet skills (filters out Claude Flow skills)
786
+ * Copy all 37 QE Fleet skills (filters out Claude Flow skills)
786
787
  */
787
788
  static async copySkillTemplates() {
788
789
  console.log(chalk_1.default.cyan(' 🎯 Initializing QE Fleet skills...'));
789
- // Define all 34 QE Fleet skills (Phase 1: 17 original + Phase 2: 17 new = 34 total)
790
+ // Define all 37 QE Fleet skills (Phase 1: 18 + Phase 2: 16 + Phase 3: 3 = 37 total)
790
791
  const QE_FLEET_SKILLS = [
791
- // Phase 1: Original Quality Practices (17 skills)
792
+ // Phase 1: Original Quality Practices (18 skills)
792
793
  // Core Quality Practices (3)
793
794
  'agentic-quality-engineering',
794
795
  'context-driven-testing',
@@ -811,7 +812,7 @@ For full capabilities, install the complete agentic-qe package.
811
812
  'bug-reporting-excellence',
812
813
  'technical-writing',
813
814
  'consultancy-practices',
814
- // Phase 2: Expanded QE Skills Library (17 skills)
815
+ // Phase 2: Expanded QE Skills Library (16 skills)
815
816
  // Testing Methodologies (6)
816
817
  'regression-testing',
817
818
  'shift-left-testing',
@@ -829,9 +830,14 @@ For full capabilities, install the complete agentic-qe package.
829
830
  'localization-testing',
830
831
  'compliance-testing',
831
832
  'visual-testing-advanced',
832
- // Testing Infrastructure (2)
833
+ // Testing Infrastructure (1)
833
834
  'test-environment-management',
834
- 'test-reporting-analytics'
835
+ 'test-reporting-analytics',
836
+ // Phase 3: Advanced Quality Engineering Skills (3 skills)
837
+ // Strategic Testing Methodologies (3)
838
+ 'six-thinking-hats',
839
+ 'brutal-honesty-review',
840
+ 'cicd-pipeline-qe-orchestrator'
835
841
  ];
836
842
  // Find the agentic-qe package location
837
843
  const possiblePaths = [
@@ -856,15 +862,19 @@ For full capabilities, install the complete agentic-qe package.
856
862
  console.log(chalk_1.default.green(` ✓ Found skill templates at: ${sourcePath}`));
857
863
  // List all available skills
858
864
  const availableDirs = await fs.readdir(sourcePath);
859
- const availableSkills = availableDirs.filter(name => {
865
+ const availableSkills = [];
866
+ for (const name of availableDirs) {
860
867
  const skillPath = path.join(sourcePath, name);
861
868
  try {
862
- return fs.statSync(skillPath).isDirectory();
869
+ const stats = await fs.stat(skillPath);
870
+ if (stats.isDirectory()) {
871
+ availableSkills.push(name);
872
+ }
863
873
  }
864
874
  catch {
865
- return false;
875
+ // Skip items that can't be stat'd
866
876
  }
867
- });
877
+ }
868
878
  console.log(chalk_1.default.cyan(` 📦 Found ${availableSkills.length} total skills in source`));
869
879
  // Filter to only QE Fleet skills
870
880
  const qeSkillsToConfig = availableSkills.filter(skill => QE_FLEET_SKILLS.includes(skill));
@@ -894,15 +904,22 @@ For full capabilities, install the complete agentic-qe package.
894
904
  console.log(chalk_1.default.green(' ✓ All QE skills already present'));
895
905
  }
896
906
  console.log(chalk_1.default.cyan(` 📋 Total QE skills initialized: ${finalSkillCount}`));
897
- // Verify we have exactly 34 QE skills
898
- if (finalSkillCount === 34) {
899
- console.log(chalk_1.default.green(' ✅ All 34 QE Fleet skills successfully initialized'));
907
+ // Verify we have exactly 37 QE skills
908
+ if (finalSkillCount === 37) {
909
+ console.log(chalk_1.default.green(' ✅ All 37 QE Fleet skills successfully initialized'));
900
910
  }
901
- else if (finalSkillCount < 34) {
902
- console.warn(chalk_1.default.yellow(` ⚠️ Expected 34 QE skills, found ${finalSkillCount}`));
903
- const missingSkills = QE_FLEET_SKILLS.filter(skill => {
904
- return !fs.existsSync(path.join(targetPath, skill));
905
- });
911
+ else if (finalSkillCount < 37) {
912
+ console.warn(chalk_1.default.yellow(` ⚠️ Expected 37 QE skills, found ${finalSkillCount}`));
913
+ // Check missing skills asynchronously
914
+ const missingSkills = [];
915
+ for (const skill of QE_FLEET_SKILLS) {
916
+ try {
917
+ await fs.access(path.join(targetPath, skill));
918
+ }
919
+ catch {
920
+ missingSkills.push(skill);
921
+ }
922
+ }
906
923
  console.warn(chalk_1.default.yellow(` ℹ️ Missing skills: ${missingSkills.join(', ')}`));
907
924
  }
908
925
  }
@@ -917,7 +934,8 @@ For full capabilities, install the complete agentic-qe package.
917
934
  for (const item of items) {
918
935
  const itemPath = path.join(dirPath, item);
919
936
  try {
920
- if (fs.statSync(itemPath).isDirectory()) {
937
+ const stats = await fs.stat(itemPath);
938
+ if (stats.isDirectory()) {
921
939
  count++;
922
940
  }
923
941
  }
@@ -1313,457 +1331,469 @@ echo "[AQE] Post-execution coordination complete"
1313
1331
  appendPosition = position;
1314
1332
  }
1315
1333
  }
1334
+ // Generate condensed CLAUDE.md using template
1335
+ const claudeMdContent = (0, init_claude_md_template_1.generateCondensedClaudeMd)({
1336
+ agentCount,
1337
+ topology: config.topology,
1338
+ maxAgents: config.maxAgents,
1339
+ testingFocus: config.testingFocus,
1340
+ environments: config.environments,
1341
+ frameworks: config.frameworks,
1342
+ routing: config.routing,
1343
+ streaming: config.streaming,
1344
+ }, PACKAGE_VERSION);
1345
+ /* OLD TEMPLATE - Replaced with condensed version
1316
1346
  const claudeMdContent = `# Claude Code Configuration - Agentic QE Fleet
1317
-
1318
- ## 🤖 Agentic Quality Engineering Fleet
1319
-
1320
- This project uses the **Agentic QE Fleet** - a distributed swarm of ${agentCount} AI agents for comprehensive software testing and quality assurance.
1321
-
1322
- ### Available Agents
1323
-
1324
- #### Core Testing (5 agents)
1325
- - **qe-test-generator**: AI-powered test generation with sublinear optimization
1326
- - **qe-test-executor**: Multi-framework test execution with parallel processing
1327
- - **qe-coverage-analyzer**: Real-time gap detection with O(log n) algorithms
1328
- - **qe-quality-gate**: Intelligent quality gate with risk assessment
1329
- - **qe-quality-analyzer**: Comprehensive quality metrics analysis
1330
-
1331
- #### Performance & Security (2 agents)
1332
- - **qe-performance-tester**: Load testing with k6, JMeter, Gatling integration
1333
- - **qe-security-scanner**: Multi-layer security with SAST/DAST scanning
1334
-
1335
- #### Strategic Planning (3 agents)
1336
- - **qe-requirements-validator**: INVEST criteria validation and BDD generation
1337
- - **qe-production-intelligence**: Production data to test scenarios conversion
1338
- - **qe-fleet-commander**: Hierarchical fleet coordination (50+ agents)
1339
-
1340
- #### Deployment (1 agent)
1341
- - **qe-deployment-readiness**: Multi-factor risk assessment for deployments
1342
-
1343
- #### Advanced Testing (4 agents)
1344
- - **qe-regression-risk-analyzer**: Smart test selection with ML patterns
1345
- - **qe-test-data-architect**: High-speed realistic data generation (10k+ records/sec)
1346
- - **qe-api-contract-validator**: Breaking change detection across API versions
1347
- - **qe-flaky-test-hunter**: Statistical flakiness detection and auto-stabilization
1348
-
1349
- #### Specialized (2 agents)
1350
- - **qe-visual-tester**: Visual regression with AI-powered comparison
1351
- - **qe-chaos-engineer**: Resilience testing with controlled fault injection
1352
-
1353
- ## 🚀 Quick Start
1354
-
1355
- ### Using Agents via Claude Code Task Tool (Recommended)
1356
-
1357
- \\\`\\\`\\\`javascript
1358
- // Spawn agents directly in Claude Code
1359
- Task("Generate tests", "Create comprehensive test suite for UserService", "qe-test-generator")
1360
- Task("Analyze coverage", "Find gaps using O(log n) algorithms", "qe-coverage-analyzer")
1361
- Task("Quality check", "Run quality gate validation", "qe-quality-gate")
1362
- \\\`\\\`\\\`
1363
-
1364
- ### Using MCP Tools
1365
-
1366
- \\\`\\\`\\\`bash
1367
- # Check MCP connection
1368
- claude mcp list
1369
- # Should show: agentic-qe: npm run mcp:start - ✓ Connected
1370
-
1371
- # Use MCP tools in Claude Code
1372
- mcp__agentic_qe__test_generate({ type: "unit", framework: "${config.frameworks?.[0] || 'jest'}" })
1373
- mcp__agentic_qe__test_execute({ parallel: true, coverage: true })
1374
- mcp__agentic_qe__quality_analyze({ scope: "full" })
1375
- \\\`\\\`\\\`
1376
-
1377
- ### Using CLI
1378
-
1379
- \\\`\\\`\\\`bash
1380
- # Quick commands
1381
- aqe test <module-name> # Generate tests
1382
- aqe coverage # Analyze coverage
1383
- aqe quality # Run quality gate
1384
- aqe status # Check fleet status
1385
- \\\`\\\`\\\`
1386
-
1387
- ## 🔄 Agent Coordination
1388
-
1389
- All agents coordinate through **AQE hooks** (Agentic QE native hooks - zero external dependencies, 100-500x faster):
1390
-
1391
- ### Automatic Lifecycle Hooks
1392
-
1393
- Agents extend \\\`BaseAgent\\\` and override lifecycle methods:
1394
-
1395
- \\\`\\\`\\\`typescript
1396
- protected async onPreTask(data: { assignment: TaskAssignment }): Promise<void> {
1397
- // Load context before task execution
1398
- const context = await this.memoryStore.retrieve('aqe/context', {
1399
- partition: 'coordination'
1400
- });
1401
-
1402
- this.logger.info('Pre-task hook complete');
1403
- }
1404
-
1405
- protected async onPostTask(data: { assignment: TaskAssignment; result: any }): Promise<void> {
1406
- // Store results after task completion
1407
- await this.memoryStore.store('aqe/' + this.agentId.type + '/results', data.result, {
1408
- partition: 'agent_results',
1409
- ttl: 86400 // 24 hours
1410
- });
1411
-
1412
- // Emit completion event
1413
- this.eventBus.emit('task:completed', {
1414
- agentId: this.agentId,
1415
- result: data.result
1416
- });
1417
-
1418
- this.logger.info('Post-task hook complete');
1419
- }
1420
-
1421
- protected async onTaskError(data: { assignment: TaskAssignment; error: Error }): Promise<void> {
1422
- // Handle task errors
1423
- await this.memoryStore.store('aqe/errors/' + data.assignment.id, {
1424
- error: data.error.message,
1425
- stack: data.error.stack,
1426
- timestamp: Date.now()
1427
- }, {
1428
- partition: 'errors',
1429
- ttl: 604800 // 7 days
1430
- });
1431
-
1432
- this.logger.error('Task failed', { error: data.error });
1433
- }
1434
- \\\`\\\`\\\`
1435
-
1436
- ### Performance Comparison
1437
-
1438
- | Feature | AQE Hooks | External Hooks |
1439
- |---------|-----------|----------------|
1440
- | **Speed** | <1ms | 100-500ms |
1441
- | **Dependencies** | Zero | External package |
1442
- | **Type Safety** | Full TypeScript | Shell strings |
1443
- | **Integration** | Direct API | Shell commands |
1444
- | **Performance** | 100-500x faster | Baseline |
1445
-
1446
- ## 📋 Memory Namespace
1447
-
1448
- Agents share state through the **\\\`aqe/*\\\` memory namespace**:
1449
-
1450
- - \\\`aqe/test-plan/*\\\` - Test planning and requirements
1451
- - \\\`aqe/coverage/*\\\` - Coverage analysis and gaps
1452
- - \\\`aqe/quality/*\\\` - Quality metrics and gates
1453
- - \\\`aqe/performance/*\\\` - Performance test results
1454
- - \\\`aqe/security/*\\\` - Security scan findings
1455
- - \\\`aqe/swarm/coordination\\\` - Cross-agent coordination
1456
-
1457
- ## 🎯 Fleet Configuration
1458
-
1459
- **Topology**: ${config.topology}
1460
- **Max Agents**: ${config.maxAgents}
1461
- **Testing Focus**: ${config.testingFocus?.join(', ') || 'All areas'}
1462
- **Environments**: ${config.environments?.join(', ') || 'Not specified'}
1463
- **Frameworks**: ${config.frameworks?.join(', ') || 'jest'}
1464
-
1465
- ## 💰 Multi-Model Router (v${PACKAGE_VERSION})
1466
-
1467
- **Status**: ${config.routing?.enabled ? '✅ Enabled' : '⚠️ Disabled (opt-in)'}
1468
-
1469
- The Multi-Model Router provides **70-81% cost savings** by intelligently selecting AI models based on task complexity.
1470
-
1471
- ### Features
1472
-
1473
- - ✅ Intelligent model selection (GPT-3.5, GPT-4, Claude Sonnet 4.5, Claude Haiku)
1474
- - ✅ Real-time cost tracking and aggregation
1475
- - ✅ Automatic fallback chains for resilience
1476
- - ✅ Feature flags for safe rollout
1477
- - ✅ Zero breaking changes (disabled by default)
1478
-
1479
- ### Enabling Routing
1480
-
1481
- **Option 1: Via Configuration**
1482
- \\\`\\\`\\\`json
1483
- // .agentic-qe/config/routing.json
1484
- {
1485
- "multiModelRouter": {
1486
- "enabled": true
1487
- }
1488
- }
1489
- \\\`\\\`\\\`
1490
-
1491
- **Option 2: Via Environment Variable**
1492
- \\\`\\\`\\\`bash
1493
- export AQE_ROUTING_ENABLED=true
1494
- \\\`\\\`\\\`
1495
-
1496
- ### Model Selection Rules
1497
-
1498
- | Task Complexity | Model | Est. Cost | Use Case |
1499
- |----------------|-------|-----------|----------|
1500
- | **Simple** | GPT-3.5 | $0.0004 | Unit tests, basic validation |
1501
- | **Moderate** | GPT-3.5 | $0.0008 | Integration tests, mocks |
1502
- | **Complex** | GPT-4 | $0.0048 | Property-based, edge cases |
1503
- | **Critical** | Claude Sonnet 4.5 | $0.0065 | Security, architecture review |
1504
-
1505
- ### Cost Savings Example
1506
-
1507
- **Before Routing** (always GPT-4):
1508
- - 100 simple tasks: $0.48
1509
- - 50 complex tasks: $0.24
1510
- - **Total**: $0.72
1511
-
1512
- **After Routing**:
1513
- - 100 simple → GPT-3.5: $0.04
1514
- - 50 complex → GPT-4: $0.24
1515
- - **Total**: $0.28
1516
- - **Savings**: $0.44 (61%)
1517
-
1518
- ### Monitoring Costs
1519
-
1520
- \\\`\\\`\\\`bash
1521
- # View cost dashboard
1522
- aqe routing dashboard
1523
-
1524
- # Export cost report
1525
- aqe routing report --format json
1526
-
1527
- # Check savings
1528
- aqe routing stats
1529
- \\\`\\\`\\\`
1530
-
1531
- ## 📊 Streaming Progress (v${PACKAGE_VERSION})
1532
-
1533
- **Status**: ${config.streaming?.enabled ? '✅ Enabled' : '⚠️ Disabled'}
1534
-
1535
- Real-time progress updates for long-running operations using AsyncGenerator pattern.
1536
-
1537
- ### Features
1538
-
1539
- - ✅ Real-time progress percentage
1540
- - ✅ Current operation visibility
1541
- - ✅ for-await-of compatibility
1542
- - ✅ Backward compatible (non-streaming still works)
1543
-
1544
- ### Example Usage
1545
-
1546
- \\\`\\\`\\\`javascript
1547
- // Using streaming MCP tool
1548
- const handler = new TestExecuteStreamHandler();
1549
-
1550
- for await (const event of handler.execute(params)) {
1551
- if (event.type === 'progress') {
1552
- console.log(\\\`Progress: \\\${event.percent}% - \\\${event.message}\\\`);
1553
- } else if (event.type === 'result') {
1554
- console.log('Completed:', event.data);
1555
- }
1556
- }
1557
- \\\`\\\`\\\`
1558
-
1559
- ### Supported Operations
1560
-
1561
- - ✅ Test execution (test-by-test progress)
1562
- - ✅ Coverage analysis (incremental gap detection)
1563
- - ⚠️ Test generation (coming in v1.1.0)
1564
- - ⚠️ Security scanning (coming in v1.1.0)
1565
-
1566
- ## 🎯 Claude Code Skills Integration
1567
-
1568
- This fleet includes **34 specialized QE skills** that agents can use:
1569
-
1570
- ### Phase 1: Original Quality Engineering Skills (17 skills)
1571
-
1572
- #### Core Testing (3 skills)
1573
- - **agentic-quality-engineering**: Using AI agents as force multipliers in quality work - autonomous testing systems, PACT principles, scaling quality engineering with intelligent agents
1574
- - **context-driven-testing**: Apply context-driven testing principles where practices are chosen based on project context, not universal "best practices"
1575
- - **holistic-testing-pact**: Apply the Holistic Testing Model evolved with PACT (Proactive, Autonomous, Collaborative, Targeted) principles
1576
-
1577
- #### Testing Methodologies (4 skills)
1578
- - **tdd-london-chicago**: Apply both London and Chicago school TDD approaches - understanding different TDD philosophies and choosing the right testing style
1579
- - **xp-practices**: Apply XP practices including pair programming, ensemble programming, continuous integration, and sustainable pace
1580
- - **risk-based-testing**: Focus testing effort on highest-risk areas using risk assessment and prioritization
1581
- - **test-automation-strategy**: Design and implement comprehensive test automation strategies
1582
-
1583
- #### Testing Techniques (4 skills)
1584
- - **api-testing-patterns**: Comprehensive API testing patterns including contract testing, REST/GraphQL testing, and integration testing
1585
- - **exploratory-testing-advanced**: Advanced exploratory testing techniques with Session-Based Test Management (SBTM), RST heuristics, and test tours
1586
- - **performance-testing**: Test application performance, scalability, and resilience with load testing and stress testing
1587
- - **security-testing**: Test for security vulnerabilities using OWASP principles and security testing techniques
1588
-
1589
- #### Code Quality (3 skills)
1590
- - **code-review-quality**: Conduct context-driven code reviews focusing on quality, testability, and maintainability
1591
- - **refactoring-patterns**: Apply safe refactoring patterns to improve code structure without changing behavior
1592
- - **quality-metrics**: Measure quality effectively with actionable metrics and KPIs
1593
-
1594
- #### Communication (3 skills)
1595
- - **bug-reporting-excellence**: Write high-quality bug reports that get fixed quickly - includes templates, examples, and best practices
1596
- - **technical-writing**: Create clear, concise technical documentation
1597
- - **consultancy-practices**: Apply effective software quality consultancy practices
1598
-
1599
- ### Phase 2: Expanded QE Skills Library (17 skills)
1600
-
1601
- #### Testing Methodologies (6 skills)
1602
- - **regression-testing**: Strategic regression testing with test selection, impact analysis, and continuous regression management
1603
- - **shift-left-testing**: Move testing activities earlier in development lifecycle with TDD, BDD, and design for testability
1604
- - **shift-right-testing**: Testing in production with feature flags, canary deployments, synthetic monitoring, and chaos engineering
1605
- - **test-design-techniques**: Advanced test design using equivalence partitioning, boundary value analysis, and decision tables
1606
- - **mutation-testing**: Test quality validation through mutation testing and measuring test suite effectiveness
1607
- - **test-data-management**: Realistic test data generation, GDPR compliance, and data masking strategies
1608
-
1609
- #### Specialized Testing (9 skills)
1610
- - **accessibility-testing**: WCAG 2.2 compliance testing, screen reader validation, and inclusive design verification
1611
- - **mobile-testing**: Comprehensive mobile testing for iOS and Android including gestures, sensors, and device fragmentation
1612
- - **database-testing**: Database schema validation, data integrity testing, migration testing, and query performance
1613
- - **contract-testing**: Consumer-driven contract testing for microservices using Pact and API versioning
1614
- - **chaos-engineering-resilience**: Chaos engineering principles, controlled failure injection, and resilience testing
1615
- - **compatibility-testing**: Cross-browser, cross-platform, and cross-device compatibility testing
1616
- - **localization-testing**: Internationalization (i18n) and localization (l10n) testing for global products
1617
- - **compliance-testing**: Regulatory compliance testing for GDPR, CCPA, HIPAA, SOC2, and PCI-DSS
1618
- - **visual-testing-advanced**: Advanced visual regression testing with AI-powered screenshot comparison and UI validation
1619
-
1620
- #### Testing Infrastructure (2 skills)
1621
- - **test-environment-management**: Manage test environments, infrastructure as code, and environment provisioning
1622
- - **test-reporting-analytics**: Comprehensive test reporting with metrics, trends, and actionable insights
1623
-
1624
- ### Using Skills
1625
-
1626
- #### Via CLI
1627
- \\\`\\\`\\\`bash
1628
- # List all available skills
1629
- aqe skills list
1630
-
1631
- # Search for specific skills
1632
- aqe skills search "testing"
1633
-
1634
- # Show skill details
1635
- aqe skills show agentic-quality-engineering
1636
-
1637
- # Show skill statistics
1638
- aqe skills stats
1639
- \\\`\\\`\\\`
1640
-
1641
- #### Via Skill Tool in Claude Code
1642
- \\\`\\\`\\\`javascript
1643
- // Execute a skill
1644
- Skill("agentic-quality-engineering")
1645
- Skill("tdd-london-chicago")
1646
- Skill("api-testing-patterns")
1647
- \\\`\\\`\\\`
1648
-
1649
- #### Integration with Agents
1650
- All QE agents automatically have access to relevant skills based on their specialization:
1651
- - **Test generators** use: agentic-quality-engineering, api-testing-patterns, tdd-london-chicago
1652
- - **Coverage analyzers** use: agentic-quality-engineering, quality-metrics, risk-based-testing
1653
- - **Flaky test hunters** use: agentic-quality-engineering, exploratory-testing-advanced
1654
- - **Performance testers** use: agentic-quality-engineering, performance-testing, quality-metrics
1655
- - **Security scanners** use: agentic-quality-engineering, security-testing, risk-based-testing
1656
-
1657
- ## 🧠 Q-Learning Integration (Phase 2)
1658
-
1659
- All agents automatically learn from task execution through Q-learning:
1660
-
1661
- ### Observability
1662
- \\\`\\\`\\\`bash
1663
- # Check learning status
1664
- aqe learn status --agent test-gen
1665
-
1666
- # View learned patterns
1667
- aqe learn history --agent test-gen --limit 50
1668
-
1669
- # Export learning data
1670
- aqe learn export --agent test-gen --output learning.json
1671
- \\\`\\\`\\\`
1672
-
1673
- ### Pattern Management
1674
- \\\`\\\`\\\`bash
1675
- # List test patterns
1676
- aqe patterns list --framework jest
1677
-
1678
- # Search patterns
1679
- aqe patterns search "api validation"
1680
-
1681
- # Extract patterns from tests
1682
- aqe patterns extract ./tests --framework jest
1683
- \\\`\\\`\\\`
1684
-
1685
- ### Improvement Loop
1686
- \\\`\\\`\\\`bash
1687
- # Start continuous improvement
1688
- aqe improve start
1689
-
1690
- # Check improvement status
1691
- aqe improve status
1692
-
1693
- # Run single improvement cycle
1694
- aqe improve cycle
1695
- \\\`\\\`\\\`
1696
-
1697
- ## 📚 Documentation
1698
-
1699
- - **Agent Definitions**: \\\`.claude/agents/\\\` - ${agentCount} specialized QE agents (18 main + 8 TDD subagents)
1700
- - **Subagent Definitions**: \\\`.claude/agents/subagents/\\\` - 8 specialized TDD subagents for test generation workflow
1701
- - **Skills**: \\\`.claude/skills/\\\` - 34 specialized QE skills for agents (Phase 1: 17 + Phase 2: 17)
1702
- - **Fleet Config**: \\\`.agentic-qe/config/fleet.json\\\`
1703
- - **Routing Config**: \\\`.agentic-qe/config/routing.json\\\` (Multi-Model Router settings)
1704
- - **AQE Hooks Config**: \\\`.agentic-qe/config/aqe-hooks.json\\\` (zero dependencies, 100-500x faster)
1705
-
1706
- ## 🔧 Advanced Usage
1707
-
1708
- ### Parallel Agent Execution
1709
-
1710
- \\\`\\\`\\\`javascript
1711
- // Execute multiple agents concurrently
1712
- Task("Test Generation", "Generate unit tests", "qe-test-generator")
1713
- Task("Coverage Analysis", "Analyze current coverage", "qe-coverage-analyzer")
1714
- Task("Security Scan", "Run security checks", "qe-security-scanner")
1715
- Task("Performance Test", "Load test critical paths", "qe-performance-tester")
1716
- \\\`\\\`\\\`
1717
-
1718
- ### Agent Coordination Example
1719
-
1720
- \\\`\\\`\\\`javascript
1721
- // Test generator stores results
1722
- Task("Generate tests", "Create tests and store in memory at aqe/test-plan/generated", "qe-test-generator")
1723
-
1724
- // Test executor reads from memory
1725
- Task("Execute tests", "Read test plan from aqe/test-plan/generated and execute", "qe-test-executor")
1726
-
1727
- // Coverage analyzer processes results
1728
- Task("Analyze coverage", "Check coverage from aqe/coverage/results", "qe-coverage-analyzer")
1729
- \\\`\\\`\\\`
1730
-
1731
- ## 💡 Best Practices
1732
-
1733
- 1. **Use Task Tool**: Claude Code's Task tool is the primary way to spawn agents
1734
- 2. **Batch Operations**: Always spawn multiple related agents in a single message
1735
- 3. **Memory Keys**: Use the \\\`aqe/*\\\` namespace for agent coordination
1736
- 4. **AQE Hooks**: Agents automatically use native AQE hooks for coordination (100-500x faster)
1737
- 5. **Parallel Execution**: Leverage concurrent agent execution for speed
1738
-
1739
- ## 🆘 Troubleshooting
1740
-
1741
- ### Check MCP Connection
1742
- \\\`\\\`\\\`bash
1743
- claude mcp list
1744
- \\\`\\\`\\\`
1745
-
1746
- ### View Agent Definitions
1747
- \\\`\\\`\\\`bash
1748
- ls -la .claude/agents/
1749
- \\\`\\\`\\\`
1750
-
1751
- ### Check Fleet Status
1752
- \\\`\\\`\\\`bash
1753
- aqe status --verbose
1754
- \\\`\\\`\\\`
1755
-
1756
- ### View Logs
1757
- \\\`\\\`\\\`bash
1758
- tail -f .agentic-qe/logs/fleet.log
1759
- \\\`\\\`\\\`
1760
-
1761
- ---
1762
-
1763
- **Generated by**: Agentic QE Fleet v${PACKAGE_VERSION}
1764
- **Initialization Date**: ${new Date().toISOString()}
1765
- **Fleet Topology**: ${config.topology}
1766
- `;
1347
+
1348
+ ## 🤖 Agentic Quality Engineering Fleet
1349
+
1350
+ This project uses the **Agentic QE Fleet** - a distributed swarm of ${agentCount} AI agents for comprehensive software testing and quality assurance.
1351
+
1352
+ ### Available Agents
1353
+
1354
+ #### Core Testing (5 agents)
1355
+ - **qe-test-generator**: AI-powered test generation with sublinear optimization
1356
+ - **qe-test-executor**: Multi-framework test execution with parallel processing
1357
+ - **qe-coverage-analyzer**: Real-time gap detection with O(log n) algorithms
1358
+ - **qe-quality-gate**: Intelligent quality gate with risk assessment
1359
+ - **qe-quality-analyzer**: Comprehensive quality metrics analysis
1360
+
1361
+ #### Performance & Security (2 agents)
1362
+ - **qe-performance-tester**: Load testing with k6, JMeter, Gatling integration
1363
+ - **qe-security-scanner**: Multi-layer security with SAST/DAST scanning
1364
+
1365
+ #### Strategic Planning (3 agents)
1366
+ - **qe-requirements-validator**: INVEST criteria validation and BDD generation
1367
+ - **qe-production-intelligence**: Production data to test scenarios conversion
1368
+ - **qe-fleet-commander**: Hierarchical fleet coordination (50+ agents)
1369
+
1370
+ #### Deployment (1 agent)
1371
+ - **qe-deployment-readiness**: Multi-factor risk assessment for deployments
1372
+
1373
+ #### Advanced Testing (4 agents)
1374
+ - **qe-regression-risk-analyzer**: Smart test selection with ML patterns
1375
+ - **qe-test-data-architect**: High-speed realistic data generation (10k+ records/sec)
1376
+ - **qe-api-contract-validator**: Breaking change detection across API versions
1377
+ - **qe-flaky-test-hunter**: Statistical flakiness detection and auto-stabilization
1378
+
1379
+ #### Specialized (2 agents)
1380
+ - **qe-visual-tester**: Visual regression with AI-powered comparison
1381
+ - **qe-chaos-engineer**: Resilience testing with controlled fault injection
1382
+
1383
+ ## 🚀 Quick Start
1384
+
1385
+ ### Using Agents via Claude Code Task Tool (Recommended)
1386
+
1387
+ \\\`\\\`\\\`javascript
1388
+ // Spawn agents directly in Claude Code
1389
+ Task("Generate tests", "Create comprehensive test suite for UserService", "qe-test-generator")
1390
+ Task("Analyze coverage", "Find gaps using O(log n) algorithms", "qe-coverage-analyzer")
1391
+ Task("Quality check", "Run quality gate validation", "qe-quality-gate")
1392
+ \\\`\\\`\\\`
1393
+
1394
+ ### Using MCP Tools
1395
+
1396
+ \\\`\\\`\\\`bash
1397
+ # Check MCP connection
1398
+ claude mcp list
1399
+ # Should show: agentic-qe: npm run mcp:start - ✓ Connected
1400
+
1401
+ # Use MCP tools in Claude Code
1402
+ mcp__agentic_qe__test_generate({ type: "unit", framework: "${config.frameworks?.[0] || 'jest'}" })
1403
+ mcp__agentic_qe__test_execute({ parallel: true, coverage: true })
1404
+ mcp__agentic_qe__quality_analyze({ scope: "full" })
1405
+ \\\`\\\`\\\`
1406
+
1407
+ ### Using CLI
1408
+
1409
+ \\\`\\\`\\\`bash
1410
+ # Quick commands
1411
+ aqe test <module-name> # Generate tests
1412
+ aqe coverage # Analyze coverage
1413
+ aqe quality # Run quality gate
1414
+ aqe status # Check fleet status
1415
+ \\\`\\\`\\\`
1416
+
1417
+ ## 🔄 Agent Coordination
1418
+
1419
+ All agents coordinate through **AQE hooks** (Agentic QE native hooks - zero external dependencies, 100-500x faster):
1420
+
1421
+ ### Automatic Lifecycle Hooks
1422
+
1423
+ Agents extend \\\`BaseAgent\\\` and override lifecycle methods:
1424
+
1425
+ \\\`\\\`\\\`typescript
1426
+ protected async onPreTask(data: { assignment: TaskAssignment }): Promise<void> {
1427
+ // Load context before task execution
1428
+ const context = await this.memoryStore.retrieve('aqe/context', {
1429
+ partition: 'coordination'
1430
+ });
1431
+
1432
+ this.logger.info('Pre-task hook complete');
1433
+ }
1434
+
1435
+ protected async onPostTask(data: { assignment: TaskAssignment; result: any }): Promise<void> {
1436
+ // Store results after task completion
1437
+ await this.memoryStore.store('aqe/' + this.agentId.type + '/results', data.result, {
1438
+ partition: 'agent_results',
1439
+ ttl: 86400 // 24 hours
1440
+ });
1441
+
1442
+ // Emit completion event
1443
+ this.eventBus.emit('task:completed', {
1444
+ agentId: this.agentId,
1445
+ result: data.result
1446
+ });
1447
+
1448
+ this.logger.info('Post-task hook complete');
1449
+ }
1450
+
1451
+ protected async onTaskError(data: { assignment: TaskAssignment; error: Error }): Promise<void> {
1452
+ // Handle task errors
1453
+ await this.memoryStore.store('aqe/errors/' + data.assignment.id, {
1454
+ error: data.error.message,
1455
+ stack: data.error.stack,
1456
+ timestamp: Date.now()
1457
+ }, {
1458
+ partition: 'errors',
1459
+ ttl: 604800 // 7 days
1460
+ });
1461
+
1462
+ this.logger.error('Task failed', { error: data.error });
1463
+ }
1464
+ \\\`\\\`\\\`
1465
+
1466
+ ### Performance Comparison
1467
+
1468
+ | Feature | AQE Hooks | External Hooks |
1469
+ |---------|-----------|----------------|
1470
+ | **Speed** | <1ms | 100-500ms |
1471
+ | **Dependencies** | Zero | External package |
1472
+ | **Type Safety** | Full TypeScript | Shell strings |
1473
+ | **Integration** | Direct API | Shell commands |
1474
+ | **Performance** | 100-500x faster | Baseline |
1475
+
1476
+ ## 📋 Memory Namespace
1477
+
1478
+ Agents share state through the **\\\`aqe/*\\\` memory namespace**:
1479
+
1480
+ - \\\`aqe/test-plan/*\\\` - Test planning and requirements
1481
+ - \\\`aqe/coverage/*\\\` - Coverage analysis and gaps
1482
+ - \\\`aqe/quality/*\\\` - Quality metrics and gates
1483
+ - \\\`aqe/performance/*\\\` - Performance test results
1484
+ - \\\`aqe/security/*\\\` - Security scan findings
1485
+ - \\\`aqe/swarm/coordination\\\` - Cross-agent coordination
1486
+
1487
+ ## 🎯 Fleet Configuration
1488
+
1489
+ **Topology**: ${config.topology}
1490
+ **Max Agents**: ${config.maxAgents}
1491
+ **Testing Focus**: ${config.testingFocus?.join(', ') || 'All areas'}
1492
+ **Environments**: ${config.environments?.join(', ') || 'Not specified'}
1493
+ **Frameworks**: ${config.frameworks?.join(', ') || 'jest'}
1494
+
1495
+ ## 💰 Multi-Model Router (v${PACKAGE_VERSION})
1496
+
1497
+ **Status**: ${config.routing?.enabled ? '✅ Enabled' : '⚠️ Disabled (opt-in)'}
1498
+
1499
+ The Multi-Model Router provides **70-81% cost savings** by intelligently selecting AI models based on task complexity.
1500
+
1501
+ ### Features
1502
+
1503
+ - ✅ Intelligent model selection (GPT-3.5, GPT-4, Claude Sonnet 4.5, Claude Haiku)
1504
+ - ✅ Real-time cost tracking and aggregation
1505
+ - ✅ Automatic fallback chains for resilience
1506
+ - ✅ Feature flags for safe rollout
1507
+ - ✅ Zero breaking changes (disabled by default)
1508
+
1509
+ ### Enabling Routing
1510
+
1511
+ **Option 1: Via Configuration**
1512
+ \\\`\\\`\\\`json
1513
+ // .agentic-qe/config/routing.json
1514
+ {
1515
+ "multiModelRouter": {
1516
+ "enabled": true
1517
+ }
1518
+ }
1519
+ \\\`\\\`\\\`
1520
+
1521
+ **Option 2: Via Environment Variable**
1522
+ \\\`\\\`\\\`bash
1523
+ export AQE_ROUTING_ENABLED=true
1524
+ \\\`\\\`\\\`
1525
+
1526
+ ### Model Selection Rules
1527
+
1528
+ | Task Complexity | Model | Est. Cost | Use Case |
1529
+ |----------------|-------|-----------|----------|
1530
+ | **Simple** | GPT-3.5 | $0.0004 | Unit tests, basic validation |
1531
+ | **Moderate** | GPT-3.5 | $0.0008 | Integration tests, mocks |
1532
+ | **Complex** | GPT-4 | $0.0048 | Property-based, edge cases |
1533
+ | **Critical** | Claude Sonnet 4.5 | $0.0065 | Security, architecture review |
1534
+
1535
+ ### Cost Savings Example
1536
+
1537
+ **Before Routing** (always GPT-4):
1538
+ - 100 simple tasks: $0.48
1539
+ - 50 complex tasks: $0.24
1540
+ - **Total**: $0.72
1541
+
1542
+ **After Routing**:
1543
+ - 100 simple → GPT-3.5: $0.04
1544
+ - 50 complex → GPT-4: $0.24
1545
+ - **Total**: $0.28
1546
+ - **Savings**: $0.44 (61%)
1547
+
1548
+ ### Monitoring Costs
1549
+
1550
+ \\\`\\\`\\\`bash
1551
+ # View cost dashboard
1552
+ aqe routing dashboard
1553
+
1554
+ # Export cost report
1555
+ aqe routing report --format json
1556
+
1557
+ # Check savings
1558
+ aqe routing stats
1559
+ \\\`\\\`\\\`
1560
+
1561
+ ## 📊 Streaming Progress (v${PACKAGE_VERSION})
1562
+
1563
+ **Status**: ${config.streaming?.enabled ? '✅ Enabled' : '⚠️ Disabled'}
1564
+
1565
+ Real-time progress updates for long-running operations using AsyncGenerator pattern.
1566
+
1567
+ ### Features
1568
+
1569
+ - ✅ Real-time progress percentage
1570
+ - ✅ Current operation visibility
1571
+ - ✅ for-await-of compatibility
1572
+ - ✅ Backward compatible (non-streaming still works)
1573
+
1574
+ ### Example Usage
1575
+
1576
+ \\\`\\\`\\\`javascript
1577
+ // Using streaming MCP tool
1578
+ const handler = new TestExecuteStreamHandler();
1579
+
1580
+ for await (const event of handler.execute(params)) {
1581
+ if (event.type === 'progress') {
1582
+ console.log(\\\`Progress: \\\${event.percent}% - \\\${event.message}\\\`);
1583
+ } else if (event.type === 'result') {
1584
+ console.log('Completed:', event.data);
1585
+ }
1586
+ }
1587
+ \\\`\\\`\\\`
1588
+
1589
+ ### Supported Operations
1590
+
1591
+ - ✅ Test execution (test-by-test progress)
1592
+ - ✅ Coverage analysis (incremental gap detection)
1593
+ - ⚠️ Test generation (coming in v1.1.0)
1594
+ - ⚠️ Security scanning (coming in v1.1.0)
1595
+
1596
+ ## 🎯 Claude Code Skills Integration
1597
+
1598
+ This fleet includes **37 specialized QE skills** that agents can use:
1599
+
1600
+ ### Phase 1: Original Quality Engineering Skills (18 skills)
1601
+
1602
+ #### Core Testing (3 skills)
1603
+ - **agentic-quality-engineering**: Using AI agents as force multipliers in quality work - autonomous testing systems, PACT principles, scaling quality engineering with intelligent agents
1604
+ - **context-driven-testing**: Apply context-driven testing principles where practices are chosen based on project context, not universal "best practices"
1605
+ - **holistic-testing-pact**: Apply the Holistic Testing Model evolved with PACT (Proactive, Autonomous, Collaborative, Targeted) principles
1606
+
1607
+ #### Testing Methodologies (4 skills)
1608
+ - **tdd-london-chicago**: Apply both London and Chicago school TDD approaches - understanding different TDD philosophies and choosing the right testing style
1609
+ - **xp-practices**: Apply XP practices including pair programming, ensemble programming, continuous integration, and sustainable pace
1610
+ - **risk-based-testing**: Focus testing effort on highest-risk areas using risk assessment and prioritization
1611
+ - **test-automation-strategy**: Design and implement comprehensive test automation strategies
1612
+
1613
+ #### Testing Techniques (4 skills)
1614
+ - **api-testing-patterns**: Comprehensive API testing patterns including contract testing, REST/GraphQL testing, and integration testing
1615
+ - **exploratory-testing-advanced**: Advanced exploratory testing techniques with Session-Based Test Management (SBTM), RST heuristics, and test tours
1616
+ - **performance-testing**: Test application performance, scalability, and resilience with load testing and stress testing
1617
+ - **security-testing**: Test for security vulnerabilities using OWASP principles and security testing techniques
1618
+
1619
+ #### Code Quality (3 skills)
1620
+ - **code-review-quality**: Conduct context-driven code reviews focusing on quality, testability, and maintainability
1621
+ - **refactoring-patterns**: Apply safe refactoring patterns to improve code structure without changing behavior
1622
+ - **quality-metrics**: Measure quality effectively with actionable metrics and KPIs
1623
+
1624
+ #### Communication (3 skills)
1625
+ - **bug-reporting-excellence**: Write high-quality bug reports that get fixed quickly - includes templates, examples, and best practices
1626
+ - **technical-writing**: Create clear, concise technical documentation
1627
+ - **consultancy-practices**: Apply effective software quality consultancy practices
1628
+
1629
+ ### Phase 2: Expanded QE Skills Library (17 skills)
1630
+
1631
+ #### Testing Methodologies (6 skills)
1632
+ - **regression-testing**: Strategic regression testing with test selection, impact analysis, and continuous regression management
1633
+ - **shift-left-testing**: Move testing activities earlier in development lifecycle with TDD, BDD, and design for testability
1634
+ - **shift-right-testing**: Testing in production with feature flags, canary deployments, synthetic monitoring, and chaos engineering
1635
+ - **test-design-techniques**: Advanced test design using equivalence partitioning, boundary value analysis, and decision tables
1636
+ - **mutation-testing**: Test quality validation through mutation testing and measuring test suite effectiveness
1637
+ - **test-data-management**: Realistic test data generation, GDPR compliance, and data masking strategies
1638
+
1639
+ #### Specialized Testing (9 skills)
1640
+ - **accessibility-testing**: WCAG 2.2 compliance testing, screen reader validation, and inclusive design verification
1641
+ - **mobile-testing**: Comprehensive mobile testing for iOS and Android including gestures, sensors, and device fragmentation
1642
+ - **database-testing**: Database schema validation, data integrity testing, migration testing, and query performance
1643
+ - **contract-testing**: Consumer-driven contract testing for microservices using Pact and API versioning
1644
+ - **chaos-engineering-resilience**: Chaos engineering principles, controlled failure injection, and resilience testing
1645
+ - **compatibility-testing**: Cross-browser, cross-platform, and cross-device compatibility testing
1646
+ - **localization-testing**: Internationalization (i18n) and localization (l10n) testing for global products
1647
+ - **compliance-testing**: Regulatory compliance testing for GDPR, CCPA, HIPAA, SOC2, and PCI-DSS
1648
+ - **visual-testing-advanced**: Advanced visual regression testing with AI-powered screenshot comparison and UI validation
1649
+
1650
+ #### Testing Infrastructure (2 skills)
1651
+ - **test-environment-management**: Manage test environments, infrastructure as code, and environment provisioning
1652
+ - **test-reporting-analytics**: Comprehensive test reporting with metrics, trends, and actionable insights
1653
+
1654
+ ### Using Skills
1655
+
1656
+ #### Via CLI
1657
+ \\\`\\\`\\\`bash
1658
+ # List all available skills
1659
+ aqe skills list
1660
+
1661
+ # Search for specific skills
1662
+ aqe skills search "testing"
1663
+
1664
+ # Show skill details
1665
+ aqe skills show agentic-quality-engineering
1666
+
1667
+ # Show skill statistics
1668
+ aqe skills stats
1669
+ \\\`\\\`\\\`
1670
+
1671
+ #### Via Skill Tool in Claude Code
1672
+ \\\`\\\`\\\`javascript
1673
+ // Execute a skill
1674
+ Skill("agentic-quality-engineering")
1675
+ Skill("tdd-london-chicago")
1676
+ Skill("api-testing-patterns")
1677
+ \\\`\\\`\\\`
1678
+
1679
+ #### Integration with Agents
1680
+ All QE agents automatically have access to relevant skills based on their specialization:
1681
+ - **Test generators** use: agentic-quality-engineering, api-testing-patterns, tdd-london-chicago
1682
+ - **Coverage analyzers** use: agentic-quality-engineering, quality-metrics, risk-based-testing
1683
+ - **Flaky test hunters** use: agentic-quality-engineering, exploratory-testing-advanced
1684
+ - **Performance testers** use: agentic-quality-engineering, performance-testing, quality-metrics
1685
+ - **Security scanners** use: agentic-quality-engineering, security-testing, risk-based-testing
1686
+
1687
+ ## 🧠 Q-Learning Integration (Phase 2)
1688
+
1689
+ All agents automatically learn from task execution through Q-learning:
1690
+
1691
+ ### Observability
1692
+ \\\`\\\`\\\`bash
1693
+ # Check learning status
1694
+ aqe learn status --agent test-gen
1695
+
1696
+ # View learned patterns
1697
+ aqe learn history --agent test-gen --limit 50
1698
+
1699
+ # Export learning data
1700
+ aqe learn export --agent test-gen --output learning.json
1701
+ \\\`\\\`\\\`
1702
+
1703
+ ### Pattern Management
1704
+ \\\`\\\`\\\`bash
1705
+ # List test patterns
1706
+ aqe patterns list --framework jest
1707
+
1708
+ # Search patterns
1709
+ aqe patterns search "api validation"
1710
+
1711
+ # Extract patterns from tests
1712
+ aqe patterns extract ./tests --framework jest
1713
+ \\\`\\\`\\\`
1714
+
1715
+ ### Improvement Loop
1716
+ \\\`\\\`\\\`bash
1717
+ # Start continuous improvement
1718
+ aqe improve start
1719
+
1720
+ # Check improvement status
1721
+ aqe improve status
1722
+
1723
+ # Run single improvement cycle
1724
+ aqe improve cycle
1725
+ \\\`\\\`\\\`
1726
+
1727
+ ## 📚 Documentation
1728
+
1729
+ - **Agent Definitions**: \\\`.claude/agents/\\\` - ${agentCount} specialized QE agents (18 main + 8 TDD subagents)
1730
+ - **Subagent Definitions**: \\\`.claude/agents/subagents/\\\` - 8 specialized TDD subagents for test generation workflow
1731
+ - **Skills**: \\\`.claude/skills/\\\` - 37 specialized QE skills for agents (Phase 1: 18 + Phase 2: 16 + Phase 3: 3)
1732
+ - **Fleet Config**: \\\`.agentic-qe/config/fleet.json\\\`
1733
+ - **Routing Config**: \\\`.agentic-qe/config/routing.json\\\` (Multi-Model Router settings)
1734
+ - **AQE Hooks Config**: \\\`.agentic-qe/config/aqe-hooks.json\\\` (zero dependencies, 100-500x faster)
1735
+
1736
+ ## 🔧 Advanced Usage
1737
+
1738
+ ### Parallel Agent Execution
1739
+
1740
+ \\\`\\\`\\\`javascript
1741
+ // Execute multiple agents concurrently
1742
+ Task("Test Generation", "Generate unit tests", "qe-test-generator")
1743
+ Task("Coverage Analysis", "Analyze current coverage", "qe-coverage-analyzer")
1744
+ Task("Security Scan", "Run security checks", "qe-security-scanner")
1745
+ Task("Performance Test", "Load test critical paths", "qe-performance-tester")
1746
+ \\\`\\\`\\\`
1747
+
1748
+ ### Agent Coordination Example
1749
+
1750
+ \\\`\\\`\\\`javascript
1751
+ // Test generator stores results
1752
+ Task("Generate tests", "Create tests and store in memory at aqe/test-plan/generated", "qe-test-generator")
1753
+
1754
+ // Test executor reads from memory
1755
+ Task("Execute tests", "Read test plan from aqe/test-plan/generated and execute", "qe-test-executor")
1756
+
1757
+ // Coverage analyzer processes results
1758
+ Task("Analyze coverage", "Check coverage from aqe/coverage/results", "qe-coverage-analyzer")
1759
+ \\\`\\\`\\\`
1760
+
1761
+ ## 💡 Best Practices
1762
+
1763
+ 1. **Use Task Tool**: Claude Code's Task tool is the primary way to spawn agents
1764
+ 2. **Batch Operations**: Always spawn multiple related agents in a single message
1765
+ 3. **Memory Keys**: Use the \\\`aqe/*\\\` namespace for agent coordination
1766
+ 4. **AQE Hooks**: Agents automatically use native AQE hooks for coordination (100-500x faster)
1767
+ 5. **Parallel Execution**: Leverage concurrent agent execution for speed
1768
+
1769
+ ## 🆘 Troubleshooting
1770
+
1771
+ ### Check MCP Connection
1772
+ \\\`\\\`\\\`bash
1773
+ claude mcp list
1774
+ \\\`\\\`\\\`
1775
+
1776
+ ### View Agent Definitions
1777
+ \\\`\\\`\\\`bash
1778
+ ls -la .claude/agents/
1779
+ \\\`\\\`\\\`
1780
+
1781
+ ### Check Fleet Status
1782
+ \\\`\\\`\\\`bash
1783
+ aqe status --verbose
1784
+ \\\`\\\`\\\`
1785
+
1786
+ ### View Logs
1787
+ \\\`\\\`\\\`bash
1788
+ tail -f .agentic-qe/logs/fleet.log
1789
+ \\\`\\\`\\\`
1790
+
1791
+ ---
1792
+
1793
+ **Generated by**: Agentic QE Fleet v${PACKAGE_VERSION}
1794
+ **Initialization Date**: ${new Date().toISOString()}
1795
+ **Fleet Topology**: ${config.topology}
1796
+ `; */ // End of old template comment
1767
1797
  // Write CLAUDE.md based on append strategy (v1.3.7 fix)
1768
1798
  let finalContent;
1769
1799
  if (exists && existingContent) {