From teampowers
Dynamically create specialized agents based on task domain requirements
How this skill is triggered — by the user, by Claude, or both
Slash command
/teampowers:ad-hoc-agentsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
- **Name**: ad-hoc-agents
The core team (scout, dev, tester, reviewer, ci) handles general development work. But some tasks require domain-specific expertise. Ad hoc agents are created on-the-fly when a task's domain calls for specialized knowledge.
In agent teams, only the lead spawns teammates — including ad hoc agents. Other agents request them:
Create a domain-specific agent when the task involves:
| Task Domain | Ad Hoc Agent | Specialization |
|---|---|---|
| Database schema changes | SQL Agent | Schema design, migrations, query optimization, indexing |
| API design | API Agent | REST/GraphQL conventions, versioning, error handling |
| Infrastructure | Infra Agent | Terraform, Docker, K8s manifests, networking |
| Security | Security Agent | Auth flows, encryption, vulnerability assessment |
| Performance | Perf Agent | Profiling, optimization, benchmarking |
| Data pipeline | Data Agent | ETL patterns, data validation, transformation |
| Frontend | UI Agent | Component architecture, accessibility, state management |
## Ad Hoc Agent: {DOMAIN} Agent
### Domain Expertise
{What this agent knows that general dev doesn't}
### Responsibilities
- {Domain-specific responsibility 1}
- {Domain-specific responsibility 2}
### Constraints
- {Domain-specific rules and best practices}
- {Common pitfalls in this domain}
### Deliverables
- {What this agent produces}
The lead creates the ad hoc agent as a teammate with the specialization baked into their prompt. They receive:
The ad hoc agent slots into the normal workflow:
Each message MUST include TASK: {task_id} so agents can track context.
| From | When | What |
|---|---|---|
| Lead | Task assignment | Domain task spec, constraints, deliverables |
| Scout | Before implementation | Domain-relevant codebase context |
| To | When | What |
|---|---|---|
| Dev | Domain guidance needed | Schema design, API patterns, domain recommendations |
| Tester | Implementation complete | Completion signal with worktree path (same format as dev) |
| Lead | Blocked or done | Blocker descriptions, completion status |
If the ad hoc agent writes code, use isolation: worktree — same as a dev agent. If advisory only (no file writes), share the main worktree.
npx claudepluginhub johnhanks1/vim-setup --plugin teampowersAnalyzes complex tasks, scouts codebase, dynamically designs and assembles expert agent teams via TeamCreate API, executes with validation and user confirmation.
Coordinates multiple specialized agents for multi-perspective analysis, reviews, and complex tasks spanning backend, frontend, security, and testing domains.
Analyzes tasks and codebase context to propose minimal agent teams with roles, responsibilities, isolation, and rationale, then creates after confirmation. For complex multi-agent workflows.