Run the CLI-generated archive instructions for a specific change.
Rules
- Do NOT archive without explicit user confirmation.
Steps
Determine the target change ID:
- If the user provided a change ID, use it.
- If no change ID was provided, run:
spool list --completed --json- Related filters (not for archiving, but useful for triage):
spool list --partial spool list --pending - If no completed changes exist, inform the user: "No completed changes found. Run
spool listto see all changes and their status." - If one or more completed changes exist, present them to the user and ask which one to archive.
- Related filters (not for archiving, but useful for triage):
Generate instructions (source of truth):
spool agent instruction archive --change "<change-id>"Follow the printed instructions exactly.