MCP HubMCP Hub
스킬 목록으로 돌아가기

evolve-agent

pjt222
업데이트됨 2 days ago
4 조회
17
2
17
GitHub에서 보기
메타aidesigndata

정보

`evolve-agent` 스킬은 기존 에이전트의 핵심 정의를 개선하거나 고급 변형을 생성하여 업데이트합니다. 이 스킬은 에이전트 평가, 스킬 및 도구 변경 적용, 메타데이터 및 레지스트리 참조 업데이트를 처리합니다. 에이전트의 기능이 구식이 되었거나, 피드백에서 격차가 드러났을 때, 혹은 실제 사용 후 범위 조정이 필요할 때 이 스킬을 사용하세요.

빠른 설치

Claude Code

추천
기본
npx skills add pjt222/agent-almanac -a claude-code
플러그인 명령대체
/plugin add https://github.com/pjt222/agent-almanac
Git 클론대체
git clone https://github.com/pjt222/agent-almanac.git ~/.claude/skills/evolve-agent

Claude Code에서 이 명령을 복사하여 붙여넣어 스킬을 설치하세요

문서

Evolve an Existing Agent

Fix, grow, or make advanced variant of agent first made with create-agent. This proc covers upkeep side of agent life: check gaps vs best practices, apply tight fixes to persona def, bump versions, keep registry and cross-refs in sync.

When Use

  • Agent skills list stale after new skills added to library
  • User feedback shows missing capabilities, unclear purpose, or weak examples
  • Tool rules shifted (new MCP server, tool gone, privilege drop needed)
  • Agent scope needs sharpening — overlaps with another agent or too broad
  • Advanced variant needed next to original (e.g., r-developer and r-developer-advanced)
  • Related agents or teams added, cross-refs in See Also are stale

Inputs

  • Required: Path to existing agent file to evolve (e.g., agents/r-developer.md)
  • Required: Evolve trigger (feedback, new skills, tool change, scope overlap, team integration, spotted limits)
  • Optional: Target version bump size (patch, minor, major)
  • Optional: Make advanced variant vs refine in-place (default: refine in-place)

Steps

Step 1: Assess the Current Agent

Read existing agent file and check each section vs quality list from guides/agent-best-practices.md:

SectionWhat to CheckCommon Issues
FrontmatterAll required fields present (name, description, tools, model, version, author)Missing tags, stale version, wrong priority
PurposeSpecific problem statement, not generic "helps with X"Vague or overlapping with another agent
CapabilitiesConcrete, verifiable capabilities with bold lead-insGeneric ("handles development"), no grouping
Available SkillsMatches frontmatter skills list, all IDs exist in registryStale IDs, missing new skills, lists default skills unnecessarily
Usage Scenarios2-3 realistic scenarios with invocation patternsPlaceholder text, unrealistic examples
ExamplesShows user request and agent behaviorMissing or trivial examples
Limitations3-5 honest constraintsToo few, too vague, or missing entirely
See AlsoValid cross-references to agents, guides, teamsStale 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: List of specific gaps, weak spots, or fix chances sorted by section.

If fail: Agent file not exist or no frontmatter? This skill not apply — use create-agent instead to make from scratch.

Step 2: Gather Evolution Requirements

Spot and sort what fired the evolution:

TriggerExampleTypical Scope
User feedback"Agent missed XSS in review"Add skill or capability
New skills availableLibrary gained analyze-api-securityUpdate skills list
Tool changeNew MCP server availableAdd to tools/mcp_servers
Scope overlapTwo agents both claim "code review"Sharpen purpose and limitations
Team integrationAgent added to a new teamUpdate See Also, verify capabilities
Model upgradeTask requires deeper reasoningChange model field
Privilege reductionAgent has Bash but only reads filesRemove unnecessary tools

Log specific changes needed before edit. List each change with 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: Concrete list of changes, each mapped to specific section of agent file.

If fail: Changes unclear? Ask user for clarity before go on. Vague evolution goals give vague fixes.

Step 3: Choose Evolution Scope

Use this pick matrix to decide refine in-place or make variant:

CriteriaRefinement (in-place)Advanced Variant (new agent)
Agent IDUnchangedNew ID: <agent>-advanced or <agent>-<specialty>
File pathSame .md fileNew file in agents/
Version bumpPatch or minorStarts at 1.0.0
ModelMay changeOften higher (e.g., sonnet → opus)
RegistryUpdate existing entryNew entry added
Original agentModified directlyLeft intact, gains See Also cross-reference

Refinement: Pick when update skills, fix docs, sharpen scope, or tune tools. Agent keeps its identity.

Variant: Pick when evolved version would serve a different audience, need different model, or add capabilities that would make original too broad. Original stays as-is for simpler use cases.

Got: Clear pick — refine or variant — with reason.

If fail: Unsure? Default to refine. Can always pull variant later; harder to merge one back.

Step 4: Apply Changes to the Agent File

For Refinements

Edit existing agent file direct:

  • Frontmatter: Update skills, tools, tags, model, priority, mcp_servers as need
  • Purpose/Capabilities: Revise to show new scope or added function
  • Available Skills: Add new skills with desc, remove deprecated ones
  • Usage Scenarios: Add or revise scenarios to show new capabilities
  • Limitations: Remove limits no longer apply, add new honest ones
  • See Also: Update cross-refs to show current agent/team/guide landscape

Follow these edit rules:

  • Keep all existing sections — add content, do not remove sections
  • Keep Available Skills section in sync with frontmatter skills list
  • Do not add default skills (meditate, heal) to frontmatter unless core to agent methodology
  • Check 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: Agent file (refined or new variant) passes check list from Step 1.

If fail: Edit breaks doc shape? 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_commit values cause npm run validate:translations to report false staleness warnings across all locales.

Check whether translations exist for evolved agent and update to match new source state:

# Check for existing translations
ls i18n/*/agents/<agent-name>.md 2>/dev/null

If translations exist

  1. Get current source commit hash:
SOURCE_COMMIT=$(git rev-parse HEAD)
  1. Update source_commit in each translated file frontmatter:
for locale_file in i18n/*/agents/<agent-name>.md; do
  sed -i "s/^source_commit: .*/source_commit: $SOURCE_COMMIT/" "$locale_file"
done
  1. Flag files for re-translation by adding affected locales 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>
  1. Regen translation status files:
npm run translation:status

If no translations exist

No action needed. Go to Step 5.

For variants

Wait translation of new variants until variant stabilizes (1-2 versions). Add translations after variant refined at least once.

Got: All translated files have source_commit updated to current commit. npm run translation:status exits 0.

If fail: sed fails to match frontmatter field? Open translated file by hand and check it has source_commit in its YAML frontmatter. Field missing? Re-scaffold with npm run translate:scaffold -- agents <agent-name> <locale>.

Step 5: Update Version and Metadata

Bump version field in frontmatter by semantic versioning:

Change TypeVersion BumpExample
Typo fix, wording clarificationPatch: 1.0.0 → 1.0.1Fixed unclear limitation
New skills added, capability expandedMinor: 1.0.0 → 1.1.0Added 3 new skills from library
Restructured purpose, changed modelMajor: 1.0.0 → 2.0.0Narrowed scope, upgraded to opus

Also update:

  • updated date to current date
  • tags if agent domain coverage shifted
  • description if purpose materially different
  • priority if agent importance vs others shifted

Got: Frontmatter version and updated match size and date of changes. New variants start at "1.0.0".

If fail: Forget to bump version? Next evolve will have no way to tell current state from old. Always bump before commit.

Step 6: Update Registry and Cross-References

For Refinements

Update existing entry in agents/_registry.yml to match 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 agent file. No count change needed.

Update cross-refs in other files if agent capabilities or name shifted:

# 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 new agent to agents/_registry.yml in alpha spot:

  - 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:

  1. Bump total_agents at top of registry
  2. Add See Also cross-ref in original agent pointing to variant
  3. Add See Also cross-ref in variant pointing to original
  4. .claude/agents/ symlink to agents/ means variant auto-found

Got: Registry entry matches agent file frontmatter. For variants, total_agents equals real count of agent entries.

If fail: Count entries with grep -c "^ - id:" agents/_registry.yml and check it matches total_agents.

Step 7: Validate the Evolved Agent

Run full check list:

  • Agent file exists at expected path
  • YAML frontmatter parses with no errors
  • version was bumped (refinement) or set to "1.0.0" (variant)
  • updated date shows today
  • All required sections present: Purpose, Capabilities, Available Skills, Usage Scenarios, Examples, Limitations, See Also
  • Skills in frontmatter match Available Skills section
  • All skill IDs exist in skills/_registry.yml
  • Default skills (meditate, heal) not listed unless core to method
  • Tools list follows least-privilege rule
  • Registry entry exists and matches frontmatter
  • For variants: total_agents count matches real count on disk
  • Cross-refs two-way (original ↔ variant)
  • git diff shows no slip deletions from 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 check items pass. Evolved agent ready to commit.

If fail: Fix each failing item one by one. Most common post-evolve issues are stale skill IDs in Available Skills section and forgot updated date.

Validation

  • Agent file exists and has valid YAML frontmatter
  • version field shows changes made
  • updated date is current
  • All sections present and in sync
  • Frontmatter skills array matches Available Skills section
  • All skill IDs exist in skills/_registry.yml
  • Default skills not listed needlessly
  • Registry entry matches agent file
  • For variants: new entry in agents/_registry.yml with right path
  • For variants: total_agents count updated
  • Cross-refs valid (no broken links in See Also)
  • For refinements with translations: source_commit updated in all locale files
  • git diff confirms no slip content removal

Pitfalls

  • Forget to bump version: No version bump, no way to track what changed or when. Always update version and updated in frontmatter before commit.
  • Stale translations after evolve: With 1,288+ translation files in repo, every agent evolve fires staleness in up to 4 locale files. Always check for existing translations with ls i18n/*/agents/<agent-name>.md and update source_commit in each, or flag them for re-translation in commit msg.
  • Skills list drift: Frontmatter skills array and ## Available Skills section must stay in sync. Update one without other gives confusion for both humans and tools.
  • List default skills needlessly: Adding meditate or heal to frontmatter when already inherited from registry. Only list if core to agent method (e.g., mystic, alchemist).
  • Tool over-add during evolve: Adding Bash or WebFetch during evolve "just in case." Every tool add must be backed by specific new capability.
  • Stale See Also after variant make: When making variant, both original and variant need to ref each other. One-way refs leave graph broken.
  • Registry entry not updated: After changing agent skills, tools, or desc, agents/_registry.yml entry must update to match. Stale registry entries cause discovery and tool fails.

See Also

  • create-agent — base for making new agents; evolve-agent assumes this was followed first
  • evolve-skill — parallel proc for evolving SKILL.md files
  • commit-changes — commit evolved agent with clear msg

GitHub 저장소

pjt222/agent-almanac
경로: i18n/caveman/skills/evolve-agent
0
agentsagentskillsai-assisted-developmentclaude-codeskillsteams

연관 스킬

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을 선택하십시오.

스킬 보기