proactive-self-improving-agent

proactive-self-improving-agent is a skill for Claude Code, Codex from L-LesterYu/OpenClaw-hot-skills-zh. It costs 206 tokens per session (4,258 once invoked), scanned A, original, MIT.

A set of rules for an AI coding agent to record errors, user corrections, missing abilities, and better methods in Markdown files. It can promote repeated lessons into longer-term capabilities with safeguards.

In plain words
What is it for?
It is for tracking failed commands, API problems, corrections, knowledge gaps, and task reviews so future work can improve.
Why use it?
It reduces repeated mistakes by giving the agent a written record of what went wrong and what it learned.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: mentions AGENTS.md; built for openclaw.

Good fit It is for tracking failed commands, API problems, corrections, knowledge gaps, and task reviews so future work can improve.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/l-lesteryu/openclaw-hot-skills-zh/proactive-self-improving-agent-zh
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add L-LesterYu/OpenClaw-hot-skills-zh --skill proactive-self-improving-agent-zh
Clone the repo
git clone --depth 1 https://github.com/L-LesterYu/OpenClaw-hot-skills-zh

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for proactive-self-improving-agent

README.md
[![agentmods](https://agentmods.dev/badge/skills/l-lesteryu/openclaw-hot-skills-zh/proactive-self-improving-agent-zh/github.svg)](https://agentmods.dev/skills/l-lesteryu/openclaw-hot-skills-zh/proactive-self-improving-agent-zh)
Your own site
<a href="https://agentmods.dev/skills/l-lesteryu/openclaw-hot-skills-zh/proactive-self-improving-agent-zh"><img src="https://agentmods.dev/badge/skills/l-lesteryu/openclaw-hot-skills-zh/proactive-self-improving-agent-zh/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for proactive-self-improving-agent

Your own site · 80×15
<a href="https://agentmods.dev/skills/l-lesteryu/openclaw-hot-skills-zh/proactive-self-improving-agent-zh"><img src="https://agentmods.dev/badge/skills/l-lesteryu/openclaw-hot-skills-zh/proactive-self-improving-agent-zh.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 206 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,258 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00206 $0.04258
Opus 5 $0.00103 $0.02129
Sonnet 5 $0.00041 $0.00852
Haiku 4.5 $0.00021 $0.00426

Measured 9d ago against content hash 8502c14ed668, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

proactive-self-improving-agent scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- 审查 SKILL.md 有无可疑命令(shell、curl、数据外传)
skills/proactive-self-improving-agent-zh/SKILL.md · 436 lines

How it starts

The opening of the file, as written. The whole thing — 436 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Proactive Self-Improving Agent

自动捕获经验 · 安全进化 · 记录轨迹

让 agent 在日常工作中自动识别错误、纠正和最佳实践,结构化记录,安全地将经验沉淀为长期能力。


目录

  1. 核心理念
  2. 经验记录系统
  3. 经验进化路径
  4. 操作日志
  5. 行为准则
  6. 快速参考

1. 核心理念

两条腿走路:

  • 记录 — 每次犯错、被纠正、发现更好做法时,立刻结构化记录
  • 进化 — 反复出现的经验自动晋升为永久能力,但有护栏防止漂移

核心法则:

如果一个经验值得记住,就必须写到文件里。脑子里的"记住了"不算数。

去重法则:

触发 ≠ 必须写入。每次触发时先判断:这个经验是否真正新颖?如果没什么可学的,或者本质上已经包含在已有条目中,直接跳过,不写入。避免用重复的低价值记录污染 .learnings/。


2. 经验记录系统

2.1 触发条件

检测到以下 7 种场景时,评估是否有新经验值得记录

# 场景 记录到 类别
1 命令/操作失败 ERRORS.md -
2 用户纠正("不对"/"应该是…"/"Actually…") LEARNINGS.md correction
3 用户需要不存在的能力 FEATURE_REQUESTS.md -
4 外部 API/工具出错 ERRORS.md -
5 发现自己知识过时/错误 LEARNINGS.md knowledge_gap
6 发现了更好的做法 LEARNINGS.md best_practice
7 任务完成时 LEARNINGS.md task_review
场景 7:任务完成触发(Task Review)

每次完成一个任务后,主动回顾

  • 这次过程中踩了什么坑?
  • 有没有走弯路?下次怎么做更快?
  • 有没有发现新的工具用法或技巧?
  • 有没有什么值得其他 agent 也知道的?

如果有真正新颖的经验 → 写入 LEARNINGS.md
如果没什么可学的,或已有条目已覆盖 → 跳过,不写入

学术场景扩展

在论文检索/分析场景中,额外关注:

  • 📚 论文关键结论 — 解析出的重要发现或反直觉结论
  • 🏷️ 分类决策 — 为什么把论文归入某个类别
  • ⚖️ 评分依据 — review 打分时的关键判断理由
  • 🔍 检索技巧 — 某个搜索策略特别有效或无效
检测关键词

纠正信号:

  • "不对" / "不是" / "错了" / "应该是" / "Actually" / "No, I meant"

能力请求信号:

  • "能不能…" / "有没有办法…" / "要是能…" / "Can you…"

知识空白信号:

  • 用户提供了你不知道的信息
  • API 行为和你的理解不一致
  • 文档内容已过时

2.2 文件体系

.learnings/
├── LEARNINGS.md          # 经验/纠正/最佳实践/任务回顾
├── ERRORS.md             # 错误日志
├── FEATURE_REQUESTS.md   # 能力请求
└── CHANGELOG.md          # 操作日志(详见第 4 节)

2.3 记录格式

Learning 条目
## [LRN-YYYYMMDD-XXX] category

**Priority**: low | medium | high | critical
**Status**: pending | resolved | promoted | promoted_to_skill
**Area**: research | infra | tools | docs | config

### 内容
简述:发生了什么、为什么错/不好、正确/更好的做法是什么。

### 建议修复
具体应该怎么改、改哪里。

### 元数据
- Source: error | correction | user_feedback | task_review | best_practice
- See Also: LRN-XXXXXXXX-XXX(关联条目)
- Pattern-Key: xxx(可选,用于递归模式检测)
- Promoted-To: AGENTS.md(仅晋升后填写)

---

Read the full file on GitHub · 436 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 436 lines · 206 tokens per session scan A 8502c14ed668

Subscribe to this mod's changes

proactive-self-improving-agent is a skill published in the GitHub repository L-LesterYu/OpenClaw-hot-skills-zh (54 stars, last pushed 5mo ago), licensed MIT. It adds 206 tokens to every session and 4,258 once invoked, about $0.0010 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

media-ingest

Ingest video, audio, PDF, book, screenshot, and GitHub repo content into the brain. Multi-format handling with entity extraction and backlink propagation. Covers video-ingest, youtube-ingest, and book-ingest subtypes.

garrytan/gbrain · 52 tokens

mem0-oss-to-platform

Plan and then execute a migration of a project from the mem0 open-source / self-hosted SDK (the local Memory class) to the mem0 Platform / hosted / managed SDK (the MemoryClient class). Use this whenever a developer wants to move, switch, or migrate their mem0 usage off OSS/self-hosted to the hosted API — e.g.…

mem0ai/mem0 · 273 tokens

Cortex

Operate Cortex, the LifeOS memory system — the typed Knowledge Archive (People, Companies, Ideas, Research with typed related: links) plus recall of prior work sessions, ISAs, and conversations. Search, add, harvest, develop, ingest, distill, graph-navigate, recall. USE WHEN cortex, knowledge, knowledge base, search…

danielmiessler/LifeOS · 196 tokens

memory

Use when the user asks to remember, recall, forget, update, search, or inspect durable OpenSquilla memory, including profile facts in USER.md and long-term notes in MEMORY.md or memory//.md.

opensquilla/opensquilla · 44 tokens

ha-data-stores

Map of Hope Agent's local data stores and safe read-only query workflow. Use when the user asks where Hope Agent stores data, wants to inspect sessions/messages/memory/logs/background jobs/knowledge indexes/settings, asks the model to query local app data, or debugging requires checking persisted state. Trigger…

shiwenwen/hope-agent · 115 tokens

establishing-project-context

Use when the user asks to establish shared project language, or project work exposes a conflicting, renamed, or deprecated domain term that needs active semantic modeling. Routine small tasks stay on the fast path.

GanyuanRan/Aegis · 45 tokens