بنقرة واحدة
convert-to-fanout
Rebuild a one-model agent as orchestrator plus cheap workers. Invoke to cut cost.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Rebuild a one-model agent as orchestrator plus cheap workers. Invoke to cut cost.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Main skill — intake, foundation, and routing for JGengine games.
Game-first HUDs, menus, touch controls, motion, accessibility, art direction, and visual verification.
Scene truth is data. Invoke before verifying anything works or renders.
Invoke on any mechanical leg — verify, ship, scout, sweep. Standing authorization.
Do any task in this repo AND leave the engine better than you found it. Same harvest instinct as harvest-game/harvest-full-game — but the carrier isn't a game, it's whatever task you were given (a fix, a feature, a refactor, a question, a doc pass). Complete the task, and treat every gap, friction, workaround, and doc error you hit along the way as an engine-improvement opportunity to close now or file. Invoke with the task, or nothing to have the standing gap list picked from.
| name | convert-to-fanout |
| description | Rebuild a one-model agent as orchestrator plus cheap workers. Invoke to cut cost. |
A monolithic agent pays frontier rates for every token, but most of an agent's tokens are mechanical — reading files, fetching pages, running tools, transcribing output. Only a thin slice is planning and judgment. The conversion moves the mechanical tokens to a cheaper model while the frontier model keeps the judgment. Anthropic's measured results:
Read the existing agent code or config and answer three questions:
model field in API calls, agent framework config, or Claude Code settings. If a frontier model (Fable 5, Opus) is generating tool calls for bulk reading/fetching/transcribing, those tokens are the waste.Done when you can state: current model(s), the mechanical-token share, and the task shape.
| Task shape | Pattern | Frontier model does | Cheap model does |
|---|---|---|---|
| Fan-out (parallel independent legs) | Orchestrator | Plans, delegates, synthesizes — no heavy tools | Token-heavy legs in isolated contexts |
| Long-horizon sequential (coding, computer use) | Advisor | On-demand plan / course-correction, ~once per task | Every turn of the main loop |
The two compose: Claude Managed Agents supports both escalating up to a Fable 5 advisor and delegating down to Sonnet 5 workers, and each sub-agent keeps its own prompt cache so repeat calls don't re-pay for the same context.
Stay monolithic when: the task is single-turn Q&A (nothing to plan), a narrow question with minimal reading, or every turn genuinely needs frontier judgment on the raw material itself. Converting those makes the product worse or costlier, not cheaper.
Pick the branch matching where the agent runs:
model becomes claude-sonnet-5, add the advisor server tool {"type": "advisor_20260301", "name": "advisor", "model": "claude-fable-5"} and beta header advisor-tool-2026-03-01. The executor's system prompt, tools, and loop logic are otherwise untouched. Exact payloads, response handling (Fable 5 returns encrypted advisor_redacted_result — round-trip it verbatim), pause/resume, nudge tuning, and billing breakdown: read references/advisor-tool.md.claude-fable-5, multiagent: {"type": "coordinator", ...}, no heavy tools) and a worker definition (claude-sonnet-5, scoped toolset). The platform grants the coordinator create_agent / send_to_agent / wait_for_agents / list_agents and workers submit_result / send_to_parent. Exact definitions, stream events, and usage metering: read references/managed-agents.md.No API surgery needed — the primitives already exist:
Agent tool with model: "sonnet" for one-off legs, Workflow with agent(prompt, {model: 'sonnet'}) for structured fan-out (pipelines, verify passes). Keep planning, decomposition, and synthesis in the main loop; never forward raw worker dumps to the user — synthesize.Agent with model: "fable", prompt carrying the full task context and the instruction to return a plan or course-correction only (no edits). One consult per task is the calibrated rate.CLAUDE.md — user-global (~/.claude/CLAUDE.md) for all local projects, repo-level (checked in) for cloud sessions, which read only the repo's .claude/. A repo that needs cloud coverage also needs this skill copied into its .claude/skills/.usage.iterations[] (advisor iterations billed at advisor rates, executor at executor rates); orchestrator → per-thread usage on session threads. Target: the large majority of input tokens billed at the worker/executor rate (the cookbook run hit 84–98%).Done when the new setup matches old-setup quality on the test tasks and the token split confirms mechanical work moved to the cheap model.