← ClaudeAtlas

ralpharchivelisted

Archive the current Ralph prd.json and progress.txt before starting a new feature. Use when you need to archive a completed or abandoned Ralph run. Triggers on: archive ralph, archive prd, ralph archive, clear ralph, reset ralph.
ruska-ai/orchestra · ★ 13 · AI & Automation · score 66
Install: claude install-skill ruska-ai/orchestra
# Ralph Archive Archives the current `.ralph/prd.json` and `.ralph/progress.txt` into `.ralph/archive/[feat|bug]-<issue#>/` so a new Ralph run can start clean. --- ## The Job 1. Check if `.ralph/prd.json` exists &mdash; if not, inform the user there is nothing to archive and stop 2. Read `.ralph/prd.json` to extract the branch name from `branchName` 3. Derive the archive folder name from the branch: `feat/810-feature-name` &rarr; `feat-810`, `bug/796-save-error` &rarr; `bug-796` 4. Create the archive directory: `.ralph/archive/[feat|bug]-<issue#>/` 5. Copy `.ralph/prd.json` to the archive directory 6. Copy `.ralph/progress.txt` to the archive directory (if it exists) 7. Remove the originals from `.ralph/` root 8. Confirm to the user what was archived and where --- ## Rules - **Directory naming:** `[feat|bug]-<issue#>` derived from `branchName` in prd.json (e.g., `feat/810-feature-name` &rarr; `feat-810`) - **If the archive directory already exists:** Append a numeric suffix (e.g., `feat-810-2/`) - **Do NOT delete or modify** any files in the archive after moving them - **Do NOT create a new prd.json or progress.txt** &mdash; that is the ralph skill&apos;s job --- ## Example Given `.ralph/prd.json` contains: ```json { "branchName": "feat/810-collapsible-tool-inputs", "description": "Collapsible Tool Inputs Feature" } ``` Running this skill produces: ``` .ralph/archive/feat-810/prd.json .ralph/archive/feat-810/progress.txt ``` --- ## Steps (for the agent) ```b