norbertsuski/sdd-toolkit/sdd-shape

Claude Code and agent skill by norbertsuski/sdd-toolkit

Trust tier 2
  • community
  • ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Facilitate a structured discovery conversation that turns an idea — greenfield or brownfield — into shape-notes.md, the input to /sdd-prd. Auto-detects context type from project markers in cwd (brownfield) or absence thereof (greenfield) and adapts all six discovery phases accordingly. Use when the user is starting a new project from scratch OR shaping a meaningful change to an existing system (new module, significant feature, architectural improvement). Trigger phrases: "new project", "from sc…

Install

npx vskill@latest install norbertsuski/sdd-toolkit/sdd-shape

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as norbertsuski/sdd-toolkit/sdd-shape.

Shape: Facilitate Discovery (Greenfield & Brownfield) Before /sdd-prd

This skill is the head of the bootstrap chain. For greenfield: /sdd-shape → /sdd-prd → sdd-tech-stack-selector → bootstrapper. For brownfield: /sdd-shape → /sdd-prd → sdd-stack-assess → sdd-health-check. Its single job: walk a user from "I have an idea" (greenfield) or "I want to change this system" (brownfield) to a structured shape-notes.md — written into a per-project subfolder $CONTEXT_ROOT/foundation/<project-slug>/shape-notes.md (CONTEXT_ROOT resolved per references/context-resolution.md; see the schema's "Output paths" section) so multiple context roots, apps, and projects coexist — that /sdd-prd can turn into a PRD that conforms to the locked schema.

The skill is a facilitator, not a content generator. It NEVER writes vision, FRs, business-logic rules, or any other domain content the user did not say. Its value is the question shape and the order of questions, not the answers it offers.

The locked schema both this skill and /sdd-prd conform to lives at references/prd-schema.md (relative to this SKILL.md). Read it before producing any artifact and re-check against it at every checkpoint write.

When audience: plain (a non-technical operator — see Step 0.4), this skill follows the plain-mode contract at references/plain-mode.md: it facilitates and reports in plain language, hides schema and jargon, auto-handles technical-only decisions, and logs them to an ## Auto-decisions (for review) block. The shape-notes.md it writes is identical in both modes except for an additive ## Auto-decisions (for review) block — the conversation and summaries are what otherwise change. Read that contract before running any phase in plain mode.

Repo profile — product-feature delivery mode

This skill assumes a product context, so it defaults to `delivery_mode: product-feature`: features are specified by product/design and built end to end — there is no MVP scoping and no personal-timeline budget unless the user EXPLICITLY asks for MVP framing (says "MVP", "smallest slice", "prototype", or similar — that overrides the default back to mvp for the session).

Concretely, in product-feature mode:

  • Step 3 runs as "End-to-end flow & success criteria", not "MVP discipline": capture the full feature flow as the Primary success criterion; SKIP the three-week scope-cost surface, the after-hours framing, and the mvp_weeks / delivery_weeks capture entirely. Scope-down advice remains available as an offer when the user themselves hesitates about size — never as a gate.
  • Step 6 timing: ask only whether a hard deadline / commitment date exists; do NOT ask "after-hours or day job". Write timeline_budget: null (or { hard_deadline: <date> } when one exists).
  • Step 7 check #4 (Timeline-cost acknowledged) is `n/a (product-feature)` — print it as such; it never counts as missing.
  • Write delivery_mode: product-feature into shape-notes.md frontmatter (alongside context_type) immediately after Step 0.7, so /sdd-prd carries it into the PRD.

Everything else (facilitation pattern, FRs, Socrates round, business logic, non-goals, quality gate) runs unchanged — the mode only removes the MVP/timeline pressure, not the discovery rigor.

When to use, when to skip

Use when: the user describes a new project idea (greenfield), a meaningful change to an existing system — new module, significant feature, architectural improvement (brownfield), or a product they want to rebuild from first principles. Use also when an existing $CONTEXT_ROOT/foundation/<project-slug>/shape-notes.md is incomplete and needs resuming. The skill auto-detects context type from project markers in cwd and adapts.

Skip when: the project already has a PRD or an ADR set (use /sdd-frame or /sdd-plan instead), or the user is reasoning about a single bug / refactor / small feature within an existing codebase that doesn't warrant a full PRD (use /sdd-frame). For brownfield projects where the user wants to shape a meaningful change, this skill IS the right starting point.

Relationship to other skills

  • /sdd-init — scaffolds a context/ root (flat layout, marked by .sdd.yml) plus a root README. foundation/, changes/, and archive/ folders under it are created lazily by the entry skills. /sdd-shape requires at least one discoverable context/ root to exist; if none is found, it delegates to /sdd-init via a tool call (Step 0 below). Legacy app-partitioned roots (context/<app>/…, predating .sdd.yml) remain readable and resumable, but new roots are always flat.
  • /sdd-prd — consumes shape-notes.md. The handoff is the ## Step 8 clipboard write.
  • /sdd-frame — for _reframing_ small-scope problems within existing systems where a full PRD is overkill. /sdd-shape is for larger brownfield changes (new modules, significant features) that need structured discovery and a PRD.
  • /sdd-stack-assess — downstream of /sdd-prd for brownfield projects. Evaluates existing stack against quality gates.
  • /sdd-health-check — downstream of /sdd-stack-assess for brownfield. Audits existing project health.
  • /sdd-plan — downstream of /sdd-prd, never invoked from here directly.

Initial Response

When this skill is invoked:

  1. If a freeform idea was provided as the argument (e.g. /sdd-shape a recipe app that suggests meals from what's in your fridge), capture it verbatim as the seed idea. Do not rephrase. Proceed to Step 0.
  2. If a file path was provided (e.g. /sdd-shape @notes/idea.md), read it FULLY and use its contents as the seed. Proceed to Step 0.
  3. If nothing was provided, respond with:
I'll help you shape an idea into structured notes that /sdd-prd can turn into
a real PRD — whether you're starting from scratch (greenfield) or shaping a
change to an existing system (brownfield).
Please share:
1. The seed idea — what do you want to build or change, in your own words?
2. (Optional) Any rough notes, sketches, or links I should read
Tip: pass the idea inline — `/sdd-shape a recipe app that uses fridge contents`
or for brownfield — `/sdd-shape add a recommendation engine to my recipe app`

Then wait.

Process

Step 0: Check SDDWorkflow precondition & resolve CONTEXT_ROOT

Resolve CONTEXT_ROOT per references/context-resolution.md: run discovery (## Discovery) to find every context/ root marked by a .sdd.yml, excluding vendor/build dirs.

  • One or more roots found — present the pick per the reference's ## Resolution algorithm

(list each root's path and layout, pre-select the one nearest cwd, let the user confirm or choose another), then set CONTEXT_ROOT per that root's layout (flat → the root itself; legacy → the root plus the resolved <app>). Proceed to Step 0.4. (Per-app foundation/ folders are created lazily — their absence does not mean the project is uninitialized; only a discovered .sdd.yml-marked context/ root matters here.)

  • None found — the project has not been initialized for SDDWorkflow. Ask the user:

Ask the user: "This directory isn't initialized for SDDWorkflow (no context/ root found). Run /sdd-init now?" with options:

  • "Yes — run /sdd-init (Recommended)" (description: "Scaffolds the /context skeleton (changes/, archive/, foundation/) with READMEs, then continues shaping.")
  • "No — stop here" (description: "Exit without changes. You'll need to initialize before shape can run.")

On "Yes": invoke /sdd-init via a tool call (NOT via Bash). When /sdd-init returns, re-run discovery; if a root is now found, resolve CONTEXT_ROOT as above and continue to Step 0.4. On "No": print "Stopping. Run /sdd-init when ready, then re-invoke /sdd-shape." and STOP.

Do not duplicate /sdd-init's scaffold logic. A tool call is the correct delegation path.

CONTEXT_ROOT is now resolved for the rest of the session; Step 0.6 below only handles the project-slug subfolder, not root pick.

Step 0.4: Audience resolution

Determine who is operating this skill, per references/plain-mode.md (## Audience resolution):

  1. Read audience: from $CONTEXT_ROOT/.sdd.local.yml. If present, use it — done.
  2. Absent → ask the operator the one plain question from the contract, mapping "developer" →

technical, otherwise → plain. Then write the answer as audience: <plain|technical> into $CONTEXT_ROOT/.sdd.local.yml (creating it if needed), after ensuring $CONTEXT_ROOT/.gitignore contains a .sdd.local.yml line (create or append to .gitignore first if needed).

  1. Default technical if the question goes unanswered.

This is a cheap local read, so it is re-resolved every session — including on resume — rather than inherited from shape-notes.md frontmatter. Hold the resolved value as ACTIVE_AUDIENCE for the rest of this session; it is NEVER written into shape-notes.md frontmatter or any other committed artifact. When ACTIVE_AUDIENCE is plain, obey references/plain-mode.md for all operator-facing text (translation rules, handoff style) and for technical-only decisions (auto-decision policy + audit trail). When it is technical, run exactly as this body describes with no change.

Step 0.5: Resume detection

Scan for prior sessions under the resolved CONTEXT_ROOT. CONTEXT_ROOT already reflects the picked root's layout (flat root, or legacy root + resolved <app>), so a single glob covers both:

bash
ls "$CONTEXT_ROOT"/foundation/*/shape-notes.md 2>/dev/null
  • No matches → fresh session; proceed to Step 0.6.
  • One match → read it FULLY and offer resume (below).
  • Multiple matches → list each candidate (project name + current phase) and ask the user which to resume, OR to start a new project. If they pick "new project", proceed to Step 0.6; otherwise continue below with the chosen file.

For the chosen prior session, read the file FULLY. Parse the frontmatter checkpoint: block per the schema reference (references/prd-schema.md, "shape-notes.md checkpoint format" section). Extract: current_phase, phases_completed, frs_drafted, quality_check_status. Set the session's `ACTIVE_SHAPE_PATH` to that file's path — its parent subfolder is the project folder for all subsequent writes; do NOT create a new one.

Summarize what you found:

Found a prior shape session at <ACTIVE_SHAPE_PATH>:
Project: [from frontmatter project field, or "(unnamed)"]
Current phase: [N — Phase name]
Phases completed: [list]
FRs drafted so far: [count]
Quality check status: [pending | warned | accepted]

Then ask the user: Ask the user: "How would you like to proceed?" with options:

  • "Resume from Phase [next] (Recommended)" (description: "Pick up where the prior session left off. Completed phases are summarized, not replayed.")
  • "Restart from scratch" (description: "Archive the existing shape-notes.md and start a new session.")
  • "Cancel" (description: "Exit without changes.")

On "Resume": jump directly to the next unfinished phase (Step current_phase + (1 if current is in phases_completed else 0)). Do NOT re-run completed phases — only summarize each one back to the user in 1–2 sentences ("Phase 1 captured: <one-line problem>; Phase 2 captured: <one-line persona>; …") so they have context for what was already decided. Skip Step 0.6 — the project subfolder already exists (it's ACTIVE_SHAPE_PATH's parent).

On "Restart": CONTEXT_ROOT is already resolved (Step 0). Move the file to $CONTEXT_ROOT/foundation/archive/shape-notes-<project-slug>-<YYYY-MM-DD-HHMM>.md (create the archive directory if absent), then proceed to Step 0.6 with a fresh session (CONTEXT_ROOT is already resolved — skip its re-resolution).

On "Cancel": STOP without changes.

Step 0.6: Project identity & subfolder

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Extension points

  • hookPre/post lifecycle hooks

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/norbertsuski/sdd-toolkit/sdd-shape/badge)](https://verified-skill.com/skills/norbertsuski/sdd-toolkit/sdd-shape)

Something wrong with this skill or its page? Tell us.