# Plan

> Turns a request into a typed, sized plan and a handoff file before any code is written. Picks the life-cycle phases the task needs.

- Skill: `tauqeer13/plan` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx get-skill add tauqeer13/plan`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tauqeer13/plan/raw
- Safety review: pending
- Works with: any agent that reads SKILL.md (Claude Code, Claude.ai, Cursor, Codex, Windsurf, 60+ more)
- Category: Coding & Dev Tools
- Author: tauqeer13 (https://skillmd.com/u/tauqeer13)
- Updated: 2026-12-03
- Page: https://skillmd.com/skills/tauqeer13/plan

---

---
name: plan
description: Turns a request into a typed, sized plan and a handoff file before any code is written. Picks the life-cycle phases the task needs.
argument-hint: "<what to build or fix>"
disable-model-invocation: true
---

Plan `$ARGUMENTS`. Do not write product code in this step. With no argument, take the first
task not yet planned from the spec list in `<workflowDir>/specs/` and say which.

1. Read the project's CLAUDE.md rules, `.claude/dev-workflow.json` and
   `<workflowDir>/lessons.md` if present. Find the relevant code with Grep and read only the
   line ranges you need. A wide search goes to the `dev-workflow:scout` agent, started with the `scout` model
   (`python3 <plugin folder>/hooks/dw.py models --project <project root>`, the plugin folder being two levels above this file).
2. Pick the task's `Type` from `tracks.md` beside this file: `chore`, `bug`, `feature`,
   `refactor`, `dependency`, `data`, `hotfix` or `spike`. The type decides which phases the task
   goes through and so which headings the handoff file gets. If the request is a feature too
   large for one sitting, stop and suggest `/dev-workflow:spec` instead.
3. Write `<handoffDir>/<slug>.md` (`handoffDir` from `.claude/dev-workflow.json`, default
   `docs/handoff`), a few lines per heading: `Type`, `Departments` (from
   `../../departments/index.md`, only those in the project's `departments` list in
   `.claude/dev-workflow.json` when it has one: the ones the task needs, `engineering` when
   none fits better),
   `Goal` (the outcome of what was asked, not the steps: "fix this crash" becomes "this crash
   no longer happens, proved by a test that reproduced it"), then the headings the track asks
   for from `Acceptance criteria` (checkable, each with how it will be proved), `Out of scope`,
   `Design`, `Standards`, `Files` (the only paths the work may touch; in a workspace of several
   repositories, grouped by repository, provider before consumer), `Tests first`, `Rollback`, `Size`,
   `Risks`; then always `Status` (`planned`) and `Next step`. Every type except `chore` and
   `spike` gets `Standards`: read the sections of `~/.claude/dev-workflow/standards.md` the
   change touches, then write the data model, RBAC rules, validation schema and edge cases,
   and each applicable rule with how it will be met (or why it cannot apply here). Rules that
   need a test become acceptance criteria. Leave out headings the track
   skips.
   Except for a `chore` or a `spike`, run an expert check before settling the criteria, in your
   head, not in the file: what raw evidence would the best practitioner of this work start from
   (logs, real data, a reproduction); what outside the model proves the result (a test, a
   measurement, a tool's output); and what would they do that the request does not ask for.
   The first two shape the criteria and their proof. Anything beyond the request is never a
   criterion on your own say: ask the user in step 6, recommended option first, or list it under
   `Out of scope` as a suggestion. A result is never judged by a model's own opinion of it.
4. Set `Size` to one of three, with a one-line reason. It picks the model that builds the
   task (`build.<size>` in the project's `models`; the defaults are below):
   - `straightforward`: the change is fully specified, follows a pattern already in the code,
     touches a few files in one module, and is in the lowest risk tier (no authentication,
     money, personal data, migrations or public interfaces). Built on Sonnet.
   - `standard`: everything else that has a clear plan. Built on Opus.
   - `hard`: unclear design, several modules, or a bug with no known cause. Get the
     advisor's advice first (the architect only when the Design heading records a decision
     that crosses modules), then build on Opus.
   When unsure between two, take the larger.
   Then run `python3 ../../hooks/dw.py estimate --type <Type> --size <Size> --exclude <slug>`
   from this file's folder and write the line it prints into the handoff file as is, under
   `Size` (`Expected cost: ...`, or `none yet` until there are enough past tasks). The line
   itself says it is for the user, not a limit: keep that wording.
5. If the track asks for a design and it is a real trade-off or crosses module boundaries, run
   `/dev-workflow:advise` on it before going further. If the change touches a path in
   `sensitivePaths`, say so under `Risks`: the review will include a security review.
6. Ask the user only for decisions that are theirs (AskUserQuestion, recommended option
   first). Then report the file path, the type and size, and the next step
   (`/dev-workflow:build <slug>`) in 3 lines.

