evolve
Capture positive evolutions from epic execution. Detects new components, fields, patterns, and capabilities added during implementation. Updates design…
от JeremyKalmus★ 28 звёзд на GitHub
Установить evolve в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Evolve Skill
Purpose
Capture positive evolutions from completed epics - the new components, fields, patterns, and capabilities that were added during implementation. This complements /retro (which captures failures) by documenting what was successfully created.
Key Principle: Only propose updates for truly new additions. If an epic used existing patterns and components, no updates are needed.
When to Use
- Automatically invoked at
/run-tasksStep 10 (epic completion) - User invokes
/evolve <epic-id>directly - After any epic that added new UI components, data fields, or patterns
Entry Points
| Invocation | Description |
|---|---|
/evolve <epic-id> |
Analyze a specific completed epic |
/evolve <epic-id> --dry-run |
Preview without modifying files |
/run-tasks Step 10 |
Automatically called before epic close |
Process
Step 1: Gather Epic Context
Get the epic's git history to understand what changed:
# Get epic branch or commit range
EPIC_ID="$1"
# Find commits associated with this epic (from commit messages)
COMMITS=$(git log --oneline --grep="$EPIC_ID" --format="%H")
# Or if on epic branch
git log main..HEAD --oneline
Get the combined diff of all changes:
# Files changed in epic
git diff main...HEAD --name-only
# Full diff for analysis
git diff main...HEAD --unified=3
Step 2: Load Existing Registries
Read current documented patterns to compare against:
# Design system registries
COMPONENTS_REGISTRY=".design/Components.md"
FIELDS_REGISTRY=".design/Fields.md"
PATTERNS_REGISTRY=".design/Patterns.md"
# Extract known components (look for ## headers or component names)
KNOWN_COMPONENTS=$(grep -E "^### " "$COMPONENTS_REGISTRY" | sed 's/### //')
# Extract known fields
KNOWN_FIELDS=$(grep -E "^\| \`" "$FIELDS_REGISTRY" | sed 's/| `//' | cut -d'`' -f1)
# Extract known patterns
KNOWN_PATTERNS=$(grep -E "^### " "$PATTERNS_REGISTRY" | sed 's/### //')
Step 3: Detect New Additions
Analyze the diff for new exports and definitions:
3a. New React Components
# Find new component exports in renderer
git diff main...HEAD -- "src/renderer/**/*.tsx" | \
grep -E "^\\+export (const|function) [A-Z]" | \
sed 's/+export //' | \
awk '{print $2}' | \
cut -d'(' -f1
Look for:
- New files in
src/renderer/components/ - New
export const ComponentNameorexport function ComponentName - New entries in component index files
3b. New Type Definitions / Fields
# Find new interface/type definitions
git diff main...HEAD -- "src/shared/types/**/*.ts" | \
grep -E "^\\+export (interface|type) " | \
sed 's/+export //'
# Find new enum values
git diff main...HEAD -- "src/shared/types/**/*.ts" | \
grep -E "^\\+ [A-Z_]+ = "
Look for:
- New fields in existing interfaces
- New interfaces/types
- New enum values
- New Zod schemas
3c. New Patterns
Analyze code structure for repeated patterns:
- New hook patterns (
useXxx) - New utility functions
- New service patterns
- New IPC handlers
# Find new hooks
git diff main...HEAD -- "src/renderer/**/*.ts" | \
grep -E "^\\+export function use[A-Z]"
# Find new utilities
git diff main...HEAD -- "src/*/lib/**/*.ts" | \
grep -E "^\\+export (const|function)"
Step 4: Filter Against Known
Remove items already in registries:
function filterNew(detected: string[], known: string[]): string[] {
return detected.filter(item =>
!known.some(k => k.toLowerCase() === item.toLowerCase())
);
}
const newComponents = filterNew(detectedComponents, knownComponents);
const newFields = filterNew(detectedFields, knownFields);
const newPatterns = filterNew(detectedPatterns, knownPatterns);
Step 5: Generate Evolution Report
If new items found, present for approval:
## Evolution Report: <epic-id>
### Summary
- **Epic**: <title>
- **New Components**: <count>
- **New Fields/Types**: <count>
- **New Patterns**: <count>
---
### New Components
#### TaskStatusBadge
- **File**: `src/renderer/components/common/TaskStatusBadge.tsx`
- **Props**: `{ status: TaskStatus, size?: 'sm' | 'md' }`
- **Usage**: Display task status with color coding
**Suggested addition to `.design/Components.md`:**
```markdown
### TaskStatusBadge
Status indicator for beads tasks.
**Usage:**
\`\`\`tsx
<TaskStatusBadge status="in_progress" size="sm" />
\`\`\`
**Variants:** Uses status colors from Colors.md
New Fields/Types
TaskPriority (enum)
- File:
src/shared/types/beads.ts - Values:
P0 | P1 | P2 | P3 | P4
Suggested addition to .design/Fields.md:
| Field | Type | Values | Description |
|---|---|---|---|
priority |
TaskPriority |
P0-P4 | Task urgency (P0=critical) |
New Patterns
useBeadsQuery Hook
- File:
src/renderer/lib/hooks/useBeadsQuery.ts - Purpose: Cached data fetching for beads with auto-refresh
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл evolve?
Capture positive evolutions from epic execution. Detects new components, fields, patterns, and capabilities added during implementation. Updates design registries and agent knowledge. Only proposes changes when truly new additions are found.
Как установить скилл evolve?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл evolve запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
AnthropicGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
webapp-testing
AnthropicToolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
brand-guidelines
AnthropicApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
web-artifacts-builder
AnthropicSuite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…