/sdd:discovery <idea-or-request>from sdd
Entry point for new work. Researches the user's idea against the codebase, the workstream brief, and beans state, then routes it via AskUserQuestion - extend an existing spec, no spec needed (answered directly in chat), a single new feature, or a sequential multi-spec initiative queued in beans. Writes .sdd/brief.md.
Ships in sdd. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You run INLINE in the main conversation. You are the entry point of the
sdd workflow: the user brings an idea or request, you research enough
to route it honestly, the user picks the route, you record the outcome.
You do not write requirements, designs, or task plans - downstream
skills own those. Your outputs are a routing decision, beans queue
entries when the route needs them, and .sdd/brief.md.
Exactly one feature is active at any time: the single epic bean with
status in-progress. This skill and /sdd:spec-init are the only
entry points that accept a new feature name; every other skill resolves
the feature from beans.
--blocked-by - never in documents. .sdd/brief.md carries the
narrative; its queue section is a rendered snapshot, never a source
of truth, and never checkbox state. Otherwise beans usage follows
the global beans guide.todo epics chained with --blocked-by;
you never create a wave of simultaneously runnable epics, and no new
spec starts while another feature is active..sdd/brief.md before ending
the run; conversation text does not survive session boundaries.Read only what routing needs. If .sdd/ is empty and no epics exist,
note "greenfield" and skip the adjacency checks.
beans list --json -t epic -s in-progress (the active
feature, if any), beans list --json -t epic -s todo (queued
follow-ups), beans list --json -t milestone (existing initiatives).
Note ids and titles..sdd/brief.md when present - prior intent,
decisions, and queue. You are resuming it, not starting over..sdd/specs/*/ and note the feature names.
Read a spec's requirements.md boundary sections only when the idea
is plausibly adjacent to that spec.Routing claims must rest on evidence: which specs exist, what the code already does, what the idea actually touches.
Codebase survey via subagent: when the idea touches an existing codebase, dispatch ONE general-purpose agent and let the summary - not the raw exploration - enter the main context:
Agent(
description: "Survey codebase for <idea>",
subagent_type: general-purpose,
prompt: Survey this codebase against the following idea:
"<one line>". Apply the `lsp-code-analysis` skill (LSP first,
Grep/Glob fallback). Return ONLY a summary (under 150 lines): (1) tech
stack and conventions, (2) module layout, (3) existing behavior
the idea touches, (4) which parts read as extensions of existing
modules vs genuinely new boundaries, (5) specs under .sdd/specs/
adjacent to the idea, if any. No file dumps.
)
Skip the dispatch when the request is small or Step 1 already answers it - trivial fixes, config changes, questions.
External research via subagent: only when routing itself depends on it (is this even buildable with library X?) - same dispatch shape, WebSearch/WebFetch inside the subagent; raw search results never enter the main context.
Technical approach selection with trade-offs is NOT yours: it belongs
to /sdd:spec-design. You research to route, not to architect.
Ask ONE question at a time via AskUserQuestion - 2-4 concrete options when you can derive them, free text always possible. Boundary-first priorities:
Ask only what Steps 1-2 did not answer; skip every question the brief,
the epic description, or steering settles. Stop when you can state the
idea's boundary in two or three sentences. Detailed requirements
shaping belongs to /sdd:spec-requirements.
Write the analysis in chat prose FIRST:
Then ask via AskUserQuestion. Offer only the routes that genuinely fit, at most 4 options (the tool's limit), recommended first and labeled:
<spec> - the request lives inside an existing spec's
boundary. No new spec, fastest to absorb; the spec grows and its
boundary can blur.<name> - one new spec through the full sdd
cycle. Full discipline for one boundary; heaviest process per unit
of work.A mixed decomposition (extensions plus new specs plus direct items)
appears as its own option when it fits; its description carries the
breakdown, the prose above carries the detail. When the idea matches an
already-queued epic, offer Start the queued <feature> instead of
a fresh single-feature option.
Answer the question or do the small work right here in the
conversation; this skill ends when that is done. Record the decision
and its rationale in .sdd/brief.md, create no beans, name no next
command.
Create no beans. Record in .sdd/brief.md which spec and why. The
next command depends on beans state:
/sdd:spec-requirements
(its existing-document gate merges the change intent)./sdd:spec-init "<feature>": it finds the feature's
existing epic by name and re-activates it, guarding on any active
feature first.No epic in progress: do not create the epic - /sdd:spec-init
births it. Record the feature name, one-line description, and
rationale in .sdd/brief.md.
An epic is in progress: this is a follow-up. Queue it - never start it alongside the active feature:
beans create "<name>" -t epic -d "<one-line description>" -s todo
beans update <new-epic-id> --blocked-by <active-epic-id> \
--body-append "Queued as follow-up behind <active-epic-id> (<YYYY-MM-DD>)."
It starts only after the active feature completes - or replaces it
if that one is cancelled; /sdd:spec-init offers exactly that
choice when the user comes to birth it.
Propose the decomposition in prose: each feature's seam in one line, the order, and why this order. Confirm via AskUserQuestion (adjust the list / adjust the order / proceed) BEFORE creating any beans.
Create the milestone, then the epics - one chain, strictly sequential:
beans create "<initiative title>" -t milestone \
-d "<intent one-liner>" -s todo
# per feature, in order:
beans create "<feature>" -t epic -d "<one-line description>" -s todo
# then link each epic:
beans update <epic-id> --parent <milestone-id> \
--body-append "Queued under <milestone-id> (<YYYY-MM-DD>)."
# ...plus --blocked-by <previous-epic-id> for every epic after
# the first
--blocked-by - unless an epic is
in progress (then --blocked-by <active-epic-id>) or the user
stated earlier work that must land first.Append the intent and links to the milestone body:
Intent: <one line>
Brief: .sdd/brief.md
Queue: <epic-1> -> <epic-2> -> <epic-3> (strictly sequential)
Execute each leg under its own rule above: extensions recorded (next
command per target), new specs queued as the sequential epic chain,
direct items recorded in .sdd/brief.md with no beans. The next
command is whichever leg comes first in the agreed order - usually the
chain's first feature.
.sdd/brief.mdThe single resume document. Write it BEFORE the closing summary. When it already covers this workstream, update it in place; when a new initiative begins and the file holds an earlier one, add a new dated section on top and leave prior content untouched below.
# Workstream Brief
## <Initiative or feature title> (<YYYY-MM-DD>)
### Intent
<who has the problem, what changes when done - two or three sentences>
### Scope
- **In**: <what this workstream includes>
- **Out**: <what it explicitly excludes>
### Decisions
<each decision with its rationale: route taken, boundaries drawn,
order chosen - and the alternatives rejected>
### Open Questions
<unresolved items, each with where it will be resolved:
requirements interview, design, a later initiative>
### Queue
<rendered snapshot only - beans is the source of truth; plain ordered
lines, never checkboxes>
1. <epic-id> - <feature> - todo
2. <epic-id> - <feature> - blocked by 1
A SHORT summary:
.sdd/brief.mdThen name the next command for the chosen route in a code block:
/sdd:spec-init "<first feature>"
/sdd:spec-requirements
/sdd:spec-init "<feature>"
/sdd:spec-init "<feature>" and say it will refuse until the active
feature is completed or scrapped - by design.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub jazz-man/claude-marketplace --plugin sdd15 skills in this plugin
/debugRoot-cause-first debugging protocol - reproduce, isolate, confirm the root cause, then plan the minimal fix. Use when an implementer is blocked, verification fails, or repeated remediation does not converge./implExecute the active feature's approved task plan one task at a time - dispatch subagent implementers and reviewers, run the bounded fix loop, verify completion with fresh evidence, and stop after every task for the user's review./initWrite the user-owned .claude/rules/sdd.md workflow-rules file from the plugin's default workflow map (single source of truth - no second copy anywhere). Refuses politely when the file exists and offers a read-only diff instead of overwriting. User-invoked./reviewAdversarial task-local review protocol - verify an implementation is real, complete, bounded, spec-aligned, and backed by mechanical evidence. Use after an implementer finishes a task, after remediation, or before accepting a task as complete./spec-designGenerative fork - research the active feature (discovery by classification) and write design.md with boundary-first architecture, considered alternatives with trade-offs, and a mermaid diagram. Use after /sdd:spec-requirements; the main context presents the result and runs the confirm gate./spec-initBirth a new feature - the only skill that creates one. Guards the single-active-feature rule, creates .sdd/specs/<name>/ and the in-progress epic bean that records the spec path, then names the next command.