Token导航 LogoToken导航TokenDH.com
待分类执行命令github未标认证来源可访问许可证需确认审计异常

self-improving-agent自我改进 Agent

Agent Skill

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

总安装

3,981

周安装

171

GitHub Stars

公开资料未说明

下载量

1,395
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:self-improving-agent(自我改进 Agent)
来源仓库:https://github.com/kimasplund/clawdbot-skills-pack
仓库路径:skills/self-improving-agent
安装命令:
npx skills add https://github.com/kimasplund/clawdbot-skills-pack --skill self-improving-agent
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/kimasplund/clawdbot-skills-pack --skill self-improving-agent

简介

self-improving-agent 记录任务执行中的错误和经验,帮助 Agent 持续优化能力。

  • 适用于希望让 Agent 沉淀问题、修正实践并识别能力缺口的场景。
  • 通过 npx skills add 命令安装,需结合原始 README 核验具体用法。
  • 安装前建议确认权限范围、维护状态及是否触发联网或文件操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Self-Improving Agent

Captures learnings, errors, and corrections to enable continuous improvement across sessions.

Activation Triggers

This skill automatically activates when:

TriggerWhat Gets LoggedLocation
Command failsError type, context, recovery suggestionlogs/failures_detailed.jsonl
User corrects"No, that's wrong...", "Actually..."logs/corrections.jsonl
Missing capability"Can you X?" where X isn't availablelogs/missing_capabilities.jsonl
API/tool failsFailure pattern, suggested fixlogs/failures_detailed.jsonl
Better approach foundOptimization learnedlogs/learnings.jsonl

How It Works

1. Automatic Logging (via hooks)

PostToolUse → enhanced-failure-logger.js → logs failures with context
UserMessage → correction-detector.js → detects "wrong/actually/try again"
Response → capability-tracker.js → detects unfulfilled requests

2. Learning Aggregation

All learnings flow to logs/learnings.jsonl:

{
  "timestamp": "2026-01-26T12:00:00Z",
  "type": "user_correction|tool_failure|missing_capability",
  "category": "factual_error|command_failed|web_browsing",
  "description": "what was learned",
  "source": "which detector"
}

3. Session Start Review

On each session start, recent learnings are shown:

=== Learning Review ===
[Learnings] 47 total entries
[Recent]
  • [tool_failure] Bash failed: timeout - WebFetch to external API...
  • [user_correction] User corrected: "No, use the other file..."
[Corrections] 12 user corrections logged
[Capability Gaps] Top requested:
  • send emails (5x)
  • browse web (3x)

4. QAVR Integration

Successful learnings boost Q-values for related memories, improving future retrieval.

Manual Commands

Review Learnings

# Show all learnings
cat ~/.claude/logs/learnings.jsonl | tail -20

# Show corrections only
cat ~/.claude/logs/corrections.jsonl | jq -s 'group_by(.correction_type) | map({type: .[0].correction_type, count: length})'

# Show capability gaps report
node ~/.claude/scripts/hooks/capability-tracker.js --report

Test Detection

# Test correction detector
node ~/.claude/scripts/hooks/correction-detector.js

# Test failure logger
node ~/.claude/scripts/hooks/enhanced-failure-logger.js

# Test capability tracker
node ~/.claude/scripts/hooks/capability-tracker.js

Learning Categories

Correction Types

  • factual_error - Wrong information provided
  • retry_request - User asked to try again
  • misunderstanding - Misinterpreted the request
  • failed_solution - Solution didn't work

Failure Types

  • permission_error - Access denied
  • not_found - File/resource missing
  • timeout - Operation timed out
  • network_error - Connection issues
  • syntax_error - Invalid syntax
  • api_error - External API failed
  • command_failed - Shell command failed
  • agent_failed - Subagent failed

Capability Categories

  • web_browsing - Internet access requests
  • image_processing - Image/photo handling
  • communication - Email/messaging
  • database_access - SQL/database queries
  • external_api - Third-party services
  • memory_persistence - Long-term memory

Configuration

In settings.json, these hooks enable self-improvement:

{
  "hooks": {
    "SessionStart": [...],  // Reviews learnings
    "PostToolUse": [
      {"matcher": "Bash", "hooks": [{"command": "enhanced-failure-logger.js"}]},
      {"matcher": "Task", "hooks": [{"command": "enhanced-failure-logger.js"}]}
    ]
  }
}

Benefits

  1. Learn from mistakes - Don't repeat the same errors
  2. Understand user preferences - Track what corrections mean
  3. Identify skill gaps - Know what features to build
  4. Improve over time - QAVR ranking gets better with feedback
  5. Context persistence - Learnings survive session restarts

Integration with Other Skills

SkillIntegration
QAVRSuccessful learnings boost memory Q-values
Memory ConsolidationPeriodic cleanup of old learnings
Confidence CheckReview learnings before major tasks
IR-v2Use learnings to inform pattern selection

Files

~/.claude/
├── logs/
│   ├── learnings.jsonl           # All learnings
│   ├── corrections.jsonl         # User corrections
│   ├── failures_detailed.jsonl   # Enhanced failure logs
│   ├── missing_capabilities.jsonl # Capability requests
│   └── capability_gaps.json      # Aggregated gaps
└── scripts/hooks/
    ├── correction-detector.js
    ├── enhanced-failure-logger.js
    ├── capability-tracker.js
    └── session-start.js (reviews learnings)

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

34.27%
按下载量换算478

Claude

28.57%
按下载量换算399

Cursor

19.25%
按下载量换算269

Gemini CLI

9.49%
按下载量换算132

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

可疑

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/kimasplund/clawdbot-skills-pack --skill self-improving-agent 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

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

来源信息

继续浏览同类 Skills