SKILL.md--- name: makepad-evolution description: Self-improving skill system for Makepad development. Features self-evolution (accumulate knowledge), self-correction (fix errors automatically), self-validation (verify accuracy), usage feedback (track pattern health), version adaptation (multi-branch support), and personalization (adapt to project style). Use to continuously improve makepad-skills during development. --- # Makepad Skills Evolution This skill enables makepad-skills to self-improve continuously during development. --- ## Automatic vs Manual Triggers **IMPORTANT FOR CLAUDE**: Some mechanisms should trigger automatically without user request. ### Automatic (Claude should do proactively) | Mechanism | When to Auto-Trigger | |-----------|---------------------| | **Version Adaptation** | At session start, read Cargo.toml and detect Makepad branch | | **Personalization** | On first code generation, scan 2-3 existing widgets for style | | **Self-Correction** | Immediately when skill-suggested code fails | | **Usage Feedback** | After each pattern usage (success or failure) | ### Semi-Automatic (Claude proposes, user confirms) | Mechanism | When to Propose | |-----------|-----------------| | **Self-Evolution** | After solving a non-trivial problem worth documenting | ### Manual (User must request) | Mechanism | Trigger Phrase | |-----------|---------------| | **Self-Validation** | "validate makepad-skills" | | **Health Report** | "show pattern health report" | --- ## Session Start Checklist (Auto-Execute) When starting a Makepad development session, Claude should automatically: ``` 1. [ ] Detect Makepad version from Cargo.toml → Set internal context: "Using Makepad {branch}" 2. [ ] Scan project style (if not done before) → Note naming conventions, module structure 3. [ ] Apply version-specific and personalized suggestions → All subsequent advice adapted automatically ``` **Claude: Do these silently. Don't announce unless relevant to user's question.** --- ## When to Evolve Trigger skill evolution when any of these occur during development: | Trigger | Target Skill | Priority | |---------|--------------|----------| | New widget pattern discovered | makepad-patterns | High | | Shader technique learned | makepad-shaders | High | | Compilation error solved | makepad-troubleshooting | High | | Layout solution found | makepad-adaptive-layout | Medium | | Build/packaging issue resolved | makepad-packaging | Medium | | New project structure insight | makepad-init | Low | | Core concept clarified | makepad-fundamentals | 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 it help other Makepad developers? - Is it not already documented in makepad-skills? ### Step 2: Classify the Knowledge ``` Widget/Component Pattern