Zurück zu Fähigkeiten

evolve-agent

pjt222
Aktualisiert 2 days ago
8 Ansichten
17
2
17
Auf GitHub ansehen
Metaaidesigndata

Über

Diese Fähigkeit aktualisiert die Definition eines bestehenden Agenten, indem sie entweder dessen aktuelle Persona verfeinert oder eine neue, fortgeschrittene Variante erstellt. Sie umfasst die Bewertung des Agenten, die Anpassung seiner Fähigkeiten und Werkzeuge sowie die Aktualisierung der Versionsmetadaten. Nutzen Sie sie, wenn die Fähigkeiten eines Agenten veraltet sind, Feedback Lücken aufzeigt oder sein Anwendungsbereich nach dem praktischen Einsatz angepasst werden muss.

Schnellinstallation

Claude Code

Empfohlen
Primär
npx skills add pjt222/agent-almanac -a claude-code
Plugin-BefehlAlternativ
/plugin add https://github.com/pjt222/agent-almanac
Git CloneAlternativ
git clone https://github.com/pjt222/agent-almanac.git ~/.claude/skills/evolve-agent

Kopieren Sie diesen Befehl und fügen Sie ihn in Claude Code ein, um diese Fähigkeit zu installieren

Dokumentation

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:

SectionCheckCommon Issues
FrontmatterRequired fields (name, description, tools, model, version, author)Missing tags, stale version, wrong priority
PurposeSpecific problem, not "helps with X"Vague/overlapping
CapabilitiesConcrete, verifiable, bold lead-insGeneric ("handles development"), no grouping
Available SkillsMatches frontmatter, IDs in registryStale IDs, missing new, lists defaults unnecessarily
Usage Scenarios2-3 realistic + invocationPlaceholder, unrealistic
ExamplesUser req + agent behaviorMissing/trivial
Limitations3-5 honest constraintsToo few/vague/missing
See AlsoValid cross-refsStale 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:

TriggerExampleScope
User feedback"Missed XSS in review"Add skill/capability
New skillsLibrary gained analyze-api-securityUpdate skills list
Tool changeNew MCP availableAdd tools/mcp_servers
Scope overlap2 agents claim "code review"Sharpen purpose + limitations
Team integrationAdded to new teamUpdate See Also, verify capabilities
Model upgradeDeeper reasoning neededChange model field
Privilege reductionBash but only readsRemove 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:

CriteriaRefinement (in-place)Advanced Variant (new)
Agent IDUnchangedNew: <agent>-advanced or <agent>-<specialty>
File pathSame .mdNew file in agents/
Version bumpPatch/minorStarts 1.0.0
ModelMay changeOften higher (sonnet → opus)
RegistryUpdate existingNew entry
OriginalModified directlyLeft 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_commitnpm run validate:translations false staleness across locales.

Check + update translations:

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

If translations exist

  1. Current source commit:
SOURCE_COMMIT=$(git rev-parse HEAD)
  1. Update source_commit each translated:
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 → 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>
  1. 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:

ChangeBumpExample
Typo/wordingPatch: 1.0.0 → 1.0.1Fixed unclear limitation
New skills, capability expandedMinor: 1.0.0 → 1.1.0Added 3 new skills
Restructured, model changeMajor: 1.0.0 → 2.0.0Narrowed scope, opus

Also update:

  • updated date = today
  • tags if domain coverage changed
  • description if purpose materially diff
  • priority if 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:

  1. Increment total_agents top of registry
  2. Add See Also in original → variant
  3. Add See Also in variant → original
  4. .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
  • version bumped (refinement) or "1.0.0" (variant)
  • updated today
  • 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_agents matches disk
  • Cross-refs bidirectional (original ↔ variant)
  • git diff no 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
  • version reflects changes
  • updated current
  • All sections consistent
  • Frontmatter skills matches Available Skills
  • All IDs in registry
  • Defaults not listed unnecessarily
  • Registry matches file
  • Variants: new entry correct path
  • Variants: total_agents updated
  • Cross-refs valid (no broken See Also)
  • Refinements w/ translations: source_commit updated all locales
  • git diff no accidental removal

Traps

  • Forget version bump: No way track changes. Always version + updated before 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 + update source_commit or flag re-translation.
  • Skills list drift: Frontmatter skills + ## Available Skills must sync. Update one not other → confusion humans + tooling.
  • List defaults unnecessarily: Adding meditate/heal to frontmatter when inherited. Only list if core methodology (e.g., mystic, alchemist).
  • Tool over-provisioning: Add Bash or WebFetch "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 followed
  • evolve-skill — parallel procedure for SKILL.md
  • commit-changes — commit evolved agent w/ descriptive msg

GitHub Repository

pjt222/agent-almanac
Pfad: i18n/caveman-ultra/skills/evolve-agent
0
agentsagentskillsai-assisted-developmentclaude-codeskillsteams

Verwandte Skills

content-collections

Meta

Diese Skill bietet eine produktionsgetestete Einrichtung für Content Collections – ein TypeScript-first-Tool, das Markdown/MDX-Dateien in typsichere Datensammlungen mit Zod-Validierung umwandelt. Verwenden Sie ihn beim Erstellen von Blogs, Dokumentationsseiten oder inhaltsstarken Vite + React-Anwendungen, um Typsicherheit und automatische Inhaltsvalidierung zu gewährleisten. Er behandelt alles von der Vite-Plugin-Konfiguration und MDX-Kompilierung bis hin zur Deployment-Optimierung und Schema-Validierung.

Skill ansehen

polymarket

Meta

Diese Fähigkeit ermöglicht es Entwicklern, Anwendungen mit der Polymarket-Prognosemärkte-Plattform zu erstellen, einschließlich API-Integration für Handel und Marktdaten. Sie bietet außerdem Echtzeit-Datenstreaming über WebSocket, um Live-Trades und Marktaktivitäten zu überwachen. Nutzen Sie sie zur Implementierung von Handelsstrategien oder zur Erstellung von Tools, die Live-Marktaktualisierungen verarbeiten.

Skill ansehen

creating-opencode-plugins

Meta

Diese Fähigkeit unterstützt Entwickler dabei, OpenCode-Plugins zu erstellen, die in über 25 Ereignistypen wie Befehle, Dateien und LSP-Operationen eingreifen. Sie bietet die Plugin-Struktur, Event-API-Spezifikationen und Implementierungsmuster für JavaScript/TypeScript-Module. Nutzen Sie sie, wenn Sie den Lebenszyklus des OpenCode KI-Assistenten mit benutzerdefinierter ereignisgesteuerter Logik abfangen, überwachen oder erweitern müssen.

Skill ansehen

sglang

Meta

SGLang ist ein hochperformantes LLM-Serving-Framework, das sich auf schnelle, strukturierte Generierung für JSON, Regex und agentenbasierte Workflows unter Verwendung seines RadixAttention-Prefix-Cachings spezialisiert. Es bietet deutlich schnellere Inferenz, insbesondere für Aufgaben mit wiederholten Präfixen, was es ideal für komplexe, strukturierte Ausgaben und Mehrfachdialoge macht. Wählen Sie SGLang gegenüber Alternativen wie vLLM, wenn Sie constrained decoding benötigen oder Anwendungen mit umfangreicher Präfix-Weitergabe entwickeln.

Skill ansehen