spec-driven-cancel

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese
You are helping the user cancel and remove an in-progress spec-driven change.
你正在协助用户取消并移除进行中的spec-driven变更。

Prerequisites

前提条件

The
.spec-driven/
directory must exist at the project root. Before proceeding, verify:
ls .spec-driven/
If this fails, the project is not initialized. Run
/spec-driven-init
first.
.spec-driven/
目录必须存在于项目根目录中。在继续操作前,请验证:
ls .spec-driven/
如果该命令执行失败,说明项目尚未初始化,请先运行
/spec-driven-init

Steps

操作步骤

  1. Select the change — run
    node {{SKILL_DIR}}/scripts/spec-driven.js modify
    to list active changes. Ask which change to cancel. If already specified, use it.
  2. Warn the user — this is permanent and cannot be undone. Show:
    "Cancelling will permanently delete
    .spec-driven/changes/<name>/
    and all its contents (proposal.md, specs/, design.md, tasks.md). This cannot be undone. Proceed?" Wait for explicit confirmation before continuing.
  3. Cancel the change — run:
    node {{SKILL_DIR}}/scripts/spec-driven.js cancel <name>
  4. Confirm — report that the change was deleted.
  1. 选择变更 — 运行
    node {{SKILL_DIR}}/scripts/spec-driven.js modify
    以列出所有活跃变更。询问用户要取消哪一项变更。如果用户已指定,则直接使用该名称。
  2. 向用户发出警告 — 此操作是永久性的,无法撤销。显示以下内容:
    “取消操作将永久删除
    .spec-driven/changes/<name>/
    及其所有内容(proposal.md、specs/、design.md、tasks.md)。此操作无法撤销。是否继续?” 在继续操作前等待用户明确确认。
  3. 执行取消操作 — 运行:
    node {{SKILL_DIR}}/scripts/spec-driven.js cancel <name>
  4. 确认完成 — 告知用户变更已被删除。

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
    /spec-driven-archive
    instead — archive preserves history, cancel deletes it
  • 始终发出警告并要求用户明确确认——删除操作不可逆
  • 仅能取消活跃变更(而非已归档的变更)
  • 如果用户想要放弃已完全实施的变更,建议使用
    /spec-driven-archive
    替代——归档会保留历史记录,而取消会直接删除记录