闲社服务运行正常AI智能体自动化平台
c

自我优化爪

技能标识:claw-self-improving-plus

Turn raw mistakes, corrections, discoveries, and repeated decisions into structured learnings and promotion candidates. Use when the user wants a conservative self-improvement workflow that captures lessons, scores reuse value, deduplicates similar learnings, drafts anchored candidate patches for SOUL.md, AGENTS.md, TOOLS.md, or MEMORY.md, reviews them through an approval step, and keeps human control before any long-term file edits.

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.0.2
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

自我优化爪

技能名称: claw-self-improving-plus
详细描述:

爪式自我改进增强版

构建一个保守的学习流水线。优化信号,而非杂乱信息。

核心立场

默认情况下,不要自动重写长期记忆或行为文件。

使用以下流程:

  1. 1. 捕获原始学习候选。
  2. 将其规范化到结构化模式中。
  3. 对每个条目进行推广价值评分。
  4. 检测重复项或合并候选。
  5. 将重复学习内容整合为更强的记录。
  6. 构建优先级学习积压清单。
  7. 起草锚定候选补丁。
  8. 经人工审批后审查补丁。
  9. 仅应用已批准的补丁。

学习类型

使用以下类型:

  • - mistake:智能体做错了某事
  • correction:用户纠正了错误的假设或行为
  • discovery:关于环境、工具、偏好或工作流的有用事实
  • decision:持久的偏好、策略或选定的设计
  • regression:不应再次发生的已知失败模式

最小记录模式

将每个学习候选存储为JSON,包含以下字段:

  • - id:稳定的短标识符或带时间戳的ID
  • timestamp
  • source
  • type
  • summary
  • details
  • evidence
  • confidence
  • reusevalue
  • impactscope
  • promotiontargetcandidates
  • status
  • related_ids

默认枚举值:

  • - confidence:low|medium|high
  • reusevalue:low|medium|high
  • impactscope:single-task|project|workspace|cross-session
  • status:captured|scored|merged|promoted|rejected

路由规则

按目标推广,而非凭感觉:

  • - SOUL.md:持久的风格、个性、语音规则
  • AGENTS.md:操作规则、工作流、安全/流程经验
  • TOOLS.md:环境特定命令、路径、模型/工具偏好
  • MEMORY.md:关于用户、项目、决策、历史的重要长期事实
  • 仅限每日/原始存储:低置信度或高度局部的观察

如果某个学习内容明显不值得推广,则保留在原始日志中。

评分启发式方法

在五个维度上对每条记录评分:

  1. 1. reusevalue:将来是否会再次有用?
  2. confidence:支持程度如何?
  3. impactscope:影响范围有多广?
  4. promotionworthiness:是否应成为持久的规则或记忆?
  5. promotiontarget_candidates:如果推广,应放在哪里?

使用以下实用评分标准:

  • - 高推广优先级:重复错误、明确的用户偏好、破坏任务的环境事实、具有实际成本的回归
  • 中等优先级:出现超过一次的有用工作流模式
  • 低优先级:一次性琐事、推测性解释、情绪噪音、临时状态

锚定补丁生成

优先使用锚定插入或精确替换,而非盲目追加。

每个补丁可能包含:

  • - targetfile
  • anchor
  • insertmode
  • oldtext
  • newtext
  • suggestedentry
  • approved
  • reviewstatus

当旧文本已知时,使用精确替换。
当目标部分已知时,使用锚定插入。
仅将追加作为后备方案。

学习存储布局

使用稳定的.learnings/结构。参见references/learning-store-layout.md。

推荐文件:

  • - .learnings/inbox.jsonl
  • .learnings/scored.jsonl
  • .learnings/merge.json
  • .learnings/patches.json
  • .learnings/apply-report.json
  • .learnings/archive/

默认工作流

1. 捕获

将原始学习内容追加到.learnings/inbox.jsonl。

使用scripts/capture_learning.py创建规范化记录。

2. 评分

对收件箱或批量导出运行scripts/score_learnings.py。

3. 审查重复项

运行scripts/merge_candidates.py对可能的重复项进行分组。

4. 起草补丁

运行scripts/draft_patches.py生成可审查的锚定补丁候选。

5. 审查

使用scripts/review_patches.py列出、批准、拒绝或跳过候选。

示例:

bash
python scripts/review_patches.py .learnings/patches.json list
python scripts/review_patches.py .learnings/patches.json act --index 1 --action approve
python scripts/review_patches.py .learnings/patches.json act --index 2 --action reject --note too vague

6. 仅在批准后应用

运行scripts/applyapprovedpatches.py。

此脚本仅应用明确批准的条目。
它验证允许的目标,支持--dry-run,跳过已存在的重复条目,并优先使用精确替换,然后是锚定插入,最后是追加后备。

输出风格

报告结果时,使用以下结构:

  • - newcandidates:计数
  • highpriority:计数
  • mergegroups:计数
  • patchcandidates:简短项目符号列表
  • needshumanreview:是

资源

参考

  • - 评分标准:参见references/scoring-rubric.md
  • 补丁目标指南:参见references/promotion-targets.md
  • 学习存储布局:参见references/learning-store-layout.md

脚本

  • - scripts/capturelearning.py
  • scripts/scorelearnings.py
  • scripts/mergecandidates.py
  • scripts/draftpatches.py
  • scripts/detectpatchconflicts.py
  • scripts/consolidatelearnings.py
  • scripts/buildbacklog.py
  • scripts/agebacklog.py
  • scripts/reviewbacklog.py
  • scripts/checkexistingpromotions.py
  • scripts/reviewpatches.py
  • scripts/renderreview.py
  • scripts/applyapprovedpatches.py
  • scripts/archivebatch.py
  • scripts/runpipeline.py

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 claw-self-improving-plus-1776127462 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 claw-self-improving-plus-1776127462 技能

通过命令行安装

skillhub install claw-self-improving-plus-1776127462

下载

⬇ 下载 claw-self-improving-plus v1.0.2(免费)

文件大小: 24 KB | 发布时间: 2026-4-15 12:07

v1.0.2 最新 2026-4-15 12:07
Version 1.0.2 of claw-self-improving-plus

- Documentation renamed from "Learning Promoter" to "Claw Self Improving Plus"
- No structural or workflow changes; overall content remains the same
- No file or functional changes detected—update is limited to documentation wording/branding
返回顶部