Scope an autonomous AI coding agent task so it is well-bounded, recoverable, and matched to the right model tier before it runs. Reach for this skill before any long, unsupervised, or multi-step agentic run — a poorly scoped task on a frontier model is both expensive and hard to debug.
How this skill is triggered — by the user, by Claude, or both
Slash command
/ai-coding-model-guidance:coding-agent-task-scopingThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
An autonomous coding agent run is not a chat turn. The task description, model tier, and recovery plan must be decided before the run starts — not after it has touched 40 files. This skill structures that pre-run decision.
An autonomous coding agent run is not a chat turn. The task description, model tier, and recovery plan must be decided before the run starts — not after it has touched 40 files. This skill structures that pre-run decision.
Not every "I want to automate this" request benefits from an autonomous run. Run this quick check:
| Question | If YES | If NO |
|---|---|---|
| Can the task be done interactively in one supervised chat turn? | → Supervised chat, not an agent run | Continue |
| Does the task require reading many files the developer can't enumerate? | → Agent run appropriate | Supervised chat |
| Does the task require irreversible production actions (deploys, deletions, DB writes)? | → Mandatory human gate; see high-blast rule | Continue with caution |
| Can the task be decomposed into ≤ 5 well-defined sub-steps? | → Prefer sequential supervised turns | Agent run if steps are still complex |
A well-scoped agent task has a clear start state, end state, and scope envelope:
Start state: [what exists before the run: branch, file list, test state]
End state: [what "done" looks like: tests pass, file changed, PR opened]
Scope envelope:
- Repos in scope: [explicit list]
- Files allowed to modify: [pattern or list]
- Files NOT to touch: [explicit exclusions — migrations, infra, secrets]
- External calls allowed: [none | read-only | specific APIs]
Never leave the scope envelope open-ended. "Refactor the whole codebase" is not a task boundary; "refactor the authentication module in src/auth/ so all functions have type annotations, passing the existing test suite" is.
| Blast class | Definition | Model tier implication |
|---|---|---|
| Low blast | Reversible; touches only local files; no external state | Balanced default tier |
| Medium blast | PR opened or test suite modified; reversible via PR close | Balanced or frontier; reasoning level up |
| High blast | Database writes, deploy triggers, secret rotation, force-push | Frontier tier mandatory; human gate before execution |
High-blast tasks must have a checkpoint plan: what does the agent do if it encounters an unexpected state mid-run? Define the recovery path before starting.
Apply the vendor-neutral tier logic:
../context-window-planning/SKILL.md first; chunking may be cheaper than a frontier model.The agent must be able to tell the developer when it is done. A testable criterion:
src/auth/tests/ pass and mypy src/auth/ exits 0"main with a description matching the task scope"docs/audit.md covers all files matching src/**/*.py"Without a testable criterion, the agent will either run forever or produce an incomplete artifact with no way to know it is incomplete.
../../agents/codex-model-strategist.md — reasoning-level calibration for Codex agent runs../../agents/copilot-model-strategist.md — Copilot coding-agent surface and plan gates../context-window-planning/SKILL.md — context demand estimation for long runs../../knowledge/ai-coding-decision-trees.md — vendor-neutral tier selectionCreates structured, bite-sized implementation plans from specs or requirements before writing code. Useful for breaking down multi-step tasks into testable steps with file structure and task boundaries.
npx claudepluginhub mcorbett51090/ravenclaude --plugin ai-coding-model-guidance