跳到正文
Skillpedia
通用编程48k · #4561

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/evolution/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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-skills and 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.

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#4561
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能