plan-execute-router
在细化规范后将执行交由更便宜模型,能显著降低运行成本。
采用“计划-执行”路由,把高成本规划和低成本执行分离以节省费用。
先用强能力模型(比如 Claude)做详尽的计划和规格,再把实际写码或执行交给成本更低的模型或工具(如 Codex CLI、较小的子代理或人工),在能拆分的任务上可节省大量费用(常见 50–75%)。适合特性构建、重构或迁移等能把“规划”和“执行”明确分开的工作。内建 fit-check 和成本估算,必要时再让强模型回顾结果保障质量。
▸ 展开 SKILL.md 英文原文
Executes the plan/execute model routing pattern to cut AI-workflow cost by 50–75% on feature builds, refactors, and migrations. Claude plans the task at frontier capability and produces a detailed spec, then routes execution to a cheaper model — via Codex CLI subprocess if available, a Claude Code subagent scoped to a smaller model, or manual copy-paste instructions when neither path exists. Optionally invokes a frontier review pass on the executor's output. Includes fit-check to detect when a task does NOT fit the pattern and cost estimation for the specific split chosen. MANDATORY TRIGGERS: model routing, plan-execute, plan then execute, route to cheaper model, delegate execution, split planning from execution, cheaper executor, cost split, plan-execute-router, model split, use Codex for execution, use Sonnet for execution, spec-then-code, spec then code, save on this build, cost-optimize this task.
帮我安装这个 skill:https://raw.githubusercontent.com/fullREFIT/skills/main/skills/plan-execute-router/SKILL.mdcurl -fsSL "https://raw.githubusercontent.com/fullREFIT/skills/main/skills/plan-execute-router/SKILL.md"# Plan-Execute Router Executes the plan/execute model routing pattern. Claude produces a detailed spec at frontier capability; a cheaper model writes the code from that spec; Claude optionally reviews the result. Typical cost savings 50–75% versus running everything at frontier, when the pattern fits. The pattern only works when the plan is detailed enough that the executor doesn't have to make architectural decisions. This skill enforces that discipline. ## When to invoke Invoke this skill when the user: - Names a feature build, refactor, migration, or well-scoped implementation task. - Explicitly asks to route execution to a cheaper model, "plan-execute," "spec-then-code," or "save cos