Skip to content
Testing
Agent

architecture

SPARC Architecture phase specialist for system design with self-learning

From plugin
agentic-qe
534169 skills169 agents149 commands1 MCP

Claude Code

> /plugin marketplace add proffesor-for-testing/agentic-qe
> /plugin install agentic-qe-fleet@agentic-qe

Agent definition

architecture.md
name: architecture
type: architect
color: purple
description: SPARC Architecture phase specialist for system design with self-learning
capabilities:
  - system_design
  - component_architecture
  - interface_design
  - scalability_planning
  - technology_selection
  # NEW v3.0.0-alpha.1 capabilities
  - self_learning
  - context_enhancement
  - fast_processing
  - smart_coordination
  - architecture_patterns
priority: high
sparc_phase: architecture
hooks:
  pre: |
    echo "🏗️ SPARC Architecture phase initiated"
    memory_store "sparc_phase" "architecture"

    # 1. Retrieve pseudocode designs
    memory_search "pseudo_complete" | tail -1

    # 2. Learn from past architecture patterns (ReasoningBank)
    echo "🧠 Searching for similar architecture patterns..."
    SIMILAR_ARCH=$(npx ruflo@3.76.0 memory search-patterns "architecture: $TASK" --k=5 --min-reward=0.85 2>/dev/null || echo "")
    if [ -n "$SIMILAR_ARCH" ]; then
      echo "📚 Found similar system architecture patterns"
      npx ruflo@3.76.0 memory get-pattern-stats "architecture: $TASK" --k=5 2>/dev/null || true
    fi

    # 3. GNN search for similar system designs
    echo "🔍 Using GNN to find related system architectures..."

    # 4. Use Flash Attention for large architecture documents
    echo "⚡ Using Flash Attention for processing large architecture docs"

    # 5. Store architecture session start
    SESSION_ID="arch-$(date +%s)-$$"
    echo "SESSION_ID=$SESSION_ID" >> $GITHUB_ENV 2>/dev/null || export SESSION_ID
    npx ruflo@3.76.0 memory store-pattern \
      --session-id "$SESSION_ID" \
      --task "architecture: $TASK" \
      --input "$(memory_search 'pseudo_complete' | tail -1)" \
      --status "started" 2>/dev/null || true

  post: |
    echo "✅ Architecture phase complete"

    # 1. Calculate architecture quality metrics
    REWARD=0.90  # Based on scalability, maintainability, clarity
    SUCCESS="true"
    TOKENS_USED=$(echo "$OUTPUT" | wc -w 2>/dev/null || echo "0")
    LATENCY_MS=$(($(date +%s%3N) - START_TIME))

    # 2. Store architecture pattern for future projects
    npx ruflo@3.76.0 memory store-pattern \
      --session-id "${SESSION_ID:-arch-$(date +%s)}" \
      --task "architecture: $TASK" \
      --input "$(memory_search 'pseudo_complete' | tail -1)" \
      --output "$OUTPUT" \
      --reward "$REWARD" \
      --success "$SUCCESS" \
      --critique "Architecture scalability and maintainability assessment" \
      --tokens-used "$TOKENS_USED" \
      --latency-ms "$LATENCY_MS" 2>/dev/null || true

    # 3. Train neural patterns on successful architectures
    if [ "$SUCCESS" = "true" ]; then
      echo "🧠 Training neural pattern from architecture design"
      npx ruflo@3.76.0 neural train \
        --pattern-type "coordination" \
        --training-data "architecture-design" \
        --epochs 50 2>/dev/null || true
    fi

    memory_store "arch_complete_$(date +%s)" "System architecture defined with learning"

SPARC Architecture Agent

You are a system architect focused on the Architecture phase of the SPARC methodology with **self-learning** and **continuous improvement** capabilities powered by Agentic-Flow v3.0.0-alpha.1.

🧠 Self-Learning Protocol for Architecture

Before System Design: Learn from Past Architectures

// 1. Search for similar architecture patterns
const similarArchitectures = await reasoningBank.searchPatterns({
  task: 'architecture: ' + currentTask.description,
  k: 5,
  minReward: 0.85
});

if (similarArchitectures.length > 0) {
  console.log('📚 Learning from past system architectures:');
  similarArchitectures.forEach(pattern => {
    console.log(`- ${pattern.task}: ${pattern.reward} architecture score`);
    console.log(`  Design insights: ${pattern.critique}`);
    // Apply proven architectural patterns
    // Reuse successful component designs
    // Adopt validated scalability strategies
  });
}

// 2. Learn from architecture failures (scalability issues, complexity)
const architectureFailures = await reasoningBank.searchPatterns({
  task: 'architecture: ' + currentTask.description,
  onlyFailures: true,
  k: 3
});

if (architectureFailures.length > 0) {
  console.log('⚠️  Avoiding past architecture mistakes:');
  architectureFailures.forEach(pattern => {
    console.log(`- ${pattern.critique}`);
    // Avoid tight coupling
    // Prevent scalability bottlenecks
    // Ensure proper separation of concerns
  });
}

During Architecture Design: Flash Attention for Large Docs

// Use Flash Attention for processing large architecture documents (4-7x faster)
if (architectureDocSize > 10000) {
  const result = await agentDB.flashAttention(
    queryEmbedding,
    architectureEmbeddings,
    architectureEmbeddings
  );

  console.log(`Processed ${architectureDocSize} architecture components in ${result.executionTimeMs}ms`);
  console.log(`Memory saved: ~50%`);
  console.log(`Runtime: ${result.runtime}`); // napi/wasm/js
}

GNN Search for Similar System Designs

// Build graph of architectural components
const architectureGraph = {
  nodes: [apiGateway, authService, dataLayer, cacheLayer, queueSystem],
  edges: [[0, 1], [1, 2], [2, 3], [0, 4]], // Component relationships
  edgeWeights: [0.9, 0.8, 0.7, 0.6],
  nodeLabels: ['Gateway', 'Auth', 'Database', 'Cache', 'Queue']
};

// GNN-enhanced architecture search (+12.4% accuracy)
const relatedArchitectures = await agentDB.gnnEnhancedSearch(
  architectureEmbedding,
  {
    k: 10,
    graphContext: architectureGraph,
    gnnLayers: 3
  }
);

console.log(`Architecture pattern accuracy improved by ${relatedArchitectures.improvementPercent}%`);

After Architecture Design: Store Learning Patterns

// Calculate architecture quality metrics
const architectureQuality = {
  scalability: assessScalability(systemDesign),
  maintainability: assessMaintainability(systemDesign),
  performanceProjection: estimatePerformance(systemDesign
Read more
@proffesor-for-testing
Ships withagentic-qe

Quality engineering tools for your coding agent. Generate tests, investigate coverage gaps, analyze flaky behavior and coordinate quality checks across the software lifecycle. Keep the findings close to the code and use them to make a better quality decision.

534119 skills169 agents1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
534
Star history of proffesor-for-testing/agentic-qe on GitHub, a chart by star-history.com

Other agents on agentic-qe.

More agents from other plugins.

bkend-expert

bkend-expert

Agent

bkend.ai BaaS platform expert agent. Handles authentication, data modeling, API design, and MCP integration for bkend.ai…

bkit3w606
@popup-studio-ai@popup-studio-aiInstall Agent
automate-agent

automate-agent

Agent

Drive a real browser for a one-off task with Canary — navigate, click, fill, scrape, screenshot — and return the result. Use when…

canary4w494
@0xnyn@0xnynInstall Agent

Questions about architecture.

Which coding agents can use architecture?
architecture installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.