一键导入
cospec-bulk-archive-change
Archive a batch of completed changes in dependency order, one cospec archive call at a time.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Archive a batch of completed changes in dependency order, one cospec archive call at a time.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Run the apply gate for a change and implement its tasks, obeying the gate's exit code.
Archive a completed change — validate, merge specs, verify, and fan blockers out.
Archive a batch of completed changes in dependency order, one cospec archive call at a time.
Resume a partially-built change and finish its remaining artifacts.
Investigate the codebase or a spec question without writing implementation code.
Author every remaining artifact on an already-scaffolded change in one pass, then validate.
| name | cospec-bulk-archive-change |
| description | Archive a batch of completed changes in dependency order, one cospec archive call at a time. |
| license | MIT |
| compatibility | Requires the cospec CLI (@aligned-team/cospec). |
| metadata | {"author":"cospec","generatedBy":"cospec@0.5.1","contentHash":"sha256:9480ea256cda201063ddfcaa58576c593ed9c600eabfabb097f91db1da61a8ab"} |
Archive a batch of completed changes, one at a time, in dependency order. Every
change is archived through its own cospec archive call — never a
hand-mkdir/mv of a change directory, no matter how many changes are in the
batch.
All work goes through cospec. Never call openspec directly.
cospec list --json
Present the active changes to the user and let them select the completed subset to archive in this pass.
For each selected change, read its blocking-changes.md. If change B lists
change A as a blocker, A must archive before B. Where no dependency is declared,
fall back to creation order. Present the ordered batch to the user as a table
and get one confirmation before looping.
For each change in the ordered batch:
cospec archive <slug>
Relay the summary it prints verbatim: what was archived, which spec deltas were
applied (+a ~m -r →n) or skipped, which sibling changes had blocker boxes
checked, and which changes are now unblocked. A non-zero exit is reported and
the batch continues to the next change — one failure is not fatal to the rest of
the batch.
Do NOT hand-mv the change directory, and do NOT force past a failure you do
not understand:
cospec archive <slug> --skip-specs if this change genuinely should not touch
specs.--force-incomplete only after the user confirms the remaining tasks are
intentionally abandoned.--force past it.Summarize the batch: which changes archived cleanly, which failed and why, and
which changes are newly unblocked. Offer to /cospec-apply anything newly
unblocked.