archive
Archive the completed change — task gate, delta sync into main specs, revalidate
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Archive the completed change — task gate, delta sync into main specs, revalidate
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Answer the owner's questions about a running or finished loop from its records — read-only, in a separate session
Hours-long (3-12h) multi-agent code-architecture optimization — cross-examines antipatterns into consensus, then applies only the highest-ROI refactors. Not for routine refactors.
Hours-long (3-12h) multi-agent documentation-architecture optimization — verifies every claim in every non-executable text (markdown, spec systems, comments) against the code, cross-examines discrepancies into consensus, then applies only the highest-ROI fixes. Code is never modified — defects are reported, not fixed. Not for touching up a single file.
Hours-long (3-12h) multi-agent integrity-boundary optimization — hunts every reachable state the boundary (types, invariants, error definitions, tests) fails to contain, then absorbs only the highest-ROI set into it — code and docs both, pinned by tests. Not for fixing a known bug.
Implement the planned change task by task, then spawn the independent verify stage until it passes
Close the transaction — verify, archive, docs gate, then squash merge into base after CI passes
| name | archive |
| description | Archive the completed change — task gate, delta sync into main specs, revalidate |
| argument-hint | [change-id] |
| effort | high |
delta가 main spec에 sync되고 change directory가 openspec/changes/archive/로 동결된다.
활성 change와 task 개수를 확인한다:
"${CLAUDE_PLUGIN_ROOT}/bin/tx-hook" openspec list --json
활성 change가 없으면 그렇다고 반환한다. task가 없거나(no-tasks) 미완료면
실패를 반환한다 — CLI는 막지 않으므로 이 gate는 여기서 강제된다. fix는 task
부재면 tx:plan, 미완료면 tx:apply 소관이다.
archive한다. delta spec이 없는 change(tooling·infra·docs 변경)는 --skip-specs를 덧붙인다:
"${CLAUDE_PLUGIN_ROOT}/bin/tx-hook" openspec archive <change-id> --yes
sync 결과를 재검증한다 — 실패는 archive가 만든 spec 상태의 결함이다. 고치고 재검증한다:
"${CLAUDE_PLUGIN_ROOT}/bin/tx-hook" openspec validate --all --strict --no-interactive --json