workflow-start

GitHub

spec-superflow工作流入口,处理显式请求或现有变更的恢复与路由。通过SSF CLI检查状态、解析手递和计划,指导调试、关闭或继续执行,支持新旧版本兼容及遗留流程恢复。

skills/workflow-start/SKILL.md MageByte-Zero/spec-superflow

Trigger Scenarios

用户明确请求使用spec-superflow 存在包含.spec-superflow.yaml的活跃变更且用户要求继续

Install

npx skills add MageByte-Zero/spec-superflow --skill workflow-start -g -y
More Options

Use without installing

npx skills use MageByte-Zero/spec-superflow@workflow-start

指定 Agent (Claude Code)

npx skills add MageByte-Zero/spec-superflow --skill workflow-start -a claude-code -g -y

安装 repo 全部 skill

npx skills add MageByte-Zero/spec-superflow --all -g -y

预览 repo 内 skill

npx skills add MageByte-Zero/spec-superflow --list

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; --verification can 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 sdd only 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.

Version History

  • fb5d4d5 Current 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

Same Skill Collection

skills/bug-investigator/SKILL.md
skills/build-executor/SKILL.md
skills/code-reviewer/SKILL.md
skills/contract-builder/SKILL.md
skills/need-explorer/SKILL.md
skills/release-archivist/SKILL.md
skills/spec-merger/SKILL.md
skills/spec-writer/SKILL.md

Metadata

Files
0
Version
fb5d4d5
Hash
262268cb
Indexed
2026-07-30 20:20

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-11-05 06:18
浙ICP备14020137号-1