# Cancel

> Cancel active execution modes and clean up state.

- Skill: `changhochien/cancel` (Agent Skill)
- Install (CLI): `npx skillmds@latest add changhochien/cancel`
- Raw SKILL.md: https://api.skillmd.com/api/skills/changhochien/cancel/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: changhochien (https://skillmd.com/u/changhochien)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/changhochien/cancel

---


# Cancel Skill

Stop active execution modes and clean up state files.

## Usage

```
/skill:cancel
```

## What It Does

1. **Stops active modes** - autopilot, ralph, team, etc.
2. **Cleans up state** - Removes `.omp/state/*.json`
3. **Preserves work** - Keeps implementation files
4. **Reports status** - What was active, what was completed

## When to Cancel

### ✅ Cancel When
- All tasks done and verified
- Work is blocked and cannot proceed
- User says "stop"

### ❌ Don't Cancel When
- Work is still incomplete
- A single subtask failed but others can continue
- You can fix and retry

## State Cleanup

```bash
# Remove mode state files
rm -f .omp/state/autopilot-state.json
rm -f .omp/state/ralph-state.json
rm -f .omp/state/team-state.json
rm -f .omp/state/deep-interview-state.json

# Keep these
保留 .omp/plans/        # Planning documents
保留 .omp/prd.json      # PRD can be resumed
保留 .omp/notepad.md    # Session notes
```

## Output

```
## Cancel Complete

**Modes stopped:** ralph, team
**State cleaned:** Yes
**Files preserved:** 16 implementation files

**Completed work:**
- AUTH-001: User registration ✅
- AUTH-002: User login ✅

**Incomplete work:**
- AUTH-003: Password reset

**Resume with:**
/skill:ralph "complete authentication"
```

