Files
proffesor-for-testing__agen…/docs/skill-format-analysis.md
Profa 4830e43662 feat: Merge AQE Fleet + Claude Flow into unified CLAUDE.md
✅ UNIFIED CONFIGURATION
- Merged CLAUDE.md (AQE Fleet) + CLAUDE.md.backup (Claude Flow)
- 72 total agents now available (18 QE + 54 Claude Flow)
- Both agent types can work together in coordinated workflows
- Preserved all critical concurrent execution rules

🤖 AGENT ECOSYSTEM
**AQE Fleet (18 agents):**
- Core Testing: qe-test-generator, qe-test-executor, qe-coverage-analyzer, qe-quality-gate, qe-quality-analyzer
- Performance & Security: qe-performance-tester, qe-security-scanner
- Strategic Planning: qe-requirements-validator, qe-production-intelligence, qe-fleet-commander
- Deployment: qe-deployment-readiness
- Advanced Testing: qe-regression-risk-analyzer, qe-test-data-architect, qe-api-contract-validator, qe-flaky-test-hunter
- Specialized: qe-visual-tester, qe-chaos-engineer

**Claude Flow (54 agents):**
- Core Development: coder, reviewer, tester, planner, researcher
- Swarm Coordination: hierarchical-coordinator, mesh-coordinator, adaptive-coordinator, etc.
- Consensus & Distributed: byzantine-coordinator, raft-manager, gossip-coordinator, etc.
- Performance & Optimization: perf-analyzer, performance-benchmarker, task-orchestrator, etc.
- GitHub & Repository: github-modes, pr-manager, code-review-swarm, etc.
- SPARC Methodology: sparc-coord, sparc-coder, specification, pseudocode, architecture, refinement
- Specialized Development: backend-dev, mobile-dev, ml-developer, cicd-engineer, api-docs, system-architect, etc.
- Testing & Validation: tdd-london-swarm, production-validator
- Migration & Planning: migration-planner, swarm-init

📋 COORDINATION SYSTEM
**Two Hook Systems:**
- AQE Hooks: Native TypeScript (100-500x faster, zero dependencies)
- Claude Flow Hooks: External via npx (flexible, feature-rich)

**Memory Namespaces:**
- aqe/* - Quality engineering agent state
- swarm/* - Claude Flow agent state

🚀 QUICK START EXAMPLES
**AQE Only:**
Task("Generate tests", "...", "qe-test-generator")

**Claude Flow Only:**
Task("Research agent", "...", "researcher")

**Combined Pipeline:**
[Single Message]:
  Task("Backend Developer", "...", "backend-dev")  // Claude Flow
  Task("Test Generator", "...", "qe-test-generator")  // AQE
  Task("Security Scanner", "...", "qe-security-scanner")  // AQE
  Task("Code Reviewer", "...", "reviewer")  // Claude Flow

🔧 MCP SERVERS
- agentic-qe: AQE Fleet tools (test generation, execution, quality analysis)
- claude-flow: General agent coordination and SPARC methodology
- ruv-swarm: Optional enhanced coordination
- flow-nexus: Optional cloud features

⚡ CONCURRENT EXECUTION
- GOLDEN RULE: 1 MESSAGE = ALL RELATED OPERATIONS
- TodoWrite: Batch all todos in one call
- Task tool: Spawn all agents in one message
- File operations: Batch all reads/writes/edits
- Always use appropriate subdirectories (never root folder)

📚 COMPLETE DOCUMENTATION
- 18 QE agents + 54 Claude Flow agents
- SPARC methodology integration
- Multi-Model Router (70-81% cost savings)
- Streaming progress support
- Performance benefits from both systems
- Comprehensive troubleshooting guide

💡 BEST PRACTICES
1. Use AQE agents for quality engineering tasks
2. Use Claude Flow agents for general development
3. Combine both in single workflows for full pipeline
4. Always batch operations in single messages
5. Use proper memory namespaces for coordination
6. Never save to root folder

🎯 Performance Benefits
- Claude Flow: 84.8% SWE-Bench solve rate, 2.8-4.4x speed
- AQE Fleet: 100-500x faster hooks, O(log n) algorithms, 10k+ records/sec

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-20 14:48:24 +00:00

20 KiB

Skill Definition Format Analysis

Date: 2025-10-20 Analysis Scope: Comparison of user's QE skills vs. Ruv's Cloud Flow skills

Executive Summary

This analysis compares skill definition formats across two categories:

  1. User's QE Skills: Testing/quality-focused skills (18 legacy + new additions)
  2. Ruv's Cloud Flow Skills: Advanced infrastructure skills (flow-nexus, agentdb, swarm orchestration)

Key Findings:

  • ✅ User's QE skills have strong pedagogical content and testing expertise
  • ⚠️ User's QE skills lack standardized frontmatter and technical metadata
  • ✅ Cloud Flow skills excel at structured configuration and integration examples
  • 🎯 Opportunity: Merge best practices from both formats for optimal skill structure

Side-by-Side Comparison

Aspect User's QE Skills Ruv's Cloud Flow Skills Winner
Frontmatter Structure Minimal (2 fields) Rich (7-10 fields) Cloud Flow ✅
Version Control None Semantic versioning Cloud Flow ✅
Tags/Categories None Comprehensive Cloud Flow ✅
Auth Requirements Not specified Explicitly declared Cloud Flow ✅
MCP Server Reference None Explicitly linked Cloud Flow ✅
Prerequisites Text-based Structured with commands Cloud Flow ✅
Content Quality Excellent Good QE Skills ✅
Code Examples Realistic, detailed Configuration-focused QE Skills ✅
Pedagogical Value High (teaches concepts) Medium (shows config) QE Skills ✅
Use Case Coverage Comprehensive Tool-specific QE Skills ✅
Troubleshooting Extensive Basic QE Skills ✅
Progressive Disclosure Good Variable Tie
Real-World Examples Excellent Configuration-heavy QE Skills ✅
Integration Guidance Minimal Excellent Cloud Flow ✅
Cross-References Missing Present Cloud Flow ✅

Detailed Analysis

1. Frontmatter Structure

User's QE Skills (Example: agentic-quality-engineering)

---
name: Agentic Quality Engineering
description: Using AI agents as force multipliers in quality work. Use when designing autonomous testing systems, implementing PACT principles, or scaling quality engineering with intelligent agents.
---

Strengths:

  • ✅ Clean, minimal
  • ✅ Clear use-case in description

Weaknesses:

  • ❌ No versioning
  • ❌ No tags/categories
  • ❌ No difficulty level
  • ❌ No time estimate
  • ❌ No prerequisites metadata

Cloud Flow Skills (Example: flow-nexus-neural)

---
name: flow-nexus-neural
description: Train and deploy neural networks in distributed E2B sandboxes with Flow Nexus
version: 1.0.0
category: ai-ml
tags:
  - neural-networks
  - distributed-training
  - machine-learning
  - deep-learning
  - flow-nexus
  - e2b-sandboxes
requires_auth: true
mcp_server: flow-nexus
---

Strengths:

  • ✅ Semantic versioning
  • ✅ Clear categorization
  • ✅ Rich tagging for discovery
  • ✅ Explicit auth requirements
  • ✅ MCP server linkage

Weaknesses:

  • ⚠️ Could benefit from difficulty/time metadata

2. Section Organization

User's QE Skills Pattern

# Skill Name

## What Is [Topic]?
## Core Premise
## Key Capabilities
## Practical Implementation
## Challenges and Limitations
## Building Your Practice
## Remember

Strengths:

  • ✅ Pedagogical structure (teaches concepts first)
  • ✅ Builds understanding progressively
  • ✅ "What/Why/How" progression
  • ✅ Realistic expectations (challenges section)

Weaknesses:

  • ❌ Inconsistent section names across skills
  • ❌ Missing quick-start for experienced users
  • ❌ No clear command reference section

Cloud Flow Skills Pattern

# Skill Name

## Prerequisites (with bash commands)
## Core Capabilities
## Quick Start
## [Feature 1]
### Example: [Use Case 1]
### Example: [Use Case 2]
## [Feature 2]
## Best Practices
## Troubleshooting
## Related Skills
## Resources

Strengths:

  • ✅ Quick-start for rapid adoption
  • ✅ Structured prerequisites with commands
  • ✅ Clear feature organization
  • ✅ Cross-referencing to related skills
  • ✅ External resource links

Weaknesses:

  • ⚠️ Can be overwhelming for beginners
  • ⚠️ Less focus on conceptual understanding

3. Code Examples Quality

User's QE Skills (Example: tdd-london-chicago)

// Test
describe('Order', () => {
  it('calculates total with tax', () => {
    const order = new Order();
    order.addItem(new Product('Widget', 10.00), 2);
    order.addItem(new Product('Gadget', 15.00), 1);

    expect(order.totalWithTax(0.10)).toBe(38.50); // (10*2 + 15) * 1.10
  });
});

// Implementation
class Order {
  constructor() {
    this.items = [];
  }

  addItem(product, quantity) {
    this.items.push({ product, quantity });
  }

  totalWithTax(taxRate) {
    const subtotal = this.items.reduce((sum, item) =>
      sum + (item.product.price * item.quantity), 0
    );
    return subtotal * (1 + taxRate);
  }
}

Strengths:

  • ✅ Complete, runnable code
  • ✅ Clear problem-solution pairing
  • ✅ Inline explanatory comments
  • ✅ Realistic domain examples

Cloud Flow Skills (Example: agentdb-advanced)

// Initialize with QUIC synchronization
const adapter = await createAgentDBAdapter({
  dbPath: '.agentdb/distributed.db',
  enableQUICSync: true,
  syncPort: 4433,
  syncPeers: [
    '192.168.1.10:4433',
    '192.168.1.11:4433',
    '192.168.1.12:4433',
  ],
});

Strengths:

  • ✅ Configuration-focused
  • ✅ TypeScript type clarity
  • ✅ Production-ready patterns

Weaknesses:

  • ⚠️ Less context on "why" this configuration
  • ⚠️ Assumes prior knowledge

4. Progressive Disclosure

User's QE Skills Excellence

The TDD skill demonstrates masterful progressive disclosure:

  1. Level 1: Core cycle (Red-Green-Refactor)
  2. Level 2: Two schools (Chicago vs London)
  3. Level 3: Practical guidance table
  4. Level 4: Common pitfalls
  5. Level 5: Real-world examples
  6. Level 6: Advanced integration patterns

Pattern: Concept → Comparison → Guidance → Pitfalls → Practice → Integration

Cloud Flow Skills Approach

The hooks-automation skill shows comprehensive coverage:

  1. Quick Start: Basic usage
  2. Available Hooks: Complete reference
  3. Configuration: Basic → Advanced
  4. Integration: MCP coordination
  5. Examples: Full workflows
  6. Troubleshooting: Common issues

Pattern: Quick → Reference → Configure → Integrate → Practice → Debug


5. Missing Elements Analysis

User's QE Skills Need

  1. Frontmatter enhancements:

    • version: 1.0.0
    • category: quality-engineering | testing | automation
    • tags: [tdd, api-testing, exploratory-testing]
    • difficulty: beginner | intermediate | advanced
    • estimated_time: 30-45 minutes
    • requires: [node.js, jest] (for tools)
  2. Section additions:

    • ## Prerequisites (structured, with install commands)
    • ## Quick Start (for experienced users)
    • ## Related Skills (cross-references)
    • ## Resources (external links)
  3. Code example improvements:

    • Add TypeScript type annotations where relevant
    • Include package.json dependencies
    • Show CLI commands for setup

Cloud Flow Skills Could Improve

  1. Content depth:

    • Add "What/Why" conceptual sections
    • Include "Common Pitfalls" sections
    • Expand "When NOT to use" guidance
  2. Examples:

    • More realistic domain examples
    • Problem-solution pairing
    • Step-by-step walkthroughs
  3. Pedagogical structure:

    • Build understanding before showing config
    • Add comparison tables
    • Include decision trees

Optimal Skill Structure Template

Based on analysis of both formats, here's the recommended structure:

---
# Required Frontmatter
name: Skill Name (Title Case)
description: One-line summary with use case. Use when [specific scenarios].
version: 1.0.0

# Categorization
category: quality-engineering | infrastructure | ai-ml | development
tags:
  - primary-tag
  - secondary-tag
  - technology-tag

# Metadata
difficulty: beginner | intermediate | advanced | expert
estimated_time: 15-30 minutes | 30-60 minutes | 1-2 hours
author: user | community | ruvnet

# Technical Requirements (if applicable)
requires_auth: true | false
mcp_server: server-name (if MCP integration)
requires:
  - node.js 18+
  - package-name
  - api-key
---

# Skill Name

## What This Skill Does

**Concise 2-3 sentence overview** explaining the skill's purpose and value proposition.

**Key Capabilities**:
- Bullet point 1
- Bullet point 2
- Bullet point 3

## Prerequisites

**Required**:
```bash
# Installation commands
npm install required-package
export API_KEY=your_key

Optional (for advanced features):

  • Optional dependency 1
  • Optional dependency 2

Quick Start

# Minimal example for experienced users
command --flag value

Complete Guide

Core Concepts

What is [Topic]?

Conceptual explanation building understanding before implementation.

Why use this approach?

Context and motivation.

Basic Usage

Pattern 1: [Common Use Case]

Example: [Realistic Scenario]

// Complete, runnable code
// With inline comments

Explanation: What this code does and why.

Pattern 2: [Another Use Case]

...continue pattern...

Advanced Features

Feature 1

Configuration and usage...

Feature 2

Configuration and usage...

Integration Patterns

How this skill integrates with:

  • Other skills
  • MCP servers
  • External tools

Common Pitfalls

❌ Pitfall 1: [Description]

Problem: What goes wrong Solution: How to fix it

❌ Pitfall 2: [Description]

...

Best Practices

  1. ✅ Practice 1: Explanation
  2. ✅ Practice 2: Explanation
  3. ✅ Practice 3: Explanation

Real-World Examples

Example 1: [Full Workflow]

Step-by-step walkthrough of realistic scenario.

Example 2: [Another Workflow]

...

Troubleshooting

Issue: [Common Problem]

# Check this
command to diagnose

# Fix with
command to resolve

Issue: [Another Problem]

...

Performance Tips

  1. Optimization tip 1
  2. Optimization tip 2
  3. Monitoring guidance

Learn More

  • skill-name-1: When to use instead
  • skill-name-2: Complementary skill
  • skill-name-3: Advanced follow-up

Resources

  • Official Docs: [URL]
  • GitHub: [URL]
  • Community: [URL]
  • Video Tutorial: [URL] (if available)

Category: [Category Name] Difficulty: [Level] Estimated Time: [Range]


---

## Migration Guide

### Step 1: Update Frontmatter

For each existing QE skill:

```yaml
---
# OLD FORMAT
name: Agentic Quality Engineering
description: Using AI agents as force multipliers in quality work.
---

# NEW FORMAT
name: Agentic Quality Engineering
description: Using AI agents as force multipliers in quality work. Use when designing autonomous testing systems, implementing PACT principles, or scaling quality engineering with intelligent agents.
version: 1.0.0
category: quality-engineering
tags:
  - ai-agents
  - test-automation
  - pact-principles
  - scaling-quality
difficulty: intermediate
estimated_time: 30-45 minutes
author: user
---

Step 2: Add Structured Prerequisites

BEFORE:

## Prerequisites

Understanding of distributed systems (helpful)

AFTER:

## Prerequisites

**Required**:
- Understanding of testing fundamentals
- Experience with at least one testing framework

**Optional** (for advanced features):
```bash
# Install testing tools
npm install -g jest playwright

# Configure test environment
export TEST_ENV=development

### Step 3: Add Quick Start Section

Insert after prerequisites:

```markdown
## Quick Start

```bash
# For experienced users: jump right in
npx agentic-flow agent spawn --type tester
npx agentic-flow task orchestrate --task "Generate test suite"

New to this? Continue reading for comprehensive guide below.


### Step 4: Add Related Skills Section

At the end of document:

```markdown
## Related Skills

- **tdd-london-chicago**: Core TDD practices for implementation
- **api-testing-patterns**: Apply agentic approach to API testing
- **exploratory-testing-advanced**: Combine with exploratory techniques
- **holistic-testing-pact**: Integrate into holistic testing strategy

## Resources

- Agentic Flow Docs: https://github.com/ruvnet/agentic-flow
- PACT Principles: https://agilemanifesto.org/principles.html
- Testing Manifesto: https://www.ministryoftesting.com

Step 5: Add Troubleshooting Section

## Troubleshooting

### Issue: Agents not coordinating effectively
**Symptom**: Multiple agents working on conflicting tasks

**Diagnosis**:
```bash
# Check swarm status
npx agentic-flow swarm status

# Verify memory coordination
npx agentic-flow memory usage

Solution: Enable memory coordination and hooks

npx agentic-flow hooks enable --type coordination

Issue: Quality metrics below threshold

Symptom: Tests passing but quality score low

Solution: Review quality criteria and adjust agent strategies


---

## Specific Skill Improvement Recommendations

### 1. Agentic Quality Engineering
**Current**: Good conceptual overview
**Add**:
```yaml
version: 1.0.0
category: quality-engineering
tags: [ai-agents, test-automation, pact, scaling]
difficulty: intermediate
estimated_time: 30-45 minutes

Sections to Add:

  • Quick Start (CLI commands)
  • Prerequisites (structured)
  • Related Skills (cross-refs)
  • Resources (external links)

2. TDD London & Chicago

Current: Excellent pedagogical content ⭐ Add:

version: 1.0.0
category: development
tags: [tdd, testing, london-school, chicago-school, unit-testing]
difficulty: intermediate
estimated_time: 45-60 minutes
requires:
  - jest or mocha
  - basic testing knowledge

Sections to Add:

  • Quick Start (side-by-side examples)
  • Decision tree (when to use which school)
  • Resources (Kent Beck's book, GOOS)

3. API Testing Patterns

Current: Comprehensive patterns Add:

version: 1.0.0
category: quality-engineering
tags: [api-testing, rest, graphql, contract-testing, integration]
difficulty: intermediate
estimated_time: 45-60 minutes
requires:
  - supertest or rest-assured
  - api fundamentals

Sections to Add:

  • Tool comparison table (Supertest vs REST-assured vs Postman)
  • Performance testing subsection expansion
  • GraphQL-specific section expansion

4. Flow Nexus Neural

Current: Excellent configuration examples Improve:

  • Add "What is distributed neural training?" concept section
  • Include decision tree for choosing architecture
  • Add "Common Mistakes" section
  • Expand pedagogical content before configuration

5. AgentDB Advanced

Current: Strong technical depth Improve:

  • Add conceptual "What is QUIC?" explanation
  • Include comparison table (QUIC vs HTTP sync)
  • Add "When NOT to use" section
  • Include realistic domain examples beyond generic vectors

6. Swarm Orchestration

Current: Good topology patterns Improve:

  • Add topology selection decision tree
  • Include performance comparison chart
  • Add "Scaling from 2 to 100 agents" progression guide
  • Include more realistic multi-agent scenarios

7. Hooks Automation

Current: Comprehensive but complex Improve:

  • Add conceptual overview before diving into hooks
  • Include visual diagram of hook lifecycle
  • Add "Minimal viable configuration" quick start
  • Progressive complexity (basic → intermediate → advanced)

Tag Taxonomy Recommendations

Quality Engineering Skills

categories:
  - quality-engineering
  - testing
  - automation
  - development

tags:
  # Testing Types
  - unit-testing
  - integration-testing
  - api-testing
  - e2e-testing
  - contract-testing
  - exploratory-testing

  # Methodologies
  - tdd
  - bdd
  - pact-principles
  - context-driven
  - holistic-testing

  # Technologies
  - jest
  - playwright
  - supertest
  - pact

  # Concepts
  - ai-agents
  - test-automation
  - quality-metrics
  - risk-based-testing

Infrastructure Skills

categories:
  - infrastructure
  - ai-ml
  - distributed-systems
  - orchestration

tags:
  # Infrastructure
  - distributed-training
  - neural-networks
  - swarm-orchestration
  - agentdb

  # Integration
  - mcp-server
  - flow-nexus
  - e2b-sandboxes
  - quic-sync

  # Patterns
  - hooks-automation
  - memory-coordination
  - topology-patterns

Validation Checklist

Use this checklist when creating or updating skills:

Frontmatter ✅

  • name is clear and descriptive
  • description includes use case ("Use when...")
  • version follows semver (1.0.0)
  • category assigned from taxonomy
  • tags are relevant (3-6 tags)
  • difficulty level set appropriately
  • estimated_time is realistic
  • requires_auth specified if needed
  • mcp_server linked if applicable
  • requires lists dependencies

Structure ✅

  • "What This Skill Does" summary section
  • Prerequisites with bash commands
  • Quick Start for experienced users
  • Progressive disclosure (simple → complex)
  • Clear section hierarchy (## → ###)
  • Code examples are complete and runnable
  • Best Practices section included
  • Common Pitfalls section included
  • Troubleshooting section included
  • Related Skills cross-references
  • Resources with external links

Content Quality ✅

  • Explains "why" not just "how"
  • Examples use realistic domains
  • Code has inline comments
  • Comparisons use tables
  • Commands are copy-pasteable
  • No broken internal references
  • Consistent terminology
  • Clear call-to-action at end

Technical Accuracy ✅

  • Commands tested and working
  • Code examples run without errors
  • Versions are current
  • Links are not broken
  • API examples match current API

Implementation Priority

Phase 1: High-Impact Updates (Week 1)

  1. ✅ Update all skill frontmatter with version, category, tags
  2. ✅ Add Prerequisites sections with bash commands
  3. ✅ Add Quick Start sections
  4. ✅ Add Related Skills cross-references

Phase 2: Content Enhancement (Week 2)

  1. ✅ Add Troubleshooting sections
  2. ✅ Add Resources sections with external links
  3. ✅ Enhance code examples with comments
  4. ✅ Add Best Practices sections

Phase 3: Advanced Features (Week 3)

  1. ✅ Create decision trees/comparison tables
  2. ✅ Add visual diagrams (mermaid)
  3. ✅ Expand real-world examples
  4. ✅ Add performance tips

Phase 4: Integration (Week 4)

  1. ✅ Cross-link related skills
  2. ✅ Create skill dependency map
  3. ✅ Build skill discovery index
  4. ✅ Generate skill roadmap

Next Steps

  1. Immediate Actions:

    • Run validation against existing skills
    • Identify top 5 skills for migration pilot
    • Create automated frontmatter generator
  2. Tooling:

    • Build skill linter (validate frontmatter)
    • Create skill template generator
    • Automate cross-reference checking
  3. Documentation:

    • Publish skill authoring guide
    • Create example "gold standard" skill
    • Document tag taxonomy
  4. Quality Assurance:

    • Peer review updated skills
    • Test all code examples
    • Verify external links quarterly

Conclusion

Strengths to Preserve:

  • ✅ QE skills' pedagogical excellence and testing expertise
  • ✅ Cloud Flow skills' structured configuration and integration

Improvements to Implement:

  • ⬆️ Standardize frontmatter across all skills
  • ⬆️ Add structured prerequisites and quick starts
  • ⬆️ Enhance cross-referencing and discovery
  • ⬆️ Balance conceptual depth with configuration examples

Result: World-class skill library that combines:

  • Teaching excellence from QE skills
  • Technical precision from Cloud Flow skills
  • Discoverability through rich metadata
  • Integration via cross-references and MCP linkage

Generated: 2025-10-20 Format Version: 1.0.0 Review Cycle: Quarterly