moai-workflow-team
БесплатноБез исполняемых скриптовНе проверенAgent Teams workflow management for MoAI-ADK. Handles team creation, teammate spawning, task decomposition, inter-agent messaging, and graceful shutdown…
от modu-ai★ 69 звёзд на GitHubОб этом скилле
MoAI Agent Teams Workflow
Overview
This skill manages Agent Teams execution for MoAI workflows. When team mode is selected (via --team flag, auto-detection, or configuration), MoAI operates as Team Lead coordinating persistent teammates.
Prerequisites
Agent Teams requires:
CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1in settings.json envworkflow.team.enabled: truein workflow.yaml- Claude Code v2.1.32 or later
Mode Selection
The mode selector determines execution strategy:
- Check --team/--solo flags (user override)
- Check workflow.yaml execution_mode setting
- If "auto": Analyze complexity score
- Domain count >= 3: team mode
- Affected files >= 10: team mode
- Complexity score >= 7: team mode
- Otherwise: sub-agent mode
- Verify AGENT_TEAMS is enabled
- If not enabled: warn user, fall back to sub-agent
Team Lifecycle
Phase 1: Team Creation
TeamCreate(team_name: "moai-{workflow}-{timestamp}")
Team naming convention:
- Plan phase:
moai-plan-SPEC-XXX - Run phase:
moai-run-SPEC-XXX - Debug:
moai-debug-{issue} - Review:
moai-review-{target}
Phase 2: Task Decomposition
Before spawning teammates, create the complete shared task list:
TaskCreate(subject: "Task description", description: "Detailed requirements")
Rules for task decomposition:
- Each task should be self-contained (one clear deliverable)
- Define dependencies between tasks (addBlockedBy)
- Assign file ownership boundaries per teammate role
- Target 5-6 tasks per teammate for optimal flow
- Tasks should map to SPEC requirements where applicable
Phase 3: Teammate Spawning
Spawn teammates using Task tool with team_name parameter:
Task(
subagent_type: "team-backend-dev",
team_name: "moai-run-SPEC-XXX",
name: "backend-dev",
prompt: "You are the backend developer for this team. Your file ownership: {detected_ownership}. SPEC context: {spec_summary}",
mode: "plan"
)
Spawning rules:
- Include SPEC context in the spawn prompt
- Assign file ownership boundaries detected from project structure (see File Ownership Detection)
- Use appropriate model per role (haiku for research, sonnet for implementation)
Plan approval (when workflow.yaml team.require_plan_approval: true):
- Spawn implementation teammates with
mode: "plan" - Teammates must submit a plan before writing any code
- Team lead receives plan_approval_request messages from teammates
- Team lead reviews plan scope, file ownership compliance, and approach
- Approve via:
SendMessage(type: "plan_approval_response", request_id: "{id}", recipient: "{name}", approve: true) - Reject with feedback via:
SendMessage(type: "plan_approval_response", request_id: "{id}", recipient: "{name}", approve: false, content: "Feedback here") - After approval, teammate exits plan mode and begins implementation
- When
require_plan_approvalis false, spawn withmode: "acceptEdits"instead
Phase 4: Coordination
MoAI as Team Lead monitors and coordinates:
- Receive automatic messages from teammates (progress, completion, issues)
- Use SendMessage for direct coordination
- Broadcast critical updates to all teammates
- Resolve file ownership conflicts
- Reassign tasks if a teammate is blocked
Coordination patterns:
- When backend completes API: notify frontend-dev of available endpoints
- When implementation completes: assign quality validation tasks
- When quality finds issues: direct fix messages to responsible teammate
- When all tasks complete: begin shutdown sequence
Delegate mode (when workflow.yaml team.delegate_mode: true):
- MoAI operates in coordination-only mode
- Focus on task assignment, message routing, progress monitoring, and conflict resolution
- Do NOT directly implement code or modify files (no Write, Edit, or Bash for implementation)
- Delegate ALL implementation work to teammates via task assignment and SendMessage
- Read and Grep are permitted for understanding context and reviewing teammate output
- If a task has no suitable teammate, spawn a new one rather than implementing directly
- When delegate_mode is false, team lead may implement small tasks directly alongside teammates
Phase 5: Shutdown
Graceful shutdown sequence:
- Verify all tasks are completed via TaskList
- Send shutdown_request to each teammate:
SendMessage(type: "shutdown_request", recipient: "backend-dev") - Wait for shutdown approval from each
- Clean up team resources:
TeamDelete()
File Ownership Strategy
Prevent write conflicts by assigning exclusive file ownership.
[HARD] Team lead MUST analyze project structure before assigning ownership. Use Explore agent or Glob/Grep to map directory structure and assign ownership boundaries that match the actual project layout. Never use hardcoded patterns from a different project type.
File Ownership Detection
Ownership patterns depend on the project type. Detect the project structure first, then assign accordin
Установить moai-workflow-team в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
TaskTeamCreateTeamDeleteSendMessageTaskCreateTaskUpdateTaskListTaskGetReadGrepGlobAskUserQuestionFAQ
Что делает скилл moai-workflow-team?
Agent Teams workflow management for MoAI-ADK. Handles team creation, teammate spawning, task decomposition, inter-agent messaging, and graceful shutdown. Integrates with SPEC workflow for team-based Plan and Run phases. Supports dual-mode execution with automatic fallback to sub-agent mode when teams are unavailable.
Как установить скилл moai-workflow-team?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл moai-workflow-team запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic