Back to Skills

evolve-agent

pjt222
Updated 6 days ago
12 views
17
2
17
View on GitHub
Metaaidesigndata

About

The `evolve-agent` skill updates an existing agent by refining its persona or creating an advanced variant. It assesses the agent against best practices, applies changes to its skills and tools, and updates version metadata. Use it when an agent's capabilities are outdated, feedback reveals gaps, or its scope needs sharpening after real-world use.

Quick Install

Claude Code

Recommended
Primary
npx skills add pjt222/agent-almanac -a claude-code
Plugin CommandAlternative
/plugin add https://github.com/pjt222/agent-almanac
Git CloneAlternative
git clone https://github.com/pjt222/agent-almanac.git ~/.claude/skills/evolve-agent

Copy and paste this command in Claude Code to install this skill

Documentation

演舊 agent

改、擴、或造原以 create-agent 建之 agent 之進階變。此行屬 agent 生週之維:較最佳踐估缺、施針對改於 persona 定、升版、使登記與交引同步。

  • 技庫加新技後 agent 之技列舊
  • 用者反饋示能缺、旨不明、例弱
  • 工具求變(新 MCP 服、工去、需減權)
  • agent 範須銳——與他 agent 重或過廣
  • 須於原之側有進階變(如 r-developerr-developer-advanced
  • 加新 agent 或 team 而 See Also 舊

  • :欲演 agent 文之徑(如 agents/r-developer.md
  • :演因(反饋、新技、工變、範重、team 入、見限)
  • :目標版升級(patch、minor、major)
  • :是否造進階變代原地改(默:原地)

一:估現 agent

讀舊 agent 文並據 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

得:依節分之特缺、弱、機會之列。

敗:agent 文缺或無 frontmatter→此技不適;用 create-agent 自零造之。

二:集演求

識並分觸演之因:

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

編前錄須特改。各改映於特節:

- 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

得:具改之列,各映於 agent 文之特節。

敗:改不明→進前請用者明之。模糊演標產模糊改。

三:擇演範

用此決矩定原地改或造變:

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

原地改:更技、修文、銳範、調工時擇。agent 保同。

:演版將服大異眾、需異型、或加使原過廣之能時擇。原存以供簡用。

得:明決——改或變——並有理。

敗:不確→默改。後可抽變;合難。

四:施改於 agent 文

原地改

直編舊 agent 文:

  • Frontmatter:按須更 skillstoolstagsmodelprioritymcp_servers
  • Purpose/Capabilities:改以反新範或加能
  • Available Skills:加新技含述、去棄者
  • Usage Scenarios:加或改景以示新能
  • Limitations:去不適之約、加新實者
  • See Also:更交引反現 agent/team/guide 域

循此編則:

  • 保諸節——加容,勿去節
  • Available Skills 與 frontmatter skills 列同
  • 默技(meditateheal)非 agent 核法勿入 frontmatter
  • 驗各技 ID 存:grep "id: skill-name" skills/_registry.yml

# 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 文(改或新變)過一步估表。

敗:編破文構→用 git diff 閱改,以 git checkout -- <file> 復部分。

四半:同譯變

譯存時必。此步適人作者與 AI agent 循此行。勿略——舊 source_commitnpm run validate:translations 於諸地報偽舊警。

察演之 agent 譯否存並更以反新源態:

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

若譯存

  1. 取現源 commit 雜:
SOURCE_COMMIT=$(git rev-parse HEAD)
  1. 於諸譯文 frontmatter 中更 source_commit
for locale_file in i18n/*/agents/<agent-name>.md; do
  sed -i "s/^source_commit: .*/source_commit: $SOURCE_COMMIT/" "$locale_file"
done
  1. 旗待重譯之地入 commit 信:
evolve(<agent-name>): <description of changes>

Translations flagged for re-sync: de, zh-CN, ja, es
Changed sections: <list sections that changed>
  1. 重生譯態文:
npm run translation:status

若無譯

無須行。進五步。

新變之譯宜於變穩(1-2 版)後行。變至少改一次後加譯。

得:諸譯文 source_commit 更至現 commit。npm run translation:status 退 0。

敗:sed 匹 frontmatter 欄敗→手開譯文驗其 YAML frontmatter 含 source_commit。若欄缺→重 scaffold 以 npm run translate:scaffold -- agents <agent-name> <locale>

五:更版與元

依語義版升 frontmatter 之 version

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

亦更:

  • updated 為今日
  • tags 若域覆變
  • description 若旨大異
  • priority 若相重變

得:frontmatter versionupdated 反改之度與日。新變自 "1.0.0" 起。

敗:忘升版→下演無法別現態於舊。commit 前必升。

六:更登記與交引

原地改

agents/_registry.yml 中舊條以匹改 frontmatter:

# Find the agent's registry entry
grep -A 10 "id: <agent-name>" agents/_registry.yml

descriptiontagstoolsskills 以匹 agent 文。計無變。

若 agent 之能或名變→更他文交引:

# 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

agents/_registry.yml 依字母位加新 agent:

  - 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

後:

  1. 增登首之 total_agents
  2. 於原 agent 之 See Also 加指變之交引
  3. 於變之 See Also 加指原之交引
  4. .claude/agents/agents/ 之符鏈使變自可察

得:登條與 agent frontmatter 匹。變:total_agents 等實 agent 數。

敗:以 grep -c "^ - id:" agents/_registry.yml 計條並驗匹 total_agents

七:驗演 agent

行全驗表:

  • agent 文於期徑存
  • YAML frontmatter 解而無誤
  • version 已升(改)或設 "1.0.0"(變)
  • updated 反今
  • 諸必節在:Purpose、Capabilities、Available Skills、Usage Scenarios、Examples、Limitations、See Also
  • frontmatter 技與 Available Skills 節匹
  • 諸技 ID 存於 skills/_registry.yml
  • 默技(meditateheal)非核法則不列
  • 工列循最少權原則
  • 登條存且與 frontmatter 匹
  • 變:total_agents 計匹碟上實數
  • 交引雙向(原 ↔ 變)
  • git diff 示無偶去原容
# 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

得:諸表項過。演 agent 可 commit。

敗:各敗項獨處。演後最常議:Available Skills 中技 ID 舊、忘之 updated 日。

  • agent 文存且有效 YAML frontmatter
  • version 欄反改
  • updated 日現
  • 諸節在並內一致
  • frontmatter skills 陣與 Available Skills 節匹
  • 諸技 ID 存於 skills/_registry.yml
  • 默技不冗列
  • 登條匹 agent 文
  • 變:agents/_registry.yml 中新條徑正
  • 變:total_agents 計已更
  • 交引有效(See Also 無斷鏈)
  • 含譯之改:諸地文 source_commit 已更
  • git diff 證無偶去容

  • 忘升版:無升則無法追何變何時。commit 前必更 frontmatter 之 versionupdated
  • 演後譯舊:庫中 1,288+ 譯文,每 agent 演觸至多 4 地舊。必以 ls i18n/*/agents/<agent-name>.md 察譯並各更 source_commit,或於 commit 信中旗重譯
  • 技列漂:frontmatter skills 陣與 ## Available Skills 節須同。更一不更他致人與工具亂
  • 冗列默技:加 meditateheal 於 frontmatter 而登已繼。唯核法時列(如 mysticalchemist
  • 演時過備工:「備用」而加 BashWebFetch。每加工須以特新能證
  • 變後 See Also 舊:造變時原與變須互引。單向留圖不全
  • 登條不更:改 agent 之技、工、述後,agents/_registry.yml 條須更匹。舊登致察與工具敗

  • create-agent — 造新 agent 之基;evolve-agent 設此先循
  • evolve-skill — 演 SKILL.md 之並行行
  • commit-changes — 以述信 commit 演 agent

GitHub Repository

pjt222/agent-almanac
Path: i18n/wenyan-ultra/skills/evolve-agent
0
agentsagentskillsai-assisted-developmentclaude-codeskillsteams

Related Skills

content-collections

Meta

This skill provides a production-tested setup for Content Collections, a TypeScript-first tool that transforms Markdown/MDX files into type-safe data collections with Zod validation. Use it when building blogs, documentation sites, or content-heavy Vite + React applications to ensure type safety and automatic content validation. It covers everything from Vite plugin configuration and MDX compilation to deployment optimization and schema validation.

View skill

polymarket

Meta

This skill enables developers to build applications with the Polymarket prediction markets platform, including API integration for trading and market data. It also provides real-time data streaming via WebSocket to monitor live trades and market activity. Use it for implementing trading strategies or creating tools that process live market updates.

View skill

creating-opencode-plugins

Meta

This skill helps developers create OpenCode plugins that hook into 25+ event types like commands, files, and LSP operations. It provides the plugin structure, event API specifications, and implementation patterns for JavaScript/TypeScript modules. Use it when you need to intercept, monitor, or extend the OpenCode AI assistant's lifecycle with custom event-driven logic.

View skill

sglang

Meta

SGLang is a high-performance LLM serving framework that specializes in fast, structured generation for JSON, regex, and agentic workflows using its RadixAttention prefix caching. It delivers significantly faster inference, especially for tasks with repeated prefixes, making it ideal for complex, structured outputs and multi-turn conversations. Choose SGLang over alternatives like vLLM when you need constrained decoding or are building applications with extensive prefix sharing.

View skill