一键导入
sg-new
Use this when a milestone is complete and a new one should begin — invokes gsd-new-milestone, then recommends sg-plan for the next phase.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use this when a milestone is complete and a new one should begin — invokes gsd-new-milestone, then recommends sg-plan for the next phase.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Detect the current workflow stage from HANDOFF.md and STATE.md and report the next sg-* skill to activate.
Detect existing session or start new project — super-gsd workflow entry point
Display current workflow stage, last handoff timestamp, and next recommended command
Toggle the sg-learn stage on or off in the super-gsd workflow by flipping super_gsd.skip_learn in .planning/config.json. Accepts on|off, or no argument to flip.
Toggle the sg-review stage on or off in the super-gsd workflow by flipping super_gsd.skip_review in .planning/config.json. Accepts on|off, or no argument to flip.
Toggle the sg-tdd stage on or off in the super-gsd workflow by flipping super_gsd.tdd_mode in .planning/config.json. Accepts on|off, or no argument to flip.
| name | sg-new |
| description | Use this when a milestone is complete and a new one should begin — invokes gsd-new-milestone, then recommends sg-plan for the next phase. |
| argument-hint | [milestone-name] - optional. Passed through to gsd-new-milestone. |
<execution_context> Self-contained. Forwards $ARGUMENTS unchanged to gsd-new-milestone Skill, then appends a super-gsd recommendation block. </execution_context>
1. Invoke gsd-new-milestone (runs the full milestone setup workflow): ``` Skill(skill="gsd-new-milestone", args="$ARGUMENTS") ```After gsd-new-milestone completes, detect the first not-started phase under the new milestone section in ROADMAP.md and recommend sg-plan:
NEXT_PHASE=$(node -e "
try{
const fs=require('fs');
const state=fs.readFileSync('.planning/STATE.md','utf8');
const ms=(state.match(/^milestone:\s*[\"']?([^\"'\s\n]+)[\"']?/m)||[])[1]||'';
if(!ms)process.exit(0);
const lines=fs.readFileSync('.planning/ROADMAP.md','utf8').split('\n');
let found=false;
for(const l of lines){
if(l.startsWith('### '+ms+' ')){found=true;continue;}
if(found&&l.startsWith('### '))break;
if(found&&/^- \[ \] \*\*Phase /.test(l)){
const m=l.match(/Phase (\d+)/);
if(m){process.stdout.write(m[1]);break;}
}
}
}catch(e){}
" 2>/dev/null)
If NEXT_PHASE is empty (no STATE.md, no ROADMAP.md, or no not-started phase under the current milestone section), skip the recommendation block silently — no error output.
Otherwise display exactly:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
super-gsd ▶ NEXT (recommended)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
/clear
/super-gsd:sg-plan ${NEXT_PHASE} ← lessons injection + discuss + plan auto-chain (recommended)
or:
/super-gsd:sg-next auto-advance (HANDOFF/STATE-based routing)
/gsd-discuss-phase ${NEXT_PHASE} raw GSD discuss only
/gsd-plan-phase ${NEXT_PHASE} raw GSD plan only
<success_criteria>
### vX.Y ...), the super-gsd ▶ NEXT block is displayed with the correct phase number.