htekdev/copilot-home-assistant/agent-dispatch

Claude Code and agent skill by htekdev/copilot-home-assistant

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Agent dispatch decision framework — when to launch new agents via task tool vs steer existing idle agents via write_agent. Use when user says "launch agent", "steer agent", "dispatch agent", "write_agent or task", "existing agent", "idle agent", "new vs existing", "agent decision", or any multi-agent orchestration decision.

Install

npx vskill@latest install htekdev/copilot-home-assistant/agent-dispatch

SKILL.md

Agent Dispatch Skill

The canonical decision framework for choosing between launching a fresh agent (task tool) vs steering an existing idle agent (write_agent). This applies to ALL orchestration decisions, not just cron (cron has its own absolute rule — see cron-dispatch skill).

The Core Question

Does this message CONTINUE an existing conversation, or START a new one?

Decision Flow

1. list_agents() → check for IDLE agents
2. Is there an idle agent in the SAME domain as this request?
NO → Launch new (task tool)
3. Is this a FOLLOW-UP to that agent's prior work?
(correcting, clarifying, continuing a discussion)
NO → Launch new (task tool)
4. Does that agent have CONTEXT that would be lost by launching fresh?
(names, decisions, partial work, conversation state)
NO → Launch new (task tool)
5. Is this a CRON dispatch?
YES → Launch new ALWAYS (see cron-dispatch skill — ABSOLUTE rule)
6. All conditions met → STEER via write_agent

Launch New Agent (task tool) — WHEN ANY is true

SignalExample
New topic unrelated to any running agent"Plan meals for next week" when only a finance agent is idle
No idle agents existNothing in list_agents with matching domain
No relevant context in existing agentAgent was doing X, new request is about Y
High-quality results needed with clean slateComplex analysis, report generation
Standalone request with no dependency on prior conversation"Run my daily briefing"
Unsure whether to steer or launchDefault to launch — clean context never hurts
ALL cron-dispatched jobsAlways fresh, zero exceptions

Steer Existing Agent (write_agent) — WHEN ALL are true

ConditionWhy
An IDLE agent exists in the same domainAgent is available and not running
Message is a follow-upCorrecting, clarifying, or continuing prior work
Agent has context that would be lostNames, decisions, partial calculations
NOT a cron dispatchCron always gets fresh agents
Examples of Valid Steering
# User said "add eggs to the list" — shopping agent already has the grocery context
write_agent(agent_id: "shopping-abc", message: "Also add eggs to the H-E-B cart")
# User corrected a misidentified card — finance agent has the card discussion
write_agent(agent_id: "finance-xyz", message: "No, the Savor is the subscription card, not the travel card")
# User wants to continue a meal plan conversation
write_agent(agent_id: "meal-abc", message: "What about Thursday dinner?")

Anti-Patterns (NEVER do these)

  • ❌ Funneling every task through write_agent just because an agent is idle
  • ❌ Steering cron jobs into existing agents (ABSOLUTE prohibition)
  • ❌ Injecting unrelated work into an agent that's idle but in a different domain
  • ❌ Assuming an agent's context is still relevant hours after its last turn
  • ❌ Using write_agent for complex new requests that deserve clean context

Priority Guideline

When in doubt: launch new. The cost of a fresh agent is ~30-60s startup time. The cost of polluted context is degraded output quality, confused behavior, and debugging nightmares.

Relationship to Other Skills

  • `cron-dispatch` — Contains the absolute rule for cron jobs (always fresh). This skill covers the general case.
  • `quick-task-transition` — For "done/next" transitions, handle inline (no agent at all). This skill is for when you DO need an agent.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/htekdev/copilot-home-assistant/agent-dispatch/badge)](https://verified-skill.com/skills/htekdev/copilot-home-assistant/agent-dispatch)

Something wrong with this skill or its page? Tell us.