Skip to content
Development
Command

/cancel

Pause in-progress work with a checkpoint

From plugin
6625 skills20 agents25 commands4 hooks
shell
$ npx -y skills add lgbarn/shipyard --agent claude-code

Ships with shipyard. Installing the plugin gets this command.

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/cancel

Context preview

What this command does when you run it.

Pause in-progress work with a checkpoint

Command definition

cancel.md
description: "Pause in-progress work with a checkpoint"
disable-model-invocation: true
argument-hint: ""

/shipyard:cancel — Graceful Pause

You are executing the Shipyard cancel workflow. This pauses in-progress work and creates a checkpoint for later resumption.

<prerequisites>

Step 1: Check State Exists

Check if `.shipyard/STATE.json` exists.

  • **If it does not exist:**

Display: > "No active Shipyard work to cancel. No `.shipyard/STATE.json` found." Stop here.

Step 2: Read Current State

Follow **State Loading Protocol** — read STATE.json to get current status, phase, and position.

  • **If status is NOT `building`, `in_progress`, or `planning`:**

Display: > "No active work in progress. Current status: {status}. Nothing to cancel." Stop here.

</prerequisites>

<execution>

Step 3: Create Checkpoint

Create a git checkpoint so work can be resumed:

# Create checkpoint tag with current state
git tag "shipyard-checkpoint-$(date +%Y%m%d-%H%M%S)" -m "Shipyard cancel checkpoint: phase {phase}, status {status}"

Step 4: Update State to Paused

Update STATE.json:

  • Set `status` to `"paused"`
  • Preserve `phase` and `position`

Append to HISTORY.md:

- [{timestamp}] Paused: phase {phase}, position {position} (user-initiated cancel)

Use `bash scripts/state-write.sh` with appropriate arguments.

Step 5: Report Pending Work

Scan for any in-progress artifacts:

  • Check for uncommitted changes (`git status`)
  • Check for unfinished plan tasks (SUMMARY files without completion)
  • Check for active worktrees related to current phase

</execution>

<output>

Step 6: Summary

Display:

Shipyard Cancel
═══════════════════════════════════════════

Phase {N} paused at: {position}
Checkpoint: shipyard-checkpoint-{timestamp}
Uncommitted changes: {yes/no}
Pending tasks: {count}

To resume: /shipyard:resume
To rollback: /shipyard:rollback

</output>

Read more
Read it on GitHub ↗
Ships withshipyard

A Claude Code plugin for structured project execution. Plan work in phases, build with parallel agents and TDD, review with security audits and quality gates, and ship with confidence.

Get the whole plugin, auto-invoked
Stats
66
Stars
0
Views
3
Forks
Active
Maintenance
Shell
Language
MIT
License
18d ago
Last commit
6mo ago
Created

Repo: lgbarn/shipyard