mirror of
https://github.com/proffesor-for-testing/agentic-qe.git
synced 2026-09-19 08:45:47 +08:00
1e3fbb5ea8
* SwarmMemoryManager Refactoring Plan * fix: add missing directories to npm package (v1.9.3) Added templates/, .claude/helpers/, and docs/reference/ to package.json files array. These were missing from the npm distribution, causing `aqe init` to fail with "Template file not found" errors. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * checkpoint improvements * fix: critical memory/learning system fixes for v1.9.4 ## Critical Fixes - Vector embeddings now stored correctly (was storing NULL) - SQL parameter style fixed for agentdb's SqlJsDatabase wrapper - HNSW index schema mismatch resolved with pattern_id column - Hooks now save to correct database (.agentic-qe/agentdb.db) ## New Features - Added 5 SwarmMemoryManager methods for learning data retrieval: - getBestAction() - Q-learning best action selection - getRecentLearningExperiences() - Recent experience retrieval - getLearningExperiencesByTaskType() - Task-filtered experiences - getHighRewardExperiences() - Successful experience extraction - getLearningStats() - Aggregate learning statistics - Added comprehensive integration test for memory/learning loop - Added RuVector pattern store integration (experimental) ## Technical Details - Vector embeddings: 384 dimensions × 4 bytes = 1,536 bytes per pattern - All 12 integration tests pass - HNSW index: 150x faster vector search enabled 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix: move ARM64-only ruvector packages to optionalDependencies Fixes CI failures caused by platform-specific dependencies: - @ruvector/node-linux-arm64-gnu (ARM64 only) - ruvector-core-linux-arm64-gnu (ARM64 only) These packages caused npm ci to fail on x64 CI runners with: "EBADPLATFORM - wanted linux/arm64, current linux/x64" Solution: Move ARM64 packages to optionalDependencies and add x64 variants for cross-platform compatibility. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * chore: regenerate package-lock.json with x64 ruvector packages Updates lockfile to include optional x64 platform packages for CI compatibility: - @ruvector/node-linux-x64-gnu@0.1.17 - ruvector-core-linux-x64-gnu@0.1.15 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix: replace fake QUIC with proper implementation and clean up skills manifest QUIC Transport: - Remove fake HTTP/2-based QUICTransport.ts that pretended to be QUIC - Add proper QUIC implementation via Rust/WASM (@agentic-flow/quic-wasm) - Add WebSocket fallback transport for when WASM unavailable - Add dedicated type declarations for optional WASM module - Features: 0-RTT connection, stream multiplexing, TLS 1.3 built-in Skills Manifest: - Rewrite skills-manifest.json with only QE skills (41 skills) - Remove Claude Flow platform skills (agentdb-*, flow-nexus-*, github-*, etc.) - Organize into proper categories: qe-core, testing-methodologies, etc. Bug Fixes: - Fix UnifiedMemoryCoordinator.ts TypeScript errors - Use Logger.getInstance() instead of private constructor - Use swarmMemory.query() instead of non-existent list() method - Use correct close() method signatures for backends 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * feat: add QX Partner agent, compact subagents, fix CLAUDE.md dynamic counts - Add QX Partner agent for Quality Experience analysis combining QA + UX perspectives - Compact 9 subagent definitions to ~80 lines each (88% reduction) - Fix CLAUDE.md template to dynamically count agents (including subagents) and skills - Move CLAUDE.md creation after parallel phases for accurate counts - Remove 'Production-Ready' claim from README and CHANGELOG - Clean up backup files and move docs to proper directory Initialization now correctly reports: - 31 QE Agents (20 main + 11 subagents) - 53 QE Skills - 8 Slash Commands 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix: resolve CI failures and security alert #36 - Replace MD5 with SHA-256 for ETag calculation (security alert #36) - Fix CRLF line endings in shell scripts causing parse errors - Remove 'local' keyword from for-loop in test-integration-batched.sh - Use dynamic process.cwd() instead of hardcoded path in jest.config.js - Enhance quality-gate.ts to parse test logs when results file missing 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * feat: Complete Agentic QE Fleet v2.1 implementation (closes #101) ## Implemented Features ### Error Recovery Enhancement (Task 1.3) - CircuitBreaker class with state management (CLOSED/OPEN/HALF_OPEN) - RetryStrategy with exponential/linear/constant backoff - RecoveryOrchestrator with 6 recovery strategies - Transport fallback mechanisms ### Dynamic Skill Loader (Task 2.2) - Metadata-only initial loading (98% token reduction) - On-demand full skill retrieval - LRU caching with configurable TTL (30min default) - Preload suggestions for critical workflows ### Swarm Learning Optimizer (Task 4.1) - Topology recommendation engine (hierarchical/mesh/ring/star) - Agent allocation with capability matching and load balancing - Bottleneck detection (agent/memory/coordination/IO) - Real-time performance adjustments - Added getLatestRecommendation() method ### Workflow Orchestrator (Task 4.2) - AdaptiveScheduler with dynamic strategy selection - Priority-based task queue with age boosting - Task dependency resolution - Work stealing and backpressure handling - Added getQueueDepth() and getStatus() methods ### Unified Memory Coordinator (Task 4.3) - Consolidated memory managers (SQLite, AgentDB, Vector, JSON) - Automatic failover chain with health monitoring - Batch operations and namespace isolation - Periodic sync between backends ### SwarmCoordinator Improvements - Real CPU utilization tracking via process.cpuUsage() - Queue depth from WorkflowOrchestrator - Optimizer recommendations in feedback data - Calculated average complexity from metrics ## Additional Changes - Migration documentation and test restructuring plan - GitHub issue templates and workflows - Test suite improvements and cleanup 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * feat: optimize 38 QE skills with agent-focused format (#102) - Add enhanced YAML frontmatter (tokenEstimate, agents, tags, etc.) - Add <default_to_action> blocks for immediate actionable guidance - Add Quick Reference Cards with tables for at-a-glance info - Add Agent Integration examples using Task() pattern - Add Agent Coordination Hints (memory namespace + fleet coordination) - Condense content optimized for agent consumption - Reduce total token footprint by ~65% across skills Skills updated: - Core QE: agentic-quality-engineering, holistic-testing-pact - Testing Types: api-testing, chaos-engineering, compatibility, compliance, contract, database, exploratory, localization, mobile, mutation, performance, regression, security, visual-testing - Methodologies: tdd-london-chicago, xp-practices, context-driven, risk-based, shift-left, shift-right - Analysis: code-review-quality, quality-metrics, test-design-techniques - Strategy: test-automation-strategy, test-data-management, test-environment-management, test-reporting-analytics - CI/CD: cicd-pipeline-qe-orchestrator, accessibility-testing - Communication: brutal-honesty-review, bug-reporting-excellence, consultancy-practices, sherlock-review, six-thinking-hats, technical-writing - Refactoring: refactoring-patterns Also includes: package.json updates, docs/optimization/, docs/templates/, scripts/validate-skill-optimization.ts Skipped: testability-scoring (pending PR from @fndlalit) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * release: v2.1.0 - Comprehensive QX Analysis & Skills Optimization ## Summary - Comprehensive QX Analysis with 23+ heuristics (PR #104 by @fndlalit) - 38 QE Skills optimized with agent-focused format (PR #102) - Testability Scoring skill v2.1 with optimized format - QX Partner Agent v2.1 with enhanced capabilities - Fix MCP SDK compatibility for @modelcontextprotocol/sdk bump (PR #105) ## Changes - .claude/agents/qx-partner.md: Updated to v2.1 with domain-specific detection - .claude/skills/testability-scoring/SKILL.md: Optimized format (59% token reduction) - src/mcp/server.ts: Removed deprecated 'description' field for MCP SDK compatibility - package.json: Bumped version to 2.1.0 - README.md: Updated version and release notes - CHANGELOG.md: Added v2.1.0 release notes 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> --------- Co-authored-by: Claude <noreply@anthropic.com>
7.0 KiB
7.0 KiB
Skill Optimization Quick Start Guide
5-Minute Overview
This framework optimizes 41 Agentic QE skills for Claude 4.5, achieving 40-50% token reduction.
Instant Commands
# Validate one skill
npm run validate-skill .claude/skills/performance-testing/SKILL.md
# Validate all 41 skills
npm run validate-all-skills
# Generate detailed report
npm run optimize:report
The Optimization Formula
1. Add YAML Frontmatter (~80 tokens)
---
name: skill-name
category: specialized-testing
priority: high
tokenEstimate: 1300
agents: [qe-agent-1]
implementation_status: optimized
optimization_version: 1.0
last_optimized: 2025-12-02
dependencies: []
quick_reference_card: true
---
2. Insert Action-First Block (100-200 tokens)
<default_to_action>
When [context]:
1. ACTION: Step with outcome
2. ACTION: Step with validation
3. ACTION: Step with completion
**Quick Decision Matrix:**
- Scenario A → Action X
- Scenario B → Action Y
**Critical Success Factors:**
- Factor 1: Measurable criterion
- Factor 2: Observable outcome
</default_to_action>
3. Add Quick Reference Card (200-400 tokens)
## Quick Reference Card
### When to Use
- Trigger 1
- Trigger 2
### Key Actions
1. Action with outcome
2. Validation with criteria
### Tools Selection
| Tool | Use Case | Complexity |
|------|----------|------------|
| Tool A | Scenario X | Low |
### Success Criteria
✅ Metric 1: Target value
❌ Anti-pattern 1: What to avoid
### Agent Coordination
- `agent-1`: Primary role
- `agent-2`: Supporting role
4. Add Agent Coordination (150-250 tokens)
## Agent Coordination Hints
### Memory Namespace
Store data in: `aqe/{category}/{skill-name}/{data-type}`
### Coordination Flow
1. **Agent 1** → Primary action, store results
2. **Agent 2** → Retrieve results, analyze
3. **Agent 3** → Make decision
### Blackboard Patterns
Post to: `{category}/{event-type}` with priority `high`
5. Compress Core Content (300-500 tokens)
## Core Concepts
### Concept 1
**Definition:** Clear, 1-2 sentence explanation.
**Key Points:**
- Point 1 with measurable aspect
- Point 2 with observable outcome
**Example:**
```language
// Minimal, focused code
const result = operation();
## Token Savings Breakdown
| Section | Before | After | Savings |
|---------|--------|-------|---------|
| Introduction | 400 | 80 | **80%** |
| Core Content | 1,800 | 1,080 | **40%** |
| Examples | 300 | 210 | **30%** |
| Agent Integration | 0 | 150 | +150 |
| **Total** | **2,600** | **1,300** | **50%** |
## Validation Checklist
Run this before marking as `optimized`:
```bash
npm run validate-skill .claude/skills/my-skill/SKILL.md
Must Pass:
- YAML frontmatter complete
<default_to_action>present- Quick reference card included
- Agent coordination section added
- Token count ≤ 1,500
- All agents from manifest listed
- Implementation status =
optimized
Common Errors & Fixes
"Missing frontmatter"
# Add YAML block at top of file
---
name: skill-name
category: specialized-testing
priority: high
tokenEstimate: 1300
agents: [qe-agent-1]
implementation_status: optimized
---
"Missing <default_to_action>"
# Add after frontmatter, before ## heading
<default_to_action>
When requested:
1. ACTION: Clear step
2. ACTION: Validation
3. ACTION: Completion
</default_to_action>
"Token limit exceeded"
Apply compression techniques:
- Convert paragraphs → bullet lists
- Use tables for comparisons
- Remove verbose explanations
- Consolidate redundant sections
Example: Before vs After
Before (2,600 tokens)
# Performance Testing
## Why Performance Testing Matters
Performance is not just about speed - it's a fundamental quality attribute that directly impacts user satisfaction, conversion rates, and business outcomes. Research has consistently shown that even small delays can have significant consequences...
### User Impact
When we talk about user impact, we're referring to how performance affects the end-user experience. Studies by Amazon have demonstrated that every 100 milliseconds of delay results in approximately 1% drop in conversion rates...
After (1,300 tokens - 50% reduction)
---
name: performance-testing
category: specialized-testing
priority: high
tokenEstimate: 1300
agents: [qe-performance-tester]
implementation_status: optimized
---
# Performance Testing
<default_to_action>
When performance testing requested:
1. IDENTIFY critical paths (checkout, search, APIs)
2. DEFINE SLOs: p95 < 200ms, throughput > 10K req/min
3. SELECT test type: Load → Stress → Spike → Endurance
4. RUN k6/JMeter with realistic scenarios
5. MONITOR: Response time, throughput, errors, resources
6. ANALYZE bottlenecks: DB, N+1, sync ops, memory, cache
7. REPORT with baselines and trends
</default_to_action>
## Quick Reference Card
**Impact:** 100ms delay = 1% conversion drop (Amazon)
### Test Types
- **Load:** Expected traffic → Before releases
- **Stress:** Beyond capacity → Find breaking point
- **Spike:** Sudden surge → Test auto-scaling
- **Endurance:** 24-72h → Memory leaks
3-Step Quick Optimization
For fastest optimization of a single skill:
Step 1: Copy Template (30 seconds)
# View optimized template
cat docs/templates/optimized-skill-template.md
Step 2: Extract & Compress (10 minutes)
- Copy essential content from original skill
- Apply compression patterns (bullets, tables)
- Add action-first directives
- Create quick reference card
Step 3: Validate & Test (5 minutes)
# Validate structure
npm run validate-skill .claude/skills/my-skill/SKILL.md
# Test with agent
Task("Test skill", "Execute with new format", "qe-agent-name")
Total Time: ~15 minutes per skill
Priority Order
Week 1: Critical (2 skills)
1. agentic-quality-engineering
2. holistic-testing-pact
Week 2: High Priority (12 skills)
3. tdd-london-chicago
4. api-testing-patterns
5. cicd-pipeline-qe-orchestrator
... (9 more)
Weeks 3-5: Medium & Low (27 skills)
Success Metrics
Current State:
- Total Skills: 41
- Optimized: 0
- Baseline Tokens: ~90,000
Target State:
- Optimized: 41 (100%)
- Final Tokens: ~49,500
- Reduction: 45% (40,500 tokens saved)
Resources
- Detailed Patterns: claude-4-5-patterns.md
- Full Template: optimized-skill-template.md
- Complete Guide: README.md
Next Steps
- Read patterns guide (10 min):
docs/optimization/claude-4-5-patterns.md - Review template (5 min):
docs/templates/optimized-skill-template.md - Optimize first skill (15 min): Start with
agentic-quality-engineering - Validate & iterate (5 min): Use validation script
- Test with agent (2 min): Ensure functionality
Total: ~37 minutes to first optimized skill
Framework Version: 1.0.0 Ready to optimize all 41 skills for 40-50% token reduction