agent-performance
БесплатноБез исполняемых скриптовНе проверенTrack and report agent invocation metrics including usage counts, success/failure rates, and completion times. Use for understanding which agents are…
от diegosouzapw★ 68 звёзд на GitHubОб этом скилле
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
- Track Invocations: Record agent usage via workflow tracker
- Measure Success: Track completion rates per agent
- Analyze Patterns: Identify usage trends and gaps
- 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
Read workflow execution logs:
Read: .claude/runtime/logs/workflow_adherence/workflow_execution.jsonlFilter for
agent_invokedevents:{ "event": "agent_invoked", "agent": "architect", "purpose": "...", "step": 2 }Aggregate by agent name:
- Count invocations
- Calculate success rates from workflow_end events
- Compute average durations
Identify underutilized agents:
- List all available agents from
.claude/agents/amplihack/ - Compare against invocation counts
- Flag agents with <5 invocations in analysis period
- List all available agents from
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
| Setting | Default | Description |
|---|---|---|
ANALYSIS_DAYS |
30 | Days of history to analyze |
UNDERUTILIZED_THRESHOLD |
5 | Invocations below this = underutilized |
| `ME |
Установить agent-performance в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл 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.
Как установить скилл agent-performance?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл agent-performance запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic