Updating OpenSpec Instructions
Purpose
Ensures that the AI agent's instruction files (e.g., .cursorrules, claude.json) are up-to-date with the latest OpenSpec standards and project configuration.
1. Safety & Verification
- •Check Help: Run
npx @fission-ai/openspec@latest update --help. - •Verify Initialization: Ensure OpenSpec has already been initialized in the project (check for
openspec/directory).
2. Common Workflows
Workflow: Refresh Instructions
- •Run
npx @fission-ai/openspec@latest update. - •Use
--forceto overwrite existing instructions even if they appear up-to-date.
3. Error Handling
- •If the command fails because OpenSpec is not initialized: Run
initializing-openspecfirst.
4. Examples
Example: Force Update Instructions
Command: npx @fission-ai/openspec@latest update --force
Expected Output: Updated instruction files in the project root or .cursor/ directory.