agent-routing
Decides whether a task needs Agent Teams, subagents, or a single focused session.
Skill by shawnla90
Chalk Labs
Need help deploying agent-routing?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/shawnla90-agent-routing
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: productivity, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/agent-routing
What's inside
- Skill name
agent-routing- Description
- Decides whether a task needs Agent Teams, subagents, or a single focused session. Consult this skill before creating any team or spawning more than 2 subagents.
- License
- MIT
- Instructions
- 155 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Agent Routing -- Choose the Right Execution Pattern Before spinning up agents or teams, run this decision framework. The goal is to match the execution pattern to the task, not default to the most complex option. --- ## Step 0: Decision-Lock Check Before analyzing execution pattern, check for an existing CONTEXT.md: 1. **CONTEXT.md exists** in the feature working directory -- Read the `## Decisions` section. Use locked decisions to inform the 5-dimension analysis below. Do not re-ask anything already decided. 2. **No CONTEXT.md AND task is complex** (3+ files across 2+ concerns) -- Recommend `/discuss` first: > This task touches [N] files across [concerns]. Recommend running `/discuss` to lock decisions before routing. If the user says "skip" or "just go", proceed to Step 1 without a CONTEXT.md. 3. **Task is small** (1-2 files, single concern) -- Skip directly to Step 1. No discussion needed. --- ## Step 1: Task Analysis Evaluate the task against these 5 dimensions. Be honest -- do not inflate complexity to justify a team. ### 1. File Count How many files will be WRITTEN or EDITED (not read)? - **1-2 files**: Single session territory - **3-4 files**: Subagent territory - **5+ files across different concerns**: Team territory ### 2. Concern Separation Are the outputs independent or do they need coordination? - **All outputs go in the same file or closely related files**: Single session - **Outputs are in different files but follow the same pattern**: Subagents (each mirrors a known pattern independently) - **Outputs are in different files AND require different expertise (content vs code vs config vs deploy)**: Team ### 3. Handoff Requirement Does any task need the OUTPUT of another task before it can start? - **No handoffs -- all tasks can run with existing context**: Subagents - **Linear handoff -- A feeds B feeds C**: Single session (sequential in one context is faster than agent-to-agent messaging) - **Fan-out handoff -- A feeds B, C, D simultaneously**: Team (A completes, then B/C/D run in parallel) ### 4. Review Requirement Does output need human-style judgment before the next step? - **No review needed -- mechanical output**: Subagents - **Self-review sufficient -- one agent can check its own work**: Single session - **Cross-review needed -- one agent's output should be evaluated by a different agent with different context**: Team ### 5. Voice/Quality Gate Does the output require voice compliance, brand checking, or quality enforcement? - **No voice requirements (code, config, data)**: Any pattern works - **Voice required but the main session is writing it**: Single session (voice context already loaded) - **Voice required AND someone other than the main session is writing**: Team with Writer + Reviewer roles --- ## Step 2: Route to Pattern Score the task. Count how many dimensions point to each pattern: ### Pattern A: Single Focused Session **Use when:** 3+ dimensions point to "single session" The main session handles everything. Use lightweight subagents for initial research, but all writing/editing stays in the main session. **Typical tasks:** - Adding 1-2 entries to a data file - Updating a page + its data source - Writing a new skill file - Bug fixes across a few related files - Any task where YOU are the only writer **Subagent budget:** 1-2 lightweight agents for research. These protect context window, not parallelize work. ### Pattern B: Parallel Subagents **Use when:** 3+ dimensions point to "subagents" Launch independent subagents via the Task tool. Each gets a specific prompt, works in isolation, reports back. No inter-agent communication. Parent orchestrates waves. **Typical tasks:** - Building 3+ pages that mirror an existing pattern - Writing multiple independent data entries - Running research across several unrelated topics - Parallel file generation where outputs do not reference each other **Subagent budget:** 2-5 agents. Assign lighter models to mechanical tasks (copy-pattern, scan, format). Assign heavier models to creative or judgment tasks. ### Pattern C: Agent Teams **Use when:** 3+ dimensions point to "team" AND at least one of these is true: - Multiple agents need to MESSAGE each other (not just report to parent) - A shared task list with dependencies is needed to enforce sequencing - Different agents need different ROLES with different context (Writer reads voice files, Reviewer reads checklist, Deploy reads build config) - The task will take 15+ minutes and agents need to self-coordinate **Typical tasks:** - Full feature: data file + page components + navigation + deploy - Content pipeline: research agent feeds writer, writer feeds reviewer, reviewer approves deploy - Multi-system changes: frontend + backend + tests + CI config where each agent owns a layer - Any task where 3+ agents need to coordinate across 5+ files with handoffs **Team budget:** 2-4 agents maximum. Every teammate runs its own context window. Keep teams small and focused. Clean up immediately when done. --- ## Step 3: Announce the Decision Before executing, state the routing decision to the user: > **Routing: [Pattern A/B/C]** > - Decisions: [CONTEXT.md path, or "none -- inline decisions"] > - Files to edit: [count] > - Concerns: [list] > - Handoffs needed: [yes/no]
From shawnla90/recursive-drift, MIT.
More from shawnla90/recursive-drift
- 0.483score
context-handoff
shawnla90
Generate a context handoff document at the end of a session so the next session can pick up where this one left off.
SkillDFreshness: D★ 17Claude Code +9 - 0.483score
discuss
shawnla90
Decision-lock workflow for complex features.
SkillDFreshness: D★ 17Claude Code +9 - 0.476score
skill-name
shawnla90
One-line description of what this skill does and when it triggers.
SkillDFreshness: D★ 17Claude Code +9
Signals
- Stars
- 17
- Forks
- 5
- Open issues
- 0
- Last commit (this folder)
- Feb 28, 2026 (8 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/shawnla90/recursive-drift
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from shawnla90
- 0.483score
context-handoff
shawnla90
Generate a context handoff document at the end of a session so the next session can pick up where this one left off.
SkillDFreshness: D★ 17Claude Code +9 - 0.483score
discuss
shawnla90
Decision-lock workflow for complex features.
SkillDFreshness: D★ 17Claude Code +9 - 0.476score
skill-name
shawnla90
One-line description of what this skill does and when it triggers.
SkillDFreshness: D★ 17Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get agent-routing running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
agent-routing skill. Agent Mart. https://agentmart.dev/skills/shawnla90-agent-routing (last updated 2026-10-24)