evolve-agent
정보
이 스킬은 기존 에이전트의 정의를 업데이트하여 현재의 페르소나를 개선하거나 새로운 고급 변형을 생성합니다. 에이전트 평가, 스킬 및 도구에 변경 사항 적용, 버전 메타데이터 업데이트를 처리합니다. 에이전트의 역량이 오래되었을 때, 피드백으로 격차가 드러났을 때, 또는 실제 사용 후 범위 조정이 필요할 때 사용하세요.
빠른 설치
Claude Code
추천npx skills add pjt222/agent-almanac -a claude-code/plugin add https://github.com/pjt222/agent-almanacgit clone https://github.com/pjt222/agent-almanac.git ~/.claude/skills/evolve-agentClaude Code에서 이 명령을 복사하여 붙여넣어 스킬을 설치하세요
문서
Evolve an Existing Agent
Improve, extend, or create advanced variant of agent originally made w/ create-agent. Covers maintenance: assess gaps, apply targeted improvements, bump versions, sync registry + cross-refs.
Use When
- Skills list outdated after new skills added
- User feedback → capability gaps, unclear purpose, weak examples
- Tool reqs changed (new MCP, tool removed, privilege reduction)
- Scope needs sharpen — overlaps or too broad
- Advanced variant needed alongside original (e.g.,
r-developer+r-developer-advanced) - Related agents/teams added → See Also stale
In
- Required: Path to existing agent file (e.g.,
agents/r-developer.md) - Required: Evolution trigger (feedback, new skills, tool change, overlap, team integration, limitations)
- Optional: Version bump magnitude (patch, minor, major)
- Optional: Create variant instead of refine in-place (default: refine in-place)
Do
Step 1: Assess Current
Read existing + eval each section vs quality checklist guides/agent-best-practices.md:
| Section | Check | Common Issues |
|---|---|---|
| Frontmatter | Required fields (name, description, tools, model, version, author) | Missing tags, stale version, wrong priority |
| Purpose | Specific problem, not "helps with X" | Vague/overlapping |
| Capabilities | Concrete, verifiable, bold lead-ins | Generic ("handles development"), no grouping |
| Available Skills | Matches frontmatter, IDs in registry | Stale IDs, missing new, lists defaults unnecessarily |
| Usage Scenarios | 2-3 realistic + invocation | Placeholder, unrealistic |
| Examples | User req + agent behavior | Missing/trivial |
| Limitations | 3-5 honest constraints | Too few/vague/missing |
| See Also | Valid cross-refs | Stale links |
# Read the agent file
cat agents/<agent-name>.md
# Check frontmatter parses
head -20 agents/<agent-name>.md
# Verify skills in frontmatter exist in registry
grep "skills:" -A 20 agents/<agent-name>.md
# Check if agent is referenced by any team
grep -r "<agent-name>" teams/*.md
→ List specific gaps by section.
If err: no file or no frontmatter → skill N/A, use create-agent from scratch.
Step 2: Gather Reqs
Identify + categorize trigger:
| Trigger | Example | Scope |
|---|---|---|
| User feedback | "Missed XSS in review" | Add skill/capability |
| New skills | Library gained analyze-api-security | Update skills list |
| Tool change | New MCP available | Add tools/mcp_servers |
| Scope overlap | 2 agents claim "code review" | Sharpen purpose + limitations |
| Team integration | Added to new team | Update See Also, verify capabilities |
| Model upgrade | Deeper reasoning needed | Change model field |
| Privilege reduction | Bash but only reads | Remove unnecessary tools |
Document changes + target sections before edit:
- Frontmatter: add `new-skill-id` to skills list
- Capabilities: add "API Security Analysis" capability
- Available Skills: add `new-skill-id` with description
- Limitations: remove outdated limitation about missing skill
- See Also: add link to new team that includes this agent
→ Concrete list mapped to sections.
If err: unclear → consult user. Vague goals → vague improvements.
Step 3: Choose Scope
Decision matrix refine in-place vs variant:
| Criteria | Refinement (in-place) | Advanced Variant (new) |
|---|---|---|
| Agent ID | Unchanged | New: <agent>-advanced or <agent>-<specialty> |
| File path | Same .md | New file in agents/ |
| Version bump | Patch/minor | Starts 1.0.0 |
| Model | May change | Often higher (sonnet → opus) |
| Registry | Update existing | New entry |
| Original | Modified directly | Left intact, gains See Also |
Refinement: Update skills, fix docs, sharpen scope, adjust tools. Keeps identity.
Variant: Evolved version serves diff audience, needs diff model, or capabilities make original too broad. Original stays for simpler uses.
→ Clear decision + rationale.
If err: unsure → default refinement. Extract variant later easier than merge back.
Step 4: Apply Changes
Refinements
Edit existing directly:
- Frontmatter: Update
skills,tools,tags,model,priority,mcp_servers - Purpose/Capabilities: Revise for new scope/functionality
- Available Skills: Add new + descriptions, remove deprecated
- Usage Scenarios: Add/revise for new capabilities
- Limitations: Remove obsolete, add honest new
- See Also: Update cross-refs
Editing rules:
- Preserve all sections — add not remove
- Sync Available Skills w/ frontmatter
skills - No default skills (
meditate,heal) in frontmatter unless core methodology - Verify each ID:
grep "id: skill-name" skills/_registry.yml
Variants
# Copy the original as a starting point
cp agents/<agent-name>.md agents/<agent-name>-advanced.md
# Edit the variant:
# - Change `name` to `<agent-name>-advanced`
# - Update `description` to reflect the advanced scope
# - Raise `model` if needed (e.g., sonnet → opus)
# - Reset `version` to "1.0.0"
# - Expand skills, capabilities, and examples for the advanced use case
# - Reference the original in See Also as a simpler alternative
→ Agent file (refined/variant) passes Step 1 checklist.
If err: edit breaks structure → git diff review, revert via git checkout -- <file>.
Step 4.5: Sync Translated Variants
Required when translations exist. Applies to human authors + AI agents. No skip — stale
source_commit→npm run validate:translationsfalse staleness across locales.
Check + update translations:
# Check for existing translations
ls i18n/*/agents/<agent-name>.md 2>/dev/null
If translations exist
- Current source commit:
SOURCE_COMMIT=$(git rev-parse HEAD)
- Update
source_commiteach translated:
for locale_file in i18n/*/agents/<agent-name>.md; do
sed -i "s/^source_commit: .*/source_commit: $SOURCE_COMMIT/" "$locale_file"
done
- Flag files → re-translation in commit msg:
evolve(<agent-name>): <description of changes>
Translations flagged for re-sync: de, zh-CN, ja, es
Changed sections: <list sections that changed>
- Regenerate status:
npm run translation:status
If no translations exist
No action. Proceed Step 5.
Variants
Defer translation of new variants until stabilize (1-2 versions). Translations after ≥1 refinement.
→ All translated source_commit updated. npm run translation:status exits 0.
If err: sed fails match frontmatter field → open manually, verify source_commit in YAML. Missing → re-scaffold npm run translate:scaffold -- agents <agent-name> <locale>.
Step 5: Version + Metadata
Bump version semver:
| Change | Bump | Example |
|---|---|---|
| Typo/wording | Patch: 1.0.0 → 1.0.1 | Fixed unclear limitation |
| New skills, capability expanded | Minor: 1.0.0 → 1.1.0 | Added 3 new skills |
| Restructured, model change | Major: 1.0.0 → 2.0.0 | Narrowed scope, opus |
Also update:
updateddate = todaytagsif domain coverage changeddescriptionif purpose materially diffpriorityif importance rel changed
→ version + updated reflect magnitude + date. New variants start "1.0.0".
If err: forget bump → no way track. Always bump before commit.
Step 6: Registry + Cross-Refs
Refinements
Update existing entry in agents/_registry.yml → match revised frontmatter:
# Find the agent's registry entry
grep -A 10 "id: <agent-name>" agents/_registry.yml
Update description, tags, tools, skills → match file. No count change.
Update cross-refs if capabilities/name changed:
# Check if any team references this agent
grep -r "<agent-name>" teams/*.md
# Check if any guide references this agent
grep -r "<agent-name>" guides/*.md
Variants
Add new agent to registry alphabetically:
- id: <agent-name>-advanced
path: agents/<agent-name>-advanced.md
description: One-line description of the advanced variant
tags: [domain, specialty, advanced]
priority: normal
tools: [Read, Write, Edit, Bash, Grep, Glob]
skills:
- skill-id-one
- skill-id-two
Then:
- Increment
total_agentstop of registry - Add See Also in original → variant
- Add See Also in variant → original
.claude/agents/symlink → auto-discoverable
→ Registry matches frontmatter. Variants: total_agents matches actual.
If err: count entries grep -c "^ - id:" agents/_registry.yml + verify matches total_agents.
Step 7: Validate
Full checklist:
- File exists expected path
- YAML frontmatter parses
-
versionbumped (refinement) or "1.0.0" (variant) -
updatedtoday - All sections: Purpose, Capabilities, Available Skills, Usage Scenarios, Examples, Limitations, See Also
- Frontmatter skills match Available Skills
- All IDs in
skills/_registry.yml - Defaults (
meditate,heal) not listed unless core methodology - Tools least-privilege
- Registry entry matches frontmatter
- Variants:
total_agentsmatches disk - Cross-refs bidirectional (original ↔ variant)
-
git diffno accidental deletions
# Verify frontmatter
head -20 agents/<agent-name>.md
# Check skills exist
for skill in skill-a skill-b; do
grep "id: $skill" skills/_registry.yml
done
# Count agents on disk vs registry
ls agents/*.md | grep -v template | wc -l
grep total_agents agents/_registry.yml
# Review all changes
git diff
→ All pass. Ready to commit.
If err: address each failing item. Common: stale IDs in Available Skills, forgotten updated date.
Check
- File exists + valid YAML
-
versionreflects changes -
updatedcurrent - All sections consistent
- Frontmatter
skillsmatches Available Skills - All IDs in registry
- Defaults not listed unnecessarily
- Registry matches file
- Variants: new entry correct path
- Variants:
total_agentsupdated - Cross-refs valid (no broken See Also)
- Refinements w/ translations:
source_commitupdated all locales -
git diffno accidental removal
Traps
- Forget version bump: No way track changes. Always
version+updatedbefore commit. - Stale translations post-evolution: 1,288+ translation files → every agent evolution → up to 4 locale files stale. Check
ls i18n/*/agents/<agent-name>.md+ updatesource_commitor flag re-translation. - Skills list drift: Frontmatter
skills+## Available Skillsmust sync. Update one not other → confusion humans + tooling. - List defaults unnecessarily: Adding
meditate/healto frontmatter when inherited. Only list if core methodology (e.g.,mystic,alchemist). - Tool over-provisioning: Add
BashorWebFetch"just in case" during evolution. Every addition justified by specific new capability. - Stale See Also after variant: Original + variant need reference each other. One-directional → incomplete graph.
- Registry not updated: After skills/tools/desc change → registry must match. Stale → discovery + tooling failures.
→
create-agent— foundation for new agents; evolve-agent assumes this followedevolve-skill— parallel procedure for SKILL.mdcommit-changes— commit evolved agent w/ descriptive msg
GitHub 저장소
연관 스킬
content-collections
메타이 스킬은 콘텐츠 콜렉션(Content Collections)을 위한 프로덕션 검증된 설정을 제공합니다. 콘텐츠 콜렉션은 Markdown/MDX 파일을 Zod 검증이 포함된 타입 안전한 데이터 콜렉션으로 변환해주는 TypeScript 최우선 도구입니다. 블로그, 문서 사이트 또는 콘텐츠 중심의 Vite + React 애플리케이션을 구축할 때 타입 안전성과 자동 콘텐츠 검증을 보장하기 위해 사용하세요. Vite 플러그인 구성과 MDX 컴파일부터 배포 최적화 및 스키마 검증에 이르기까지 모든 것을 다룹니다.
polymarket
메타이 스킬은 개발자들이 Polymarket 예측 시장 플랫폼을 활용한 애플리케이션을 구축할 수 있도록 지원하며, 거래 및 시장 데이터를 위한 API 통합 기능을 포함합니다. 또한 WebSocket을 통한 실시간 데이터 스트리밍을 제공하여 실시간 거래와 시장 활동을 모니터링할 수 있습니다. 이를 통해 거래 전략을 구현하거나 실시간 시장 업데이트를 처리하는 도구를 생성하는 데 활용할 수 있습니다.
creating-opencode-plugins
메타이 스킬은 개발자들이 명령어, 파일, LSP 작업 등 25개 이상의 이벤트 유형에 연결되는 OpenCode 플러그인을 만들 수 있도록 돕습니다. JavaScript/TypeScript 모듈을 위한 플러그인 구조, 이벤트 API 명세, 구현 패턴을 제공합니다. OpenCode AI 어시스턴트의 라이프사이클을 사용자 정의 이벤트 기반 로직으로 가로채거나, 모니터링하거나, 확장해야 할 때 사용하세요.
sglang
메타SGLang은 RadixAttention 프리픽스 캐싱을 활용하여 JSON, 정규식, 에이전트 워크플로우를 위한 고속 구조화 생성에 특화된 고성능 LLM 서빙 프레임워크입니다. 특히 반복되는 프리픽스가 있는 작업에서 상당히 빠른 추론 속도를 제공하여 복잡한 구조화 출력 및 다중 턴 대화에 이상적입니다. 제약 디코딩이 필요하거나 광범위한 프리픽스 공유가 있는 애플리케이션을 구축할 때는 vLLM과 같은 대안보다 SGLang을 선택하십시오.
