diff --git a/.opencode/commands/opsx-fixup.md b/.opencode/commands/opsx-fixup.md new file mode 100644 index 0000000..1b1914b --- /dev/null +++ b/.opencode/commands/opsx-fixup.md @@ -0,0 +1,28 @@ +--- +description: Fixup diverging archived openspec change artifacts +--- + +Fixup archived openspec change artifacts in @openspec/changes/archive/ that have diverged from the codebase. + +For each archived change directory: +1. Read the .md artifact +2. Review related code to verify consistency +3. Fix any mismatches (status, fields, missing links, etc.) + +Only run make-commit if changes were made, with a specific message like "Fixup: add missing X field to Y change". + +--- + +**Steps** + +1. **For each archived openspec change** + + Read the change artifact. + + Go through the related code. + + Correct the change artifact where needed. + +2. **Run make-commit if changes were made** + + skill [name=make-commit] message: "Fixup: "