ai-error-evolution
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 "ai-error-evolution" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-a1c1bd7b636a489b8f5a4bfa04c8f43be7e62d530afb4f14f6d9b04346e0a242. Verify the upstream source and version against https://skillhub.cn/skills/user_638e256a/ai-error-evolution 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
AI error evolution closed-loop tool encompassing six steps: perceive → record → correct → verify → review → audit, designed to enable AI to continuously improve from mistakes.
Introduction source: third_party · user_638e256a · 1.0.3 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: ai-error-evolution
version: 2.1.0
author: CodeBuddy
description: 感知→记录→纠偏→验证→复习→审计,六步闭环让AI从错误中持续进化。AI知错进化引擎 v2.1
纯Python零依赖 | 10命令 | 574行 | 六步闭环:感知→记录→纠偏→验证→复习→审计
命令速查
| 命令 | 用途 | 示例 |
|---|---|---|
record |
记录错误 | python main.py record --type fact --severity major --context "报价" --error "算错了" --correction "二次核对" |
correct |
纠偏+生成规则 | python main.py correct --id ERR-xxx |
verify |
验证进化效果 | python main.py verify --id ERR-xxx --result passed |
review |
到期复习 | python main.py review |
audit |
进化审计报告 | python main.py audit |
list |
列出错误 | python main.py list [--status evolved] |
search |
搜索错误 | python main.py search --keyword "报价" |
feedback-write |
写作助手联动 | python main.py feedback-write --type format --severity minor --context "..." --error "..." --correction "..." |
writing-rules |
获取写作规则 | python main.py writing-rules |
6步闭环
感知错误 → 记录(record) → 纠偏(correct) → 验证(verify×3→evolved) → 复习(review) → 审计(audit)
- 感知:用户纠正/任务失败/自检发现/对比发现 → 调用
record - 记录:写入错误日志,按类型(fact/logic/format/procedure/omission)和级别(critical/major/minor/trivial)分类
- 纠偏:
correct生成纠偏规则写入知识库,安排1/3/7/30天遗忘曲线复习 - 验证:
verify --result passed,连续3次passed自动升级为 evolved;failed 重置计数 - 复习:
review检查到期项,review --complete完成复习 - 审计:
audit输出全链路进化报告
错误分级
| 级别 | 判定 | 示例 |
|---|---|---|
| critical | 导致用户错误决策 | 给错投标截止日期 |
| major | 核心事实/逻辑错误 | 关键条款理解反了 |
| minor | 细节偏差 | 格式参数小数点位错 |
| trivial | 表述不精确 | 用词不够准确但方向对 |
触发词(任一命中即触发)
AI纠错 AI进化 AI学习改进 AI知错 AI自我改进 错误记忆 知错能改 记录错误 纠偏 进化引擎
不触发场景
用户行为追踪 | 项目管理 | Bug追踪 | 团队协作 | 主观偏好分歧 — 本引擎是AI自我改进工具,不是通用日志系统
硬约束
- 不记录主观判断差异
- critical 错误立即通知用户,不静默记录
- 纠偏规则不可覆盖系统安全规则
- 纯本地存储,零网络依赖
示例输出
示例1:完整闭环(record→correct→verify×3→audit)
$ python main.py record --type fact --severity major --context "报价计算" --error "错误计算了总报价" --correction "使用含税价格二次核对"
{"status": "recorded", "error_id": "ERR-20260711-241d89cf", "message": "📝 错误已记录 [ERR-20260711-241d89cf]\n- 类型:fact | 级别:major\n- 错误:错误计算了总报价\n- 纠偏:使用含税价格二次核对\n- 状态:已记录,待纠偏"}
$ python main.py correct --id ERR-20260711-241d89cf
{"status": "corrected", "rule_id": "RULE-20260711-42d75ad0", "duplicate": false, "review_dates": ["1天后","3天后","7天后","30天后"], "message": "✅ 纠偏完成\n- 规则:当遇到场景 [报价计算] 时,注意 [使用含税价格二次核对]\n- 首次复习:1天后"}
$ python main.py verify --id ERR-20260711-241d89cf --result passed # ×3
{"status": "evolved", "verified_count": 3, "message": "🧪 验证passed [ERR-20260711-241d89cf],当前状态: evolved,累计验证: 3次"}
$ python main.py audit
{"date": "2026-07-11", "total_errors": 1, "corrected": 1, "verified_evolved": 1, "stable_knowledge": 1, "pending_review": 4, "by_severity": {"major": 1}, "recurrence_count": 0}
示例2:边界异常处理
$ python main.py record --type invalid --severity major --context "test" --error "test" --correction "test"
{"error": "无效错误类型: invalid,可选: {'fact', 'logic', 'format', 'procedure', 'omission'}"}
$ python main.py correct --id NOTEXIST
{"error": "未找到错误记录: NOTEXIST"}
$ python main.py verify --id NOTEXIST --result invalid
{"error": "无效验证结果: invalid,可选: {'passed', 'failed'}"}
$ python main.py record --type fact --severity critical --context "" --error "test" --correction "test"
{"error": "必填参数 --context 不能为空"}
示例3:联动接口(feedback-write + writing-rules)
$ python main.py feedback-write --type format --severity minor --context "写作风格" --error "改写后过于正式" --correction "降低正式度"
{"status": "recorded", "error_id": "ERR-20260711-8cddb833", "message": "📝 错误已记录\n- 类型:format | 级别:minor\n- 错误:改写后过于正式\n- 纠偏:降低正式度\n- 状态:已记录,待纠偏"}
$ python main.py writing-rules
{"count": 0, "rules": []}
输出JSON结构
{
"id": "ERR-20260711-241d89cf",
"timestamp": "2026-07-11T19:43:23+08:00",
"type": "fact",
"severity": "major",
"context": "报价计算",
"error_detail": "错误计算了总报价",
"correction": "使用含税价格二次核对",
"source": "user_correction",
"status": "evolved",
"review_schedule": [],
"verified_count": 3
}
文件结构
skills/ai-error-evolution/
├── SKILL.md # 本文件
├── main.py # 核心引擎(569行,10个CLI命令)
└── data/ # 运行时数据(自动创建)
├── error_log.json # 错误日志
├── evolution_log.json # 进化日志
├── review_schedule.json # 复习计划
└── knowledge_base.json # 纠偏知识库
联动
ai-humanized-writing:写作被拒→feedback-write写入→writing-rules检索→全局生效
ai-context-pollution-detector:反复犯错未纠偏→污染源
Current listing version
1.0.3
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供 AI 错误闭环进化机制,解决持续改进核心痛点
- 六步流程完整覆盖感知→记录→纠偏→验证→复习→审计
- 具备高频刚需特性,显著提升 AI 自我改进效率
Highlights
- 触发词覆盖全面且边界清晰
- 明确列出不触发场景,避免误触发
- description 位置正确且内容完整
Highlights
- 六步闭环流程清晰,步骤完整
- 提供端到端完整示例和边界异常处理
- frontmatter 完整,文档结构规范
Highlights
- 参数校验完整,覆盖主要异常场景
- critical 错误有立即通知机制
- 纯本地存储,零网络依赖,安全可靠
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.