/jig:buildfrom jig
Executes an implementation plan by analyzing its task graph and choosing between parallel (team-dev) or serial (sdd) execution with quality gates. Single entry point for plan execution.
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.
None: SKILL.md is the whole skill.
PURPOSE: Execute an implementation plan. Analyzes the task graph, picks the right execution strategy (parallel or serial), and runs it with quality gates. You hand it a plan — it builds the thing.
CONFIGURATION: Reads jig.config.md for parallel-threshold, default-strategy, and teammate-mode.
plan produces an implementation plan from a spec, ticket, or conversation contextdocs/plans/*.md and want to execute itteam-dev or sddYou don't need to know the difference between parallel and serial execution. This skill figures it out.
flowchart TD
find[Find the implementation plan] --> read[Read plan and extract tasks]
read --> analyze{Analyze task graph}
analyze --> count{Independent tasks<br/>≥ parallel threshold?}
count -->|yes| files{Tasks touch<br/>different files?}
count -->|no| serial[Execute via sdd<br/>serial with review gates]
files -->|yes| teams{Agent teams<br/>available?}
files -->|no| serial
teams -->|yes| parallel[Execute via team-dev<br/>parallel with quality gates]
teams -->|no| serial
parallel --> done[All tasks complete]
serial --> done
done --> verify[Run verification]
verify --> finish[Hand off to finish]
Look for the implementation plan in this order:
docs/plans/ for the newest *-plan.md fileplan first.Read the plan file. Extract:
blockedBy relationships)Team memory. If it is on (the memory skill), you, not a subagent, search traps and decisions for the areas the plan touches, unless this session already did. Pass what you checked to the strategy in your own words, citing each note id.
Read jig.config.md for:
parallel-threshold (default: 3) — minimum independent tasks for paralleldefault-strategy (default: team-dev) — preference when conditions are metteammate-mode (default: tmux) — how parallel agents appearDecision logic:
| Condition | Strategy | Why |
|---|---|---|
| < threshold independent tasks | sdd (serial) | Not enough parallelism to justify team overhead |
| ≥ threshold but tasks share files | sdd (serial) | File conflicts make parallel unsafe |
| ≥ threshold, different files, teams available | team-dev (parallel) | Full parallel execution with quality gates |
| ≥ threshold, different files, teams NOT available | sdd (serial) | Fallback — suggest enabling agent teams |
| Only 1-2 tasks total | Direct execution | No orchestrator needed — just do it |
Announce the decision:
"This plan has N tasks. M are independent and touch different files. Using team-dev (parallel execution with quality gates)."
or
"This plan has N tasks but they're tightly coupled (shared files / sequential dependencies). Using sdd (serial execution with review gates)."
or
"This plan has 2 tasks. Executing directly — no orchestrator needed."
If parallel (team-dev):
Invoke the team-dev skill with the full plan. It handles:
If serial (sdd):
Invoke the sdd skill with the full plan. It handles:
If direct (1-2 tasks): Execute tasks inline in the current session:
After all tasks complete (regardless of strategy):
Run verification — use verify to confirm everything works:
Hand off to finish — which presents options:
pr-create)If the plan references a spec (> **Spec:** docs/plans/...), the spec reviewers in both team-dev and sdd will automatically load the spec's acceptance checklist and verify each [ ] item against the implementation. You don't need to do anything extra — the link in the plan header is enough.
If the plan references a PRD (> **PRD:**, a page link or a *-prd.md) and has a Milestone Map, keep the PRD current as work lands. Follow framework/LIVE_PRD.md, which covers both the page (artifact mode) and a plain *-prd.md (file mode):
build log entry naming the tasks and the commit.build entry summarizing what landed and what is left for finish.If a write is refused, or the PRD cannot be found, carry on and say once, in the final summary, that the PRD was not updated and why. Never block the build on a PRD write.
On the direct path (1-2 tasks), if team memory is on, save a trap or practice this build found that qualifies (the memory skill, Saving), before Step 5 hands off to finish. sdd and team-dev save their own.
| Situation | Action |
|---|---|
| No plan found | Ask the user. Suggest /jig:plan to create one. |
| Plan has no tasks | The plan is incomplete. Ask the user to review it. |
| Agent teams not available for parallel | Fall back to serial. Note: "Agent teams aren't enabled. Using serial execution. To enable: add CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS: "1" to settings." |
| Task fails review repeatedly | The strategy handles this (team-dev sends feedback, sdd re-reviews). If 3+ review cycles fail, escalate to the user. |
| Build/tests fail after all tasks | Don't hand off to finish. Fix the issues first, re-verify. |
| Scope changed mid-build | Pause. Ask: "The implementation is diverging from the plan. Should we update the plan or continue?" |
Called by:
kickoff during the BUILD stage (config key execute)/jig:buildInvokes:
team-dev — for parallel executionsdd — for serial executionverify — after all tasks completefinish — to complete the branchRelated:
plan — creates the plan that this skill executesspec — produces acceptance checklists that spec reviewers verify during executionprd — the live product document that build keeps current (milestones, decisions, log)kickoff — the full pipeline orchestrator that routes here at the BUILD stage/jig:build "Here's a plan, build it"
│
┌─────────┴──────────┐
│ Analyze task graph │
└─────────┬──────────┘
│
┌───────────────┼───────────────┐
│ │ │
≥ threshold < threshold 1-2 tasks
+ diff files or shared files
│ │ │
team-dev sdd direct
(parallel) (serial) (inline)
│ │ │
└───────────────┼───────────────┘
│
┌─────────┴──────────┐
│ verify → finish │
└────────────────────┘
What SKILL.md sets; muted values are Claude Code's defaults
26 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.
/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.npx claudepluginhub duronext/jig --plugin jigOther plugins' skills for the same job