Meta-skill for AI agent self-improvement. Analyzes runtime logs to detect error patterns, regressions, and inefficiencies, then generates structured improvem...
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install capability-evolver-pro或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install capability-evolver-pro⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/capability-evolver-pro/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: Capability Evolver description: > Meta-skill for AI agent self-improvement. Analyzes runtime logs to detect error patterns, regressions, and inefficiencies, then generates structured improvement proposals. Use when the user or agent asks to analyze logs, diagnose failures, improve agent reliability, generate evolution proposals, or assess system health. Supports analyze, evolve, and status actions. ---
Local skill by Claw0x — runs entirely in your OpenClaw agent.
> Runs locally. No external API calls, no API key required. Complete privacy.
Analyze agent runtime logs, detect patterns, compute health scores, and generate structured improvement proposals. Pure deterministic logic — no LLM, no external dependencies.
| When This Happens | Use Action | What You Get |
|-------------------|------------|--------------|
| Agent keeps failing | analyze | Error patterns + health score |
| Same error repeats | analyze | Root cause identification |
| Need improvement plan | evolve | Prioritized recommendations |
| System health check | status | Health score + summary |
| Post-deployment review | analyze | Regression detection |
| Fleet-wide diagnostics | analyze (batch) | Cross-agent patterns |
Why deterministic? Reproducible results, no hallucination risk, sub-100ms processing, zero token costs.
---
None. Just install and use.
openclaw skill add capability-evolver
const result = await agent.run('capability-evolver', {
action: 'analyze',
logs: [
{timestamp: '2025-01-15T10:00:00Z', level: 'error', message: 'ETIMEDOUT', context: 'payment-api.ts'},
{timestamp: '2025-01-15T10:01:00Z', level: 'error', message: 'ETIMEDOUT', context: 'payment-api.ts'},
{timestamp: '2025-01-15T10:02:00Z', level: 'error', message: 'ETIMEDOUT', context: 'payment-api.ts'}
]
});
{
"patterns": [
{
"type": "repeated_error",
"severity": "high",
"description": "ETIMEDOUT appeared 3 times in payment-api.ts",
"affected_contexts": ["payment-api.ts"]
}
],
"health_score": 45,
"recommendations": [
"Add timeout configuration to payment-api.ts",
"Implement retry logic with exponential backoff",
"Monitor payment API response times"
]
}
const evolution = await agent.run('capability-evolver', {
action: 'evolve',
logs: result.logs,
strategy: 'harden'
});
Done. You now have a prioritized improvement roadmap, all processed locally.
---
Problem: Your agent crashed in production and you need to understand why
Solution:
Example:
const logs = await db.logs.findMany({
where: { timestamp: { gte: incidentStart } },
orderBy: { timestamp: 'asc' }
});
const analysis = await agent.run('capability-evolver', {
action: 'analyze',
logs: logs.map(l => ({
timestamp: l.timestamp,
level: l.level,
message: l.message,
context: l.context
}))
});
// analysis.patterns shows: "auth-service.ts failed, then payment-api.ts failed"
// Root cause: auth service timeout cascaded to payment failures
Problem: You want your agent to automatically improve based on production data
Solution:
Example:
// Cron job: every day at 2am
async function dailyEvolution() {
const logs = await getLast24HoursLogs();
const evolution = await agent.run('capability-evolver', {
action: 'evolve',
logs,
strategy: 'balanced'
});
// Store recommendations for review
for (const rec of evolution.recommendations.filter(r => r.priority === 'critical')) {
await db.recommendations.create({
title: `${rec.category}: ${rec.description}`,
priority: rec.priority,
affected_files: rec.affected_files,
approach: rec.suggested_approach
});
}
// Track health score trend
await db.metrics.create({
date: new Date(),
health_score: evolution.estimated_improvement
});
}
// Result: Health score improved from 45 to 85 over 3 months
Problem: Managing 50+ agent instances, need to identify systemic issues
Solution:
Example:
# Collect logs from all agents
all_logs = []
for agent_id in agent_fleet:
logs = fetch_agent_logs(agent_id, last_24h)
all_logs.extend(logs)
# Analyze fleet-wide
result = client.call("capability-evolver", {
"action": "analyze",
"logs": all_logs
})
# result.patterns shows: "40 of 50 agents failing on auth-service.ts"
# Fix auth-service.ts once, deploy to all agents
# Result: 80% reduction in fleet-wide errors
Problem: Want to ensure new deployment doesn't introduce regressions
Solution:
Example:
// Pre-deployment health check script
async function preDeploymentCheck() {
const stagingLogs = await fetchStagingLogs();
const result = await agent.run('capability-evolver', {
action: 'analyze',
logs: stagingLogs
});
const BASELINE = 75;
if (result.health_score < BASELINE) {
console.error(`Health score ${result.health_score} below baseline ${BASELINE}`);
console.error('Critical patterns:', result.patterns.filter(p => p.severity === 'critical'));
process.exit(1);
}
console.log(`✓ Health check passed: ${result.health_score}`);
}
// Result: Zero regression-related incidents in 6 months
---
// Analyze logs after each run
agent.onComplete(async () => {
const logs = agent.getRecentLogs();
const analysis = await agent.run('capability-evolver', {
action: 'analyze',
logs
});
if (analysis.health_score < 70) {
console.warn('⚠️ Health score low:', analysis.health_score);
console.log('Recommendations:', analysis.recommendations);
}
});
def analyze_agent_health(logs):
result = agent.run("capability-evolver", {
"action": "analyze",
"logs": logs
})
return {
"health_score": result["health_score"],
"patterns": result["patterns"],
"recommendations": result["recommendations"]
}
# Use in monitoring
health = analyze_agent_health(agent.logs)
if health["health_score"] < 70:
alert_team(health)
// Real-time health monitoring
async function updateHealthDashboard() {
const logs = await db.logs.findMany({
where: { timestamp: { gte: Date.now() - 3600000 } } // last hour
});
const result = await agent.run('capability-evolver', {
action: 'analyze',
logs
});
// Update dashboard
dashboard.update({
healthScore: result.health_score,
...安装 Capability Evolver 后,可以对 AI 说这些话来触发它
Help me get started with Capability Evolver
Explains what Capability Evolver does, walks through the setup, and runs a quick demo based on your current project
Use Capability Evolver to meta-skill for AI agent self-improvement
Invokes Capability Evolver with the right parameters and returns the result directly in the conversation
What can I do with Capability Evolver in my ai agent & automation workflow?
Lists the top use cases for Capability Evolver, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/capability-evolver-pro/ 目录(个人级,所有项目可用),或 .claude/skills/capability-evolver-pro/(项目级)。重启 AI 客户端后,用 /capability-evolver-pro 主动调用,或让 AI 根据上下文自动发现并使用。
Capability Evolver 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Capability Evolver 可免费安装使用。请查阅仓库了解许可证信息。
Meta-skill for AI agent self-improvement. Analyzes runtime logs to detect error patterns, regressions, and inefficiencies, then generates structured improvem...
Capability Evolver 属于「AI Agent & Automation」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my ai agent & automation tasks using Capability Evolver
Identifies repetitive steps in your workflow and sets up Capability Evolver to handle them automatically