spec-writer
GitHub用于生成和细化软件变更规划工件,如提案、任务列表、规格和设计文档。适用于需求明确后的方案设计阶段,支持新旧工作流路由及遗留恢复。
触发场景
安装
npx skills add MageByte-Zero/spec-superflow --skill spec-writer -g -y
SKILL.md
Frontmatter
{
"name": "spec-writer",
"description": "Create or refine spec-superflow planning artifacts. Invoke when the change is understood well enough to write proposal.md, specs\/, design.md, and tasks.md."
}
Spec Writer
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.
Create or refine planning artifacts when the change has moved beyond exploration.
New planned changes
For a new request, an expanding direct change, or workflow_variant planned, write proposal.md and tasks.md together without pausing between individual artifacts. Proposal holds the goal, in/out scope, acceptance and risks; tasks holds ordered deliverables and proof commands. Add specs only for behavior needing durable scenarios and design only for unresolved architectural decisions. Do not create execution-contract.md or duplicate the task list in another plan.
Check shared interfaces against the real source once, then self-check the problem, scope, dependencies and proof. Present one approval request only if this concrete plan lacks approval. After approval run SSF workflow start <dir> --path planned --confirm --reason "<user decision>" and continue implementation. No intermediate planning/bridging transitions or independent reader agent. A semantic revision uses the same command after approval; a nonsemantic correction uses execution resync and retains failed-review history.
Artifact checks
- proposal.md records the problem, in/out scope, acceptance, impact and risks.
- tasks.md is the only task list: unique numbered checkboxes, dependency order, affected paths or bounded areas, observable outcomes and proof commands. Keep test-cycle details in execution notes rather than repeating the plan.
- Add specs/ for durable behavior scenarios: each requirement uses SHALL/MUST and a
#### Scenario:with WHEN/THEN, grouped under the applicable delta headers. - Add design.md for real technical decisions: choice, rationale, alternatives, consequences and risks. Reference existing architecture instead of copying it.
Self-check five questions once: problem, command boundary, invalidation boundary, continuation boundary and document flow. Fix contradictions and missing acceptance evidence before presenting the one concrete plan for approval. Keep existing approval when it still covers that exact plan. After workflow-start records approval, continue to build-executor.
版本历史
-
fb5d4d5
当前 2026-11-02 11:12
重构代码以分离遗留恢复逻辑与v2技能路径,优化工作流处理结构。
-
25d9b0c
2026-09-27 12:49
修复:将技能绑定至CLI运行时环境,替换直接调用路径为插件脚本执行。
-
10d5f08
2026-09-22 02:00
v2版本简化执行流程,默认使用原生执行并保留工作流证据,收敛工作流恢复逻辑,新增独立审查提示,规范化Windows路径处理。
-
1bf565a
2026-09-02 22:23
修复状态跟踪与收口流程缺陷:解决 worktree 隔离编译及误提交问题,新增 finish 命令;优化 resync 逻辑避免死锁,改进 resume 路由与格式校验。
- fd8cf86 2026-08-04 19:02
-
9105098
2026-08-02 21:57
简化了config check命令以移除硬编码版本号;细化了proposal.md对问题描述和完成证明的要求;重构了design.md结构,强调事实约束与风险验证证据;精简了tasks.md内容,移除冗余的子步骤要求。
- 1970fe7 2026-07-30 20:20


