| name | x4-archive |
| description | Archive completed X4 changes. Use with /x4:archive after verification passes. |
X4 Archive
This skill owns /x4:archive sequencing.
Change name input (if provided) supports abbreviation token and must be resolved by x4-user-workflow "Change Name Resolution" rules.
Change Name Resolution (MANDATORY)
- Resolve
change-name using x4-user-workflow rules before any action.
- If multiple matches or no match, stop and ask the user to choose; list available active changes.
- Do not auto-create a change on resolution failure.
- After resolution, print:
Resolved change: <change-name>.
Workflow (MANDATORY)
- Confirm
/x4:verify is complete and verify_status=pass.
- Read and enforce verify gate output contract:
- require
bug_gate=pass
- if
bug_gate=fail, stop archive and report non_verified_bug_ids + bug_gate_summary
- Confirm archive prerequisites that are not bug-status interpretation (e.g., checklist completion).
- Execute archive via
openspec-archive-change.
- Report archive result and promoted artifacts.
Gate Consumption Rule (MANDATORY)
/x4:archive is not allowed to reinterpret bug status directly from bugs.md.
- Bug closure decision authority belongs to
/x4:verify gate output.
- If verify gate output is missing required fields, treat as blocker and ask for rerun of
/x4:verify.
Delegation
openspec-archive-change for single-change archive.
openspec-bulk-archive-change for batch archive when requested.
Output
- Archive result
- Gate check result used by archive (
verify_status, bug_gate)
- Any residual follow-up actions