agent-improvement
БесплатноБез исполняемых скриптовНе проверенSelf-improvement loop for multi-agent workflows. Diagnose failures, improve tool descriptions, and learn from success/failure patterns.
от diegosouzapw★ 68 звёзд на GitHubОб этом скилле
Agent Self-Improvement
Purpose
Enable continuous improvement of multi-agent workflows through:
- Failure pattern analysis
- Tool description optimization
- Success pattern recognition
- Performance benchmarking
Reference: Anthropic achieved 40% faster task completion through LLM-based tool description improvements.
Improvement Cycle
┌─────────────────────────────────────────────────┐
│ │
│ 1. COLLECT │
│ └── Gather traces from completed sessions │
│ │
│ 2. ANALYZE │
│ └── Identify failure patterns & bottlenecks │
│ │
│ 3. DIAGNOSE │
│ └── Use LLM to understand root causes │
│ │
│ 4. IMPROVE │
│ └── Update tool descriptions & agent prompts │
│ │
│ 5. VALIDATE │
│ └── Test improvements on similar tasks │
│ │
│ 6. DEPLOY │
│ └── Roll out to all agents │
│ │
└─────────────────────────────────────────────────┘
Data Collection
Success/Failure Patterns
Store in .temp/improvement/patterns/:
{
"pattern_id": "pat_001",
"type": "failure|success",
"frequency": 5,
"context": {
"task_type": "ui_component_creation",
"agent": "mobile-ui-specialist",
"phase": "implementation"
},
"description": "Agent often misses accessibility labels",
"examples": [
{
"session_id": "sess_abc",
"file": "StationCard.tsx",
"issue": "Missing accessibilityLabel on TouchableOpacity"
}
],
"proposed_fix": "Add explicit reminder in agent prompt",
"status": "identified|proposed|implemented|validated"
}
Tool Usage Patterns
{
"tool": "read",
"usage_count": 1523,
"success_rate": 0.98,
"avg_duration_ms": 45,
"common_errors": [
{
"error": "File not found",
"frequency": 23,
"cause": "Path alias not resolved"
}
],
"improvement_opportunities": [
"Add path alias resolution hint to tool description"
]
}
Analysis Operations
1. Failure Analysis
Input: Session traces with failures Output: Categorized failure patterns
## Failure Analysis Report
### Category 1: Agent Boundary Violations
- Frequency: 12 occurrences
- Pattern: UI agent attempting to modify services
- Root Cause: Task boundaries not clear in delegation
- Fix: Add explicit "DO NOT" list to delegation template
### Category 2: Missing Dependencies
- Frequency: 8 occurrences
- Pattern: UI agent starts before types available
- Root Cause: Dependency order not enforced
- Fix: Add dependency check before spawning
### Category 3: Tool Misuse
- Frequency: 5 occurrences
- Pattern: Using grep instead of read for known files
- Root Cause: Tool descriptions don't clarify when to use each
- Fix: Update tool descriptions with decision criteria
2. Bottleneck Analysis
Input: Session metrics Output: Performance bottlenecks
## Bottleneck Analysis
### Bottleneck 1: Sequential Agent Spawning
- Impact: 40% time overhead
- Pattern: Agents spawned one at a time
- Fix: Spawn independent agents in parallel
### Bottleneck 2: Excessive Iterations
- Impact: 2x token usage
- Pattern: Average 3.2 iterations per task
- Fix: Improve initial task decomposition
### Bottleneck 3: Quality Gate Failures
- Impact: 25% rework
- Pattern: TypeScript errors on first integration
- Fix: Add pre-integration type check
Improvement Actions
Tool Description Updates
Before:
Read: Reads a file from the filesystem
After:
Read: Reads a file from the filesystem.
- Use when you know the exact file path
- Prefer over grep for reading specific known files
- Use path aliases (@components, @services)
- Returns line-numbered content
Agent Prompt Updates
Before:
You are a mobile UI specialist...
After:
You are a mobile UI specialist...
CRITICAL REMINDERS:
- Always add accessibilityLabel to interactive elements
- Use memo() for components with complex props
- Check LINE_COLORS constant for subway line colors
Delegation Template Updates
Before:
### Task Boundaries
- DO NOT modify services
After:
### Task Boundaries (EXPLICIT)
Files you CAN modify:
- src/components/**
- src/screens/**
Files you CANNOT modify:
- src/services/** (backend agent)
- src/models/** (shared types)
- **/__tests__/** (test agent)
STOP if you need to modify excluded files.
Validation Protocol
Before Deployment
- Identify test cases
- Find simi
Установить agent-improvement в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл agent-improvement?
Self-improvement loop for multi-agent workflows. Diagnose failures, improve tool descriptions, and learn from success/failure patterns.
Как установить скилл agent-improvement?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл agent-improvement запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
patterns
Find patterns worth sharing from recent PRs and repo history, both repeats to fix and good practices worth spreading. Use when a champion wants to know what…
от Anthropiccopilot-cli-quickstart
Use this skill when someone wants to learn GitHub Copilot CLI from scratch. Offers interactive step-by-step tutorials with separate Developer and…
от GitHubvardoger-analyze
Use when the user asks to personalize the GitHub Copilot CLI assistant, adapt Copilot to their style, use vardoger, or analyze their Copilot CLI conversation…
от GitHubpolicy-lookup
Find and explain company policies in plain language. Trigger with "what's our PTO policy", "can I work remotely from another country", "how do expenses work"…
от Anthropic