← Back to Skills Marketplace
jackey001-wq

Capability Evolver Pro 1.0.2

by jackey001-wq · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
349
Downloads
0
Stars
3
Active Installs
1
Versions
Install in OpenClaw
/install capability-evolver-pro-1-0-2
Description
Meta-skill for AI agent self-improvement. Analyzes runtime logs to detect error patterns, regressions, and inefficiencies, then generates structured improvem...
README (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
Usage Guidance
This skill appears to be a local-only log-analysis tool and its code implements the stated behavior. Before installing: (1) verify the metadata/owner mismatch (registry ownerId/version vs _meta.json) with the publisher if provenance matters to you; (2) review handler.ts yourself or run it in a sandbox to confirm there are no hidden network calls in the full file; (3) be cautious about the logs you pass in — logs often contain sensitive data (PII, tokens, SQL, stack traces). Sanitize or test with non-sensitive logs first; (4) if you do not want the agent to run this autonomously on schedules or aggregated fleet data, restrict or review agent automation policies or disable autonomous invocation for this skill. Overall the skill is internally consistent with its stated purpose, but verify provenance and sanitize inputs before use.
Capability Analysis
Type: OpenClaw Skill Name: capability-evolver-pro-1-0-2 Version: 1.0.0 The 'Capability Evolver' skill is a local utility designed to analyze agent logs and provide health scores and improvement recommendations. The implementation in handler.ts uses pure deterministic logic to process log data provided in the input, with no evidence of network requests, file system access, or credential theft, and its behavior aligns perfectly with the documentation in SKILL.md.
Capability Assessment
Purpose & Capability
Name/description (analyzes logs and produces improvement proposals) align with the provided code and SKILL.md. Minor metadata inconsistencies: registry header lists one ownerId/version while _meta.json contains a different ownerId and version (and the registry metadata shows version 1.0.0 vs. displayed 1.0.2). These mismatches are not a functional break but reduce provenance confidence and should be checked.
Instruction Scope
SKILL.md instructs the agent to accept logs, run analyze/evolve/status actions, and produce recommendations. The handler.ts implements local, deterministic analysis and generation of proposals and does not instruct reading unrelated system paths or sending data externally. The examples show the user supplying logs (e.g., from their DB); the skill itself does not fetch external data.
Install Mechanism
No install spec; skill is instruction/code-only and runs locally. No downloads or external package installs are declared.
Credentials
No environment variables, credentials, or config paths are required. The code does not access process environment or external services, so requested privileges are proportionate to its purpose.
Persistence & Privilege
always:false and model invocation not disabled (normal defaults). The skill does not request permanent presence or system-wide config changes. Autonomous invocation is allowed by default — this is standard and not by itself a problem.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install capability-evolver-pro-1-0-2
  3. After installation, invoke the skill by name or use /capability-evolver-pro-1-0-2
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Capability Evolver 1.0.0 — Initial Release - Analyze agent runtime logs to detect error patterns, regressions, and inefficiencies. - Generates structured improvement proposals to enhance agent reliability and performance. - Provides deterministic, fast (sub-100ms) processing with zero external dependencies or LLMs. - Supports analyze, evolve, and status actions for diagnosis, health scoring, and evolution planning. - Designed for seamless integration with OpenClaw and other agent platforms.
Metadata
Slug capability-evolver-pro-1-0-2
Version 1.0.0
License MIT-0
All-time Installs 3
Active Installs 3
Total Versions 1
Frequently Asked Questions

What is Capability Evolver Pro 1.0.2?

Meta-skill for AI agent self-improvement. Analyzes runtime logs to detect error patterns, regressions, and inefficiencies, then generates structured improvem... It is an AI Agent Skill for Claude Code / OpenClaw, with 349 downloads so far.

How do I install Capability Evolver Pro 1.0.2?

Run "/install capability-evolver-pro-1-0-2" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Capability Evolver Pro 1.0.2 free?

Yes, Capability Evolver Pro 1.0.2 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Capability Evolver Pro 1.0.2 support?

Capability Evolver Pro 1.0.2 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Capability Evolver Pro 1.0.2?

It is built and maintained by jackey001-wq (@jackey001-wq); the current version is v1.0.0.

💬 Comments