
skill-evolution
by DennisToma
SKILL.md
name: skill-evolution description: Review accumulated feedback and propose skill updates. Use periodically or when evolution triggers accumulate. Requires user approval before modifying skills. allowed-tools: "Read,Write,Edit,Grep,Glob,mcp__plugin_claude-mem_mcp-search__search,mcp__plugin_claude-mem_mcp-search__timeline,mcp__plugin_claude-mem_mcp-search__get_observations" version: 1.1.0
Evolve Skills Based on Accumulated Feedback
Analyze feedback patterns and propose targeted skill improvements with human oversight.
Overview
This skill implements adaptive skill evolution - the T2 paradigm where tool modules (skills) improve based on execution feedback while the core model (Claude) remains stable.
Key Principle: Skills evolve; Claude doesn't. This decouples learning from reasoning.
When to Invoke
- When
skill-feedbackflags evolution triggers - Periodically (weekly/monthly) to review accumulated patterns
- When user requests skill improvement
- After repeated failures with a specific skill
Instructions
Step 1: Search for Evolution Triggers
Query claude-mem for pending evolution triggers:
Query: "evolution trigger PENDING_REVIEW"
List all skills with accumulated feedback patterns.
Step 2: Analyze Pattern Evidence
For each triggered skill:
- Retrieve all related feedback observations
- Identify common themes across occurrences
- Quantify the pattern (frequency, impact, consistency)
Create analysis summary:
## Evolution Analysis: [Skill Name]
**Pattern Count:** [N occurrences]
**Time Span:** [First occurrence] to [Last occurrence]
**Confidence:** [high|medium|low]
### Evidence Summary
| Date | Task | Pattern Instance |
|------|------|------------------|
| ... | ... | ... |
### Root Cause
[Why this pattern keeps occurring]
### Proposed Change
[Specific modification to skill content]
Step 3: Draft Skill Modification
Read the current skill:
Read: .claude/skills/[skill-name]/SKILL.md
Draft the specific change:
## Proposed Edit: [Skill Name]
### Current Content (lines X-Y)
[existing text]
### Proposed Content
[new text]
### Rationale
[Why this change addresses the pattern]
### Impact
- Prevents: [What errors/issues this avoids]
- Adds: [What new guidance this provides]
- Risk: [Any potential downsides]
Step 4: Present for User Approval
CRITICAL: Never modify skills without explicit user approval.
Present the proposal clearly:
Evolution Proposal for: [skill-name]
Pattern: [Brief description of what keeps happening]
Evidence: [N occurrences over N days/weeks]
Change: [One-sentence summary of modification]
Detailed diff:
[Show exact before/after]
Options:
1. Approve and apply
2. Modify proposal
3. Reject (pattern not significant)
4. Defer (need more evidence)
Step 5: Apply Approved Changes
Only after explicit user approval:
- Use Edit tool to modify the skill file
- Update skill version in frontmatter (increment patch version)
- Record the evolution in claude-mem:
## Skill Evolution Applied: [Skill Name]
**Version:** [old] → [new]
**Date:** [ISO date]
**Pattern Addressed:** [description]
**Change Summary:** [what was modified]
**Evidence IDs:** [observation IDs that triggered this]
**Approved By:** user
- Mark related evolution triggers as RESOLVED
Step 6: Verify Evolution
After applying changes:
- Review the modified skill for consistency
- Check that the change doesn't conflict with other skills
- Suggest a task to test the improved skill (optional)
Step 7: Generate Evidence Watchlist
Critical for bidirectional learning loop.
After analyzing all patterns, identify those approaching but not meeting threshold:
- Query claude-mem for patterns with 1-2 occurrences (below 3x threshold)
- Assess which patterns are likely to recur
- Output watchlist for skill-feedback to prioritize
## Evidence Watchlist
Patterns approaching threshold - prioritize capturing in future skill-feedback:
| Pattern | Skill | Count | Threshold | What to Watch For |
|---------|-------|-------|-----------|-------------------|
| [description] | [skill-name] | 2/3 | workaround | [specific situation] |
| [description] | [skill-name] | 1/2 | gotcha | [specific trigger] |
**Active Until:** [date 30 days from now]
Store watchlist in claude-mem with type evolution-watchlist.
This enables bidirectional evolution:
- Forward: feedback → evolution proposals
- Backward: evolution → watchlist → targeted feedback collection
Evolution Types
| Type | Description | Example |
|---|---|---|
| Gotcha Addition | Add warning for common trap | "Note: JWT expiry must be Unix timestamp" |
| Step Clarification | Make ambiguous step explicit | Add sub-steps to unclear instruction |
| Pattern Formalization | Convert workaround to standard | Add new section for recurring technique |
| Tool Guidance | Improve tool usage instructions | Add example of effective tool combination |
| Removal | Delete outdated/harmful guidance | Remove advice that causes problems |
Safety Constraints
- User approval required - Never auto-modify skills
- One change at a time - Don't bundle multiple modifications
- Preserve intent - Modifications should enhance, not rewrite
- Version tracking - Always increment version on change
- Evidence-based - Only propose changes with 2+ occurrences
Output Format
Summary Report
Skill Evolution Review Complete
Analyzed: [N] skills with feedback
Evolution Triggers Found: [N]
Proposed Changes:
1. [skill-name]: [brief description] - [awaiting approval]
2. [skill-name]: [brief description] - [awaiting approval]
No Changes Needed:
- [skill-name]: Patterns below threshold
- [skill-name]: No actionable patterns
Evidence Watchlist (for skill-feedback):
- [pattern]: [skill-name] - [N]/[threshold] observations
- [pattern]: [skill-name] - [N]/[threshold] observations
Next Review: [suggested date based on feedback velocity]
Integration with Workflow
This skill completes the bidirectional adaptive feedback loop:
/plan → /implement → /verify → skill-feedback → skill-evolution
↓ ↓
[claude-mem] [skill updates]
↑ ↓
←←←← improved skills ←←←←
BIDIRECTIONAL LOOP:
skill-evolution ──→ Evidence Watchlist ──→ skill-feedback
↑ ↓
└────────── targeted feedback ←──────────┘
Bidirectional benefits:
- Forward flow: Feedback accumulates → Evolution proposes changes
- Backward flow: Evolution identifies gaps → Watchlist guides feedback collection
Skills improve incrementally based on real usage patterns, not hypothetical scenarios.
スコア
総合スコア
リポジトリの品質指標に基づく評価
SKILL.mdファイルが含まれている
ライセンスが設定されている
100文字以上の説明がある
GitHub Stars 100以上
3ヶ月以内に更新がある
10回以上フォークされている
オープンIssueが50未満
プログラミング言語が設定されている
1つ以上のタグが設定されている
レビュー
レビュー機能は近日公開予定です