算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
create-team【设计与创意】Create a new team composition file following the agent-almanac team template and registry conventions. Covers team purpose definition, member selection, coordination pattern choice, task decomposition design, machine-readable configuration block, registry integration, and README automation. Use when defining a multi-agent workflow, composing agents f…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Define multi-agent team composition. Coordinate two or more agents for tasks needing multiple perspectives, specialties, or phases. Resulting team file integrates with teams registry. Can be activated in Claude Code by name.
data-pipeline-review)agents/_registry.yml)hub-and-spoke, sequential, parallel, timeboxed, adaptiveSpell out what problem needs many agents working together. Valid team purpose must answer:
Write purpose as one paragraph human or agent can read to decide whether to activate this team.
Got: Clear paragraph explaining team's value. At least two distinct specialties identified.
If fail: Cannot identify two distinct specialties? Task likely does not need team. Use single agent with multiple skills instead.
Lead agent orchestrates team. Pick agent from agents/_registry.yml that:
# List all available agents
grep "^ - id:" agents/_registry.yml
Lead must also show as member in team composition (lead always a member).
Got: One agent picked as lead. Confirmed to exist in agents registry.
If fail: No existing agent fits lead role? Create one first using create-agent skill (or agents/_template.md by hand). Do not create team with lead that does not exist as agent definition.
Pick 2-5 members (including lead) with clear, non-overlapping responsibilities. For each member, define:
# Verify each candidate agent exists
grep "id: agent-name-here" agents/_registry.yml
Validate non-overlap: no two members should have same primary responsibility. Responsibilities overlap? Merge roles or sharpen boundaries.
Got: 2-5 members picked, each with unique role and clear responsibilities. All confirmed in agents registry.
If fail: Needed agent does not exist? Create first. Responsibilities overlap between two members? Rewrite to clarify boundaries or drop one member.
Pick pattern fitting team's workflow. Five patterns and use cases:
| Pattern | When to Use | Example Teams |
|---|---|---|
| hub-and-spoke | Lead distributes tasks, collects results, synthesizes. Best for review and audit workflows. | r-package-review, gxp-compliance-validation, ml-data-science-review |
| sequential | Each agent builds on prior agent's output. Best for pipelines and staged workflows. | fullstack-web-dev, tending |
| parallel | All agents work at once on independent subtasks. Best when subtasks have no dependencies. | devops-platform-engineering |
| timeboxed | Work organized into fixed-length iterations. Best for ongoing project work with backlog. | scrum-team |
| adaptive | Team self-organizes based on task. Best for unknown or highly variable tasks. | opaque-team |
Decision guide:
Got: One coordination pattern picked with clear rationale.
If fail: Unsure? Default to hub-and-spoke. Most common pattern, works for most review and analysis workflows.
Define how typical incoming request splits across team members. Structure as phases:
For each member, list 3-5 concrete tasks they would do on typical request. These tasks show in both "Task Decomposition" prose section and CONFIG block's tasks list.
Got: Phase-structured decomposition with concrete tasks per member, matching picked coordination pattern.
If fail: Tasks too vague (e.g., "reviews things")? Make specific (e.g., "reviews code style against tidyverse style guide, checks test coverage, evaluates error message quality").
Copy template. Fill in all sections:
cp teams/_template.md teams/<team-name>.md
Fill in these sections in order:
name, description, lead, version ("1.0.0"), author, created, updated, tags, coordination, members[] (each with id, role, responsibilities)# Team Name (human-readable, title case)Got: Complete team file with all sections filled in. No placeholder text left from template.
If fail: Compare against existing team file (e.g., teams/r-package-review.md) to verify structure. Search for template placeholder strings like "your-team-name" or "another-agent" to find unfilled sections.
CONFIG block between <!-- CONFIG:START --> and <!-- CONFIG:END --> markers gives machine-readable YAML for tooling. Structure as follows:
<!-- CONFIG:START -->
```yaml
team:
name: <team-name>
lead: <lead-agent-id>
coordination: <pattern>
members:
- agent: <agent-id>
role: <role-title>
subagent_type: <agent-id> # Claude Code subagent type for spawning
# ... repeat for each member
tasks:
- name: <task-name>
assignee: <agent-id>
description: <one-line description>
# ... repeat for each task
- name: synthesize-report # final task if hub-and-spoke
assignee: <lead-agent-id>
description: <synthesis description>
blocked_by: [<prior-task-names>] # for dependency ordering
```
<!-- CONFIG:END -->
subagent_type field maps to Claude Code agent types. For agents defined in .claude/agents/, use agent id as subagent_type. Use blocked_by for task dependencies (e.g., synthesis blocked by all review tasks).
Got: CONFIG block is valid YAML. All agents match those in frontmatter members list. Task dependencies form valid DAG (no cycles).
If fail: Validate YAML syntax. Verify every assignee in tasks list matches agent in members list. Check blocked_by references only task names defined earlier in list.
Edit teams/_registry.yml. Add new team:
- id: <team-name>
path: <team-name>.md
lead: <lead-agent-id>
members: [<agent-id-1>, <agent-id-2>, ...]
coordination: <pattern>
description: <one-line description matching frontmatter>
Bump total_teams count at top of registry (currently 8; becomes 9 after adding one team).
# Verify the entry was added
grep "id: <team-name>" teams/_registry.yml
Got: New entry shows in registry. total_teams count incremented by one.
If fail: Team name already in registry? Pick different name or update existing entry. Verify YAML indentation matches existing entries.
Regenerate README files from updated registry:
npm run update-readmes
Updates dynamic sections in teams/README.md and other files with <!-- AUTO:START --> / <!-- AUTO:END --> markers referencing team data.
Got: Command exits 0. teams/README.md now lists new team.
If fail: Run npm run check-readmes to see which files out of sync. Script fails? Verify package.json exists in repo root and js-yaml installed (npm install).
Test team can be activated in Claude Code:
User: Use the <team-name> team to <typical task description>
Claude reads teams/<team-name>.md, extracts CONFIG block, orchestrates activation:
TeamCreate with team name and descriptionAgent tool using each member's subagent_type from CONFIG blockTaskCreate with blocked_by dependencies from CONFIG blockNote: Teams not auto-discovered from .claude/teams/. Claude reads definition directly from teams/ when asked.
Got: Claude reads team file, creates team via TeamCreate, spawns right agents, follows coordination pattern.
If fail: Verify team file at teams/<team-name>.md (not in subdirectory). Check all member agents exist in agents/. Confirm CONFIG block has valid YAML with subagent_type for each member. Confirm team listed in teams/_registry.yml.
Required for all teams. This step applies to both human authors and AI agents following this procedure. Do not skip — missing translations pile into stale backlog.
Scaffold translation files for all 4 supported locales right after committing new team:
for locale in de zh-CN ja es; do
npm run translate:scaffold -- teams <team-name> "$locale"
done
Then translate scaffolded prose in each file (code blocks and IDs stay English). Finally regenerate status files:
npm run translation:status
Got: 4 files created at i18n/{de,zh-CN,ja,es}/teams/<team-name>.md, all with source_commit matching current HEAD. npm run validate:translations shows 0 stale warnings for new team.
If fail: Scaffold fails? Verify team exists in teams/_registry.yml. Status files don't update? Run npm run translation:status explicitly.
teams/<team-name>.mdname, description, lead, version, author, coordination, members[]id, role, responsibilities<!-- CONFIG:START --> and <!-- CONFIG:END --> markersagents/_registry.ymlteams/_registry.yml with right path, lead, members, coordinationtotal_teams count in registry incrementednpm run update-readmes finishes without errorsTeamCreate, agent spawning, task creation. Without it, team only activatable through ad-hoc prose interpretation, less reliable.create-skill - follows same meta-pattern for creating SKILL.md filescreate-agent - create agent definitions serving as team memberscommit-changes - commit new team file and registry updates