aim-agent-dispatch
БесплатноЗапускает вложенные скриптыНе проверенGeneric and BMAD agent selection, instruction preparation, and activation routing
от Hidden-History★ 41 звезда на GitHubОб этом скилле
Agent Dispatch -- Generic and BMAD Agent Activation
Purpose: Prepare instructions for all agents (generic and BMAD). Determines if BMAD persona is needed and routes accordingly. BMAD routing is handled within this skill.
Embedded Constraints (Layer 3)
- EC-02: MUST use the instruction template for every agent dispatch. Story files are planning artifacts -- implementation instructions translate requirements into precise, actionable specifications.
- GC-11 L3: ALWAYS use the instruction template for every agent dispatch. Every requirement must cite a project file. Every DONE WHEN criterion must be objectively measurable.
- DC-08: Analyst research MUST precede PM when input is thin. When goals.md is the only input, Analyst must run before PM begins. PM does NOT begin from goals.md alone when input is thin.
- Agent activation verification: Never send an instruction to an unverified agent. Verify activation before proceeding.
- One task per instruction: Never combine multiple tasks in a single dispatch.
Step 0: Pre-Spawn Sentinel Gate (MANDATORY -- re-run before EVERY spawn)
Before routing any dispatch, assert the current directory is the workspace root by confirming co-presence of _ai-memory/, _bmad/, and oversight/ (CLAUDE.md workspace-root sentinel). Concretely: test -d _ai-memory && test -d _bmad && test -d oversight.
- PASS -> proceed to Step 1.
- FAIL -> ABORT the spawn. Report: "CWD drift -- not at workspace root; return to root before spawning." Do NOT route to /aim-model-dispatch or /aim-agent-lifecycle.
CWD drifts across Bash calls, so re-run this gate immediately before EACH spawn -- not once per session.
Step 1: Determine Dispatch Type
BMAD dispatch (use the BMAD Agent Dispatch section below) when:
- The task requires ANY BMAD agent role (Analyst, PM, Architect, DEV, UX Designer, Tech Writer)
- The agent requires persona activation via
/bmad-agent-<name>commands
Generic dispatch (use the Generic Agent Dispatch section below) when:
- The agent does NOT need a BMAD persona
- The agent is a generic worker spawned for a specific task
- Examples: code-reviewer agent, verify-implementation agent, skill-creator agent
Mandatory (BMAD-or-fail): if the task maps to any BMAD role/skill above, you MUST dispatch that
BMAD persona. A generic/no-persona agent on BMAD-shaped work is a FAILED dispatch — shut it down and
respawn via the correct /bmad-*. Generic dispatch is only for work with no BMAD role.
Generic Agent Dispatch
2. Prepare Instruction Using Template
Build the instruction using the instruction template (templates/agent-instruction.template.md):
- TASK: Single, specific, unambiguous description. One task per instruction.
- CONTEXT: Relevant background -- only what is necessary.
- REQUIREMENTS: Cited project files and sections (PRD, architecture, standards, story criteria)
- SCOPE: Explicit IN SCOPE and OUT OF SCOPE lists
- OUTPUT EXPECTED: Exactly what the agent should produce (file names, formats, contents)
- DONE WHEN: Measurable, specific criteria the agent can self-assess
- STANDARDS TO FOLLOW: Specific coding standards, patterns, naming conventions
- IF YOU ENCOUNTER A BLOCKER: Stop and report immediately. Do not guess.
3. Verify Instruction Quality
Before dispatching, verify the instruction is:
- Complete (all template sections filled)
- Unambiguous (could not be interpreted multiple ways)
- Scoped (clear IN and OUT boundaries)
- Cited (every requirement references a project file)
- Measurable (DONE WHEN criteria are objectively verifiable)
IF ANY CHECK FAILS: fix the instruction before proceeding.
4. Route Based on Provider
Check provider from the dispatch plan:
Claude provider: → /aim-model-dispatch (MANDATORY next step) Pass: instruction, AI_MEMORY_AGENT_ID, model from dispatch plan.
Non-Claude provider: → /aim-agent-lifecycle (MANDATORY next step) Pass: instruction, AI_MEMORY_AGENT_ID, provider, model from dispatch plan.
MUST spawn fresh agent for every task -- never reuse across roles or stories.
5. Dispatch Complete
Agent instruction prepared and routed. Downstream skill handles spawn and activation.
BMAD Agent Dispatch
Agent Selection Guide
See agent-selection-guide.md for detailed role descriptions, selection criteria, and dispatch decision tree.
Quick Selection Matrix
| Task Type | Correct Agent | Wrong Agent | Mode |
|---|---|---|---|
| Research current codebase state | Analyst | Architect | Planning |
| Create, validate, or update PRD | PM | Analyst | Planning |
| Break down features into stories | PM | Analyst | Planning |
| Design system architecture | Architect | PM | Planning |
| Check if implementation is ready | Architect | DEV | Planning |
| Plan and initialize a sprint | /bmad-sprint-planning (direct skill) |
Установить aim-agent-dispatch в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadВложенные файлы
FAQ
Что делает скилл aim-agent-dispatch?
Generic and BMAD agent selection, instruction preparation, and activation routing
Как установить скилл aim-agent-dispatch?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл aim-agent-dispatch запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
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