Skill v1.0.0
currentAutomated scan100/100name: 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:
- 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 setsCONTEXT_ROOTto a flat root or a resolvedroot/<app>for a legacy root. If no root is discovered, offer to run/sdd-initper the reference's "None found" step, then re-run discovery. Every path in the rest of this skill is relative to the resolvedCONTEXT_ROOT.
- 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:
- Strip a leading
@if present (@$CONTEXT_ROOT/changes/feature-x/→$CONTEXT_ROOT/changes/feature-x/). - Strip a trailing
/if present. - If the result contains
/, take the last non-empty path segment ($CONTEXT_ROOT/changes/feature-x→feature-x). - 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-x | feature-x | (empty) | |
oauth-login add Google sign-in for faster onboarding | oauth-login | add Google sign-in for faster onboarding | |
@$CONTEXT_ROOT/changes/oauth-login/ | oauth-login | (empty) | |
@$CONTEXT_ROOT/changes/oauth-login/ revisit the token-refresh edge case | oauth-login | revisit the token-refresh edge case | |
My Feature add OAuth | My Feature (will fail kebab-case check) | add OAuth |
Validation
Before creating anything:
- 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.
- 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.
- `$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
- Create directory
$CONTEXT_ROOT/changes/<change-id>/. - 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.
- Derive the
## Notesbody:
- 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).
- Write
$CONTEXT_ROOT/changes/<change-id>/change.mdwith this exact shape (the<notes-body>slot is what step 3 produced). Gateapp:frontmatter on layout per../sdd-shape/references/context-resolution.md("Frontmatter rule"): addapp: <app>only whenCONTEXT_ROOTresolved to a legacy root; omit it for flat roots.
---change_id: <change-id>title: <title>status: newcreated: <YYYY-MM-DD>updated: <YYYY-MM-DD>archived_at: nullapp: <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.
NEXT_CMD="/sdd-plan <change-id>" # default; see above for when to switch to /sdd-research or /sdd-frameecho -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 (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
## Progresssection inplan.mdis the single source of truth for execution state. - Does not enforce status transitions —
change.mdis 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.