跳到主内容
智客 ZICQ

技能库 智客分类:Agent 工作流 self-improving-agent

Self Improving Agent

失败后使用,用户校正,重复的工作流程问题,或验证成功,都揭示出可重复使用的经验教训. 抓取被绑定的已编辑候选人,运行可执行的行为 evals,并将验证与应用分离于耐用指导.

33592 安装量

官方网址:skills.sh

技能介绍

先看中文介绍;官方 description 原文单独保留,不改写 SKILL.md。

做什么

失败后使用,用户校正,重复的工作流程问题,或验证成功,都揭示出可重复使用的经验教训. 抓取被绑定的已编辑候选人,运行可执行的行为 evals,并将验证与应用分离于耐用指导.

何时用

官方 description 未单独写出 Use when。按规范,代理会在用户任务与这段 description 的关键词匹配时激活本技能。

代理如何加载

按 Agent Skills 渐进披露:启动时只加载 name 与 description(约 100 token);任务匹配后才读入整份 SKILL.md 正文;scripts/、references/、assets/ 仅在需要时再读。 本文件正文结构:Self-Improving Agent、Use This Skill When、Required Outcome、Start Packet、Lifecycle、1. Capture the Signal。 其中含规范建议的小节:边界情况。

文件分析

文件分析:除 SKILL.md 外,正文引用了 references/eval-artifact.md、references/learning-lifecycle.md,属于带资源的技能包,这些文件按需再读。

官方 description(原文)

Use after a failure, user correction, repeated workflow problem, or validated success reveals a reusable lesson. Captures bounded redacted candidates, runs executable behavior evals, and separates validation from application in durable guidance.

Self-Improving AgentUse This Skill WhenRequired OutcomeStart PacketLifecycle1. Capture the Signal2. Assess Reusability3. Validate4. Validate, Apply, or Reject5. Prove the LoopKnowledge ExportHost Boundary

· allowed-tools:Read, Write, Edit, Bash, Grep, Glob

来源分类:skills.sh agent-skill

SKILL.md 与 Agent 调用

官方规范 ↗
name
self-improving-agent
description
Use after a failure, user correction, repeated workflow problem, or validated success reveals a reusable lesson. Captures bounded redacted candidates, runs executable behavior evals, and separates validation from application in durable guidance.
allowed-tools
Read, Write, Edit, Bash, Grep, Glob实验字段,支持情况取决于客户端;字段声明本身不会授予工具权限。
  1. 发现技能客户端向 Agent 提供名称与描述目录。
  2. 匹配与调用用户指定或任务匹配后,载入 SKILL.md 指令。
  3. 按需加载按步骤读取参考文档、使用脚本与素材。
指令中引用的文件 · 2
  • references/eval-artifact.md
  • references/learning-lifecycle.md

以下路径提取自原文;文件是否齐全请以来源仓库中的完整目录为准。

具体调用语法与可用工具以目标 Agent 客户端为准。 查看调用机制说明 ↗

安装这个技能

Skills CLI ↗

先选择目标 Agent 和安装范围,保留技能包的附属文件,安装后检查客户端能否发现该技能。

该技能引用了附属文件,请从来源获取完整目录;仅复制 SKILL.md 可能缺少依赖。

交给 Agent 安装

复制安装指令给支持 Agent Skills 的代理,确认其中的目标目录与客户端匹配。

把 Agent Skill「self-improving-agent」安装到我的项目:SKILL.md 原文与官方 description 见 https://zicq.com/zh/skills/skl-9f221af81e65bab1-Self-Improving-Agent.html
请存为 .cursor/skills/self-improving-agent/SKILL.md 或 .claude/skills/self-improving-agent/SKILL.md,frontmatter 的 name 与 description 保持原样,不要改写。
该技能还带 scripts/、references/、assets/ 等文件,请从 https://github.com/zhaono1/agent-playbook 取完整目录,不要只建一个 SKILL.md。

GitHub 完整包 ↗

终端安装 · Skills CLI

需要 Node.js 与 npx。先查看仓库技能列表,确认实际名称。

npx skills add 'https://github.com/zhaono1/agent-playbook' --list

npx skills add 'https://github.com/zhaono1/agent-playbook' --skill 'self-improving-agent'

CLI 会交互选择目标 Agent,默认安装到项目;用户级安装使用 -g。先通过查看命令核对仓库内容,再用 npx skills list 检查已安装技能。

阅读排版
--- name: self-improving-agent description: Use after a failure, user correction, repeated workflow problem, or validated success reveals a reusable lesson. Captures bounded redacted candidates, runs executable behavior evals, and separates validation from application in durable guidance. allowed-tools: Read, Write, Edit, Bash, Grep, Glob --- # Self-Improving Agent Turn evidence from completed work into a small, auditable behavior change. The default result is a candidate or no change—not an automatic rewrite of skills. ## Use This Skill When - A tool or workflow failed in a way that may recur. - The user corrected an assumption, requirement, or operating rule. - The same workaround appeared more than once. - A focused test proved a better reusable method. - The user asks to review or consolidate learning candidates. Do not use it for routine session summaries, raw transcript storage, speculative ideas without evidence, or project facts that belong in project documentation. ## Required Outcome Every run ends in exactly one state: 1. `candidate`: reusable but not yet validated. 2. `validated`: representative evidence supports the lesson, but no owner change is claimed yet. 3. `applied`: the validated lesson was installed in one named durable owner with a change reference. 4. `rejected`: disproved, unsafe, too specific, or obsolete. 5. `superseded` or `rolled_back`: an applied/validated lesson was replaced or reverted. 6. `no-delta`: no reusable behavior change was found. 7. `open-question`: evidence is insufficient and the missing proof is named. An artifact is not proof of improvement. An applied lesson must change future behavior and have a representative check that demonstrates the change. ## Start Packet Before editing durable guidance, state: - Future behavior: what the agent should do differently next time. - Representative task: one concrete scenario that should now succeed. - Evidence: current source, failure output, user correction, or focused test. - Owner: the one skill, instruction file, script, or runtime component that owns it. - Write boundary: files allowed to change and information that must remain local. - Proof: the command, eval, or review that confirms the new behavior. If any item is unknown, capture a candidate and stop before validation or application. ## Lifecycle ### 1. Capture the Signal Prefer facts over interpretation. Record only the minimum reusable summary; do not copy transcripts, tool inputs, credentials, private paths, or customer data. Claude Code failure hooks explicitly enabled with `apb init --hooks` can call: ```bash agent-playbook self-improve ``` Manual corrections or successes use an explicit summary and evidence label: ```bash apb self-improve capture \ --kind correction \ --summary "Verify the current source before relying on cached state" \ --evidence "focused-test" ``` The CLI stores redacted events and deduplicated candidates under `~/.agent-playbook/self-improvement/`. Override the root with `AGENT_PLAYBOOK_DATA_DIR` or `--data-dir`. ### 2. Assess Reusability Keep a candidate only when all are true: - It describes future behavior, not just what happened. - It is useful beyond one private task or repository. - It does not conflict with a current authoritative source. - A narrow owner and a realistic validation path exist. Use `apb behavior inbox` to inspect the prioritized queue. Repeated evidence increases occurrence count; it does not automatically increase truth. Use `apb behavior owners --repo .` for local suggestions, but treat every result as a review candidate rather than an ownership decision. ### 3. Validate Choose the smallest proof that can falsify the candidate, encode it as an executable artifact, and run it with `apb self-improve eval`. See `references/eval-artifact.md` for the schema and safety boundary. | Candidate | Minimum proof | |---|---| | Prompt or workflow rule | Representative prompt plus rubric | | CLI/runtime behavior | Focused automated test | | External integration | Live capability check against current docs/runtime | | Safety rule | Negative test showing the unsafe path is blocked | | Repeated heuristic | Multiple independent episodes or explicit human confirmation | Separate facts, hypotheses, and missing evidence. Structural validation alone does not prove that guidance is semantically current or executable by the host. ### 4. Validate, Apply, or Reject Run the artifact first. A baseline scenario is recommended when the previous behavior can be reproduced safely; at least one candidate scenario is required: ```bash apb self-improve eval cand-123 --artifact behavior-eval.json apb self-improve review cand-123 \ --decision validate \ --reason "baseline reproduced and candidate scenarios passed" \ --eval-result /path/printed/by/the/eval/command.json ``` Validation accepts only a passing CLI-generated eval result for the same candidate. It does not claim runtime behavior changed. Generate a local Behavior Change Proposal before editing the owner: ```bash apb behavior proposal cand-123 \ --owner "skill:self-improving-agent" \ --output behavior-proposal.md ``` The proposal contains the behavior diff intent, eval proof, acceptance criteria, privacy boundary, and rollback plan. It does not edit the owner or create a remote pull request. After changing exactly one durable owner, record the application separately: ```bash apb self-improve review cand-123 \ --decision apply \ --reason "installed after the focused test passed" \ --owner "skill:self-improving-agent" \ --change-ref "commit:abc123" ``` Other decisions: ```bash apb self-improve review cand-123 --decision observe --reason "needs a second episode" apb self-improve review cand-123 --decision reject --reason "project-specific exception" ``` Apply into the narrowest owner: 1. Executable test, script, or validator when behavior can be enforced. 2. The owning skill or its reference when agent judgment is required. 3. Project instructions only for project-wide constraints. 4. A knowledge notebook for durable facts that should be retrieved, not always loaded. Never silently modify repository rules, publish packages, or trigger external actions as a side effect of capture. ### 5. Prove the Loop Run the representative task after application. Report: - candidate id and final state; - evidence used and what remains uncertain; - durable owner changed; - executable eval result and artifact hash; - rollback path. If the new rule does not change the representative behavior, revert or reject it. ## Knowledge Export Export applied rules and open candidates as Markdown for Obsidian or another local knowledge system: ```bash apb self-improve export --output /path/to/vault/Agent/Learning.md ``` The export is a sink, not the source of truth. Candidate and active-rule state remain structured and auditable in the CLI data directory. ## Host Boundary Skills describe judgment; host adapters provide events and actions. Check the current host before claiming support: - Claude Code: deterministic failure hook installed only by explicit `apb init --hooks`. - Codex, Gemini, DeepSeek Harness: skill distribution is supported; learning event wiring depends on each host's current extension API. - Unsupported hooks must remain manual or adapter-specific, never simulated by undocumented behavior. Use `apb conformance` to inspect local-static contracts. A `proven` distribution or hook configuration does not prove host discovery or runtime invocation; those remain `unverified` until an observed host run supplies bounded evidence. See `references/learning-lifecycle.md` for schemas and adapter contracts. Use `evals/cases.json` with `evals/rubric.md` when changing this skill. ## Done Checklist - [ ] Candidate/no-delta decision is explicit. - [ ] Stored text is minimal, redacted, and portable. - [ ] Current authoritative sources were checked when relevant. - [ ] Validation uses a passing executable eval result for the same candidate. - [ ] Application names one durable owner and a concrete change reference. - [ ] Representative behavior was tested after application. - [ ] No private project detail entered public skill assets.

相关技能

Agent 工作流

Skill Creator

创造有效技能指南。 当用户想创造出新的技能(或更新现有的技能),以专业知识,工作流程,或工具集成来扩展克洛德的能力时,应该使用这种技能.

Agent 工作流

Clawdhub

使用ClawdHub CLI搜索,安装,更新并发布从taladhub.com的代理技能. 需要获取苍蝇上的新技能时使用,将安装的技能同步到最新版本或特定版本,或者发布 npm-instainddhub CLI 的新/更新的技能文件夹.

Agent 工作流

Agent Team Orchestration

管弦乐团多代理团队,任务设定周期,交接协议,审查工作流程. 使用时间: (1)建立2+特派员队伍,具有不同专业,(2)确定任务路线和生命周期(收录框_ spec_建设_审查_完成),(3)在特派员之间制定交接协议,(4)建立审查和质量关口,(5)管理特派员之间的交流和文物共享.

Agent 工作流

Superpowers

Spec-first,TDD,子代理驱动的软件开发工作流程. 当:(1)构建任何新功能或应用——触发脑暴_计划_子代理执行回路,(2)调试出一个bug或测试失败——触发系统性的根起过程,(3)用户说"让我们构建","帮助我计划","我想添加X",或"这个被打破",(4)完成一个功…