<< All versions

Skill v1.0.0

currentAutomated scan100/100
norbertsuski/sdd-toolkit/sdd-new
──Details
PublishedNovember 18, 2026 at 06:41 AM
Content Hashsha256:fc337062297a2df9...
Git SHA9d2285513daf
──Files
Files (1 file, 8.8 KB)
SKILL.md8.8 KBactive
SKILL.md · 144 lines · 8.8 KB

name: sdd-new description: Initialize a new change folder under CONTEXT_ROOT/changes/<change-id> with a change.md identity file metadata: version: "1.0.0"


/sdd-new — Start a New Change

Bootstrap a new change folder under $CONTEXT_ROOT/changes/<change-id>/, where CONTEXT_ROOT is resolved per ../sdd-shape/references/context-resolution.md. Creates a tiny identity file (change.md) and points the user at the next skill.

A "change" is a single unit of work end-to-end — research, planning, implementation, and review all live inside one folder keyed by <change-id>.

Initial Response

When this command is invoked:

  1. Resolve `CONTEXT_ROOT` per ../sdd-shape/references/context-resolution.md: run discovery, then either inherit the root from an input path (when the argument is a path-style reference under a discovered root — see "Argument Parsing" below), or present the pick (pre-selecting the root nearest cwd) and let the user confirm. This sets CONTEXT_ROOT to a flat root or a resolved root/<app> for a legacy root. If no root is discovered, offer to run /sdd-init per the reference's "None found" step, then re-run discovery. Every path in the rest of this skill is relative to the resolved CONTEXT_ROOT.
  1. Check if any argument was provided:
  • If an argument was provided, parse it (see "Argument Parsing" below) and proceed to "Validation"
  • If NO argument was provided, respond with the following message and STOP:
I'll create a new change folder. Please provide a change-id (kebab-case slug):
Examples:
/sdd-new context-dir-restructure
/sdd-new oauth-login add Google sign-in so users skip the email-password step
/sdd-new @$CONTEXT_ROOT/changes/oauth-login/
The first token becomes the change-id. Anything after it is freeform intent — used to write a richer title and to pick the next-step suggestion. Path-style references (with or without a leading `@`) are accepted; the last path segment is used as the change-id.
The change-id must be:
- kebab-case (lowercase letters, digits, hyphens; no leading/trailing hyphen, no double hyphens)
- unique across `$CONTEXT_ROOT/changes/` and `$CONTEXT_ROOT/archive/`

Then wait for the user to provide an argument.

Argument Parsing

Split the raw argument string on the first run of whitespace:

  • First token = the change-id reference. Normalize it:
  1. Strip a leading @ if present (@$CONTEXT_ROOT/changes/feature-x/ → $CONTEXT_ROOT/changes/feature-x/).
  2. Strip a trailing / if present.
  3. If the result contains /, take the last non-empty path segment ($CONTEXT_ROOT/changes/feature-x → feature-x).
  4. The result is <change-id>.
  • Everything after the first token = freeform intent. May be empty. May be a sentence or a paragraph. Do not treat it as a literal title to insert verbatim.

Examples:

Raw input<change-id>Intent
feature-xfeature-x(empty)
oauth-login add Google sign-in for faster onboardingoauth-loginadd Google sign-in for faster onboarding
@$CONTEXT_ROOT/changes/oauth-login/oauth-login(empty)
@$CONTEXT_ROOT/changes/oauth-login/ revisit the token-refresh edge caseoauth-loginrevisit the token-refresh edge case
My Feature add OAuthMy Feature (will fail kebab-case check)add OAuth

Validation

Before creating anything:

  1. kebab-case check: <change-id> must match ^[a-z][a-z0-9]*(-[a-z0-9]+)*$ (starts with a letter, segments of lowercase + digits separated by single hyphens, no leading/trailing hyphen, no double hyphens).
  • On failure, print: error: change-id "<id>" is not kebab-case. Use lowercase letters, digits, and single hyphens only (e.g., "oauth-login", not "OAuth Login"). and STOP.
  1. Uniqueness check: neither $CONTEXT_ROOT/changes/<change-id>/ nor $CONTEXT_ROOT/archive/<change-id>/ may already exist.
  • On collision, print: error: change "<id>" already exists at <path>. Pick a different change-id or work inside the existing folder. and STOP.
  1. `$CONTEXT_ROOT/changes/` parent exists: if missing, print error: $CONTEXT_ROOT/changes/ not found — is this repo set up for the SDD context structure? and STOP. (Do NOT auto-create the parent; that's a sign the repo isn't ready.)

Creation

  1. Create directory $CONTEXT_ROOT/changes/<change-id>/.
  2. Derive the <title>:
  • If the intent string is empty, humanize the change-id: replace hyphens with spaces and capitalize the first letter (e.g., multi-course-access → Multi course access).
  • If the intent string is non-empty, write a concise human-readable title (≤ 80 chars, sentence case, no trailing period) that captures what the change is about. The intent is _guidance_, not a literal — feel free to rephrase. Don't dump a paragraph into the title.
  1. Derive the ## Notes body:
  • If the intent string is empty, emit the hint comment: <!-- Free-form notes for this change: links, ad-hoc context, decisions that don't belong in research/frame/plan. -->
  • If the intent string is non-empty, drop it verbatim as the Notes body — the user's words are the seed. Do not also emit the hint comment in that case (the user has shown they know what Notes are for).
  1. Write $CONTEXT_ROOT/changes/<change-id>/change.md with this exact shape (the <notes-body> slot is what step 3 produced). Gate app: frontmatter on layout per ../sdd-shape/references/context-resolution.md ("Frontmatter rule"): add app: <app> only when CONTEXT_ROOT resolved to a legacy root; omit it for flat roots.
markdown
---
change_id: <change-id>
title: <title>
status: new
created: <YYYY-MM-DD>
updated: <YYYY-MM-DD>
archived_at: null
app: <app> # legacy roots only — omit this line entirely for flat roots
---
## Notes
<notes-body>

<YYYY-MM-DD> is today's date (use date +%Y-%m-%d).

See docs/reference/change-md.md for the full schema reference (allowed status values, transitions, what is intentionally NOT in change.md).

Next-step suggestion

After successful creation, print a next-step prompt and copy the suggested command to clipboard.

The default next step is /sdd-plan <change-id> — most changes go straight to planning. The other two skills are situational: /sdd-research when the parsed intent (or the surrounding turn) suggests the change requires meaningful codebase exploration before a plan can be written, and /sdd-frame when the intent signals that the framing is suspect — either bug-shape ("fix", "bug", "broken", "why is", "root cause", "regression", "self-diagnosed solution") or scope/design-shape ("should we even", "is this the right", "what's actually broken", "rethink", "challenge the assumption"). Pick the situational option only when the signal is clear; otherwise default to /sdd-plan.

bash
NEXT_CMD="/sdd-plan <change-id>" # default; see above for when to switch to /sdd-research or /sdd-frame
echo -n "$NEXT_CMD" | pbcopy 2>/dev/null || echo -n "$NEXT_CMD" | clip.exe 2>/dev/null || echo -n "$NEXT_CMD" | xclip -selection clipboard 2>/dev/null || true
powershell
# PowerShell (Windows)
Set-Clipboard $NEXT_CMD

Then display:

✓ Created $CONTEXT_ROOT/changes/<change-id>/change.md (status: new)
Next step:
→ <NEXT_CMD> (✓ copied to clipboard)
Other options:
/sdd-research <change-id> — explore the codebase first (when planning needs grounding)
/sdd-frame <change-id> — challenge the framing first (when the symptom and proposed fix are stated as one, or when the right scope to plan is unclear)

If no clipboard tool is available (pbcopy, clip.exe, xclip, Set-Clipboard), drop the (✓ copied to clipboard) annotation but still print the suggestion.

What this skill does NOT do

  • Does not write frame.md, research.md, plan.md, or any other artifact — those come from their respective skills.
  • Does not write to any state-file sidecar; the ## Progress section in plan.md is the single source of truth for execution state.
  • Does not enforce status transitions — change.md is record-only.
  • Does not create the $CONTEXT_ROOT/changes/ parent directory; if it's missing, the repo isn't bootstrapped for this structure and the user should resolve that first.
All versions