self-optimizing-review
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "self-optimizing-review" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-73bf23c69d623e8baed7214d23caa06c30093dacc003fb1ae69effa72f8cf785. Verify the upstream source and version against https://skillhub.cn/skills/user_03fbb66c/guoyuanxin-self-optimizing-review before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Self-optimizing review closed-loop tool that connects to four upstream automations (mistake-book extraction / patches / extraction flywheel / skill optimization) and only adds the two elements “experimental validation” and “retain-best/eliminate-worst” to complete the loop without duplicating work. Triggered by automated reviews, mistake analysis, guardrail regression, and retain-best/eliminate-worst processes.
Introduction source: third_party · user_03fbb66c · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: self-optimizing-review
description: 自优化复盘闭环 —— 真接现有 4 个上游自动化(错题本提炼/补丁/萃取飞轮/Skill优化),只补「实验验证 + 留优汰劣」两环,不重造。触发:自动化复盘、错题分析、护栏回归、留优汰劣。
agent_created: true
source: "Superpowers 6.0 方法论吸收 + 现有 4 自动化真实产出校准"
slug: guoyuanxin-self-optimizing-review
displayName: 自优化复盘闭环
version: 1.0.0
summary: 真接现有 4 个上游自动化,只补「实验验证 + 留优汰劣」两环的自优化复盘引擎,把错题本/护栏/Loop 从被动记录升级为主动实验+留优汰劣。
license: MIT自优化复盘闭环(Self-Optimizing Review)
一句话:本 skill 是现有 4 个自优化自动化的「第 5 环」——它们负责记录/提炼/送审/优化,本环负责把它们的产出拿来做受控实验验证 + 留优汰劣,补上系统唯一真缺的两环。不重造任何已有能力。
定位:第 5 环(只补两件事)
| 环 | 谁在做 | 本 skill 是否重造 |
|---|---|---|
| 记录错题 | 错题本自动提炼(23:41) | ❌ 只读其 error-index.json |
| 生成补丁 | 错题本驱动Skill补丁(03:30) | ❌ 只读其候选补丁 |
| 送审/萃取 | ZC自进化萃取飞轮(19:00) | ❌ 只读数其优化后 skill |
| 优化 Skill | Skill自动优化(一三五01:01) | ❌ 只读其产物 |
| 实验验证 | 本 skill | ✅ 新增 |
| 留优汰劣 | 本 skill | ✅ 新增 |
上游衔接(真实产出路径 + 时间,已核对)
23:41 错题本自动提炼 → C:\Users\37614\WorkBuddy\Claw\.learnings\error-index.json
03:30 错题本驱动Skill补丁 → Skill 候选补丁(pending_patches/*.json 或 *.patch)
19:00 ZC自进化萃取飞轮 → 送审项(飞轮自身送审,本环只读其优化后 skill)
01:01 Skill自动优化(一三五) → 优化后 skill(对其跑护栏回归)
────────────────────────────────────────────
04:00 本环运行(错峰窗口:03:30→04:31 之间纯净,且能吃到前一夜 23:41 + 03:30 + 前晚 19:00)
两个真缺的环(实现)
环一:实验验证(受控)
脚本:scripts/run_experiment.py(沙箱,绝不改源/连库)
safety_guard_test:对真实模块的「只读/只增不删」护栏跑攻击用例(DROP/DELETE/INSERT/UPDATE 必拒、合法 SELECT 必过)deterministic_replay:基线 vs 候选的确定性重放比较(幂等/稳定)- 所有实验在内存/副本上进行,只读 + 比较 + 断言
环二:留优汰劣(ledger)
脚本:scripts/ledger.py + ledger/self_opt_ledger.json
- 每次实验写一条:
KEPT(降耗不降质→留用)/DISCARDED(失败或引入风险→记录原因,避免重复踩坑) - 纪律同源 Superpowers 6.0:只留"降耗不降质"的改进;反效果项坚决废弃
执行件清单
self-optimizing-review/
├─ SKILL.md # 本规格
├─ scripts/
│ ├─ self_opt_run.py # 主运行器(自动化 04:00 调用)
│ ├─ run_experiment.py # 实验验证沙箱
│ └─ ledger.py # 留优汰劣账本管理
├─ ledger/self_opt_ledger.json # 累计实验记录(只增不删)
├─ pending_escalations/ # 🔴 待拍板项(安全护栏回归失败时写入)
└─ reports/self_opt_report_YYYY-MM-DD.md # 每日报告
运行(managed python):
C:\Users\37614\.workbuddy\binaries\python\versions\3.13.12\python.exe \
C:\Users\37614\.workbuddy\skills\self-optimizing-review\scripts\self_opt_run.py
调度(夜间错峰,已落自动化)
- 自动化名:
自优化复盘·实验验证与留优汰劣 - 时间:
FREQ=DAILY;BYHOUR=4;BYMINUTE=0(04:00),validFrom=2026-07-15防补发 - 错峰依据:紧邻上游 03:30 补丁之后、04:31 公众号①之前;与 01:01 Skill优化 隔 3h
风险分级与升级
| 颜色 | 含义 | 本环动作 |
|---|---|---|
| 🟢 | 安全护栏回归 / 合规 lint(不动铁律) | 自动跑实验→KEPT 留用 / DISCARDED 记原因 |
| 🟡 | 需跑实验验证的改进项 | 跑实验→不降质则合入 |
| 🔴 | 安全护栏回归失败(DISCARDED 且涉安全) | 写 pending_escalations/ 待郭元新拍板,绝不自动改铁律 |
真实校准记录(build 期实测)
初版 EXP-QUOTE-RULE 合规 lint 误把 Python 三引号 docstring(含中文)判为中文双引号字符串 → 4/4 误报 DISCARDED(约束过度适得其反)。
修正:扫描前先剥除 docstring 与 # 注释 → 复测全 KEPT。这正是「留优汰劣」在 build 期的活例子:误判项被发现即修正,不带入生产。
与数据安全铁律的关系
- 本环只读上游产出 + 在沙箱跑实验,绝不改写源文件、绝不连生产 DB、绝不碰 L3 敏感数据
- 任何 DISCARDED 涉安全项只升级、不自动处置(铁律最高优先级)
- 与
integration-contract(只读/只增不删/脱敏)同源:复盘只新增发现,不改原始记录
参考
- Superpowers 6.0(TimLiu, 2026-07-06):AI 自优化 = 实验验证 + 留优汰劣 + 条件分层
- 关键反例:约束过度适得其反(限制思考→输出翻倍)→ 本环 lint 已避开此坑
- 现有 4 自动化:错题本自动提炼 / 错题本驱动Skill补丁 / ZC自进化萃取飞轮 / Skill自动优化
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 精准定位现有自动化流程的缺失闭环,实现实验验证与留优汰劣的工程价值
- 面向开发者自优化系统,具备高频实用性与可扩展性
Highlights
- 触发词覆盖完整:自动化复盘、错题分析、护栏回归、留优汰劣,边界清晰无歧义
Areas to improve
-
缺少独立 When to Use 章节 Reported severity: Minor
未设置显式 When to Use 章节,但触发场景已在 description 和正文中充分说明
Recommendation: 建议增加独立 When to Use 章节以提升可读性
Highlights
- 结构完整,含定位、衔接、实现、调度、风险分级等关键章节
- 提供真实校准记录与反例,增强可信度
Highlights
- 沙箱实验机制明确,杜绝源文件与生产 DB 操作
- 安全护栏失败自动升级至 pending_escalations,保障铁律优先
- ledger 只增不删设计确保审计可追溯
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.