Validating OpenSpec Items
Purpose
Ensures that OpenSpec artifacts comply with the required format and contain all necessary information, reducing errors during implementation and archiving.
1. Safety & Verification
- •Check Help: Run
cd docs && npx @fission-ai/openspec@latest validate --help.
2. Common Workflows
Workflow: Validate a Specific Change
- •Run
cd docs && npx @fission-ai/openspec@latest validate <change-name>.
Workflow: Validate All Changes
- •Run
cd docs && npx @fission-ai/openspec@latest validate --changes.
Workflow: Strict Validation
- •Use
--strictto enable more rigorous checks:cd docs && npx @fission-ai/openspec@latest validate <item-name> --strict
3. Examples
Example: Validate Current Feature Proposal
Command: cd docs && npx @fission-ai/openspec@latest validate my-feature
Expected Output: A success message or a list of validation errors to be corrected.