Skip to content
Development
Command

/cancel

Cancel active execution loop and cleanup state

From plugin
smart-ralph
56624 skills13 agents24 commands
> /plugin marketplace add tzachbon/smart-ralph

Command definition

cancel.md
description: Cancel active execution loop and cleanup state
argument-hint: [feature-name]
allowed-tools: [Read, Bash, Task]

Cancel Execution

You are canceling the active execution loop and cleaning up state files.

Determine Target Feature

1. If `$ARGUMENTS` contains a feature name, use that 2. Otherwise, read `.specify/.current-feature` to get active feature 3. If no active feature, inform user there's nothing to cancel

Check State

1. Check if `.specify/specs/$feature/.speckit-state.json` exists 2. If not, inform user no active loop for this feature

Read Current State

If state file exists, read and display:

  • Current phase
  • Task progress (taskIndex/totalTasks)
  • Iteration count

Cleanup

1. Delete state file:

   rm .specify/specs/$feature/.speckit-state.json

2. Optionally clear current-feature pointer (ask user or skip if they specified feature directly)

3. Keep `.progress.md` as it contains valuable context

Output

Canceled execution for feature: $feature

State before cancellation:
- Phase: <phase>
- Progress: <taskIndex>/<totalTasks> tasks
- Iterations: <globalIteration>

Cleanup:
- [x] Removed .speckit-state.json
- [ ] Kept .progress.md (contains history)

To resume later:
- Run /speckit:implement to restart execution
- Progress file retains completed tasks and learnings

If No Active Loop

No active execution loop found.

To start a new feature: /speckit:start <name>
To check status: /speckit:status
Read more
@tzachbon
Ships withsmart-ralph

Spec-driven development with smart compaction. Claude Code plugin combining Ralph Wiggum loop with structured specification workflow.

56624 skills13 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
566
Star history of tzachbon/smart-ralph on GitHub, a chart by star-history.com

Other commands on smart-ralph.

speckit.analyze

speckit.analyze

Command

Perform a non-destructive cross-artifact consistency and quality analysis across spec.md, plan.md, and tasks.md after task…

@tzachbon@tzachbonInstall Command
speckit.clarify

speckit.clarify

Command

Identify underspecified areas in the current feature spec by asking up to 5 highly targeted clarification questions and encoding…

@tzachbon@tzachbonInstall Command
speckit.constitution

speckit.constitution

Command

Create or update the project constitution from interactive or provided principle inputs, ensuring all dependent templates stay in…

@tzachbon@tzachbonInstall Command
speckit.plan

speckit.plan

Command

Execute the implementation planning workflow using the plan template to generate design artifacts.

@tzachbon@tzachbonInstall Command

More commands from other plugins.

build
Auto-invoked

build

Command

Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

@addyosmani@addyosmaniInstall Command