/jig:planfrom jig
Turns approved designs or requirements into structured implementation plans with TDD-oriented tasks, exact file paths, and verification steps. Save to docs/plans/.
Ships in jig. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
PURPOSE: Turn an approved design into a comprehensive implementation plan that an engineer (or AI agent) with zero codebase context can follow task by task. Every task is bite-sized, TDD-oriented, and self-contained.
CONFIGURATION: Reads jig.config.md for plans-directory (save location), filename-format, commit conventions, execution strategy preferences (parallel-threshold, default-strategy), and optional plan-sync (remote document sync).
Invoke this skill when:
brainstormspec), or requirements from a ticket or conversation, for a multi-step taskkickoff routes here during the PLAN stageDo NOT use when:
/brainstorm, /prd or /spec first to produce something to transpose from.Announce at start: "I'm using the plan skill to create the implementation plan."
If the spec covers multiple independent subsystems, it should have been broken into sub-project specs during spec authoring. If it was not, suggest breaking this into separate plans -- one per subsystem. Each plan should produce working, testable software on its own.
The critical step. Before drafting tasks, distill the source material into a structured contract you can decompose. The methodology is the same regardless of input fidelity — only Step 1a branches on source type.
If a spec exists (referenced by the user, present in {plans-directory}/, or named in the ticket):
[ ] acceptance items — already layer-tagged, and traced to PRD outcomes like (MVP.2) when a PRD exists.If only a PRD exists (no spec): stop and offer /spec first. The PRD is written for people; plans transpose from the spec's contract.
If neither exists, extract an implicit contract from available context:
Write the implicit contract inline as bullets, tagged by layer — one per requirement. Capture as many as the work genuinely needs; there is no upper limit. Completeness matters more than brevity here: every downstream task traces back to a contract item, so a dropped requirement is dropped work.
[DATA] Order entity has a `notes` field (optional text, max 2000 chars)
[API] createOrder accepts `notes` in CreateOrderInput
[LOGIC] Notes are stripped of HTML before persistence
[UI] Order detail page shows notes in a collapsed section
This is scratch work — not a separate doc. It anchors the rest of the transposition. If the contract grows large enough that it's hard to hold in your head, that's a signal the work warrants a formal spec — offer /spec — but an inline contract of any length is valid.
The only floor is three. If you cannot articulate at least 3 bullets from available context, stop — you don't have enough to plan. Return to the user: "I don't have a clear contract for what to build. Want to write a spec with /spec, or talk through it with /brainstorm first?"
Bucket every contract item into its layer:
| Layer | Examples |
|---|---|
| DATA | Entities, schema changes, migrations, indexes |
| API | Endpoints, mutations, queries, RPC contracts |
| LOGIC | Business rules, validations, state machines, side effects, jobs |
| UI | Components, pages, states, interactions |
Items spanning layers (e.g., a permission check that's both API and LOGIC) go in every layer they touch.
For each layer, list the files that need to be created or modified. This is where the spec becomes a build artifact:
Plus tests for every non-trivial file.
This list becomes the ## File Structure table in the plan document.
If team memory is on (the memory skill), Search for traps in the repo's
toolchain and in these files' areas. Use what you checked to get the plan's
commands right for self-review. The plan's one note is saved at Plan Output.
Within layers, default order is bottom-up: DATA → LOGIC → API → UI. Across the build:
This sequencing populates the Dependencies: field on each task.
Now and only now, expand each contract item into the 5-step TDD task template (existing format in this skill). Every contract [ ] item should map to at least one task. The reverse check at self-review: every task ties back to at least one contract item.
Transposition discipline:
Every plan MUST start with this header:
# [Feature Name] Implementation Plan
> **Spec:** docs/plans/YYYY-MM-DD-<topic>-spec.md *(include if a spec exists)*
> **PRD:** docs/plans/YYYY-MM-DD-<topic>-prd.md or the PRD artifact link *(include if a PRD exists)*
> **Design:** docs/plans/YYYY-MM-DD-<topic>-design.md *(include if a design doc exists)*
> **For agents:** Use team-dev (parallel) or sdd (sequential) to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.
**Goal:** [One sentence describing what this builds]
**Architecture:** [2-3 sentences about approach]
**Tech Stack:** [Key technologies/libraries relevant to this plan]
---
The > **Spec:**, > **PRD:** and > **Design:** lines are how downstream agents find the acceptance checklist, the product outcomes and the design decisions. Always include them when those documents exist.
Directly after the header, map the PRD's milestones to the tasks that complete them. build, team-dev and sdd use this table to tick milestones on a live PRD as work lands (see framework/LIVE_PRD.md).
## Milestone Map
| Milestone | Done when | Last tasks |
|-----------|-----------|------------|
| m3 · Retry works on staging | Tasks 4-9 pass review | 9 |
| m4 · Beta on for 20 customers | Ships (out of plan scope) | — |
Tasks are referred to as T<n> (Task 4 is T4) in the Milestone Map, the PRD's trace and log entries. Only list milestones this plan can complete. Milestones that need a release, a demo or a human call are marked out of plan scope and are ticked by a person or by finish.
Before defining tasks, map out which files will be created or modified and what each one is responsible for. This is where decomposition decisions get locked in.
## File Structure
| File | Action | Responsibility |
|------|--------|---------------|
| `exact/path/to/file.ext` | Create | Brief description |
| `exact/path/to/existing.ext` | Modify | What changes and why |
| `tests/exact/path/to/test.ext` | Create | What it tests |
Each step is one action (2-5 minutes):
Tasks should be scoped so an engineer can complete one in a focused burst without needing to context-switch. If a task requires more than 5 minutes of active work, break it down further.
Every task follows this template:
### Task N: [Component Name]
**Files:**
- Create: `exact/path/to/file.ext`
- Modify: `exact/path/to/existing.ext`
- Test: `tests/exact/path/to/test.ext`
**Dependencies:** Requires Task M (if applicable)
- [ ] **Step 1: Write the failing test**
```language
// Test code here -- complete, runnable, no placeholders
```
- [ ] **Step 2: Run test to verify it fails**
Run: `<exact test command>`
Expected: FAIL with "<expected failure message>"
- [ ] **Step 3: Write minimal implementation**
```language
// Implementation code here -- complete, no placeholders
```
- [ ] **Step 4: Run test to verify it passes**
Run: `<exact test command>`
Expected: PASS
- [ ] **Step 5: Commit**
```bash
git add <specific files>
git commit -m "<message following project commit convention>"
```
blockedBy or Dependencies.jig.config.md.Every step must contain the actual content an engineer needs. These are plan failures -- never write them:
| Placeholder | Why It Fails |
|---|---|
| "TBD", "TODO", "implement later" | Engineer stops dead, has to figure it out |
| "Add appropriate error handling" | What errors? What handling? Be specific. |
| "Add validation" | What validation? For what inputs? |
| "Handle edge cases" | Which edge cases? List them. |
| "Write tests for the above" | Without actual test code? Useless. |
| "Similar to Task N" | The engineer may read tasks out of order. Repeat the code. |
| Steps describing what to do without showing how | Code steps require code blocks. |
| References to types/functions not defined in any task | Undefined = broken. |
Plans are TDD-oriented by default:
REQUIRED: Reference tdd skill for implementers. Subagents and teammates executing this plan should follow the TDD red-green-refactor cycle.
For tasks that are purely structural (creating directories, config files, boilerplate with no logic), TDD steps can be simplified to "create file, verify it exists, commit."
After writing the complete plan, review it with fresh eyes. This is a checklist you run yourself -- not a subagent dispatch.
1. Transpose coverage: For every [ ] item in the contract (spec acceptance checklist or inline contract from Step 1a), point to the task(s) that implement it. If any item has no task, add one. If any task has no contract item, justify it or remove it.
2. Placeholder scan: Search the plan for red flags -- any of the patterns from the "No Placeholders" section above. Fix them.
3. Type consistency: Do the types, method signatures, and property names used in later tasks match what was defined in earlier tasks? A function called clearLayers() in Task 3 but clearFullLayers() in Task 7 is a bug.
4. Dependency ordering: Can each task be executed after its dependencies complete? Are there circular dependencies? Is the ordering optimal for parallelization?
5. Command accuracy: Are the test commands, build commands, and file paths correct for this project's toolchain?
If you find issues, fix them inline. No need to re-review -- just fix and move on. If you find a spec requirement with no task, add the task.
After self-review, invoke the review swarm to scrutinize the implementation plan before the user approves it.
Automatic dispatch: Run the swarm for all medium-to-large features and improvements. Skip only for clearly trivial work.
INVOKE jig:review using the Skill tool with mode: plan. Pass the plan document path. The review skill discovers plan specialists (stage includes plan), dispatches them in parallel with the full plan + spec + section hints + codebase access. After the specialist swarm, a plan logic reviewer (Opus) performs deep correctness analysis. Findings are scored and returned as a unified report.
Present the swarm findings to the user before asking for approval:
"Plan written and self-reviewed. The review swarm found these concerns:"
{swarm report — including plan logic reviewer findings}
"Want to address any of these before approving the plan?"
If the user requests changes based on findings, update the plan and re-run the self-review checklist. Do not re-run the swarm unless the changes are substantial.
Save to: {plans-directory}/{filename-format} resolved against jig.config.md (default: docs/plans/YYYY-MM-DD-<feature-name>-plan.md).
If plan-sync is configured in jig.config.md, also push to the configured remote document target after saving locally (see the pack's README for sync method).
With team memory on, once the plan passed review:plan and the user
approved it, save the header's Architecture choice as a decision note with
its reason, unless the choice is obvious. Key it <repo>-<plan stem>
(the memory skill, Saving).
After saving the plan, offer the execution choice:
"Plan complete and saved to
docs/plans/<filename>.md. Two execution options:1. Team-Driven (parallel) -- Spawns implementer teammates in split panes, staggered review pipeline. Best for 3+ independent tasks touching different files.
2. Subagent-Driven (sequential) -- Fresh subagent per task, two-stage review after each. Best for coupled tasks or fewer than 3 tasks.
Which approach?"
If Team-Driven chosen:
team-devIf Subagent-Driven chosen:
sddRead jig.config.md for parallel-threshold and default-strategy to inform the recommendation, but always let the user choose.
Called by:
kickoff during the PLAN stage/plan) — when the user has source material readyTerminal state:
Related skills:
spec — primary input source; produces the acceptance checklist that Step 1 transposesprd — the product document behind the spec; supplies the milestones for the Milestone Mapbrainstorm — optional pre-cursor when the user wants to explore approaches before locking in a plantdd — implementers follow TDD during executionteam-dev / sdd — execution engines| Mistake | Consequence | Fix |
|---|---|---|
| Vague steps without code | Engineer guesses, builds wrong thing | Every code step has a complete code block |
| Missing file paths | Engineer creates files in wrong locations | Exact paths always, verify against project structure |
| Placeholders in test code | Tests do not actually test anything | Write real assertions with real expected values |
| Tasks too large | Context overload, errors compound | Each step is 2-5 minutes of focused work |
| Missing dependencies | Task fails because prerequisite not built | Declare blockedBy for every dependent task |
| Inconsistent naming across tasks | Runtime errors, undefined references | Self-review checks type consistency |
| Skipping self-review | Spec gaps ship, plans have contradictions | Always run the 5-point self-review |
| No spec/PRD/design reference in header | Spec reviewers cannot find acceptance criteria | Include reference lines when documents exist |
| No Milestone Map when a PRD exists | The live PRD never shows progress | Map each milestone this plan completes to its last tasks |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub duronext/jig --plugin jig26 skills in this plugin
/brainstormUse when exploring ideas, comparing approaches, or refining an unclear problem — at any point in the workflow. A discovery-time tool, not a pipeline stage. Invokable directly via /brainstorm or offered by kickoff during DISCOVER. Produces understanding, not artifacts.
/buildUse when you have an implementation plan and want to execute it. Analyzes the plan's task graph, determines the best execution strategy (parallel via team-dev or serial via sdd), and orchestrates the full build with quality gates. The single entry point for plan execution — you don't need to choose between team-dev and sdd yourself.
/debugUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes. Enforces root cause investigation through four phases: investigation, pattern analysis, hypothesis testing, and implementation. Prevents guess-and-check thrashing.
/eng-copywritingUse when writing ANY user-facing text -- UI labels, button text, error messages, notifications, tooltips, placeholders, or application content./eng-loggingUse when implementing logging in application code. Covers log level selection, structured logging, error tracking integration, and avoiding noise./eng-testingUse when writing tests, designing test strategy, or reviewing test coverage. Covers test pyramid, naming, mocking, and flaky test policy.Other plugins' skills for the same job