From 86c1abaad4ad6c3f90ccee0afd1550db21c85499 Mon Sep 17 00:00:00 2001 From: AI Bot Date: Sat, 18 Apr 2026 14:07:24 +0200 Subject: [PATCH] Add opsx-fixup command for diverging change specs --- .opencode/commands/opsx-fixup.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .opencode/commands/opsx-fixup.md 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: "