← 返回 Skills 市场
sinasu

Capability Evolver Pro.Bak

作者 sinAsu · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
107
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install capability-evolver-pro-bak
功能描述
Meta-skill for AI agent self-improvement. Analyzes runtime logs to detect error patterns, regressions, and inefficiencies, then generates structured improvem...
使用说明 (SKILL.md)

\r \r

Capability Evolver\r

\r Local skill by Claw0x — runs entirely in your OpenClaw agent.\r \r

Runs locally. No external API calls, no API key required. Complete privacy.\r \r Analyze agent runtime logs, detect patterns, compute health scores, and generate structured improvement proposals. Pure deterministic logic — no LLM, no external dependencies.\r \r

Quick Reference\r

\r | When This Happens | Use Action | What You Get |\r |-------------------|------------|--------------|\r | Agent keeps failing | analyze | Error patterns + health score |\r | Same error repeats | analyze | Root cause identification |\r | Need improvement plan | evolve | Prioritized recommendations |\r | System health check | status | Health score + summary |\r | Post-deployment review | analyze | Regression detection |\r | Fleet-wide diagnostics | analyze (batch) | Cross-agent patterns |\r \r Why deterministic? Reproducible results, no hallucination risk, sub-100ms processing, zero token costs.\r \r ---\r \r

Prerequisites\r

\r None. Just install and use.\r \r

5-Minute Quickstart\r

\r

Step 1: Install (30 seconds)\r

openclaw skill add capability-evolver\r
```\r
\r
### Step 2: Analyze Your First Logs (1 minute)\r
```typescript\r
const result = await agent.run('capability-evolver', {\r
  action: 'analyze',\r
  logs: [\r
    {timestamp: '2025-01-15T10:00:00Z', level: 'error', message: 'ETIMEDOUT', context: 'payment-api.ts'},\r
    {timestamp: '2025-01-15T10:01:00Z', level: 'error', message: 'ETIMEDOUT', context: 'payment-api.ts'},\r
    {timestamp: '2025-01-15T10:02:00Z', level: 'error', message: 'ETIMEDOUT', context: 'payment-api.ts'}\r
  ]\r
});\r
```\r
\r
### Step 3: Get Actionable Insights (instant)\r
```json\r
{\r
  "patterns": [\r
    {\r
      "type": "repeated_error",\r
      "severity": "high",\r
      "description": "ETIMEDOUT appeared 3 times in payment-api.ts",\r
      "affected_contexts": ["payment-api.ts"]\r
    }\r
  ],\r
  "health_score": 45,\r
  "recommendations": [\r
    "Add timeout configuration to payment-api.ts",\r
    "Implement retry logic with exponential backoff",\r
    "Monitor payment API response times"\r
  ]\r
}\r
```\r
\r
### Step 3: Generate Evolution Plan (instant)\r
```typescript\r
const evolution = await agent.run('capability-evolver', {\r
  action: 'evolve',\r
  logs: result.logs,\r
  strategy: 'harden'\r
});\r
```\r
\r
**Done.** You now have a prioritized improvement roadmap, all processed locally.\r
\r
---\r
\r
## Real-World Use Cases\r
\r
### Scenario 1: Production Incident Response\r
**Problem**: Your agent crashed in production and you need to understand why\r
\r
**Solution**:\r
1. Export last 1000 log entries\r
2. Run analyze action\r
3. Get error patterns and cascades\r
4. Identify root cause in minutes\r
\r
**Example**:\r
```typescript\r
const logs = await db.logs.findMany({ \r
  where: { timestamp: { gte: incidentStart } },\r
  orderBy: { timestamp: 'asc' }\r
});\r
\r
const analysis = await agent.run('capability-evolver', {\r
  action: 'analyze',\r
  logs: logs.map(l => ({\r
    timestamp: l.timestamp,\r
    level: l.level,\r
    message: l.message,\r
    context: l.context\r
  }))\r
});\r
\r
// analysis.patterns shows: "auth-service.ts failed, then payment-api.ts failed"\r
// Root cause: auth service timeout cascaded to payment failures\r
```\r
\r
### Scenario 2: Continuous Improvement Pipeline\r
**Problem**: You want your agent to automatically improve based on production data\r
\r
**Solution**:\r
1. Schedule daily log analysis\r
2. Generate evolution proposals\r
3. Review and apply recommendations\r
4. Track improvement over time\r
\r
**Example**:\r
```javascript\r
// Cron job: every day at 2am\r
async function dailyEvolution() {\r
  const logs = await getLast24HoursLogs();\r
  \r
  const evolution = await agent.run('capability-evolver', {\r
    action: 'evolve',\r
    logs,\r
    strategy: 'balanced'\r
  });\r
  \r
  // Store recommendations for review\r
  for (const rec of evolution.recommendations.filter(r => r.priority === 'critical')) {\r
    await db.recommendations.create({\r
      title: `${rec.category}: ${rec.description}`,\r
      priority: rec.priority,\r
      affected_files: rec.affected_files,\r
      approach: rec.suggested_approach\r
    });\r
  }\r
  \r
  // Track health score trend\r
  await db.metrics.create({\r
    date: new Date(),\r
    health_score: evolution.estimated_improvement\r
  });\r
}\r
// Result: Health score improved from 45 to 85 over 3 months\r
```\r
\r
### Scenario 3: Multi-Agent Fleet Management\r
**Problem**: Managing 50+ agent instances, need to identify systemic issues\r
\r
**Solution**:\r
1. Aggregate logs from all agents\r
2. Batch analyze to find common patterns\r
3. Fix once, deploy to all agents\r
4. Reduce fleet-wide error rate\r
\r
**Example**:\r
```python\r
# Collect logs from all agents\r
all_logs = []\r
for agent_id in agent_fleet:\r
    logs = fetch_agent_logs(agent_id, last_24h)\r
    all_logs.extend(logs)\r
\r
# Analyze fleet-wide\r
result = client.call("capability-evolver", {\r
    "action": "analyze",\r
    "logs": all_logs\r
})\r
\r
# result.patterns shows: "40 of 50 agents failing on auth-service.ts"\r
# Fix auth-service.ts once, deploy to all agents\r
# Result: 80% reduction in fleet-wide errors\r
```\r
\r
### Scenario 4: Pre-Deployment Health Check\r
**Problem**: Want to ensure new deployment doesn't introduce regressions\r
\r
**Solution**:\r
1. Analyze logs from staging environment\r
2. Compare health score to production baseline\r
3. Block deployment if health score drops\r
4. Catch regressions before production\r
\r
**Example**:\r
```javascript\r
// Pre-deployment health check script\r
async function preDeploymentCheck() {\r
  const stagingLogs = await fetchStagingLogs();\r
  \r
  const result = await agent.run('capability-evolver', {\r
    action: 'analyze',\r
    logs: stagingLogs\r
  });\r
  \r
  const BASELINE = 75;\r
  \r
  if (result.health_score \x3C BASELINE) {\r
    console.error(`Health score ${result.health_score} below baseline ${BASELINE}`);\r
    console.error('Critical patterns:', result.patterns.filter(p => p.severity === 'critical'));\r
    process.exit(1);\r
  }\r
  \r
  console.log(`✓ Health check passed: ${result.health_score}`);\r
}\r
// Result: Zero regression-related incidents in 6 months\r
```\r
\r
---\r
\r
## Integration Recipes\r
\r
### OpenClaw Agent\r
```typescript\r
// Analyze logs after each run\r
agent.onComplete(async () => {\r
  const logs = agent.getRecentLogs();\r
  \r
  const analysis = await agent.run('capability-evolver', {\r
    action: 'analyze',\r
    logs\r
  });\r
  \r
  if (analysis.health_score \x3C 70) {\r
    console.warn('⚠️ Health score low:', analysis.health_score);\r
    console.log('Recommendations:', analysis.recommendations);\r
  }\r
});\r
```\r
\r
### LangChain Agent\r
```python\r
def analyze_agent_health(logs):\r
    result = agent.run("capability-evolver", {\r
        "action": "analyze",\r
        "logs": logs\r
    })\r
    \r
    return {\r
        "health_score": result["health_score"],\r
        "patterns": result["patterns"],\r
        "recommendations": result["recommendations"]\r
    }\r
\r
# Use in monitoring\r
health = analyze_agent_health(agent.logs)\r
if health["health_score"] \x3C 70:\r
    alert_team(health)\r
```\r
\r
### Custom Monitoring Dashboard\r
```javascript\r
// Real-time health monitoring\r
async function updateHealthDashboard() {\r
  const logs = await db.logs.findMany({\r
    where: { timestamp: { gte: Date.now() - 3600000 } } // last hour\r
  });\r
  \r
  const result = await agent.run('capability-evolver', {\r
    action: 'analyze',\r
    logs\r
  });\r
  \r
  // Update dashboard\r
  dashboard.update({\r
    healthScore: result.health_score,\r
    errorRate: result.summary.error_count / result.summary.total_logs,\r
    topPatterns: result.patterns.slice(0, 5)\r
  });\r
}\r
\r
setInterval(updateHealthDashboard, 60000); // every minute\r
```\r
\r
### Evolution Strategy Comparison\r
```typescript\r
// Compare different evolution strategies\r
const logs = await getProductionLogs();\r
\r
const strategies = ['balanced', 'innovate', 'harden', 'repair-only'];\r
\r
const results = await Promise.all(\r
  strategies.map(strategy =>\r
    agent.run('capability-evolver', {\r
      action: 'evolve',\r
      logs,\r
      strategy\r
    })\r
  )\r
);\r
\r
// Compare estimated improvements\r
for (let i = 0; i \x3C strategies.length; i++) {\r
  console.log(`${strategies[i]}: ${results[i].estimated_improvement}`);\r
}\r
\r
// Choose best strategy for current situation\r
const best = results.reduce((a, b) => \r
  parseFloat(a.estimated_improvement) > parseFloat(b.estimated_improvement) ? a : b\r
);\r
```\r
\r
---\r
\r
## How It Works — Under the Hood\r
\r
Capability Evolver is a deterministic analysis engine that processes structured log data and produces actionable diagnostics. No LLM is involved �?the analysis is rule-based, which means results are reproducible and fast.\r
\r
### Analysis Engine\r
\r
The core engine processes log entries through several analysis passes:\r
\r
1. **Pattern detection** �?logs are grouped by `context` (file/module) and `level` (error/warn/info/debug). The engine looks for:\r
   - **Repeated errors** �?the same error message appearing multiple times indicates a systemic issue, not a transient failure\r
   - **Error cascades** �?errors in module A followed by errors in module B within a short time window suggest a dependency chain failure\r
   - **Regression signals** �?errors that appear after a period of clean logs suggest a recent change broke something\r
   - **Inefficiency patterns** �?excessive warn-level logs or repeated retries indicate performance issues\r
\r
2. **Health scoring** �?a system health score (0�?00) is computed based on:\r
   - Error rate (errors / total logs)\r
   - Error diversity (unique error messages / total errors)\r
   - Warn-to-error ratio\r
   - Time distribution (clustered errors score worse than spread-out errors)\r
\r
3. **Recommendation generation** �?based on detected patterns, the engine generates specific, actionable recommendations. These aren't generic advice �?they reference the actual files, error messages, and patterns found in your logs.\r
\r
### Evolution Strategies\r
\r
When using the `evolve` action, you can choose a strategy that shapes the recommendations:\r
\r
| Strategy | Focus | Best For |\r
|----------|-------|----------|\r
| `auto` | Balanced based on health score | Default �?let the engine decide |\r
| `balanced` | Equal weight to reliability and features | Stable systems with moderate issues |\r
| `innovate` | Prioritize new capabilities | Healthy systems ready to grow |\r
| `harden` | Prioritize reliability and error reduction | Systems with frequent failures |\r
| `repair-only` | Fix critical issues only | Systems in crisis |\r
\r
### Evolution Proposals\r
\r
The `evolve` action produces structured improvement proposals with:\r
- A unique `evolution_id` for tracking\r
- Prioritized recommendations with category labels (reliability, performance, architecture)\r
- Risk assessment (how risky is each proposed change)\r
- Estimated improvement (projected health score after implementing recommendations)\r
\r
### Why Deterministic (Not LLM)?\r
\r
- **Reproducible** �?same logs always produce the same analysis. Critical for debugging and auditing.\r
- **Fast** �?sub-100ms processing. No API call to an AI provider.\r
- **No hallucination risk** �?the engine only reports patterns it actually found in the data.\r
- **Cost-effective** �?pure computation, no token costs.\r
\r
The tradeoff: the engine can't understand semantic meaning in log messages the way an LLM could. It relies on structural patterns (frequency, timing, severity) rather than understanding what the error message means in context.\r
\r
## About Claw0x\r
\r
This skill is provided by [Claw0x](https://claw0x.com), the native skills layer for AI agents.\r
\r
**Cloud version available**: For users who need centralized analytics and cross-agent insights, a cloud version is available at [claw0x.com/skills/capability-evolver](https://claw0x.com/skills/capability-evolver).\r
\r
**Explore more skills**: [claw0x.com/skills](https://claw0x.com/skills)\r
\r
**GitHub**: [github.com/kennyzir/capability-evolver](https://github.com/kennyzir/capability-evolver)\r
\r
## When to Use\r
\r
- User says "analyze these logs", "what's failing", "improve my agent", "check system health"\r
- Agent pipeline needs automated diagnostics after a run\r
- User wants structured recommendations for fixing recurring errors\r
- Building a self-healing agent that adapts based on its own failure patterns\r
\r
## Input\r
\r
| Field | Type | Required | Description |\r
|-------|------|----------|-------------|\r
| `input.action` | string | yes | `"analyze"`, `"evolve"`, or `"status"` |\r
| `input.logs` | array | yes (for analyze/evolve) | Array of log entries |\r
| `input.logs[].timestamp` | string | yes | ISO timestamp |\r
| `input.logs[].level` | string | yes | `"error"`, `"warn"`, `"info"`, or `"debug"` |\r
| `input.logs[].message` | string | yes | Log message |\r
| `input.logs[].context` | string | no | File or module name |\r
| `input.strategy` | string | no | `"auto"`, `"balanced"`, `"innovate"`, `"harden"`, `"repair-only"` |\r
| `input.target_file` | string | no | Focus analysis on a specific file |\r
\r
## Output (Analyze)\r
\r
| Field | Type | Description |\r
|-------|------|-------------|\r
| `patterns` | array | Detected error/regression/inefficiency patterns with severity |\r
| `health_score` | number | System health 0�?00 |\r
| `recommendations` | string[] | Actionable improvement suggestions |\r
| `summary` | object | Counts: total_logs, error_count, warn_count, unique_patterns |\r
\r
## Output (Evolve)\r
\r
| Field | Type | Description |\r
|-------|------|-------------|\r
| `evolution_id` | string | Unique proposal ID |\r
| `strategy` | string | Effective strategy used |\r
| `recommendations` | array | Prioritized improvements with category and approach |\r
| `risk_assessment` | object | Risk level and contributing factors |\r
| `estimated_improvement` | string | Projected health score improvement |\r
\r
## Error Codes\r
\r
- `400` — Invalid action or missing logs array\r
- `500` — Processing failed\r
\r
## About Claw0x\r
\r
[Claw0x](https://claw0x.com) is the native skills layer for AI agents — providing unified API access, atomic billing, and quality control.\r
\r
**Explore more skills**: [claw0x.com/skills](https://claw0x.com/skills)\r
\r
**GitHub**: [github.com/kennyzir/capability-evolver](https://github.com/kennyzir/capability-evolver)\r
\r
---\r
\r
## Deterministic vs LLM Analysis: Which is Right for You?\r
\r
| Feature | LLM-Based (GPT-4, Claude) | Capability Evolver (Local) |\r
|---------|---------------------------|---------------------------|\r
| **Setup Time** | 5-10 min (prompt engineering) | 30 seconds (install skill) |\r
| **Processing Speed** | 5-30 seconds | Sub-100ms |\r
| **Reproducibility** | ❌ Varies per run | ✅ Same logs = same results |\r
| **Hallucination Risk** | ⚠️ Can invent patterns | ✅ Only reports real patterns |\r
| **Cost** | $0.10-0.50 per analysis | Free (runs locally) |\r
| **Semantic Understanding** | ✅ Understands context | ❌ Pattern-based only |\r
| **Audit Trail** | ❌ Hard to explain | ✅ Rule-based, explainable |\r
| **Privacy** | ⚠️ Sends data to API | ✅ Runs entirely locally |\r
\r
### When to Use LLM-Based\r
- Need semantic understanding of log messages\r
- Want natural language explanations\r
- Logs contain unstructured text\r
- Willing to trade speed for insight depth\r
\r
### When to Use Capability Evolver (Local)\r
- Need reproducible results for compliance\r
- Want sub-second processing\r
- Building automated pipelines\r
- Require explainable AI for audits\r
- Processing millions of logs\r
- Privacy-sensitive applications\r
- Zero-cost operations\r
\r
---\r
\r
## How It Fits Into Your Agent Lifecycle\r
\r
```\r
┌─────────────────────────────────────────────────────────────┐\r
│                  Agent Development Lifecycle                 │\r
└─────────────────────────────────────────────────────────────┘\r
                            │\r
                            ├─ Development\r
                            │  • Write agent code\r
                            │  • Local testing\r
                            │\r
                            ├─ Staging Deployment\r
                            │  agent.run('capability-evolver', \r
                            │    {action: "analyze", logs: staging_logs})\r
                            │  → Health check before production\r
                            │\r
                            ├─ Production Monitoring\r
                            │  agent.run('capability-evolver', \r
                            │    {action: "analyze", logs: recent_logs})\r
                            │  → Real-time health tracking (every hour)\r
                            │\r
                            ├─ Incident Response\r
                            │  agent.run('capability-evolver',\r
                            │    {action: "analyze", logs: incident_logs})\r
                            │  → Root cause analysis\r
                            │\r
                            └─ Continuous Improvement\r
                               agent.run('capability-evolver',\r
                                 {action: "evolve", strategy: "balanced"})\r
                               → Auto-generate improvement tasks (daily)\r
```\r
\r
### Integration Points\r
\r
1. **Pre-Deployment** — Health check before releasing\r
2. **Real-Time Monitoring** — Continuous health tracking\r
3. **Incident Response** — Fast root cause analysis\r
4. **Daily Reviews** — Automated improvement proposals\r
5. **Fleet Management** — Cross-agent pattern detection\r
\r
---\r
\r
## Why Use Capability Evolver?\r
\r
### Zero-Cost Operations\r
- **Runs locally** — no API calls, no billing\r
- **Complete privacy** — logs never leave your system\r
- **Offline capable** — works without internet connection\r
\r
### Agent-Optimized\r
- **Deterministic analysis** — reproducible, auditable results\r
- **Fast processing** — sub-100ms, suitable for real-time monitoring\r
- **Structured output** — JSON format, easy to integrate\r
- **Evolution strategies** — tailored recommendations based on context\r
\r
### Production-Ready\r
- **No dependencies** — pure logic, no external services\r
- **Scales to millions** — handle enterprise-scale log analysis\r
- **Cloud-native** — works in Lambda, Cloud Run, containers\r
- **Zero maintenance** — no model updates or API keys to manage\r
\r
安全使用建议
The skill appears to implement a local log-analysis engine with no external network calls or secret access, which is coherent with its description. However, the package contains inconsistent metadata (registry owner/slug/version differ from the embedded _meta.json and the skill is published without a homepage or known source). Before installing: (1) verify the full, untruncated handler.ts source to confirm there are no hidden network or filesystem operations; (2) confirm the publisher identity (owner ID) or prefer a skill with an auditable repository/homepage; (3) run the skill in an isolated/test environment first and provide only non-sensitive logs for initial evaluation. If you need higher assurance, request a signed release or a third-party code review of the complete handler.ts.
功能分析
Type: OpenClaw Skill Name: capability-evolver-pro-bak Version: 1.0.0 The skill bundle provides a local, deterministic log analysis engine for AI agents to identify error patterns and system health. The implementation in handler.ts contains no network calls, file system access, or dynamic code execution, adhering to its claim of being a 'pure logic' local skill. The SKILL.md documentation is well-structured and aligns perfectly with the code's functionality without any evidence of malicious prompt injection or hidden instructions.
能力标签
cryptocan-make-purchasesrequires-sensitive-credentials
能力评估
Purpose & Capability
The skill claims to be a local, deterministic log-analysis/evolution tool and the handler.ts implements analyze/evolve/status logic that requires only logs input — this aligns with the stated purpose. However, registry metadata (owner/slug/version) does not match the _meta.json embedded in the package and the published skill is labeled '...-bak' while internal metadata refers to 'capability-evolver-pro'. This provenance/packaging inconsistency is unexpected for a simple local skill.
Instruction Scope
SKILL.md instructs the agent to run local analysis on user-supplied logs and examples show only local data flows. The runtime instructions do not ask the agent to read unrelated system files, environment variables, or contact external endpoints.
Install Mechanism
No install spec (instruction-only skill) and no binaries are installed. The skill includes local TypeScript handler code; nothing indicates downloads from external URLs or archive extraction.
Credentials
The skill declares no required environment variables, credentials, or config paths, and the code does not reference environment secrets. Requested access appears proportionate to the stated task (accepting logs as input).
Persistence & Privilege
always:false and normal autonomous invocation settings — expected for skills. No code in the provided portion attempts to modify other skills or system-wide settings. Note: because provenance is unclear, granting autonomous invocation increases risk if hidden behaviors exist elsewhere in the code.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install capability-evolver-pro-bak
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /capability-evolver-pro-bak 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Capability Evolver 1.0.0 — Initial Release - Introduces a deterministic, fully local meta-skill for agent self-improvement and system health monitoring. - Analyzes runtime logs to detect error patterns, regressions, and inefficiencies; generates reproducible proposals for improvement. - Supports analyze, evolve, and status actions for targeted diagnostics and roadmap generation. - No external dependencies, LLMs, API keys, or network usage; ensures fast, private, cost-free operation. - Includes detailed guides and code recipes for integration with OpenClaw, LangChain, and custom dashboards. - Real-world use cases covered: incident response, continuous improvement, pre-deployment checks, and multi-agent fleet diagnostics.
元数据
Slug capability-evolver-pro-bak
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Capability Evolver Pro.Bak 是什么?

Meta-skill for AI agent self-improvement. Analyzes runtime logs to detect error patterns, regressions, and inefficiencies, then generates structured improvem... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 107 次。

如何安装 Capability Evolver Pro.Bak?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install capability-evolver-pro-bak」即可一键安装,无需额外配置。

Capability Evolver Pro.Bak 是免费的吗?

是的,Capability Evolver Pro.Bak 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Capability Evolver Pro.Bak 支持哪些平台?

Capability Evolver Pro.Bak 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Capability Evolver Pro.Bak?

由 sinAsu(@sinasu)开发并维护,当前版本 v1.0.0。

💬 留言讨论