算法艺术创作
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 a multi-agent team composition that coordinates two or more agents to accomplish tasks requiring multiple perspectives, specialties, or phases. The resulting team file integrates with the teams registry and can be activated in Claude Code by name.
data-pipeline-review)agents/_registry.yml)hub-and-spoke, sequential, parallel, timeboxed, adaptiveArticulate what problem requires multiple agents working together. A valid team purpose must answer:
Write the purpose as one paragraph that a human or agent can read to decide whether to activate this team.
Expected: A clear paragraph explaining the team's value proposition, with at least two distinct specialties identified.
On failure: If you cannot identify two distinct specialties, the task likely does not need a team. Use a single agent with multiple skills instead.
The lead agent orchestrates the team. Choose an agent from agents/_registry.yml that:
# List all available agents
grep "^ - id:" agents/_registry.yml
The lead must also appear as a member in the team composition (the lead is always a member).
Expected: One agent selected as lead, confirmed to exist in the agents registry.
On failure: If no existing agent fits the lead role, create one first using the create-agent skill (or agents/_template.md manually). Do not create a team with a lead that does not exist as an agent definition.
Choose 2-5 members (including the 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 the same primary responsibility. If responsibilities overlap, either merge the roles or sharpen the boundaries.
Expected: 2-5 members selected, each with a unique role and clear responsibilities, all confirmed in the agents registry.
On failure: If a needed agent does not exist, create it first. If responsibilities overlap between two members, rewrite them to clarify boundaries or remove one member.
Select the pattern that best fits the team's workflow. The five patterns and their 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 the previous agent's output. Best for pipelines and staged workflows. | fullstack-web-dev, tending |
| parallel | All agents work simultaneously 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 a backlog. | scrum-team |
| adaptive | Team self-organizes based on the task. Best for unknown or highly variable tasks. | opaque-team |
Decision guide:
Expected: One coordination pattern selected with a clear rationale for the choice.
On failure: If unsure, default to hub-and-spoke. It is the most common pattern and works for most review and analysis workflows.
Define how a typical incoming request gets split across team members. Structure this as phases:
For each member, list 3-5 concrete tasks they would perform on a typical request. These tasks appear in both the "Task Decomposition" prose section and the CONFIG block's tasks list.
Expected: A phase-structured decomposition with concrete tasks per member, matching the chosen coordination pattern.
On failure: If tasks are too vague (e.g., "reviews things"), make them specific (e.g., "reviews code style against tidyverse style guide, checks test coverage, evaluates error message quality").
Copy the template and fill in all sections:
cp teams/_template.md teams/<team-name>.md
Fill in the following 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)Expected: A complete team file with all sections filled in, no placeholder text remaining from the template.
On failure: Compare against an 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.
The CONFIG block between <!-- CONFIG:START --> and <!-- CONFIG:END --> markers provides machine-readable YAML for tooling. Structure it 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 -->
The subagent_type field maps to Claude Code agent types. For agents defined in .claude/agents/, use the agent id as the subagent_type. Use blocked_by to express task dependencies (e.g., synthesis is blocked by all review tasks).
Expected: CONFIG block is valid YAML, all agents match those in the frontmatter members list, and task dependencies form a valid DAG (no cycles).
On failure: Validate YAML syntax. Verify that every assignee in the tasks list matches an agent in the members list. Check that blocked_by references only task names defined earlier in the list.
Edit teams/_registry.yml to add the 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>
Update the total_teams count at the top of the registry (currently 8; it becomes 9 after adding one team).
# Verify the entry was added
grep "id: <team-name>" teams/_registry.yml
Expected: New entry appears in the registry, total_teams count is incremented by one.
On failure: If the team name already exists in the registry, choose a different name or update the existing entry. Verify the YAML indentation matches existing entries.
Regenerate README files from the updated registry:
npm run update-readmes
This updates the dynamic sections in teams/README.md and any other files with <!-- AUTO:START --> / <!-- AUTO:END --> markers that reference team data.
Expected: Command exits 0, teams/README.md now lists the new team.
On failure: Run npm run check-readmes to see which files are out of sync. If the script fails, verify package.json exists in the repository root and js-yaml is installed (npm install).
Test that the team can be activated in Claude Code:
User: Use the <team-name> team to <typical task description>
Claude reads teams/<team-name>.md, extracts the CONFIG block, and orchestrates activation:
Agent tool using its subagent_type from the CONFIG blockSendMessage under the session's single implicit teamTaskCreate with the blocked_by dependencies from the CONFIG block(TeamCreate/team_name are deprecated and gated out of ordinary interactive sessions — ToolSearch("select:TeamCreate") returns nothing there; they surface only as a FleetView/cloud fallback.)
Note: Teams are not auto-discovered from .claude/teams/. Claude reads the definition directly from teams/ when asked. Consequently a new team needs no discovery symlink — scripts/sync-discovery-symlinks.sh deliberately skips teams (that path is reserved for TeamCreate runtime state).
Expected: Claude reads the team file, spawns the correct member subagents via the Agent tool (subagent_type), coordinates them with SendMessage, and follows the coordination pattern.
On failure: Verify the team file is at teams/<team-name>.md (not in a subdirectory). Check that all member agents exist in agents/. Confirm the CONFIG block has valid YAML with subagent_type for each member. Confirm the team is 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 accumulate into stale backlog.
Scaffold translation files for all 4 supported locales immediately after committing the new team:
for locale in de zh-CN ja es; do
npm run translate:scaffold -- teams <team-name> "$locale"
done
Then translate the scaffolded prose in each file (code blocks and IDs stay in English). Finally regenerate the status files:
npm run translation:status
Expected: 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 the new team.
On failure: If scaffold fails, verify the team exists in teams/_registry.yml. If status files don't update, run npm run translation:status explicitly.
teams/<team-name>.mdname, description, lead, version, author, coordination, members[]id, role, and responsibilities<!-- CONFIG:START --> and <!-- CONFIG:END --> markersagents/_registry.ymlteams/_registry.yml with correct path, lead, members, and coordinationtotal_teams count in registry is incrementednpm run update-readmes completes without errorsAgent tool (subagent_type), coordinate them with SendMessage, and create tasks. Without it, the team can only be activated through ad-hoc prose interpretation, which is less reliable.create-skill - follows the same meta-pattern for creating SKILL.md filescreate-agent - create agent definitions that serve as team memberscommit-changes - commit the new team file and registry updates