Archiving OpenSpec Change
Purpose
Finalizes a change proposal by moving its artifacts to the archive and incorporating the new requirements and scenarios into the project's main specifications.
1. Safety & Verification
- •Check Help: Run
cd docs && npx @fission-ai/openspec@latest archive --help. - •Verify Completion: Run
checking-openspec-statusandvalidating-openspec-itemsbefore archiving.
2. Common Workflows
Workflow: Archive a Change
- •Run
cd docs && npx @fission-ai/openspec@latest archive <change-name>. - •Use
-yto skip confirmation prompts if you are confident:cd docs && npx @fission-ai/openspec@latest archive <change-name> -y
Workflow: Archive Without Updating Specs
- •For infrastructure or documentation changes that don't affect main specs, use
--skip-specs:cd docs && npx @fission-ai/openspec@latest archive <change-name> --skip-specs
3. Error Handling
- •If validation fails during archiving: Fix the issues and try again. Use
--no-validateonly if absolutely necessary and you understand the risks.
4. Examples
Example: Archive Finished Feature
Command: cd docs && npx @fission-ai/openspec@latest archive add-login -y
Expected Output: The add-login change is moved to the archive, and main specs are updated.