evolve-agent
정보
`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 an advanced variant of an agent that was originally authored with create-agent. This procedure covers the maintenance side of the agent lifecycle: assessing gaps against best practices, applying targeted improvements to the persona definition, bumping versions, and keeping the registry and cross-references in sync.
When to Use
- An agent's skills list is outdated after new skills were added to the library
- User feedback reveals missing capabilities, unclear purpose, or weak examples
- Tool requirements have changed (new MCP server, tool removed, privilege reduction needed)
- An agent's scope needs sharpening — it overlaps with another agent or is too broad
- An advanced variant is needed alongside the original (e.g.,
r-developerandr-developer-advanced) - Related agents or teams were added and cross-references in See Also are stale
Inputs
- Required: Path to the existing agent file to evolve (e.g.,
agents/r-developer.md) - Required: Evolution trigger (feedback, new skills, tool change, scope overlap, team integration, discovered limitations)
- Optional: Target version bump magnitude (patch, minor, major)
- Optional: Whether to create an advanced variant instead of refining in-place (default: refine in-place)
Procedure
Step 1: Assess the Current Agent
Read the existing agent file and evaluate each section against the quality checklist from guides/agent-best-practices.md:
| Section | What to Check | Common Issues |
|---|---|---|
| Frontmatter | All required fields present (name, description, tools, model, version, author) | Missing tags, stale version, wrong priority |
| Purpose | Specific problem statement, not generic "helps with X" | Vague or overlapping with another agent |
| Capabilities | Concrete, verifiable capabilities with bold lead-ins | Generic ("handles development"), no grouping |
| Available Skills | Matches frontmatter skills list, all IDs exist in registry | Stale IDs, missing new skills, lists default skills unnecessarily |
| Usage Scenarios | 2-3 realistic scenarios with invocation patterns | Placeholder text, unrealistic examples |
| Examples | Shows user request and agent behavior | Missing or trivial examples |
| Limitations | 3-5 honest constraints | Too few, too vague, or missing entirely |
| See Also | Valid cross-references to agents, guides, teams | Stale links to renamed or removed files |
# 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
Got: A list of specific gaps, weaknesses, or improvement opportunities organized by section.
If fail: If the agent file does not exist or has no frontmatter, this skill does not apply — use create-agent instead to author it from scratch.
Step 2: Gather Evolution Requirements
Identify and categorize what triggered the evolution:
| Trigger | Example | Typical Scope |
|---|---|---|
| User feedback | "Agent missed XSS in review" | Add skill or capability |
| New skills available | Library gained analyze-api-security | Update skills list |
| Tool change | New MCP server available | Add to tools/mcp_servers |
| Scope overlap | Two agents both claim "code review" | Sharpen purpose and limitations |
| Team integration | Agent added to a new team | Update See Also, verify capabilities |
| Model upgrade | Task requires deeper reasoning | Change model field |
| Privilege reduction | Agent has Bash but only reads files | Remove unnecessary tools |
Document the specific changes needed before editing. List each change with its target section:
- 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
Got: A concrete list of changes, each mapped to a specific section of the agent file.
If fail: If the changes are unclear, consult the user for clarification before proceeding. Vague evolution goals produce vague improvements.
Step 3: Choose Evolution Scope
Use this decision matrix to determine whether to refine in-place or create a variant:
| Criteria | Refinement (in-place) | Advanced Variant (new agent) |
|---|---|---|
| Agent ID | Unchanged | New ID: <agent>-advanced or <agent>-<specialty> |
| File path | Same .md file | New file in agents/ |
| Version bump | Patch or minor | Starts at 1.0.0 |
| Model | May change | Often higher (e.g., sonnet → opus) |
| Registry | Update existing entry | New entry added |
| Original agent | Modified directly | Left intact, gains See Also cross-reference |
Refinement: Choose when updating skills, fixing documentation, sharpening scope, or adjusting tools. The agent keeps its identity.
Variant: Choose when the evolved version would serve a substantially different audience, require a different model, or add capabilities that would make the original too broad. The original stays as-is for simpler use cases.
Got: A clear decision — refinement or variant — with rationale.
If fail: If unsure, default to refinement. You can always extract a variant later; it is harder to merge one back.
Step 4: Apply Changes to the Agent File
For Refinements
Edit the existing agent file directly:
- Frontmatter: Update
skills,tools,tags,model,priority,mcp_serversas needed - Purpose/Capabilities: Revise to reflect new scope or added functionality
- Available Skills: Add new skills with descriptions, remove deprecated ones
- Usage Scenarios: Add or revise scenarios to demonstrate new capabilities
- Limitations: Remove constraints that no longer apply, add new honest ones
- See Also: Update cross-references to reflect current agent/team/guide landscape
Follow these editing rules:
- Preserve all existing sections — add content, do not remove sections
- Keep the Available Skills section in sync with the frontmatter
skillslist - Do not add default skills (
meditate,heal) to frontmatter unless they are core to the agent's methodology - Verify each skill ID exists:
grep "id: skill-name" skills/_registry.yml
For 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
Got: The agent file (refined or new variant) passes the assessment checklist from Step 1.
If fail: If an edit breaks the document structure, use git diff to review changes and revert partial edits with git checkout -- <file>.
Step 4.5: Sync Translated Variants
Required when translations exist. This step applies to both human authors and AI agents following this procedure. Do not skip — stale
source_commitvalues causenpm run validate:translationsto report false staleness warnings across all locales.
Check whether translations exist for the evolved agent and update them to reflect the new source state:
# Check for existing translations
ls i18n/*/agents/<agent-name>.md 2>/dev/null
If translations exist
- Get the current source commit hash:
SOURCE_COMMIT=$(git rev-parse HEAD)
- Update
source_commitin each translated file's frontmatter:
for locale_file in i18n/*/agents/<agent-name>.md; do
sed -i "s/^source_commit: .*/source_commit: $SOURCE_COMMIT/" "$locale_file"
done
- Flag files for re-translation by including affected locales in the commit message:
evolve(<agent-name>): <description of changes>
Translations flagged for re-sync: de, zh-CN, ja, es
Changed sections: <list sections that changed>
- Regenerate translation status files:
npm run translation:status
If no translations exist
No action needed. Proceed to Step 5.
For variants
Defer translation of new variants until the variant stabilizes (1-2 versions). Add translations after the variant has been refined at least once.
Got: All translated files have source_commit updated to the current commit. npm run translation:status exits 0.
If fail: If sed fails to match the frontmatter field, open the translated file manually and verify it has source_commit in its YAML frontmatter. If the field is missing, re-scaffold with npm run translate:scaffold -- agents <agent-name> <locale>.
Step 5: Update Version and Metadata
Bump the version field in frontmatter following semantic versioning:
| Change Type | Version Bump | Example |
|---|---|---|
| Typo fix, wording clarification | Patch: 1.0.0 → 1.0.1 | Fixed unclear limitation |
| New skills added, capability expanded | Minor: 1.0.0 → 1.1.0 | Added 3 new skills from library |
| Restructured purpose, changed model | Major: 1.0.0 → 2.0.0 | Narrowed scope, upgraded to opus |
Also update:
updateddate to the current datetagsif the agent's domain coverage changeddescriptionif the purpose is materially differentpriorityif the agent's importance relative to others changed
Got: Frontmatter version and updated reflect the magnitude and date of changes. New variants start at "1.0.0".
If fail: If you forget to bump the version, the next evolution will have no way to distinguish the current state from the previous one. Always bump before committing.
Step 6: Update Registry and Cross-References
For Refinements
Update the existing entry in agents/_registry.yml to match the revised frontmatter:
# Find the agent's registry entry
grep -A 10 "id: <agent-name>" agents/_registry.yml
Update description, tags, tools, and skills fields to match the agent file. No count change is needed.
Update cross-references in other files if the agent's capabilities or 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
For Variants
Add the new agent to agents/_registry.yml in alphabetical position:
- 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_agentsat the top of the registry - Add See Also cross-reference in the original agent pointing to the variant
- Add See Also cross-reference in the variant pointing to the original
- The
.claude/agents/symlink toagents/means the variant is automatically discoverable
Got: Registry entry matches the agent file frontmatter. For variants, total_agents equals the actual number of agent entries.
If fail: Count entries with grep -c "^ - id:" agents/_registry.yml and verify it matches total_agents.
Step 7: Validate the Evolved Agent
Run the full validation checklist:
- Agent file exists at the expected path
- YAML frontmatter parses without errors
-
versionwas bumped (refinement) or set to "1.0.0" (variant) -
updateddate reflects today - All required sections present: Purpose, Capabilities, Available Skills, Usage Scenarios, Examples, Limitations, See Also
- Skills in frontmatter match the Available Skills section
- All skill IDs exist in
skills/_registry.yml - Default skills (
meditate,heal) are not listed unless core to methodology - Tools list follows least-privilege principle
- Registry entry exists and matches frontmatter
- For variants:
total_agentscount matches actual count on disk - Cross-references are bidirectional (original ↔ variant)
-
git diffshows no accidental deletions from the original content
# 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
Got: All checklist items pass. The evolved agent is ready to commit.
If fail: Address each failing item individually. The most common post-evolution issues are stale skill IDs in the Available Skills section and a forgotten updated date.
Validation
- Agent file exists and has valid YAML frontmatter
-
versionfield reflects the changes made -
updateddate is current - All sections present and internally consistent
- Frontmatter
skillsarray matches the Available Skills section - All skill IDs exist in
skills/_registry.yml - Default skills not listed unnecessarily
- Registry entry matches the agent file
- For variants: new entry in
agents/_registry.ymlwith correct path - For variants:
total_agentscount updated - Cross-references are valid (no broken links in See Also)
- For refinements with translations:
source_commitupdated in all locale files -
git diffconfirms no accidental content removal
Pitfalls
- Forgetting to bump version: Without version bumps, there is no way to track what changed or when. Always update
versionandupdatedin frontmatter before committing. - Stale translations after evolution: With 1,288+ translation files in the repo, every agent evolution triggers staleness in up to 4 locale files. Always check for existing translations with
ls i18n/*/agents/<agent-name>.mdand updatesource_commitin each, or flag them for re-translation in the commit message. - Skills list drift: The frontmatter
skillsarray and the## Available Skillssection must stay in sync. Updating one without the other creates confusion for both humans and tooling. - Listing default skills unnecessarily: Adding
meditateorhealto the frontmatter when they are already inherited from the registry. Only list them if they are core to the agent's methodology (e.g.,mystic,alchemist). - Tool over-provisioning during evolution: Adding
BashorWebFetchduring an evolution "just in case." Every tool addition should be justified by a specific new capability. - Stale See Also after variant creation: When creating a variant, both the original and the variant need to reference each other. One-directional references leave the graph incomplete.
- Registry entry not updated: After changing an agent's skills, tools, or description, the
agents/_registry.ymlentry must be updated to match. Stale registry entries cause discovery and tooling failures.
Related Skills
create-agent— foundation for authoring new agents; evolve-agent assumes this was followed originallyevolve-skill— the parallel procedure for evolving SKILL.md filescommit-changes— commit the evolved agent with a descriptive message
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을 선택하십시오.
