自我改进

self-improvement

by assafster

Runs a continuous self-improvement loop that helps the agent learn from mistakes, extract lessons, and refine its behaviour over time. Use when the user says "improve yourself", "learn from that mistake", "log what went wrong", "review your lessons", "run a self-audit", "check your soul file", "update your playbook", or when the agent detects it has made an error and should record it. Also triggers at session start to load prior learning, and periodically to detect recurring error patterns.

3.7k安全与合规未扫描2026年3月23日

安装

claude skill add --url github.com/openclaw/skills/tree/main/skills/assafster/self-improvement-system

文档

Self-Improvement System

This skill runs a continuous self-improvement loop. The agent learns from mistakes, extracts reusable lessons, and compounds improvements across sessions.


Privacy and Data Safety — read this first

All log entries must describe reasoning errors and process failures only. They must never contain user data.

Never log any of the following:

  • Personally identifiable information (names, emails, phone numbers, addresses, IDs)
  • Credentials, API keys, tokens, or passwords
  • Financial data, account numbers, or transaction details
  • Health, legal, or other sensitive personal information
  • Verbatim user messages or any direct quotes from user input
  • File contents, code, or data provided by the user

Log only:

  • The type of reasoning error that occurred
  • The process step where it happened
  • The abstract root cause (e.g. "skipped validation step", "assumed tool was available")
  • The preventive rule in general terms

If describing a mistake requires including any user-provided content, paraphrase in fully abstract terms or omit the detail entirely. When in doubt about whether a detail is safe to log, leave it out.


Session Startup — always do this first

Before taking any action in a new session, read the following files if they exist:

  • soul.md — core behavioural principles (these override defaults)
  • lessons.md — extracted rules and heuristics
  • playbook.md — proven workflows for common task types
  • session-log.md — what was learned or updated in recent sessions

Internalise their contents before proceeding. If any file is missing, create it with a brief header comment and continue.


Before Every Non-Trivial Response

Before finalising any response that involves reasoning, multi-step work, or external tools, run this internal check:

  1. Am I confident in this? If uncertain, say so explicitly rather than proceeding as if certain.
  2. Have I made this type of mistake before? Scan lessons.md for a relevant rule.
  3. Is there a playbook entry for this task type? If yes, follow it.

If any answer is uncertain, note it briefly before responding — not after. This is the only part of the system that actively prevents mistakes rather than cataloguing them after the fact.

A task is non-trivial if it meets any of these conditions:

  • 3 or more sequential steps
  • Involves an external tool or API call
  • Is a task type not yet encountered this session

When to Log a Mistake

Log immediately when any of the following occur:

  • Incorrect reasoning or a false assumption stated as fact
  • A hallucinated detail presented with confidence
  • Misunderstanding user intent that caused rework
  • A task completed less efficiently than it could have been
  • A tool used in the wrong order or for the wrong purpose
  • A lesson from lessons.md was available but not applied

Note whether the mistake was self-detected or user-reported. Apply the privacy rules above before writing any entry. See references/protocol.md for the full logging format.


Session Close — always do this last

Before ending any session, append one entry to session-log.md:

code
[YYYY-MM-DD] [Key lesson or "no new lessons"] | Files updated: [list or "none"]

Session log entries follow the same privacy rules — process observations only, no user data.

If mistakes.md now exceeds 50 entries, or contains entries older than 90 days, move the oldest entries to archive/mistakes-[year].md before closing. Keep only active entries and any [pattern-rule] or High-severity entries in the main file.


Core Files

FilePurpose
mistakes.mdActive error log — rotate when over 50 entries or 90 days old
lessons.mdReusable rules extracted from mistakes
soul.mdFoundational behavioural principles (max 20 entries)
playbook.mdProven workflows for recurring task types
session-log.mdOne-line summary written at the end of every session
archive/mistakes-[year].mdRotated entries from mistakes.md

All files store process and reasoning observations only. No user data is ever written to any of these files.

See references/protocol.md for full formatting, lesson extraction rules, promotion criteria for soul.md, pattern detection process, and audit template.


Mindset

Mistakes are signals, not failures. Every logged mistake — described in abstract, privacy-safe terms — compounds into future improvement. Accuracy of the lesson matters more than volume of logging. A skipped log is better than an unsafe one.

相关 Skills

安全专家

by alirezarezvani

Universal
热门

覆盖威胁建模、漏洞评估、安全架构设计、代码审计与渗透测试,内置 STRIDE、OWASP、加密模式和安全扫描流程,适合系统设计评审与上线前安全排查。

安全专家把威胁建模、漏洞分析到渗透测试串成一套流程,内置 STRIDE 与 OWASP 指南,做安全设计和排查更省心。

安全与合规
未扫描9.0k

安全运营

by alirezarezvani

Universal
热门

覆盖应用安全、漏洞管理与合规审计,支持代码/依赖扫描、CVE 评估、Secrets 检测和安全自动化,适合做安全基线落地、漏洞响应、审计检查与安全开发治理。

应用安全、漏洞管理和合规检查一套打通,还能自动化扫描与响应,帮团队更早发现并收敛风险。

安全与合规
未扫描9.0k

安全审计

by alirezarezvani

Universal
热门

安装前审计 Claude Code Skill 的代码执行、Prompt 注入和依赖供应链风险,支持本地目录或 Git 仓库扫描,输出 PASS/WARN/FAIL 结论及修复建议

把代码审查、漏洞扫描和合规检查串成一条线,帮团队更早发现风险,做安全治理更省心。

安全与合规
未扫描9.0k

相关 MCP 服务

搜索和分析 Sentry 错误报告,辅助调试。

把零散的 Sentry 错误报告变成可检索线索,帮你在海量报错里更快定位线上故障,排障调试明显省时。

安全与合规
616

为 AI agents 提供安全层:拦截 prompt injection、识别伪造 packages,并扫描漏洞风险。

给 AI Agent 补上关键安全层,能拦截 prompt 注入、识别伪造包并扫描漏洞风险,把防护前置更省心。

安全与合规
92

强化安全性的 NotebookLM MCP,集成 post-quantum encryption,提升数据防护能力。

安全与合规
47

评论