workflow-start
GitHubspec-superflow工作流入口,处理显式请求或现有变更的恢复与路由。通过SSF CLI检查状态、解析手递和计划,指导调试、关闭或继续执行,支持新旧版本兼容及遗留流程恢复。
触发场景
安装
npx skills add MageByte-Zero/spec-superflow --skill workflow-start -g -y
SKILL.md
Frontmatter
{
"name": "workflow-start",
"description": "Primary entry point for the spec-superflow state-machine workflow. Invoke only when the user explicitly requests spec-superflow or an active change contains .spec-superflow.yaml and the user asks to continue that change. Generic proposal, specs, design, task, or contract files are not activation signals."
}
Workflow Start
Bundled runtime
Before executing a CLI line below, replace its leading SSF with node "<plugin-root>/scripts/spec-superflow.mjs"; <plugin-root> is the absolute directory two levels above this file. Never run SSF literally or call an ssf from PATH.
Workflow routing
A new request follows this file without loading legacy instructions. For an existing change, inspect the recorded state and receipt/plan (available through SSF workflow show <change-dir> --json and SSF execution show <dir> --json when needed). Current paths are workflow_variant: direct with a valid workflow-selection receipt schema_version: 3, or workflow_variant: planned with an execution plan schema_version: 2. Older receipts (schema 1/2), legacy plans and other recorded variants use the matching section of SSF runtime asset read docs/legacy-workflow.md; follow that section for this change. A direct variant alone is insufficient: legacy Quick/Hotfix/Lightweight can also record it. The internal workflow: full value alone is not a legacy signal. Missing or corrupt state, receipt or a required plan is a recovery problem; preserve evidence rather than reinitialize or downgrade the change.
Use only for an explicit spec-superflow request or an existing change. Ordinary coding does not require a spec workflow.
Resume
Run SSF resume <change-dir> --json once. It combines state, handoffs, checkpoints and current-plan inspection. Use the returned absolute change.path for all subsequent operations: recovery may redirect a stale source copy into its recorded worktree. Follow next_action; do not repeat all component commands unless diagnosing that result. A blocked continuation is not a retry instruction; resolve its named cause before running it again. Read only the artifacts relevant to the next action.
debugging: diagnose first, even if a plan is stale. Never dispatch an eligible wave during diagnosis.closing: logical completion. If a recorded isolation still has physical finish pending, route to release-archivist for that remaining action, subject to existing merge authorization. Otherwise stop.abandoned: stop.- A ready handoff needs review through
SSF handoff resolve; an active handoff is non-blocking. Stale checkpoints are history, not current evidence. - A missing/stale planned execution plan blocks implementation, not investigation. Direct changes do not require a plan.
Update checks are optional (SSF runtime check-update), cached and non-blocking. Never make network access a recovery prerequisite.
New request
Infer scope and risks from the request and repository; do not turn CLI fields into a questionnaire. Validate the change name as a single safe relative path segment under changes/ and create only that directory. Reuse authorization already given. Never infer approval from artifact existence.
Offer only two paths, without a mode-selection interview:
- Direct: clear requested change with a bounded proof. In the same turn run
SSF workflow start <dir> --path direct --scope "<requested outcome and bounds>". No planning pack, recommendation receipt or execution plan is needed. Use affected tests or checks;--verificationcan record tdd/new-test/bounded when relevant. Task/file counts are advisory, not hard limits. - Planned: uncertain behavior, architecture or a user-requested plan. Draft proposal.md (scope, acceptance, risks) and tasks.md (ordered tasks and proof) together. Add specs/design only when their information is needed. Check shared interfaces against actual code once. Present one concrete plan for approval, reusing approval already covering it. Then run
SSF workflow start <dir> --path planned --confirm --reason "<existing approval>". The CLI derives the execution plan and enters executing; no handwritten contract or intermediate approval sequence is required. Native + final is the default; add--mode sddonly for explicit delegation.
Continue to build-executor without another question. Ordinary debugging stays in executing. Scope changes update the affected planning sections and repeat planned start once with actual reapproval; do not traverse intermediate states. Nonsemantic corrections can use execution resync with a recorded reason, retaining review history.
Completion uses SSF workflow complete <dir> --verification-command "<required check command>". It runs the check once and preserves failures. Planned work also requires its current review and completed tasks; existing delta specs require synchronization. A user can explicitly accept known risks with workflow complete --accept-risk --confirm --reason "<decision and remaining issues>"; this records accepted-risk, never pass, and does not authorize integration.
Continue authorized internal work without phase-by-phase handoff questions. For all paths, read only the current task's source and evidence. Progress updates use one short paragraph; ask only for a new material decision, never “continue?” for authorized work.
版本历史
-
fb5d4d5
当前 2026-11-02 11:12
重构:将遗留恢复逻辑从v2技能路径中分离(#138)
-
25d9b0c
2026-09-27 12:50
修复技能在捆绑 CLI 运行时保持可用性的问题,替换 SSF 前缀为实际 Node.js 脚本路径。
-
10d5f08
2026-09-22 02:00
v2版本简化执行流:默认原生执行,精简新变更的直接与规划路径,统一工作流恢复逻辑并修复Windows兼容性问题。
-
1bf565a
2026-09-02 22:23
修复轻量路径卡死、worktree隔离及review死锁等系统性缺陷,新增ssf finish收尾命令并优化状态跟踪逻辑。
-
fd8cf86
2026-08-04 19:02
新增直接短路径接收逻辑,支持快速修复场景下自动推断事实并推荐验证方式。
-
9105098
2026-08-02 21:57
将硬编码的 npx 包版本调用替换为简化的 ssf 命令;移除旧版 asset read 依赖;优化快速路径获取逻辑。
- 1970fe7 2026-07-30 20:20


