checkpoint-commit
/checkpoint-commit
Creates a governance checkpoint commit to preserve work-in-progress state. Analyzes all repository changes, validates .gitignore, and creates a properly formatted commit linked to a Change Request.
Usage: /checkpoint-commit [CR-XXXX] [summary]
Both arguments are optional. The command will auto-detect the CR ID and generate a summary if not provided.
Caller-supplied scope. A calling skill (such as /iterate-cr) may pass an explicit scope (CR-XXXX-iterate or iterate-{slug}), a trailer (such as Iteration: {slug}), and an explicit path list. When the caller passes a scope and an explicit path list, the command MUST use that scope as given, MUST skip CR detection (Step 1) and any CR-XXXX pattern check on the scope, and MUST stage only the listed paths instead of running git add -A (Step 5). The caller owns the scope, so a scope that is not a plain CR identifier is not an error.
Workflow
Follow these steps in order.
Step 1: Context Detection
If the caller supplied a scope and an explicit path list, skip this step and use the caller's scope.
Otherwise, determine the CR identifier: