cyberneticlibrary

Archive completed workflow changes

openspec-archive-changeskillsetup L1147
weibaohui/kom
What it does

Archive a completed experimental change with artifact/task/spec validation and sync options

Best for

Experimental workflows move changes to archive faster when the tool validates artifact/task completion and optionally syncs delta specs to main specs before archiving.

Inputs
  • · change_name
  • · task_completion_status
  • · artifact_status
  • · delta_specs
Outputs
  • · archived_change_directory
  • · sync_result
  • · archive_summary
Requires
  • · openspec CLI
Preconditions

Change exists in openspec/changes/; openspec list --json works; optional: sync workflow before archive

Failure modes
  • · Target archive directory already exists
  • · Incomplete artifacts not warned
  • · Delta specs never synced to main spec
  • · User archives without confirming incomplete tasks
Trust signals
  • · openspec status --json parsing for artifact completion
  • · Task file (.md) incomplete marker detection
  • · Delta spec sync assessment before archive
  • · Target path with YYYY-MM-DD prefix