From squid
Transforms a raw feature spec into an approved Tasks Plan with per-task markdown files (or GitHub Issues), optional ADR, glossary additions, branch, and worktree. Includes grilling rounds and a human gate before any repo changes.
How this skill is triggered — by the user, by Claude, or both
Slash command
/squid:plan <feature-spec | path/to/spec.md | tracker-ref><feature-spec | path/to/spec.md | tracker-ref>The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Anchor a feature in shared understanding and prior decisions, then produce the artifact `/implement-night` consumes: an **approved Tasks Plan — one `tasks/<NNN>-<slug>.md` file per atomic task** — plus an optional ADR, with a feature branch created and the build optionally kicked off. **Nothing touches the repo until the human gate.**
Anchor a feature in shared understanding and prior decisions, then produce the artifact /implement-night consumes: an approved Tasks Plan — one tasks/<NNN>-<slug>.md file per atomic task — plus an optional ADR, with a feature branch created and the build optionally kicked off. Nothing touches the repo until the human gate.
$ARGUMENTS is the raw feature spec — free-form text, a path to a spec file, or a tracker reference. If empty, ask the human for one.
You are the orchestrator — a MANAGER. You drive the grilling, launch the Product Architect (PA), offer another grilling round and present the final plan, run the single human gate, set up the workspace, write the approved artifacts, and kick off the chosen build. You do NOT groom, write code, or implement anything yourself — and you NEVER start building, or create any task, before the human has seen the final plan and passed the gate.
Read AGENTS.md first to confirm the active tracker mode (file → tasks/<NNN>-<slug>.md files; gh → one GitHub Issue per task).
Input: raw feature spec.
Output: decided at the human gate — by default one tasks/<NNN>-<slug>.md per atomic task (status: pending, feature: <slug>; or one GitHub Issue per task) + optional applied glossary additions + an optional new ADR under docs/adr/ + branch feat/{slug} (in a new worktree or the current tree), then optionally the chosen build (/implement-night or an /implement-task loop). This is exactly what the downstream pipeline consumes.
If $ARGUMENTS is empty, ask the human for the feature (free-form, path, or tracker ref). Otherwise resolve it: cat a spec file, load a tracker record, or use free-form text. Surface the resolved spec back in one paragraph.
Before grooming, sharpen the raw spec with the human. Invoke the grilling skill — interview the human relentlessly, one question at a time with a recommended answer, until scope, edge cases, non-goals, constraints, and any decisions that warrant an ADR are clear. Anything answerable by reading the codebase — explore instead of asking. The output is a grilled spec; carry it into Step 2.
Launch ONE Product Architect. It drafts everything and hands it back — it writes nothing to disk. The PA returns the drafts as its final message; they live only in the orchestrator's context window until Step 5 writes them. The human approves at the gate; the orchestrator writes the approved artifacts into the chosen workspace in Step 5.
Agent(
subagent_type="squid:product-architect",
prompt="""Feature-level grooming. Read AGENTS.md first. Follow your feature-grooming role.
Feature (grilled): {grilled spec from Step 1}.
Decompose into atomic, independently-shippable tasks, numbered (NNN) in dependency order. For EACH task, draft the
FULL tasks/<NNN>-<slug>.md content: frontmatter `id`, `feature: {slug}`, `status: pending`, then Scope, Acceptance
Criteria, Out of scope, and an empty `## Log` section.
Also draft: (a) any new docs/glossary.md terms, and (b) IF the feature warrants non-obvious architectural decisions, a
SINGLE proposed ADR for the WHOLE feature (Nygard template: Status / Context / Decision / Diagram / Consequences,
the Diagram a coloured Mermaid system diagram of the design) — ONE ADR that captures the entire design, never one ADR
per task; its Decision section records every related choice.
DO NOT WRITE ANYTHING TO DISK — hand everything back as drafts; the human approves and the orchestrator writes them.
Use the context7 plugin for authoritative library/API usage wherever the feature touches an external framework.
Return: (1) the ordered task files with their full content, (2) the glossary additions (or 'none'), (3) the proposed
ADR draft (or 'none')."""
)
Verify before the gate: the drafts are atomic, ordered by NNN in dependency order, and each has acceptance criteria. Re-launch the PA with the gap as feedback if not. Nothing is on disk yet — that is intentional.
The PA has drafted the plan, but nothing is on disk and no task exists yet. Before /plan moves toward implementation, give the human one explicit chance to sharpen further — then lock and show the final plan.
Ask once with AskUserQuestion: "Another grilling round to sharpen this, or is the plan final?" → More grilling / It's final.
grilling skill on the points the drafts left open, feed the sharpened spec back to the PA (Step 2), and return here. Repeat until the human picks It's final. Keep it to genuinely-open questions — good: "should deleting an Order cascade to its line-items?"; bad: re-opening a settled choice like "maybe switch datastores after all" (that's a fresh /plan, not another round).NNN — title, scope, acceptance criteria, out-of-scope), the glossary additions, and the proposed ADR. This is the human's last look before tasks are created — render it complete, not a teaser.Why this step: catching a wrong-shaped plan on screen costs one more grilling round; catching it after tasks, a branch, and a build already exist costs the whole downstream pipeline. So tasks are created in Step 5, never before the human has seen this final plan.
This is the only gate, and it is mandatory — do not skip it, and do not start writing files, creating branches, or implementing before the human answers. It decides everything that touches the repo. The human has just seen the final plan (Step 3); recap the decision inputs, then ask:
Feature: {title}
Tasks ({N}):
1. {NNN-slug} — {title}
2. ...
Glossary additions: {M new terms, or "none"}
Proposed ADR: {ADR-NNNN "title" — 1-line summary, or "none"}
Task storage (project default): {file → local tasks/*.md | gh → GitHub Issues} ← from AGENTS.md TRACKER_MODE
Then ask with AskUserQuestion. The decisions come in two back-to-back asks — still ONE gate, with no repo writes between them: Part 2 only matters once the plan is approved, and AskUserQuestion caps at four questions per call.
Part 1 — the plan and its artifacts (ask together, then act on Q1):
tasks/<NNN>-<slug>.md, committed to the repo) / GitHub Issues (one issue per task). Pre-select the project default (AGENTS.md TRACKER_MODE) and mark it Recommended.docs/adr/? → Create / Skip (omit this question entirely if no ADR was proposed)docs/glossary.md? → Apply / Skip (omit this question entirely if the PA drafted no glossary additions)Part 2 — workspace and build (only on Approve):
feat/{slug} live? → New worktree (isolated ../{repo}-{slug} dir) / Current working tree (branch in place)/implement-night (end-to-end to a validated PR) / /implement-task loop (build + commit the tasks only, no review/CI) / Stop after planningReached only after the human saw the final plan (Step 3) and approved at the gate (Step 4). This is where the first task is created — never earlier. Do these in order.
A. Set up the workspace (Q5).
git rev-parse --abbrev-ref HEAD # expect main; if not, ask the human how to proceed
git pull
WORKTREE_PATH="$(git rev-parse --show-toplevel)/../$(basename $(git rev-parse --show-toplevel))-{slug}"
git worktree add -b feat/{slug} "$WORKTREE_PATH" main
If it already exists (re-running after an abort): tell the human, ask reuse (r) / recreate (d) — default reuse.git pull
git switch -c feat/{slug} # if already on a feat/* branch, reuse it instead
WORKTREE_PATH = the repo root.B. Write the approved artifacts into the workspace. Write to absolute paths under $WORKTREE_PATH (for a new worktree the orchestrator's cwd is still the main repo — do NOT write the tasks into main):
$WORKTREE_PATH/tasks/<NNN>-<slug>.md per task (status: pending) from the Step 2 drafts. GitHub Issues → gh issue create one issue per task from the same drafts, in NNN order (titles NNN — {slug}, body = the groomed spec). The chosen mode is this feature's tracker for the rest of the pipeline; if it differs from AGENTS.md TRACKER_MODE, it's a one-off override for this plan — don't rewrite AGENTS.md.$WORKTREE_PATH/docs/glossary.md. If Skip (or none were drafted): discard them.$WORKTREE_PATH/docs/adr/NNNN-<slug>.md (Status: Accepted) from the ADR draft. If Skip: discard the draft.ls "$WORKTREE_PATH/tasks" lists every expected file, each with status: pending + acceptance criteria; in GitHub Issues mode, gh issue list shows one issue per task. If anything is missing, write it now — do not hand off an empty plan.C. Kick off the build (Q6).
/implement-night → invoke /implement-night with: feature {slug}, Working directory: $WORKTREE_PATH./implement-task loop → invoke /implement-task with: the feature's pending tasks (tasks/<NNN>-*.md, status: pending), Working directory: $WORKTREE_PATH. (It loops SWE → Tester → commit per task; no /review or /review-ci.)Plan approved. {N} tasks in tasks/ (status: pending) on `feat/{slug}` ({worktree at $WORKTREE_PATH | current working tree}).
Next: run `/implement-night` (builds every pending task to a validated PR), or `/implement-task` for individual tasks.
/plan ends here.
tasks/*.md (or opening Issues) off the PA's draft before the human has seen the final plan — that creates work the human never signed off on.tasks/<NNN>-<slug>.md per atomic task (status: pending) — there is no separate plan document. See the tracker-workflow spec for the file shape./plan must not start implementing (no /implement-night, no /implement-task) until the human has answered the gate and chosen a build. Storage, ADR, glossary, workspace, and build are all part of the gate, not assumptions.product-architect.)docs/adr/ and docs/glossary.md. The PA authors both files.tasks/*.md or GitHub Issues — defaulting to AGENTS.md TRACKER_MODE. The choice is this plan's tracker downstream; a deviation from the project default is a one-off for this feature, not an edit to AGENTS.md.npx claudepluginhub iusztinpaul/squid --plugin squidCreates execution plans from feature specs by decomposing tasks, validating quality, analyzing dependencies, grouping into phases, and committing. Supports multi-repo workspaces via /spectacular:plan.
Converts approved specs into executable implementation plans with bite-sized tasks, file maps, and verification steps. Use before touching code on multi-step work.
Plans a task or feature by loading context, clarifying requirements, spawning a Plan agent, and persisting the plan to .groundwork-plans/. Useful for structured feature development.