/jig:specfrom jig
Turns requirements into an enforceable technical spec covering API contracts, data models, business rules, UI states, and a layer-tagged acceptance checklist. Reads a PRD when available.
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: Collaboratively author the technical spec: the enforceable contract that human reviewers and downstream AI agents (spec reviewers, team-dev quality gates) verify the build against. The PRD says what and why in plain language; the spec says what exactly in the system's terms.
INPUT: A PRD when one exists (from prd: a *-prd.md file, or a PRD artifact link whose page carries its Markdown source). Without a PRD, the spec starts from a ticket, a brainstorm summary, or the conversation.
PRINCIPLE: API-first. The platform contract (data model, API surface, business rules) comes before UI. Sections are ordered by platform priority, not visual priority.
CONFIGURATION: Reads jig.config.md for ticket-system (sync target), plans-directory (local save location), spec-sync (optional remote document sync), and the ## Concerns Checklist (concerns to walk through).
/spec (optionally with a PRD path or artifact link) or by kickoff after the PRD stageDo NOT use when: The work is a trivial config change, chore, or single-line fix with obvious scope.
Two tiers, selected by work type:
What type of work?
|
+-- feature / large improvement --> Full spec (12 sections)
|
+-- bug / small improvement / task --> Light spec (5 sections)
Auto-suggest the tier from context. Ask the user to confirm.
Before asking the user anything, do your homework:
*-prd.md in {plans-directory}, or a PRD artifact link. For a link, read the artifact and take the Markdown inside its <script type="text/markdown" id="prd-source"> block; that is the PRD's source of truth. Note its outcome IDs (MVP.1, NEXT.2, ...), phases, open decisions, and current rev. Spec only the phase the user is building now (usually MVP); later phases get their own spec when their turn comes.jig.config.md for ticket-system to determine where to look.docs/plans/ for related prior workmemory skill) -- decisions, root causes and traps for this feature and repo. A note may suggest an acceptance item; treat it as added scope the user must approve.Product implications go back to the PRD, not into the spec. If exploring the code turns up something a product person must decide (a report that would double-count, a screen the PRD did not mention, a permission the PRD assumed), record it as an open decision on the PRD. Write it to the PRD's decisions and log as framework/LIVE_PRD.md describes (the artifact on a page, the file's Open decisions and Log otherwise) and tell the user.
Then ask 2-3 targeted questions (not a form):
Based on the user's answers and your context gathering:
Produce a complete spec draft in one pass:
TBD -- [what needs to be decided](MVP.2). Every in-scope PRD outcome must be served by at least one item.[ ] items tagged by layerDraft quality bar: The draft should be good enough that the user is refining and correcting, not writing from scratch. Leverage what you learned in Step 1.
After producing the draft, invoke the review swarm to scrutinize the requirements before the user refines them.
Automatic dispatch: Run the swarm for all medium-to-large features and improvements. Skip only for clearly trivial work (config change, single-line fix, chore with obvious scope).
INVOKE jig:review using the Skill tool with mode: spec. Pass the spec document path (and the PRD path, if one exists). The review skill discovers spec specialists (stage: spec or both), dispatches them in parallel with the full document + section hints + codebase access, scores findings, and returns a unified report.
Present the swarm findings to the user alongside the draft:
"Here's the spec draft. Before we refine, the review swarm found these concerns:"
{swarm report}
"Let's address these during refinement, or flag any you want to defer."
The user then refines the draft (Step 4) informed by both their own review and the specialist findings.
After the swarm findings are presented but before refinement, walk through the ## Concerns Checklist from jig.config.md.
For each concern listed:
review:specmanual -> add an acceptance item flagging human reviewEach Yes concern adds scope to the spec acceptance checklist. The user must explicitly approve added scope.
Work type behavior:
If no concerns checklist is configured in jig.config.md, use minimal defaults: error-handling, security, test-strategy.
See framework/CONCERNS_CHECKLIST.md for full configuration documentation.
Walk through the draft with the user:
Do NOT rush this step. The spec is only as good as the refinement. If the user spots gaps, dig into them.
plans-directory and filename-format from jig.config.md (defaults: docs/plans/ and {date}-{topic}-{kind}.md). Resolve to e.g. docs/plans/2026-05-27-export-feature-spec.md.> **PRD:** docs/plans/YYYY-MM-DD-<topic>-prd.md (or the artifact link) and > **PRD rev:** C.spec-sync in jig.config.md — if set (e.g., spec-sync: linear), invoke the configured pack's doc-sync instructions. See the pack's README for the sync method (e.g., packs/linear/README.md → "Document sync").jig.config.md (separate from doc sync — ticket is the issue, doc is the standalone artifact).review:spec and the user refined it, save the decision notes per the memory skill (Saving), each with its own key: the contract's choices (<repo>-<spec stem>-contract), each concern marked No or N/A and why (-concerns), and Out of Scope and why (-scope).spec entry to its log naming the spec path, the item count, and any decisions opened. On a page this goes to the artifact; on a plain *-prd.md it goes into the file. See framework/LIVE_PRD.md.Use for features and large improvements. Not every section applies to every spec -- mark irrelevant sections as N/A with a brief reason. Sections are ordered by platform priority: API-first, UI last.
Orient any reader in 30 seconds.
Good: "A component export feature that lets users build custom export packages, select revisions, configure output settings, and receive the export via email or direct download."
Bad: "We need to implement the mutation with a workflow and a new entity." (That is implementation, not requirements.)
Establish why this work matters.
When a PRD exists, link to it and skip this section -- the PRD owns the why. Otherwise keep to 2-4 sentences.
Define the interface -- this is the platform contract.
For each query, mutation, endpoint, or operation:
Format as a checklist for downstream verification:
- [API]
createOrderendpoint: acceptsCreateOrderInput, returnsOrder- [API] Input field
items: [OrderItemInput!]!-- required, non-empty array- [API] Error
ORDER_EMPTY_ITEMSthrown when items is empty- [API] Requires
ORDER_CREATEpermission or admin role
What good looks like: A backend engineer can implement the endpoint from this section alone without asking clarifying questions about the contract.
Define new or modified entities, relationships, and schema changes.
For each entity:
Format as a checklist:
- [DATA]
Orderentity:id,status(enum),userId(FK),settings(JSON),total(decimal)- [DATA]
OrderItemjoin entity:orderId(FK),productId(FK),quantity(int)- [DATA] Migration handles existing databases with data
Define validations, state transitions, conditional behavior, and side effects.
Cover:
Format as a checklist:
- [LOGIC] Order transitions:
DRAFT->SUBMITTED->APPROVED|REJECTED- [LOGIC] Only items the user has read access to can be added
- [LOGIC] Event
order.submittedpublished on submission- [LOGIC] Email sent to approver on submission
Document how users reach this feature and what context they carry in.
Each entry path gets its own subsection:
Path A -- Dashboard "New Order" Button
- User clicks "New Order" on dashboard
- Navigates to order creation page in empty state
Path B -- Product List (Multi-select)
- User selects products via checkboxes
- Opens Actions menu -> "Create Order"
- Navigates to order creation page with selected products pre-populated
What good looks like: A frontend engineer knows every route into the feature and what state/data each path carries.
Define page structure and every visual state.
Cover:
Specify interactive behavior for each non-trivial UI component.
For each component cover:
Components to document: modals, forms, dropdowns, pickers, sidebars, drawers, lists with selection, drag-and-drop, toggles.
Document every user-configurable option.
For each setting:
Make unresolved decisions visible, not hidden.
Each open question should include:
Prefix each with TBD for scannability:
- TBD: How are download links handled for unauthenticated users? Needs input from security team.
- TBD: Exact polling UX for progress -- requires backend timing data to inform.
Explicitly define what is NOT included in this work.
The enforceable contract. Downstream agents verify every item. See the Acceptance Checklist Format section below for rules.
Use for bugs, small improvements, or tasks. Keep it concise -- a light spec should take minutes, not an hour.
What is broken or suboptimal, and who is affected?
Make the gap between now and done crystal clear.
Current Behavior
What happens now. For bugs: reproduction steps. For improvements: current limitation.
Expected Behavior
What should happen instead. Concrete and testable.
Keep it concrete -- "clicking X shows Y" not "the experience is degraded."
Scope the change so implementers know where to look and agents know where to verify.
Prevent scope creep on what should be a focused change.
The enforceable contract -- same rules as the full spec. See the Acceptance Checklist Format section below.
The acceptance checklist is the enforceable contract. Every item must be:
| Property | Rule |
|---|---|
| Atomic | One verifiable behavior per checkbox |
| Testable | An agent can determine pass/fail by reading code or running a test |
| Layer-tagged | Prefixed with [API], [DATA], [LOGIC], or [UI] |
| Concrete | "Export button disabled when list empty" not "UI works correctly" |
| Numbered | Starts with a sequential id, S-1, S-2, … unique across the spec, so the PRD's trace can name it |
| Traced | When a PRD exists, ends with the outcome it serves: (MVP.2) |
Example:
API
- S-1 [API]
createOrdermutation acceptsitemsandsettingsinput (MVP.1)- S-2 [API] Returns
Orderwithid,status,total- S-3 [API] Throws
ORDER_EMPTY_ITEMSerror whenitemsis emptyData
- S-4 [DATA]
Orderentity created with status, userId, settings columns- S-5 [DATA] Migration runs cleanly on empty and populated databases
Logic
- S-6 [LOGIC] Background job initiated on submission
- S-7 [LOGIC] Only active items included when
activeOnly: trueUI
- S-8 [UI] Submit button disabled when item list is empty
- S-9 [UI] Toast shown after submission (MVP.1)
Implementation plans reference the spec (and, through it, the PRD):
Spec: docs/plans/YYYY-MM-DD--spec.md PRD: docs/plans/YYYY-MM-DD--prd.md
The Spec pointer tells downstream agents (spec reviewers, team-dev quality gates) where to find the acceptance checklist. They load the spec, extract the [ ] items, and verify each one against the implementation with file:line references. The PRD pointer is used by the pre-ship PRD check and by the live-PRD updates (framework/LIVE_PRD.md).
This skill is the SPEC stage in the kickoff pipeline:
CLASSIFY -> DISCOVER -> (PRD) -> SPEC -> PLAN -> BUILD -> REVIEW -> SHIP -> LEARN
/spec after the PRD is approved (or directly, if the user skipped the PRD)The spec becomes the input to plan's TRANSPOSE step. plan reads the spec's acceptance checklist and distills it into a build sequence. The PRD says what and why; the spec says what exactly; plan decides how.
| Mistake | Fix |
|---|---|
| Starting with UI sections | Lead with API contract and data model -- platform first |
| Vague acceptance items | Every [ ] must be testable. "Works correctly" is never acceptable |
| Skipping N/A sections silently | Mark them explicitly -- the absence of a section is a decision worth documenting |
| Writing implementation details | The spec captures the contract, not the task sequence. Save the how for planning |
| Forgetting open questions | Flag unknowns with TBD -- unresolved questions are better visible than hidden |
| Overly long specs for small work | Use the Light tier. Five focused sections beat twelve half-empty ones |
| Deciding product questions in the spec | Send them back to the PRD as open decisions with an owner |
| Speccing every PRD phase at once | Spec the phase being built now; later phases get their own spec |
| Not exploring the codebase first | The draft quality depends on context. Read the code before writing the spec |
| Hardcoding ticket system references | Read ticket-system from jig.config.md -- do not assume any particular tool |
| Acceptance items without layer tags | Every [ ] must be prefixed with [API], [DATA], [LOGIC], or [UI] |
| "The bug is fixed" as acceptance item | Be specific: what behavior changed? What inputs produce what outputs? |
Called by:
kickoff during the SPEC stage (after PRD, before PLAN)Terminal state:
kickoff, which proceeds to PLANRelated skills:
prd -- the product document this spec servesplan -- references the spec (and PRD) in the plan header for spec reviewerskickoff -- orchestrates the full pipeline including this skill| Element | Rule |
|---|---|
| Full tier | 12 sections, features and large improvements |
| Light tier | 5 sections, bugs and small improvements |
| Save location | {plans-directory}/{filename-format} (default: docs/plans/YYYY-MM-DD-<topic>-spec.md) |
| Remote sync | Optional via spec-sync in jig.config.md (pack-driven) |
| PRD trace | Each acceptance item ends with the PRD outcome it serves, e.g. (MVP.2) |
| Acceptance items | Atomic, testable, layer-tagged, concrete |
| Layer tags | [API], [DATA], [LOGIC], [UI] |
| API-first | Platform contract before UI in section order |
| Ticket sync | Read ticket-system from jig.config.md |
What SKILL.md sets; muted values are Claude Code's defaults
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