Feature Archive
Archives completed feature docs from active -> archives dir.
Usage
/rp1-dev:feature-archive <feature-id>
Behavior
- Moves
.rp1/work/features/{FEATURE_ID}/->.rp1/work/archives/features/{FEATURE_ID}/ - Creates archives/features/ if missing
- Existing archive ID -> appends timestamp suffix
- Validates docs exist before archiving
Execution
Step 1: Invoke Agent
{% dispatch_agent "rp1-dev:feature-archiver" %}
MODE: archive
FEATURE_ID: {FEATURE_ID}
SKIP_DOC_CHECK: false
WORK_ROOT: {workRoot}
{% enddispatch_agent %}
Step 2: Handle Response
If agent returns JSON w/ type: "needs_confirmation":
{"type":"needs_confirmation","reason":"minimal_docs","feature_id":"...","message":"..."}
{% ask_user "Feature '{FEATURE_ID}' has minimal documentation (no requirements.md or design.md). Archive anyway?", options: "Yes - Archive anyway", "No - Cancel" %}
- Yes: Re-invoke w/
SKIP_DOC_CHECK: true - No: Output
Archive aborted by user+ STOP
Step 3: Report
Display agent success output directly.