Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计通过

self-improving-agent-pro自我提升 Agent 专业版

Agent Skill

self-improving-agent-pro 用于记录任务执行中的错误、用户纠正、经验和能力缺口,适合在 OpenClaw 中希望让 Agent 持续沉淀问题、修正和最佳实践时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

25,445

周安装

1,093

GitHub Stars

公开资料未说明

下载量

8,919
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:self-improving-agent-pro(自我提升 Agent 专业版)
来源仓库:https://github.com/kennyzir/self-improving-agent-pro
安装命令:
openclaw skills install self-improving-agent-pro
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install self-improving-agent-pro

简介

用于记录任务执行中的错误、用户纠正和经验缺口,支持 OpenClaw Agent 在本地持续改进。

  • 适用于需要完全本地化处理的场景,所有学习事件均在代理工作区内处理。
  • 通过轻量级机制捕捉错误模式,提升代理在编码、分析与决策中的准确性。
  • 安装命令:openclaw skills install self-improving-agent-pro,无需联网即可完成安装。
  • 注意确认技能是否修改或读取敏感文件,建议在非生产环境先行测试。

SKILL.md

name
Self-Improving Agent
description
>

Self-Improving Agent

Local skill by Claw0x — Turn your agent's mistakes into systematic improvements. Every error, correction, and learning becomes a structured insight with auto-generated rules.

Runs locally in your OpenClaw agent. No external API calls, no API key required. Complete privacy — your learning data never leaves your machine.

Quick Reference

When This HappensLog AsWhat You Get
API call failserrorRetry rule with timeout adjustment
User corrects outputcorrectionFormat/style rule based on delta
Discover new patternlearningBest practice for similar tasks
Same issue repeatsBatch logSystemic fix recommendations
Command times outerrorTimeout + retry strategy
Wrong assumptionlearningUpdated knowledge rule

Why local processing? Complete privacy, zero latency, works offline, no API costs.


5-Minute Quickstart

Step 1: Install the Skill (30 seconds)

openclaw skill add self-improving-agent

Step 2: Log Your First Error (1 minute)

const result = await agent.run('self-improving-agent', {
  type: 'error',
  context: 'payment-api.ts',
  detail: 'ETIMEDOUT after 30s'
});

Step 3: Get Actionable Insight (instant)

{
  "entries": [{
    "severity": "high",
    "tags": ["network", "timeout", "payment"],
    "actionable_insight": "Error detected in payment-api.ts: ETIMEDOUT after 30s. Consider adding error handling or input validation for this scenario.",
    "suggested_rule": "WHEN operating in payment-api.ts THEN guard against: ETIMEDOUT after 30s"
  }]
}

Step 4: Apply the Rule (2 minutes)

// Add to your agent config
agent.addRule("Set 10s timeout for payment API. Retry once on ETIMEDOUT.");

Done. Your agent just learned from its mistake — all processed locally.

How It Works — Under the Hood

This skill provides a structured event processing pipeline for agent self-improvement. It runs entirely locally in your OpenClaw agent — no external API calls, no data transmission.

The Processing Pipeline

  1. Event classification — each incoming event is classified by type (error, correction, learning, pattern). If no severity is provided, it's auto-inferred based on the event type and content keywords.
  1. Auto-tagging — the skill scans the context and detail fields for known patterns and applies tags automatically. For example:

- An error mentioning "timeout" or "ETIMEDOUT" gets tagged [network], [timeout] - A correction in a .ts file gets tagged [typescript] - A learning about "retry" gets tagged [resilience]

  1. Insight generation — for each event, the skill generates an actionable_insight — a one-sentence summary of what the agent should do differently. For corrections, this compares the previous_attempt with the corrected_output to identify the delta.
  1. Rule suggestion — each event produces a suggested_rule — a concrete, implementable rule the agent could add to its system prompt or configuration. Example: "When calling external APIs, set a 10s timeout and retry once on ETIMEDOUT."
  1. Batch analysis (for multi-event submissions) — when you send an events array, the skill also produces:

- Breakdown by type and severity - Top recurring tags (indicating systemic issues) - Pattern detection across events (e.g., "3 of 5 errors are network-related") - Prioritized recommendations

Why This Matters for Agents

Traditional software logs errors and a human reads them later. Autonomous agents need to process their own failures in real time and adapt. This skill provides the structured feedback loop:

Agent runs → Error occurs → Log to self-improving-agent → Get insight + rule → Agent updates behavior

The skill is stateless by design — it doesn't accumulate history across calls. If you need persistent memory, store the returned entries in your own database and feed historical context back in future calls.

Event Types Explained

TypeWhen to UseExample
errorSomething failed unexpectedlyAPI returned 500, file not found, parse error
correctionUser or supervisor fixed agent outputAgent used tabs, user said use spaces
learningAgent discovered something new"This API requires auth header in a specific format"
patternRecurring behavior worth codifying"Users always ask for JSON output, not XML"

Prerequisites

None. This skill runs locally in your OpenClaw agent. No API key, no external dependencies, no configuration needed.

Just install and use:

openclaw skill add self-improving-agent

When to Use

  • An operation fails and the agent wants to record what went wrong
  • User corrects agent output and the agent should learn from it
  • Agent discovers a new pattern worth remembering
  • Agent pipeline needs to process a batch of improvement events

Real-World Use Cases

Scenario 1: API Integration Debugging

Problem: Your agent keeps failing when calling external APIs

Solution:

  1. Log each API error to self-improving-agent
  2. Get auto-tagged insights (network, timeout, auth, etc.)
  3. Apply suggested rules (retry logic, timeout adjustments)
  4. Reduce API failure rate by 60%

Example:

try {
  await paymentAPI.charge(amount);
} catch (error) {
  const insight = await agent.run('self-improving-agent', {
    type: 'error',
    context: 'payment-api.ts',
    detail: error.message
  });
  // Apply: "Set 10s timeout. Retry once on ETIMEDOUT."
  await agent.updateConfig(insight.entries[0].suggested_rule);
}

Scenario 2: User Correction Learning

Problem: Users frequently correct your agent's output format

Solution:

  1. Log each correction with previous_attempt and corrected_output
  2. Get suggested rules for output formatting
  3. Update agent prompt with accumulated rules
  4. Reduce correction rate from 30% to 5%

Example:

async function onUserCorrection(previous, corrected, context) {
  const result = await agent.run('self-improving-agent', {
    type: 'correction',
    context: context,
    previous_attempt: previous,
    corrected_output: corrected
  });
  // Apply rule to agent memory
  agent.memory.addRule(result.entries[0].suggested_rule);
}

Scenario 3: Pattern Detection

Problem: Your agent makes the same mistakes repeatedly

Solution:

  1. Batch-log 50 recent errors
  2. Get summary with top_tags and patterns_detected
  3. Identify systemic issues (e.g., "80% are auth-related")
  4. Fix root cause instead of symptoms

Example:

const events = recentErrors.map(e => ({
  type: 'error',
  context: e.context,
  detail: e.message
}));

const result = await agent.run('self-improving-agent', { events });
// result.summary.patterns_detected: ["auth-service.ts appeared 40 times"]
// Fix auth-service.ts once, eliminate 40 errors

Scenario 4: Multi-Agent Fleet Management

Problem: Managing learnings across 10+ agent instances

Solution:

  1. Each agent logs locally to self-improving-agent
  2. Store results in central database
  3. Aggregate insights across fleet
  4. Distribute top rules to all agents
  5. Continuous improvement at scale

Integration Recipes

OpenClaw Agent (Native)

// In your agent's error handler
agent.onError(async (error, context) => {
  const result = await agent.run('self-improving-agent', {
    type: 'error',
    context: context.file,
    detail: error.message
  });
  
  // Apply suggested rule
  if (result.entries[0].suggested_rule) {
    await agent.addRule(result.entries[0].suggested_rule);
    console.log('✓ Rule applied:', result.entries[0].suggested_rule);
  }
});

LangChain Agent

# Install via OpenClaw skill system
# Then use in your LangChain agent

def on_user_correction(previous, corrected, context):
    result = openclaw.run("self-improving-agent", {
        "type": "correction",
        "context": context,
        "detail": "User corrected output",
        "previous_attempt": previous,
        "corrected_output": corrected
    })
    
    # Store in agent memory
    agent.memory.add_rule(result["entries"][0]["suggested_rule"])
    return result["entries"][0]["actionable_insight"]

Custom Agent (Generic)

async function logLearning(type, context, detail) {
  const result = await agent.run('self-improving-agent', {
    type,
    context,
    detail
  });
  
  return result.entries[0];
}

// Use in your agent
try {
  await riskyOperation();
} catch (error) {
  const insight = await logLearning('error', 'riskyOperation', error.message);
  console.log('Insight:', insight.actionable_insight);
  console.log('Rule:', insight.suggested_rule);
  
  // Store for later review
  await db.learnings.create(insight);
}

Batch Processing

// Collect events throughout the day
const events = [];

agent.onError((error, ctx) => {
  events.push({ type: 'error', context: ctx.file, detail: error.message });
});

agent.onCorrection((prev, corrected, ctx) => {
  events.push({ 
    type: 'correction', 
    context: ctx.file, 
    detail: 'User corrected output',
    previous_attempt: prev,
    corrected_output: corrected
  });
});

// Process batch at end of day
async function dailyReview() {
  const result = await agent.run('self-improving-agent', { events });
  
  console.log('Summary:', result.summary);
  // {
  //   by_severity: { high: 12, medium: 8, low: 5 },
  //   top_tags: [{ tag: 'network', count: 15 }, { tag: 'auth', count: 10 }],
  //   patterns_detected: ["payment-api.ts appeared 8 times"],
  //   recommendations: ["Multiple high-severity events — consider systematic review"]
  // }
  
  // Apply top rules
  for (const entry of result.entries.filter(e => e.severity === 'critical')) {
    await agent.addRule(entry.suggested_rule);
  }
}

Input (Single Event)

FieldTypeRequiredDescription
typestringyes"error", "correction", "learning", or "pattern"
contextstringyesWhere it happened (file, module, function)
detailstringyesWhat happened
severitystringno"low", "medium", "high", "critical" (auto-inferred if omitted)
tagsstring[]noManual tags (auto-tags are also added)
previous_attemptstringnoWhat the agent originally produced (for corrections)
corrected_outputstringnoWhat the correct output should be (for corrections)

Input (Batch)

FieldTypeRequiredDescription
eventsarrayyesArray of event objects (same fields as single event)

Output Fields

FieldTypeDescription
entriesarrayProcessed events with id, severity, tags, actionable_insight, suggested_rule
summaryobjectBatch summary (null for single events): by_type, by_severity, top_tags, patterns_detected, recommendations

Example

Single error input:

await agent.run('self-improving-agent', {
  type: 'error',
  context: 'api-client.ts',
  detail: 'ETIMEDOUT after 30s calling payment API'
});

Output:

{
  "entries": [{
    "id": "sia_abc123",
    "type": "error",
    "severity": "high",
    "tags": ["network", "timeout", "payment"],
    "actionable_insight": "Error detected in api-client.ts: ETIMEDOUT after 30s calling payment API. Consider adding error handling or input validation for this scenario.",
    "suggested_rule": "WHEN operating in api-client.ts THEN guard against: ETIMEDOUT after 30s calling payment API"
  }]
}

Error Handling

The skill throws standard JavaScript errors for invalid input:

  • Missing required fields (type, context, detail)
  • Invalid event type (not one of: error, correction, learning, pattern)
  • Invalid field types (e.g., context must be string)

Local vs Cloud: Why Local?

FeatureCloud API (Claw0x Gateway)Local Skill (This)
Setup Time2 min (get API key)30 sec (install skill)
PrivacyData sent to cloudData stays local ✅
Offline❌ Requires internet✅ Works offline
Latency50-200ms (network)<1ms (local) ✅
CostFree (but requires account)Free (no account) ✅
Multi-AgentCentralized analyticsManual aggregation
PersistenceYou controlYou control

When to Use Local (This Skill)

  • Single-agent, local development ✅
  • Need offline capability ✅
  • Prefer complete privacy ✅
  • Want zero latency ✅
  • Don't want to manage API keys ✅

When to Use Cloud (Claw0x Gateway)

  • Multi-agent fleet management
  • Need centralized analytics across agents
  • Want cloud-based aggregation and insights
  • Building agent-as-a-service products

Note: Claw0x also offers a cloud version of this skill at claw0x.com/skills/self-improving-agent for users who need centralized analytics.


How It Fits Into Your Agent Workflow

┌─────────────────────────────────────────────────────────────┐
│                     Your AI Agent                            │
└─────────────────────────────────────────────────────────────┘
                            │
                            ├─ Task Execution
                            │
                ┌───────────┴───────────┐
                │                       │
            ✅ Success              ❌ Error/Correction
                │                       │
                │                       ├─ Log Locally
                │                       │  agent.run('self-improving-agent', ...)
                │                       │
                │                       ├─ Get Insights
                │                       │  {severity, tags, 
                │                       │   actionable_insight,
                │                       │   suggested_rule}
                │                       │
                │                       └─ Apply Rule
                │                          agent.addRule(...)
                │
                └─ Continue

Integration Points

  1. Error Handler — Catch exceptions, log locally
  2. User Feedback Loop — Capture corrections, extract delta
  3. Batch Review — End of day, process all events
  4. Rule Application — Update agent config with suggested rules
  5. Analytics Dashboard — Visualize learning trends over time

Why Use This Skill?

Complete Privacy

  • All processing happens locally — your learning data never leaves your machine
  • No external API calls, no data transmission
  • Perfect for sensitive or proprietary agent workflows

Zero Latency

  • Sub-millisecond response times — no network overhead
  • Real-time feedback for agent adaptation
  • Works in high-frequency trading, robotics, or other latency-sensitive applications

Works Offline

  • No internet required — perfect for air-gapped environments
  • Edge computing, IoT devices, embedded systems
  • Reliable even in poor network conditions

No API Costs

  • Completely free — no API key, no usage limits, no billing
  • Process millions of events without worrying about costs
  • Ideal for high-volume agent fleets

Provided by Claw0x

  • Trusted source — developed and maintained by Claw0x
  • Part of the Claw0x skills ecosystem
  • Also available as cloud API for centralized analytics

About Claw0x

Claw0x is the native skills layer for AI agents — providing both local skills (like this one) and cloud APIs for agent capabilities.

Explore more skills:

Why Claw0x?

  • One unified ecosystem for agent skills
  • Both local and cloud options
  • Security scanned (OSV.dev integration)
  • Built for OpenClaw, LangChain, and custom agents

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

95.03%
按下载量换算8,476

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills