بنقرة واحدة
workflow-abort
Abort a workflow — cleans up worktrees and branches, marks the workspace as aborted.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Abort a workflow — cleans up worktrees and branches, marks the workspace as aborted.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Finalize the workflow — squash commits into one clean commit, remove worktrees, and close the workspace.
Execute all planned tasks — creates per-task git worktrees, spawns implementer and reviewer agents in dependency order, aggregates results.
Break an approved design into atomic implementation tasks — creates dependency-ordered task specs ready for parallel agent execution.
Review completed implementation — runs final verification across all changes and presents results for user sign-off.
Convert discussion output into a validated design — reads captured requirements and presents architecture for iterative approval.
Kick off a new workflow by discussing requirements — asks clarifying questions, explores trade-offs, and captures decisions in a structured format.
| name | workflow-abort |
| description | Abort a workflow — cleans up worktrees and branches, marks the workspace as aborted. |
Clean up a stuck or unwanted workflow. Removes git worktrees and branches but preserves workspace files for reference.
The user invokes this as /workflow-abort {slug}.
$ARGUMENTS is empty, scan .workflow/*/ directories and list available workspaces.workflow/*/ for a folder matching the slug $ARGUMENTSSTATUS.yaml — can be any phase except completePresent the current state (phase, completed tasks, pending tasks) and ask:
"This will remove all worktrees and branches for {slug}. The workspace files (discussion, design, plan, reports) will be preserved. Continue?"
Wait for confirmation before proceeding.
Check for remaining task worktrees:
git worktree list
For each worktree under .workflow/{type}/{slug}/worktrees/task-*:
git worktree remove {TASK_WORKTREE} --force
git branch -D work/{type}/{slug}/task-{N}
If base_worktree exists in STATUS.yaml:
git worktree remove {BASE_WORKTREE} --force
git branch -D work/{type}/{slug}/base
rm -rf {WORKSPACE}/worktrees
phase: aborted
aborted: {ISO timestamp}
Remove base_worktree and task worktree keys (no longer valid).
## Workflow Aborted: {slug}
- Worktrees removed: {count}
- Branches deleted: {list}
- Workspace preserved at `.workflow/{type}/{slug}/`
--force for worktree removal — worktrees may have uncommitted changes-D for branch deletion — branches may not be fully merged-C for git commands — never use cd