본문으로 건너뛰기
cccskills
무료GitHub에 공개

agent-performance

Track and report agent invocation metrics including usage counts, success/failure rates, and completion times. Use for understanding which agents are utilized, identifying underused agents, and optimizing agent delegation patterns.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(2)

  • SKILL.md7.9 KB
  • metadata.json1.5 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Agent Performance Dashboard

Purpose

Provides visibility into agent usage patterns to optimize delegation and identify improvement opportunities.

When I Activate

I automatically load when you mention:

  • "agent performance" or "agent metrics"
  • "agent dashboard" or "agent usage"
  • "which agents are used" or "underutilized agents"
  • "agent success rate" or "agent statistics"

What I Do

  1. Track Invocations: Record agent usage via workflow tracker
  2. Measure Success: Track completion rates per agent
  3. Analyze Patterns: Identify usage trends and gaps
  4. Generate Reports: Create actionable dashboards

Quick Start

User: "Show me agent performance metrics"
Skill: *activates automatically*
       "Generating agent performance report..."

Core Capabilities

1. Report Generation

Generate a performance report by reading workflow logs and aggregating agent metrics:

User: "Generate agent performance report"

Report includes:

  • Invocation counts per agent
  • Success/failure rates
  • Average completion times (when tracked)
  • Underutilized agents list
  • Recommendations for optimization

2. Live Tracking

Track agent invocations during workflow execution using the existing workflow_tracker:

# Already available in .claude/tools/amplihack/hooks/workflow_tracker.py
from workflow_tracker import log_agent_invocation

log_agent_invocation(
    agent_name="architect",
    purpose="Design authentication module",
    step_number=2
)

3. Metrics Storage

Metrics are stored in:

  • Raw logs: .claude/runtime/logs/workflow_adherence/workflow_execution.jsonl
  • Aggregated: .claude/runtime/metrics/agent_performance.yaml

Report Format

Summary Dashboard

# Agent Performance Summary
# Generated: 2025-11-25

total_invocations: 142

agents:
  architect:
    invocations: 45
    success_rate: 95.6%
    avg_duration_ms: 2340
    trend: increasing

  builder:
    invocations: 38
    success_rate: 89.5%
    avg_duration_ms: 4520
    trend: stable

  reviewer:
    invocations: 25
    success_rate: 100%
    avg_duration_ms: 1890
    trend: increasing

underutilized:
  - database (0 invocations in last 30 days)
  - integration (2 invocations in last 30 days)
  - patterns (3 invocations in last 30 days)

recommendations:
  - Consider using database agent for schema work
  - Integration agent available for external service connections
  - Patterns agent can identify reusable solutions

Implementation Guide

To Generate a Report

  1. Read workflow execution logs:

    Read: .claude/runtime/logs/workflow_adherence/workflow_execution.jsonl
    
  2. Filter for agent_invoked events:

    { "event": "agent_invoked", "agent": "architect", "purpose": "...", "step": 2 }
    
  3. Aggregate by agent name:

    • Count invocations
    • Calculate success rates from workflow_end events
    • Compute average durations
  4. Identify underutilized agents:

    • List all available agents from .claude/agents/amplihack/
    • Compare against invocation counts
    • Flag agents with <5 invocations in analysis period
  5. Write report to:

    .claude/runtime/metrics/agent_performance.yaml
    

Available Agents Inventory

Core Agents (6):

  • architect, builder, reviewer, tester, optimizer, api-designer

Specialized Agents (25):

  • ambiguity, amplifier-cli-architect, analyzer, azure-kubernetes-expert
  • ci-diagnostic-workflow, cleanup, database, documentation-writer
  • fallback-cascade, fix-agent, integration, knowledge-archaeologist
  • memory-manager, multi-agent-debate, n-version-validator, patterns
  • philosophy-guardian, pre-commit-diagnostic, preference-reviewer
  • prompt-writer, rust-programming-expert, security, visualization-architect
  • worktree-manager, xpia-defense

Note: Agent count may change as specialized agents are added/removed. Use ls .claude/agents/amplihack/specialized/ for current count.

Tracking Best Practices

When Invoking Agents

Always log invocations for accurate tracking:

# Before invoking an agent via Task tool
log_agent_invocation(
    agent_name="security",
    purpose="Audit authentication implementation",
    step_number=7  # Optional: link to workflow step
)

# Then invoke the agent
Task(subagent_type="security", prompt="...")

Workflow Integration

The DEFAULT_WORKFLOW.md specifies agent delegation at each step. This skill helps verify adherence:

  • Step 1: prompt-writer
  • Step 2: architect
  • Step 3: builder
  • Step 4: tester
  • Step 5: reviewer
  • etc.

Configuration

SettingDefaultDescription
ANALYSIS_DAYS30Days of history to analyze
UNDERUTILIZED_THRESHOLD5Invocations below this = underutilized
METRICS_FILEagent_performance.yamlOutput file name

Philosophy Alignment

This skill follows:

  • Ruthless Simplicity: Uses existing infrastructure (workflow_tracker)
  • Zero-BS: No placeholders, working aggregation logic
  • Modular Design: Self-contained skill, clear boundaries
  • Emergence: Insights emerge from simple tracking patterns

Interpreting Metrics

Success Rate Guidelines

RateAssessmentAction
95-100%ExcellentMaintain current patterns
85-94%GoodReview occasional failures for patterns
70-84%Needs AttentionInvestigate failure causes, adjust prompts
Below 70%CriticalAgent may need redesign or prompt overhaul

Invocation Volume Interpretation

  • High volume (30+ in 30 days): Core workflow agent, ensure reliability
  • Medium volume (10-29): Regular use, monitor for optimization opportunities
  • Low volume (5-9): Specialized use case, verify still needed
  • Very low (<5): Consider if agent is discoverable or relevant

Duration Benchmarks

  • < 2 seconds: Fast execution, typical for simple analysis
  • 2-10 seconds: Normal for moderate complexity
  • 10-60 seconds: Expected for deep analysis or multi-step tasks
  • > 60 seconds: May indicate inefficiency, consider optimization

Empty State Handling

When no log data exists (new project or logs cleared):

# Agent Performance Report
# Period: Last 30 days
# Status: No data available

summary:
  total_invocations: 0
  message: "No agent invocations logged yet"

getting_started:
  - "Agent tracking begins when workflow_tracker logs invocations"
  - "Ensure agents are invoked via Task tool with proper logging"
  - "First report available after initial workflow execution"

next_steps:
  - "Run a workflow task to generate initial data"
  - "Verify workflow_tracker is properly configured"
  - "Check .claude/runtime/logs/ directory exists"

Limitations

This skill has the following constraints:

  1. Depends on workflow_tracker: Only tracks agents invoked through the logging system
  2. No real-time metrics: Reports are generated on-demand, not streamed
  3. Historical data only: Cannot predict future usage patterns
  4. Manual log analysis: Does not auto-detect anomalies or alert on issues
  5. Single-project scope: Metrics are per-project, no cross-project aggregation
  6. Time-based only: No correlation with code quality or PR outcomes

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

[00] TnR ABSOLUTE RIGOR — Systemic Verification Doctrine. Forced cognitive exertion for high-stakes investigations. Mandates absolute deconstruction, mathematical proof chains, and ≥95% derived certainty. Zero-tolerance for heuristics or sentiment-based reasoning. Shortcuts are defined as intentional hallucinations.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

diegosouzapw/awesome-omni-skill642026년 3월 2일 업데이트

2agent

무료

Configures 2-Agent workflow between PM and implementation roles. Use when user mentions 2-Agent, 2エージェント, PM連携設定, Cursor設定, Cursor連携, 2-agent運用. Do NOT load for: 単独運用, ワークフロー実行, ハンドオフ処理.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

diegosouzapw/awesome-omni-skill642026년 3월 2일 업데이트

Appends relevant hashtags to journal entries based on content analysis. Intended for LLM execution.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

diegosouzapw/awesome-omni-skill642026년 3월 2일 업데이트

add-agent

무료

Add a new AI coding agent to Agent Sandbox. Creates all required files (Dockerfile, templates, CI, docs) and wires the agent into the CLI, proxy, and build system.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

diegosouzapw/awesome-omni-skill642026년 3월 2일 업데이트

Add a new property to the AI agents database. Use when the user wants to add, create, or introduce a new column, property, field, or feature to track across all agents in the comparison matrix. Handles all four required steps - database updates, groups.json, table display, and GitHub issue templates.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

diegosouzapw/awesome-omni-skill642026년 3월 2일 업데이트

Add new Agent templates to the meta-agent-skills framework.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

diegosouzapw/awesome-omni-skill642026년 3월 2일 업데이트

diegosouzapw의 스킬 모두 보기

이 스킬의 문제 신고