evolution
БесплатноЗапускает вложенные скриптыНе проверенSelf-improving skill system for Pi Agent development. Features self-evolution (accumulate knowledge), self-correction (fix errors automatically)…
от Dwsy★ 26 звёзд на GitHubОб этом скилле
Evolution Skill
This skill enables Pi Agent to self-improve continuously during development by capturing learnings, correcting errors, and validating skills.
Quick Navigation
| Topic | Description |
|---|---|
| Hooks Integration | Auto-trigger evolution with Pi Agent hooks |
| When to Evolve | Triggers and classification |
| Evolution Process | Step-by-step guide |
| Self-Correction | Auto-fix skill errors |
| Self-Validation | Verify skill accuracy |
| Workhub Integration | Issue/PR management |
Hooks Integration
Evolution uses Pi Agent's hooks system to automatically detect opportunities for improvement.
Hook Installation
Create or edit ~/.pi/hooks/evolution.ts:
import type { HookAPI } from "@mariozechner/pi-coding-agent/hooks";
export default function (api: HookAPI) {
// Monitor tool results for error detection
api.on("tool_result", async (event, ctx) => {
if (event.tool === "bash") {
await detectErrorPatterns(event, ctx);
}
});
// Monitor session end for learning capture
api.on("session", async (event, ctx) => {
if (event.reason === "shutdown") {
await promptLearningCapture(ctx);
}
});
// Monitor context for new patterns
api.on("context", async (event, ctx) => {
await detectNewPatterns(event, ctx);
});
}
What Hooks Do
| Hook Event | Trigger | Action |
|---|---|---|
tool_result |
After bash command | Detect compilation errors, suggest fixes |
session (shutdown) |
Session ends | Prompt to capture learnings |
context |
Context transformation | Analyze for new patterns |
When to Evolve
Trigger skill evolution when any of these occur during development:
| Trigger | Target Skill | Priority |
|---|---|---|
| New coding pattern discovered | Relevant skill | High |
| Error/debug solution found | troubleshooting skill | High |
| API usage pattern learned | core/reference skill | High |
| Build/packaging issue resolved | deployment skill | Medium |
| Project structure insight | getting-started skill | Low |
| Core concept clarified | core skill | 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 developers using Pi Agent?
- Is it not already documented in existing skills?
Step 2: Classify the Knowledge
Coding Pattern → relevant skill (e.g., typescript, patterns)
Error/Debug Solution → troubleshooting skill
API Usage Pattern → core/reference skill
Build/Deploy Issue → deployment skill
Project Structure → getting-started skill
Core Concept/API → core skill
Step 3: Use Workhub to Create Issue
# From project root directory
cd /path/to/project
bun ~/.agents/skills/workhub/lib.ts create issue "evolution: add new pattern" [category]
Step 4: Format the Contribution
For Patterns:
## Pattern N: [Pattern Name]
Brief description of what this pattern solves.
### Implementation
\`\`\`typescript
// TypeScript code
\`\`\`
### Usage
\`\`\`typescript
// Example usage
\`\`\`
For Troubleshooting:
### [Error Type/Message]
**Symptom**: What the developer sees
**Cause**: Why this happens
**Solution**:
\`\`\`typescript
// Fixed code
\`\`\`
Step 5: Mark Evolution
Add an evolution marker above new content:
<!-- Evolution: YYYY-MM-DD | source: project-name | author: @user -->
Step 6: Submit via Workhub PR
# Create PR for your contribution
bun ~/.agents/skills/workhub/lib.ts create pr "evolution: add new pattern" [category]
Self-Correction
When skill content causes errors, automatically correct it.
Trigger Conditions
User follows skill advice → Code fails to compile/run
↓
Detect error
↓
Suggest correction to user
↓
Create workhub issue with fix
Correction Flow
- Detect - Skill advice led to an error
- Verify - Confirm the skill content is wrong
- Suggest - Propose fix to user
- Create Issue - Document in workhub
Correction Marker Format
<!-- Correction: YYYY-MM-DD | was: [old advice] | reason: [why it was wrong] -->
Self-Validation
Periodically verify skill content is still accurate.
Validation Checklist
## Validation Report
### Code Examples
- [ ] All TypeScript code compiles
- [ ] All patterns work as documented
- [ ] All examples are up-to-date
### API Accuracy
- [ ] API references are correct
- [ ] Method signatures are accurate
- [ ] Dependencies are current
### Documentation
- [ ] Instructions are c
Установить evolution в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл evolution?
Self-improving skill system for Pi Agent development. Features self-evolution (accumulate knowledge), self-correction (fix errors automatically), self-validation (verify accuracy), usage feedback (track pattern health), and integration with workhub for documentation management.
Как установить скилл evolution?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл evolution запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic