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
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 |
| Compilation error solved |
makepad-reference/troubleshooting |
High |
| Layout solution found |
makepad-reference/adaptive-layout |
Medium |
| Build/packaging issue resolved |
makepad-deployment |
Medium |
| New project structure insight |
makepad-basics |
Low |
| Core concept clarified |
makepad-dsl/makepad-widgets |
Low |
Evolution Process
Step 1: Identify Knowledge Worth Capturing
Ask yourself:
- Is this a reusable pattern? (not project-specific)
- Did it take significant effort to figure out?
- Would
1---2name: evolution3description: This skill enables makepad-skills to self-improve continuously during development. 4category: Document Processing5source: antigravity6tags: [markdown, api, claude, ai, workflow, template, design, document]7url: https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/evolution8metadata:9 source: https://skillmd.com/skills/sickn33/evolution10---111213# Makepad Skills Evolution1415This skill enables makepad-skills to self-improve continuously during development.1617## When to Use18- You are maintaining `makepad-skills` and want the skill library to improve itself during development.19- You need the workflow for deciding when a new pattern should become a skill update or hook-driven evolution.20- You are working on self-correction, self-validation, or version adaptation for the skill set.2122## Quick Navigation2324| Topic | Description |25|-------|-------------|26| Collaboration Guidelines | **Contributing to makepad-skills** |27| [Hooks Setup](#hooks-based-auto-triggering) | Auto-trigger evolution with hooks |28| [When to Evolve](#when-to-evolve) | Triggers and classification |29| [Evolution Process](#evolution-process) | Step-by-step guide |30| [Self-Correction](#self-correction) | Auto-fix skill errors |31| [Self-Validation](#self-validation) | Verify skill accuracy |32| [Version Adaptation](#version-adaptation) | Multi-branch support |3334---3536## Hooks-Based Auto-Triggering3738For reliable automatic triggering, use Claude Code hooks. Install with `--with-hooks`:3940```bash41# Install makepad-skills with hooks enabled42tmpdir="$(mktemp -d)"43trap 'rm -rf "$tmpdir"' EXIT44curl -fsSLo "$tmpdir/makepad-skills-install.sh" https://raw.githubusercontent.com/ZhangHanDong/makepad-skills/main/install.sh45cat "$tmpdir/makepad-skills-install.sh" # review the full installer before executing46bash "$tmpdir/makepad-skills-install.sh" --with-hooks47```4849This will install hooks to `.claude/hooks/` and configure `.claude/settings.json`:5051```json52{53 "hooks": {54 "UserPromptSubmit": [55 {56 "matcher": "",57 "hooks": [58 {59 "type": "command",60 "command": "bash .claude/hooks/makepad-skill-router.sh"61 }62 ]63 }64 ],65 "PreToolUse": [66 {67 "matcher": "Bash|Write|Edit",68 "hooks": [69 {70 "type": "command",71 "command": "bash .claude/hooks/pre-tool.sh"72 }73 ]74 }75 ],76 "PostToolUse": [77 {78 "matcher": "Bash",79 "hooks": [80 {81 "type": "command",82 "command": "bash .claude/hooks/post-bash.sh"83 }84 ]85 }86 ]87 }88}89```9091### What Hooks Do9293| Hook | Trigger Event | Action |94|------|---------------|--------|95| `makepad-skill-router.sh` | UserPromptSubmit | Auto-route to relevant skills |96| `pre-tool.sh` | Before Bash/Write/Edit | Detect Makepad version from Cargo.toml |97| `post-bash.sh` | After Bash command fails | Detect Makepad errors, suggest fixes |98| `session-end.sh` | Session ends | Prompt to capture learnings |99100---101102## Skill Routing and Bundling103104The `makepad-skill-router.sh` hook automatically loads relevant skills based on user queries.105106### Context Detection107108| Context | Trigger Keywords | Skills Loaded |109|---------|------------------|---------------|110| **Full App** | "build app", "从零", "完整应用" | basics, dsl, layout, widgets, event-action, app-architecture |111| **UI Design** | "ui design", "界面设计" | dsl, layout, widgets, animation, shaders |112| **Widget Creation** | "create widget", "创建组件", "自定义组件" | widgets, dsl, layout, animation, shaders, font, event-action |113| **Production** | "best practice", "robrix pattern", "实际项目" | app-architecture, widget-patterns, state-management, event-action |114115### Skill Dependencies116117When loading certain skills, related skills are auto-loaded:118119| Primary Skill | Auto-loads |120|---------------|------------|121| robius-app-architecture | makepad-basics, makepad-event-action |122| robius-widget-patterns | makepad-widgets, makepad-layout |123| makepad-widgets | makepad-layout, makepad-dsl |124| makepad-animation | makepad-shaders |125| makepad-shaders | makepad-widgets |126| makepad-font | makepad-widgets |127| robius-event-action | makepad-event-action |128129### Example130131```132User: "我想从零开发一个 Makepad 应用"133134[makepad-skills] Detected Makepad/Robius query135[makepad-skills] App development context detected - loading skill bundle136[makepad-skills] Routing to: makepad-basics makepad-dsl makepad-event-action137 makepad-layout makepad-widgets robius-app-architecture138```139140---141142## When to Evolve143144Trigger skill evolution when any of these occur during development:145146| Trigger | Target Skill | Priority |147|---------|--------------|----------|148| New widget pattern discovered | robius-widget-patterns/_base | High |149| Shader technique learned | makepad-shaders | High |150| Compilation error solved | makepad-reference/troubleshooting | High |151| Layout solution found | makepad-reference/adaptive-layout | Medium |152| Build/packaging issue resolved | makepad-deployment | Medium |153| New project structure insight | makepad-basics | Low |154| Core concept clarified | makepad-dsl/makepad-widgets | Low |155156---157158## Evolution Process159160### Step 1: Identify Knowledge Worth Capturing161162Ask yourself:163- Is this a reusable pattern? (not project-specific)164- Did it take significant effort to figure out?165- Would