ixhlink-skills-self-improving
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 "ixhlink-skills-self-improving" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-e021ffcbeb52af01063fbbc5e4ea55e04e7b8feed8ce156a20ecf3b675ff3ec9. Verify the upstream source and version against https://skillhub.cn/skills/ixhlink/ixhlink-skills-self-improving 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
A mechanism to capture learning notes, errors, user corrections, and feature requests to support continuous improvement across sessions. Applicable when commands or actions fail unexpectedly, when a user corrects the assistant (e.g., “not…”, “actually…”), when a user requests unsupported capabilities, when external APIs or tools fail, when knowledge is found outdated or incorrect, or when a better method for repetitive tasks is discovered. Review existing records before starting major tasks.
Introduction source: third_party · ixhlink · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Software, accounts and paid services
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: 智能自我提升
description: "捕获学习心得、错误、用户纠正与功能需求,支持跨会话持续改进。适用于:(1) 命令或操作意外失败,(2) 用户纠正你(「不对…」「其实…」),(3) 用户请求尚不支持的能力,(4) 外部 API 或工具失败,(5) 发现知识过时或不准确,(6) 找到重复任务的更优做法。开始重大任务前也应回顾已有记录。"
description_zh: "捕获学习心得、错误与用户纠正,支持 AI 编码助手跨会话持续改进"
description_en: "Captures learnings, errors, and corrections for continuous improvement across sessions"
version: 1.0.0
tags: ["自我提升", "学习记录", "错误日志", "持续改进", "纠正", "功能需求", "learnings", "self-improvement", "记忆", "复盘"]智能自我提升
将学习心得、错误与功能需求写入本地 Markdown 日志,供后续会话查阅、修复与晋升。高价值经验可沉淀为项目规则、Agent 指引或可复用技能。
整合来源:改编自 pskoett-ai-skills/self-improvement
核心原则
- 即时记录 — 上下文最清晰时立刻写入,不要拖延到会话结束
- 摘要优先 — 默认只写简短摘要;不记录密钥、令牌、私钥、环境变量或完整命令输出
- 不覆盖已有内容 — 只追加条目,初始化时也不覆盖已有文件
- 晋升要克制 — 仅将经多次验证、跨场景适用的规则写入项目记忆
- 先搜后写 — 记录前搜索
.learnings/,避免重复;相似条目用See Also关联
快速参考
| 场景 | 动作 |
|---|---|
| 命令/操作失败 | 写入 .learnings/ERRORS.md |
| 用户纠正你 | 写入 .learnings/LEARNINGS.md,类别 correction |
| 用户想要缺失功能 | 写入 .learnings/FEATURE_REQUESTS.md |
| API/外部工具失败 | 写入 .learnings/ERRORS.md,附集成细节 |
| 知识过时 | 写入 .learnings/LEARNINGS.md,类别 knowledge_gap |
| 发现更优做法 | 写入 .learnings/LEARNINGS.md,类别 best_practice |
| 与已有条目相似 | 添加 See Also,考虑提升优先级 |
| 广泛适用的经验 | 晋升至 AGENTS.md、.cursor/rules/、CLAUDE.md 等 |
| 重复模式(≥3 次) | 考虑提取为独立技能 |
首次初始化
记录任何内容前,确保项目或工作区根目录存在 .learnings/ 及三个日志文件:
mkdir -p .learnings
[ -f .learnings/LEARNINGS.md ] || printf "# 学习记录\n\n开发过程中捕获的纠正、洞察与知识缺口。\n\n**类别**: correction | insight | knowledge_gap | best_practice\n\n---\n" > .learnings/LEARNINGS.md
[ -f .learnings/ERRORS.md ] || printf "# 错误日志\n\n命令失败与集成错误。\n\n---\n" > .learnings/ERRORS.md
[ -f .learnings/FEATURE_REQUESTS.md ] || printf "# 功能需求\n\n用户请求但尚不支持的能力。\n\n---\n" > .learnings/FEATURE_REQUESTS.md
若目录已存在,上述命令为 no-op。需要自动提醒时,参见 Hook 集成。
记录格式
学习条目
追加到 .learnings/LEARNINGS.md:
## [LRN-YYYYMMDD-XXX] category
**记录时间**: ISO-8601 时间戳
**优先级**: low | medium | high | critical
**状态**: pending
**领域**: frontend | backend | infra | tests | docs | config
### 摘要
一句话描述学到了什么
### 详情
完整上下文:发生了什么、错在哪里、正确做法是什么
### 建议行动
具体修复或改进措施
### 元数据
- 来源: conversation | error | user_feedback
- 相关文件: path/to/file.ext
- 标签: tag1, tag2
- 参见: LRN-20250110-001(若与已有条目相关)
- Pattern-Key: simplify.dead_code(可选,用于重复模式追踪)
- 出现次数: 1(可选)
- 首次出现: 2025-01-15(可选)
- 最近出现: 2025-01-15(可选)
---
类别说明:
| 类别 | 含义 |
|---|---|
correction |
用户纠正的错误理解或做法 |
insight |
非显而易见的发现 |
knowledge_gap |
知识过时或缺失 |
best_practice |
更优的工作方式 |
错误条目
追加到 .learnings/ERRORS.md:
## [ERR-YYYYMMDD-XXX] skill_or_command_name
**记录时间**: ISO-8601 时间戳
**优先级**: high
**状态**: pending
**领域**: frontend | backend | infra | tests | docs | config
### 摘要
简要描述失败内容
### 错误
实际错误信息或输出(可脱敏)
### 上下文
- 尝试的命令/操作
- 使用的输入或参数
- 相关环境信息
- 输出摘要(避免完整 transcript 与含密钥内容)
### 建议修复
若可识别,写出可能的解决方案
### 元数据
- 可复现: yes | no | unknown
- 相关文件: path/to/file.ext
- 参见: ERR-20250110-001(若重复出现)
---
功能需求条目
追加到 .learnings/FEATURE_REQUESTS.md:
## [FEAT-YYYYMMDD-XXX] capability_name
**记录时间**: ISO-8601 时间戳
**优先级**: medium
**状态**: pending
**领域**: frontend | backend | infra | tests | docs | config
### 请求能力
用户想要做什么
### 用户背景
为什么需要、解决什么问题
### 复杂度估计
simple | medium | complex
### 建议实现
如何构建、可扩展哪些现有能力
### 元数据
- 频率: first_time | recurring
- 相关功能: existing_feature_name
---
ID 生成规则
格式:TYPE-YYYYMMDD-XXX
TYPE:LRN(学习)、ERR(错误)、FEAT(功能)YYYYMMDD:当前日期XXX:序号或随机 3 字符(如001、A7B)
示例:LRN-20250115-001、ERR-20250115-A3F
更多完整示例见 references/examples.md。
状态与解决
| 状态 | 含义 |
|---|---|
pending |
尚未处理 |
in_progress |
正在处理 |
resolved |
已修复或已吸收 |
wont_fix |
决定不处理(在 Resolution 中说明原因) |
promoted |
已晋升至项目记忆文件 |
promoted_to_skill |
已提取为独立技能 |
问题解决后,将 **状态**: pending 改为 **状态**: resolved,并追加:
### 解决记录
- **解决时间**: 2025-01-16T09:00:00Z
- **Commit/PR**: abc123 或 #42
- **备注**: 简要说明做了什么
晋升到项目记忆
当经验跨多个文件/功能适用、任何协作者都应知道、或能防止重复犯错时,将其蒸馏为简短规则并写入对应文件。
晋升目标
| 目标文件 | 适用内容 |
|---|---|
AGENTS.md |
Agent 工作流、工具用法、自动化规则 |
.cursor/rules/ |
Cursor 持久化规则(项目约定、编码标准) |
CLAUDE.md |
项目事实与约定(Claude 系列 Agent) |
.github/copilot-instructions.md |
GitHub Copilot 项目上下文 |
SOUL.md |
行为准则、沟通风格(OpenClaw 工作区) |
TOOLS.md |
工具能力、集成陷阱(OpenClaw 工作区) |
晋升步骤
- 蒸馏 — 将冗长条目压缩为一条可执行规则
- 写入 — 追加到目标文件的合适章节(不存在则创建)
- 更新原条目 — 状态改为
promoted,标注**已晋升**: AGENTS.md
示例:
学习记录:项目用 pnpm 而非 npm,
npm install失败,锁文件是pnpm-lock.yaml。
→ 写入 AGENTS.md:
## 构建与依赖
- 包管理器:pnpm(非 npm),使用 `pnpm install`
重复模式检测
- 先搜索:
grep -r "关键词" .learnings/ - 关联条目:在元数据中添加
参见: ERR-20250110-001 - 提升优先级:若反复出现,从
medium升至high或critical - 系统性修复:
- 缺文档 → 晋升至
AGENTS.md或.cursor/rules/ - 缺自动化 → 写入 Agent 工作流
- 架构问题 → 创建技术债工单
- 缺文档 → 晋升至
自动晋升条件(重复模式):
出现次数 >= 3- 出现在至少 2 个不同任务中
- 30 天内发生
检测触发器
用户纠正 → 学习记录(correction):
- 「不对…」「其实应该是…」「你搞错了…」「这已过时…」
功能需求 → 功能需求文件:
- 「能不能也…」「我希望你能…」「有没有办法…」「为什么不能…」
知识缺口 → 学习记录(knowledge_gap):
- 用户提供了你不知道的信息
- 引用的文档已过时
- API 行为与预期不符
错误 → 错误日志:
- 命令非零退出码
- 异常或堆栈跟踪
- 意外输出或行为
- 超时或连接失败
优先级指南
| 优先级 | 适用场景 |
|---|---|
critical |
阻塞核心功能、数据丢失风险、安全问题 |
high |
影响显著、常见工作流、重复出现的问题 |
medium |
中等影响、有变通方案 |
low |
小不便、边缘场景、锦上添花 |
定期回顾
何时回顾:
- 开始新的重大任务前
- 完成功能后
- 进入有过往记录的代码区域时
- 活跃开发期间每周一次
快速检查:
# 统计待处理条目
grep -h "状态\*\*: pending" .learnings/*.md 2>/dev/null | wc -l
# 列出高优先级待处理项
grep -B5 "优先级\*\*: high" .learnings/*.md | grep "^## \["
# 按领域筛选
grep -l "领域\*\*: backend" .learnings/*.md
回顾动作:解决已修复项 → 晋升适用经验 → 关联相关条目 → 升级重复问题
提取为技能
当学习记录满足以下任一条件时,可提取为可复用技能:
| 条件 | 说明 |
|---|---|
| 重复出现 | 参见 链接指向 2+ 个相似问题 |
| 已验证 | 状态为 resolved 且有可用修复 |
| 非显而易见 | 需实际调试/调查才能发现 |
| 广泛适用 | 非项目专属,可跨代码库使用 |
| 用户指定 | 用户说「保存为技能」等 |
提取流程:
./skills/self-improving/scripts/extract-skill.sh skill-name --dry-run
./skills/self-improving/scripts/extract-skill.sh skill-name
- 用
assets/SKILL-TEMPLATE.md填写SKILL.md - 更新原条目:状态 →
promoted_to_skill,添加Skill-Path: skills/skill-name - 在新会话中验证技能可独立使用
Hook 集成(可选)
Hook 为可选功能,需显式配置才会生效。
Cursor / Claude Code(推荐:仅 activator)
在项目根目录创建 .claude/settings.json:
{
"hooks": {
"UserPromptSubmit": [{
"matcher": "",
"hooks": [{
"type": "command",
"command": "./skills/self-improving/scripts/activator.sh"
}]
}]
}
}
含错误检测(进阶)
在 PostToolUse 中追加 error-detector.sh,详见 references/hooks-setup.md。
| 脚本 | Hook 类型 | 用途 |
|---|---|---|
scripts/activator.sh |
UserPromptSubmit | 任务后提醒评估是否记录 |
scripts/error-detector.sh |
PostToolUse (Bash) | 命令失败时触发提醒 |
OpenClaw
cp -r skills/self-improving/hooks/openclaw ~/.openclaw/hooks/self-improving
openclaw hooks enable self-improving
完整 OpenClaw 集成见 references/openclaw-integration.md。
Git 跟踪策略
本地私有(默认,避免误提交敏感日志):
.learnings/
团队共享(不加入 .gitignore,学习记录成为共享知识)
混合(只跟踪目录结构):
.learnings/*.md
!.learnings/.gitkeep
多 Agent 适配
| Agent | 激活方式 | 配置 |
|---|---|---|
| Cursor | 技能自动加载 + 可选 Hook | .cursor/rules/ 晋升目标 |
| Claude Code | Hook | .claude/settings.json |
| Codex CLI | Hook | .codex/settings.json |
| GitHub Copilot | 手动 | .github/copilot-instructions.md |
| OpenClaw | 技能 + Hook | 工作区 AGENTS.md / SOUL.md / TOOLS.md |
Copilot 无 Hook 支持,可在 .github/copilot-instructions.md 中添加:
## 自我提升
解决非显而易见的问题后,考虑记录到 `.learnings/`,格式见 self-improving 技能。
高价值经验可晋升至项目规则或提取为技能。
最佳实践
- 上下文新鲜时立刻记录
- 写具体、可操作的摘要,便于未来 Agent 快速理解
- 错误条目包含复现步骤
- 关联相关文件路径
- 给出具体修复建议,而非「进一步调查」
- 晋升前确认规则经多次验证
- 定期回顾,过期条目及时关闭
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供跨会话持续改进能力,适用于命令失败、用户纠正、功能需求等高频开发场景
- 显著提升开发效率与知识沉淀,支持错误日志、学习记录与功能需求的结构化管理
Highlights
- 触发场景明确列出 6 种典型情况,边界清晰,覆盖用户纠正、API 失败、知识缺口等变体
- description 精准描述适用条件,避免误触或漏触
Highlights
- 文档结构完整,含核心原则、快速参考、记录格式、状态管理、晋升机制等章节
- 提供详细记录模板与 ID 生成规则,步骤清晰,有端到端示例
Areas to improve
-
引用文件缺失 Reported severity: Minor
SKILL.md 引用了 references/examples.md、references/hooks-setup.md、references/openclaw-integration.md 等文件,但未在传入内容中提供
Recommendation: 请补充被引用的参考文件,或明确说明这些文件为可选模板,用户可自行创建
Highlights
- 提供初始化脚本与记录格式模板,覆盖主要异常处理(如重复条目关联、优先级提升)
- 晋升与提取技能流程清晰,有明确条件与确认机制,工具来源可靠
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.
-
Install or fetch external dependencies
Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.
Mentioned in main document · lines 231 -
Accounts, secrets or authorization
Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.
Mentioned in main document · lines 21, 128
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- github.com
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Translation pending; see source documentation.
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.