# cc:gen:merge-change > Archive workflow - merge specs and move to archive - Author: chrischeng-c4 - Repository: chrischeng-c4/cclab - Version: 20260126151830 - Stars: 0 - Forks: 0 - Last Updated: 2026-02-06 - Source: https://github.com/chrischeng-c4/cclab - Web: https://mule.run/skillshub/@@chrischeng-c4/cclab~cc:gen:merge-change:20260126151830 --- --- name: cc:gen:merge-change description: Archive workflow - merge specs and move to archive user-invocable: true --- # /cc:gen:merge-change Orchestrates the archival process, merging spec deltas to main specs and moving the change to the archive directory. ## IMPORTANT: Your role is orchestration only **DO NOT perform archival steps yourself.** Your job is to: 1. Check the current phase in `STATE.yaml` 2. Run the `cclab gen merge-change` command The actual merging and archiving is done by the command, which uses: - **Gemini** (spec merging) - **Codex** (archive review) You are a dispatcher, not an archiver. Run the command and let it handle the work. ## Usage ```bash /cc:gen:merge-change ``` ## Example ```bash /cc:gen:merge-change add-oauth ``` ## How it works The skill checks the `phase` field in `STATE.yaml`: | Phase | Action | |-------|--------| | `implemented` | ✅ Run `cclab gen merge-change` to merge and archive | | Other phases | ❌ **ChangeNotComplete** error - not ready for archive | ## What it does 1. **Validates** spec files (zero token cost) 2. **Analyzes** delta metrics and decides merge strategy 3. **Backs up** original specs for rollback 4. **Merges** spec deltas with Gemini (applies changes to `genesis/specs/`) 5. **Generates** CHANGELOG entry 6. **Reviews** merged specs with Codex (with auto-fix loop if needed) 7. **Moves** change to `genesis/archive/YYYYMMDD-/` 8. Updates phase to `archived` in STATE.yaml ## Prerequisites - Change must be complete (phase: `implemented`) - All implementation artifacts must exist and pass validation ## State transitions ``` implemented → archived ``` ## Error: ChangeNotComplete This error occurs when trying to archive before implementation is complete: ``` ❌ ChangeNotComplete: Change must be in 'implemented' phase Current phase: implementing Action required: Complete implementation first with /cc:gen:impl-change ``` **Resolution**: Ensure all implementation tasks are complete and tests pass using `/cc:gen:impl-change`.