360 Secure SkillHub
360 安全技能中心

Self Improving Agent

该技能把命令失败、用户纠正、能力缺口和重复绕行记录到 .learnings/ 下的 LEARNINGS.md、ERRORS.md、FEATURE_REQUESTS.md,并按类型把可复用条目提升到 SOUL.md、AGENTS.md、TOOLS.md 等工作区记忆文件;附带条目格式示例、Hook 设置说明、环境检查与技能提取脚本。

ollieb89
ollieb89
热度 53.79
最近更新 2026-05-11 17:28:50
分类:知识依赖:读写文件 / 代码执行应用场景:笔记整理 / 工作流 / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add self-improving-agent-ollieb89
Metadata
name
self-improving-agent
description
Capture errors, corrections, and recurring patterns into structured `.learnings/` logs, then promote durable guidance into workspace memory files. Use when commands fail, users correct output, missing capabilities are requested, or new best practices should be preserved across sessions.

Self-Improving Agent

Use this skill to turn execution feedback into reusable operational knowledge.

Quick workflow

  1. Detect signal: error, correction, capability gap, or repeated workaround.
  2. Log to .learnings/ with the right entry type.
  3. Resolve or promote high-value patterns into durable workspace files.
  4. Reuse scripts/hooks to keep capture consistent.

Use bundled resources

  • Entry examples and formats: references/examples.md
  • Hook setup for reminders/error detection: references/hooks-setup.md
  • OpenClaw workspace integration: references/openclaw-integration.md
  • Reminder hook script: scripts/activator.sh
  • Command-error detector: scripts/error-detector.sh
  • Skill extraction scaffold: scripts/extract-skill.sh
  • Environment checks: scripts/check_env.sh
  • Log templates: assets/LEARNINGS.md, assets/SKILL-TEMPLATE.md

Log targets

  • .learnings/LEARNINGS.md: corrections, knowledge gaps, best practices
  • .learnings/ERRORS.md: command/tool/runtime failures
  • .learnings/FEATURE_REQUESTS.md: requested capabilities not yet supported

Promotion rules

Promote broadly reusable learnings out of .learnings/:

  • behavior/style -> SOUL.md
  • workflow/orchestration -> AGENTS.md
  • tool constraints/gotchas -> TOOLS.md

Update original entries with status transitions (resolved, promoted, wont_fix) and references.

Commands

# Verify scripts and learnings directory setup
bash workspace/skills/self-improving-agent/scripts/check_env.sh

# Dry-run extraction of a new skill from a recurring pattern
bash workspace/skills/self-improving-agent/scripts/extract-skill.sh my-pattern --dry-run