技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
evolve-team【数据与研究】Evolve an existing team composition by refining its structure in-place or creating a specialized variant. Covers assessing the current team against template and coordination patterns, gathering evolution requirements, choosing scope (adjust members, change coordination pattern, split/merge teams), applying changes to the team file and CONFIG block, u…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Fix, restructure, or make specialized variant of team first made with create-team. This proc covers upkeep side of team life: check gaps vs template and coord patterns, apply tight fixes to composition and flow, bump versions, keep registry and cross-refs in sync.
r-package-review and r-package-review-security-focused)teams/r-package-review.md)Read existing team file and check each section vs team template (teams/_template.md):
| Section | What to Check | Common Issues |
|---|---|---|
| Frontmatter | All required fields (name, description, lead, version, author, coordination, members[]) | Missing tags, stale version, wrong coordination |
| Purpose | Clear multi-agent justification (at least two distinct specialties) | Could be handled by a single agent |
| Team Composition | Table matches frontmatter members, no overlapping responsibilities | Stale table, duplicated focus areas |
| Coordination Pattern | Matches actual workflow, ASCII diagram present | Wrong pattern for the workflow |
| Task Decomposition | Phased breakdown with concrete tasks per member | Vague tasks, missing phases |
| CONFIG Block | Valid YAML between markers, matches frontmatter and prose | Out of sync, missing blocked_by, invalid YAML |
| Usage Scenarios | 2-3 realistic activation prompts | Placeholder text |
| Limitations | 3-5 honest constraints | Missing or too generic |
| See Also | Valid links to member agents, related teams, guides | Stale links |
# Read the team file
cat teams/<team-name>.md
# Verify all member agents still exist
grep "id:" teams/<team-name>.md | while read line; do
agent=$(echo "$line" | grep -oP '(?<=id: )[\w-]+')
grep "id: $agent" agents/_registry.yml || echo "MISSING: $agent"
done
# Check if the team is referenced by any guide
grep -r "<team-name>" guides/*.md
Got: List of specific gaps, weak spots, or fix chances sorted by section.
If fail: Team file not exist or no frontmatter? This skill not apply — use create-team instead to make from scratch.
Spot and sort what fired evolve:
| Trigger | Example | Typical Scope |
|---|---|---|
| User feedback | "Reviews take too long, agents duplicate effort" | Sharpen responsibilities or change pattern |
| New agent available | api-security-analyst agent was created | Add member |
| Agent evolved | code-reviewer gained new skills | Update member responsibilities |
| Agent removed | deprecated-agent was retired | Remove member, reassign tasks |
| Coordination mismatch | Sequential team has independent subtasks | Change to parallel |
| Scope expansion | Team needs to cover deployment, not just review | Add member or create variant |
| Team too large | 6+ members causing coordination overhead | Split into two teams |
| Team too small | Single member does most of the work | Merge with another team or add members |
Log specific changes needed before edit:
- Frontmatter: add new member `api-security-analyst` with role "API Security Reviewer"
- Team Composition: add row to composition table
- Task Decomposition: add API security review tasks to execution phase
- CONFIG block: add member and tasks entries
- See Also: add link to new agent file
Got: Concrete list of changes, each mapped to specific section of team file.
If fail: Changes unclear? Ask user for clarity before go on. Vague evolve goals give vague fixes.
Use this pick matrix to decide refine in-place or make variant:
| Criteria | Refinement (in-place) | Specialized Variant (new team) |
|---|---|---|
| Team ID | Unchanged | New ID: <team>-<specialty> |
| File path | Same .md file | New file in teams/ |
| Version bump | Patch or minor | Starts at 1.0.0 |
| Coordination | May change | May differ from original |
| Registry | Update existing entry | New entry added |
| Original team | Modified directly | Left intact, gains See Also cross-reference |
Refinement: Pick when tune members, sharpen roles, fix CONFIG block, or change coord pattern. Team keeps its identity.
Variant: Pick when evolved version would serve different use case, need different coord pattern, or target different audience. Original stays as-is for its existing use case.
Extra scope picks:
| Situation | Action |
|---|---|
| Team has 6+ members and is slow | Split into two focused teams |
| Two teams of 2 cover adjacent domains | Merge into one team of 3-4 |
| Team's coordination pattern is wrong | Refinement — change pattern in-place |
| Team needs entirely different lead | Refinement if lead exists; create agent first if not |
Got: Clear pick — refine, variant, split, or merge — with reason.
If fail: Unsure? Default to refine. Split or merge teams has bigger blast radius and should be confirmed with user.
Edit existing team file direct. Keep consistency across all sections that ref team composition:
members[]: Add, remove, or update member entries (each with id, role, responsibilities)members and tasks lists to match (see Step 5)Follow these edit rules:
grep "id: agent-name" agents/_registry.yml# Copy the original as a starting point
cp teams/<team-name>.md teams/<team-name>-<specialty>.md
# Edit the variant:
# - Change `name` to `<team-name>-<specialty>`
# - Update `description` to reflect the specialized scope
# - Adjust `coordination` pattern if needed
# - Reset `version` to "1.0.0"
# - Modify members, tasks, and CONFIG block for the specialized use case
# - Reference the original in See Also as a general-purpose alternative
Got: Team file (refined or new variant) passes check list from Step 1, with all sections internally in sync.
If fail: Edit breaks internal sync (e.g., CONFIG block lists member not in frontmatter)? Compare frontmatter members[] vs Team Composition table, Task Decomposition, and CONFIG block to find mismatch.
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 evolved team and update to match new source state:
# Check for existing translations
ls i18n/*/teams/<team-name>.md 2>/dev/null
npm run validate:translations
source_commit in each translated file frontmatter:npm run check:fence-propagation -- --id <team-name>
node tools/provenance-field.mjs --field fence_basis_commit --set $(git rev-parse --short HEAD) <mirror paths>
evolve(<team-name>): <description of changes>
Translations flagged for re-sync: de, zh-CN, ja, es
Changed sections: <list sections that changed>
npm run translation:status
No action needed. Go to Step 5.
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 -- teams <team-name> <locale>.
CONFIG block between <!-- CONFIG:START --> and <!-- CONFIG:END --> must stay in sync with prose sections. After any member or task change:
agent in CONFIG members matches member in frontmatterassignee in CONFIG tasks matches member agent idblocked_by deps if task ordering shiftedteam:
name: <team-name>
lead: <lead-agent>
coordination: <pattern>
members:
- agent: <agent-id>
role: <role-title>
subagent_type: <agent-id>
tasks:
- name: <task-name>
assignee: <agent-id>
description: <one-line>
- name: synthesize-results
assignee: <lead-agent>
description: Collect and synthesize all member outputs
blocked_by: [<prior-task-names>]
Got: CONFIG YAML is valid, all agents and tasks are in sync with rest of file, and blocked_by forms valid DAG.
If fail: Parse CONFIG block YAML apart to find syntax errors. Cross-check every assignee vs members list.
Bump version field in frontmatter by semantic versioning:
| Change Type | Version Bump | Example |
|---|---|---|
| Wording fix, See Also update | Patch: 1.0.0 → 1.0.1 | Fixed stale agent link |
| New member added, tasks revised | Minor: 1.0.0 → 1.1.0 | Added security-analyst member |
| Coordination pattern changed, team restructured | Major: 1.0.0 → 2.0.0 | Changed from hub-and-spoke to parallel |
Also update:
updated date to current datetags if team domain coverage shifteddescription if team purpose materially differentcoordination if pattern shiftedGot: Frontmatter version and updated show 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.
Update existing entry in teams/_registry.yml to match revised frontmatter:
# Find the team's registry entry
grep -A 10 "id: <team-name>" teams/_registry.yml
Update description, lead, members, and coordination fields to match team file. No count change needed.
Add new team to teams/_registry.yml:
- id: <team-name>-<specialty>
path: <team-name>-<specialty>.md
lead: <lead-agent>
members: [agent-1, agent-2, agent-3]
coordination: <pattern>
description: One-line description of the specialized variant
Then:
total_teams at top of registryRun README automation:
npm run update-readmes
Got: Registry entry matches team file frontmatter. npm run update-readmes exits 0. For variants, total_teams equals real count of team entries.
If fail: Registry count wrong? Count entries with grep -c "^ - id:" teams/_registry.yml and fix count. README automation fails? Check package.json exists and js-yaml installed.
Run full check list:
version was bumped (refinement) or set to "1.0.0" (variant)updated date shows todaymembers[] matches Team Composition tableblocked_by refsagents/_registry.ymltotal_teams count matches real count on diskgit diff shows no slip deletes from original content# Verify frontmatter
head -25 teams/<team-name>.md
# Verify all member agents exist
for agent in agent-a agent-b agent-c; do
grep "id: $agent" agents/_registry.yml
done
# Count teams on disk vs registry
ls teams/*.md | grep -v template | wc -l
grep total_teams teams/_registry.yml
# Review all changes
git diff
Got: All check items pass. Evolved team ready to commit.
If fail: Fix each failing item one by one. Most common post-evolve issues are CONFIG block drift (members or tasks not matching prose) and forgot updated date.
version field shows changes madeupdated date is currentmembers[], Team Composition table, and CONFIG block are in syncagents/_registry.ymlteams/_registry.yml with right pathtotal_teams count updatedsource_commit updated in all locale filesgit diff confirms no slip content removalversion and updated in frontmatter before commit.ls i18n/*/teams/<team-name>.md and update source_commit in each, or flag them for re-translation in commit msg.create-team Step 4 after any structural change.create-team — base for making new teams; evolve-team assumes this was followed firstevolve-skill — parallel proc for evolving SKILL.md filesevolve-agent — parallel proc for evolving agent definitionscommit-changes — commit evolved team with clear msg