AgentSkillsCN

Checkpoint

查看并管理Mothership检查点状态。

SKILL.md
--- frontmatter
description: View and manage Mothership checkpoint state
tags: [mothership, checkpoint, state]

Checkpoint Management

View and edit the .mothership/checkpoint.md workflow state.

Usage

code
/checkpoint              # View current checkpoint
/checkpoint set phase build
/checkpoint set story DATA-002

Checkpoint File Format

.mothership/checkpoint.md:

yaml
phase: [plan|build|test|review|deploy|done]
project: [Project Name]
branch: [Git Branch]
story: [Current Story ID]

Commands

View Checkpoint

code
/checkpoint

Displays formatted checkpoint state with visual indicators.

Set Phase

code
/checkpoint set phase [plan|build|test|review|deploy|done]

Set Story

code
/checkpoint set story [STORY-ID]

Set Project

code
/checkpoint set project [Project Name]

Set Branch

code
/checkpoint set branch [branch-name]

Reset

code
/checkpoint reset

Resets to initial state (phase: plan).

Workflow Phases

PhaseDescriptionNext Phase
planCreating storiesbuild
buildImplementing codetest
testRunning/fixing testsreview
reviewCode reviewdeploy
deployDeploying to productiondone
doneStory completeplan (next story)

Phase Transitions

Normal flow:

code
plan → build → test → review → deploy → done → plan

Common transitions:

  • review → test (needs work, re-test)
  • test → build (fix implementation)
  • deploy → test (rollback, investigate)

Example Output

code
╔══════════════════════════════════════════════════════════════╗
║                    CHECKPOINT STATE                          ║
╠══════════════════════════════════════════════════════════════╣
║  phase:    test                                              ║
║  project:  Camino Platform - v1                              ║
║  branch:   feat/camino-platform-mvp                          ║
║  story:    DATA-001                                          ║
╠══════════════════════════════════════════════════════════════╣
║  plan ─▶ build ─▶ [test] ─▶ review ─▶ deploy ─▶ done        ║
╚══════════════════════════════════════════════════════════════╝

Creating Checkpoint

If .mothership/checkpoint.md doesn't exist, create it:

code
/checkpoint init [project-name]

Creates:

yaml
phase: plan
project: [project-name]
branch: main
story: INIT-001

Tips

  • Keep checkpoint in sync with actual work state
  • Use /next for guidance based on current phase
  • Checkpoint is per-project (in .mothership/ directory)