# Agent Dispatch

> Use `al dispatch` only when the user names an external dispatch target or another skill explicitly requires dispatch. Treat generic subagent, second-agent, and fresh-context requests as built-in subagent work.

- **Type:** Skill
- **Install:** `agentstack add skill-conn-castle-agent-layer-agent-dispatch`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [conn-castle](https://agentstack.voostack.com/s/conn-castle)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [conn-castle](https://github.com/conn-castle)
- **Source:** https://github.com/conn-castle/agent-layer/tree/main/internal/templates/skills-catalog/agent-dispatch
- **Website:** https://agent-layer.dev/

## Install

```sh
agentstack add skill-conn-castle-agent-layer-agent-dispatch
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# al dispatch

## Required artifacts

- No artifact is required for ordinary `al dispatch` runs.
- If preparing prompt files or saving target output, put agent-only files under
  `.agent-layer/tmp/`.
- Use `.agent-layer/tmp/agent-dispatch...md` or
  `.agent-layer/tmp/agent-dispatch...json` for scratch prompt,
  output, or options files.
- Report every artifact path created.

## Global constraints

- Run `al dispatch --help` before the first `al dispatch` command in a session.
- Run relevant subcommand help before using non-obvious subcommands or flags.
- If `al`, a target CLI, authentication, source skill, or generated skill
  projection is missing, stop and report the missing requirement. Do not
  install, authenticate, sync, or change configuration unless the user asked
  for setup or repair.

## Workflow

1. Verify any requested skill exists in the current project's Agent Layer skill
   source. Do not invent a skill name.
2. Send the focused prompt to one target. Omit unrelated conversation
   history and information that could bias the target.
3. If a prompt file is needed, write it under `.agent-layer/tmp/`.
4. Run `al dispatch` and wait for the original process to finish, even if
   output is quiet or it appears stalled. Do not poll.
   Wait until it finishes to inspect dispatch artifacts.

## Guardrails

- Do not use `al dispatch` for ordinary local shell work, tests, web retrieval,
  browser automation, or API-only tasks.
- Do not use `al dispatch` to bypass the caller's restrictions, approvals, or
  sandbox expectations.
- Do not retry failed target launches by guessing flags, targets, models, or
  reasoning-effort values. Re-check help and options, then report the mismatch
  if it remains unresolved.

## Definition of done

- Current target metadata was inspected before any real run.
- Target selection and skill delivery if used were intentional and reported.
- Prompt and output artifacts were stored only under `.agent-layer/tmp/` and
  every created artifact path was reported.
- Errors were reported explicitly.
- Any side effects from target work were inspected and verified through the
  current task's normal checks.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [conn-castle](https://github.com/conn-castle)
- **Source:** [conn-castle/agent-layer](https://github.com/conn-castle/agent-layer)
- **License:** MIT
- **Homepage:** https://agent-layer.dev/

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-conn-castle-agent-layer-agent-dispatch
- Seller: https://agentstack.voostack.com/s/conn-castle
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
