spec-driven-cancel
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseYou are helping the user cancel and remove an in-progress spec-driven change.
你正在协助用户取消并移除进行中的spec-driven变更。
Prerequisites
前提条件
The directory must exist at the project root. Before proceeding, verify:
.spec-driven/ls .spec-driven/If this fails, the project is not initialized. Run first.
/spec-driven-init.spec-driven/ls .spec-driven/如果该命令执行失败,说明项目尚未初始化,请先运行。
/spec-driven-initSteps
操作步骤
-
Select the change — runto list active changes. Ask which change to cancel. If already specified, use it.
node {{SKILL_DIR}}/scripts/spec-driven.js modify -
Warn the user — this is permanent and cannot be undone. Show:"Cancelling will permanently deleteand all its contents (proposal.md, specs/, design.md, tasks.md). This cannot be undone. Proceed?" Wait for explicit confirmation before continuing.
.spec-driven/changes/<name>/ -
Cancel the change — run:
node {{SKILL_DIR}}/scripts/spec-driven.js cancel <name> -
Confirm — report that the change was deleted.
-
选择变更 — 运行以列出所有活跃变更。询问用户要取消哪一项变更。如果用户已指定,则直接使用该名称。
node {{SKILL_DIR}}/scripts/spec-driven.js modify -
向用户发出警告 — 此操作是永久性的,无法撤销。显示以下内容:“取消操作将永久删除及其所有内容(proposal.md、specs/、design.md、tasks.md)。此操作无法撤销。是否继续?” 在继续操作前等待用户明确确认。
.spec-driven/changes/<name>/ -
执行取消操作 — 运行:
node {{SKILL_DIR}}/scripts/spec-driven.js cancel <name> -
确认完成 — 告知用户变更已被删除。
Rules
规则
- Always warn and require explicit confirmation — deletion is irreversible
- Only cancel active changes (not archived ones)
- If the user wants to abandon a fully implemented change, suggest instead — archive preserves history, cancel deletes it
/spec-driven-archive
- 始终发出警告并要求用户明确确认——删除操作不可逆
- 仅能取消活跃变更(而非已归档的变更)
- 如果用户想要放弃已完全实施的变更,建议使用替代——归档会保留历史记录,而取消会直接删除记录
/spec-driven-archive