evolution
它能做什么
这个工具可以帮助“技能”库(也就是AI指令)在开发过程中持续自我改进。它让AI从错误和成功的经验中学习,从而提升之后的回答质量。
适用场景
- ✓当你在改进技能库,并希望它能自动更新时。
- ✓当你需要判断一个新方案应该作为技能更新,还是作为自动改进时。
- ✓当你在为技能集合开发自动修正或校验功能时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/evolution/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我怎样才能让技能库自我改进?”
每周 5 个新技能,1 分钟读完。
工作原理
这个技能通过“钩子”(hooks,即触发器)监控开发过程中发生的事情。当出现错误或找到新的解决方案时,它可以自动记录下来,以便将来改进技能。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Makepad Skills Evolution
This skill enables makepad-skills to self-improve continuously during development.
When to Use
- You are maintaining
makepad-skillsand want the skill library to improve itself during development. - You need the workflow for deciding when a new pattern should become a skill update or hook-driven evolution.
- You are working on self-correction, self-validation, or version adaptation for the skill set.
Quick Navigation
| Topic | Description |
|---|---|
| Collaboration Guidelines | Contributing to makepad-skills |
| Hooks Setup | Auto-trigger evolution with hooks |
| When to Evolve | Triggers and classification |
| Evolution Process | Step-by-step guide |
| Self-Correction | Auto-fix skill errors |
| Self-Validation | Verify skill accuracy |
| Version Adaptation | Multi-branch support |
Hooks-Based Auto-Triggering
For reliable automatic triggering, use Claude Code hooks. Install with --with-hooks:
# Install makepad-skills with hooks enabled
tmpdir="$(mktemp -d)"
trap 'rm -rf "$tmpdir"' EXIT
curl -fsSLo "$tmpdir/makepad-skills-install.sh" https://raw.githubusercontent.com/ZhangHanDong/makepad-skills/main/install.sh
cat "$tmpdir/makepad-skills-install.sh" # review the full installer before executing
bash "$tmpdir/makepad-skills-install.sh" --with-hooks
This will install hooks to .claude/hooks/ and configure .claude/settings.json:
{
"hooks": {
"UserPromptSubmit": [
{
"matcher": "",
"hooks": [
{
"type": "command",
"command": "bash .claude/hooks/makepad-skill-router.sh"
}
]
}
],
"PreToolUse": [
{
"matcher": "Bash|Write|Edit",
"hooks": [
{
"type": "command",
"command": "bash .claude/hooks/pre-tool.sh"
}
]
}
],
"PostToolUse": [
{
"matcher": "Bash",
"hooks": [
{
"type": "command",
"command": "bash .claude/hooks/post-bash.sh"
}
]
}
]
}
}
What Hooks Do
| Hook | Trigger Event | Action |
|---|---|---|
makepad-skill-router.sh |
UserPromptSubmit | Auto-route to relevant skills |
pre-tool.sh |
Before Bash/Write/Edit | Detect Makepad version from Cargo.toml |
post-bash.sh |
After Bash command fails | Detect Makepad errors, suggest fixes |
session-end.sh |
Session ends | Prompt to capture learnings |
Skill Routing and Bundling
The makepad-skill-router.sh hook automatically loads relevant skills based on user queries.
Context Detection
| Context | Trigger Keywords | Skills Loaded |
|---|---|---|
| Full App | "build app", "从零", "完整应用" | basics, dsl, layout, widgets, event-action, app-architecture |
| UI Design | "ui design", "界面设计" | dsl, layout, widgets, animation, shaders |
| Widget Creation | "create widget", "创建组件", "自定义组件" | widgets, dsl, layout, animation, shaders, font, event-action |
| Production | "best practice", "robrix pattern", "实际项目" | app-architecture, widget-patterns, state-management, event-action |
Skill Dependencies
When loading certain skills, related skills are auto-loaded:
| Primary Skill | Auto-loads |
|---|---|
| robius-app-architecture | makepad-basics, makepad-event-action |
| robius-widget-patterns | makepad-widgets, makepad-layout |
| makepad-widgets | makepad-layout, makepad-dsl |
| makepad-animation | makepad-shaders |
| makepad-shaders | makepad-widgets |
| makepad-font | makepad-widgets |
| robius-event-action | makepad-event-action |
Example
User: "我想从零开发一个 Makepad 应用"
[makepad-skills] Detected Makepad/Robius query
[makepad-skills] App development context detected - loading skill bundle
[makepad-skills] Routing to: makepad-basics makepad-dsl makepad-event-action
makepad-layout makepad-widgets robius-app-architecture
When to Evolve
Trigger skill evolution when any of these occur during development:
| Trigger | Target Skill | Priority |
|---|---|---|
| New widget pattern discovered | robius-widget-patterns/_base | High |
| Shader technique learned | makepad-shaders | High |
…
常见问题
什么是“钩子”?
“钩子”就像闹钟,会在某些特定事件发生时触发,比如代码报错或任务完成。它们帮助技能做出反应并从中学习。
技能如何判断哪些内容值得学习?
它会检查新信息是否是可以复用的模式、是否很难才找到答案、是否能帮助其他开发者,以及是否还没有被记录下来。
如果技能出错了怎么办?
系统设有自我修正和自我校验机制,可以帮助发现并修复技能本身或其生成的回答中的错误。
详情
作者的原始描述
This skill enables makepad-skills to self-improve continuously during development.
热度
- GitHub 星标
- 48k
- 排名
- #4561
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。