Skip to content
Development
Command

/cancel

Pause in-progress work with a checkpoint

From plugin
shipyard
6725 skills20 agents25 commands4 hooks
> /plugin marketplace add lgbarn/shipyard
> /plugin install shipyard@shipyard

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
@lgbarn
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.

6725 skills20 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
67
Star history of lgbarn/shipyard on GitHub, a chart by star-history.com

Other commands on shipyard.

audit

audit

Command

On-demand security audit — OWASP, secrets, dependencies, IaC security

@lgbarn@lgbarnInstall Command
brainstorm

brainstorm

Command

Explore requirements through Socratic dialogue and capture project definition

@lgbarn@lgbarnInstall Command
build

build

Command

Execute plans using fresh subagents with review gates

@lgbarn@lgbarnInstall Command
debug

debug

Command

Investigate bugs and failures with systematic root-cause analysis

@lgbarn@lgbarnInstall Command
document

document

Command

On-demand documentation generation — API docs, architecture updates, user guides

@lgbarn@lgbarnInstall 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