complete-change
Finalize a change - archive if needed, commit if needed, rebase onto main and fast-forward main.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Finalize a change - archive if needed, commit if needed, rebase onto main and fast-forward main.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
| name | complete-change |
| description | Finalize a change - archive if needed, commit if needed, rebase onto main and fast-forward main. |
| disable-model-invocation | true |
Finalize a completed change by archiving, committing, and syncing with main.
Steps
Archive change (if needed)
Run openspec list --json to check for active changes.
opsx:archive for it. When prompted about spec sync, always choose "Sync now"./opsx:archive manually."Commit (if needed)
Run git status --short to check for uncommitted changes.
commit.Rebase onto main
Rebase the current branch onto main to pick up any changes that landed on main since the branch diverged.
git rebase main
If conflicts occur:
git checkout --ours)git add <file>git rebase --continueIf rebase cannot be resolved automatically, abort with git rebase --abort and explain what went wrong.
Verify after rebase
go build ./... && go test ./...
If build or tests fail after rebase: abort and report the failures. Do NOT force-push broken code.
Fast-forward main
Record the current branch name first, then bring main up to date:
BRANCH=$(git rev-parse --abbrev-ref HEAD)
git checkout main
git merge --ff-only $BRANCH
git checkout $BRANCH
If fast-forward fails (main has diverged): switch back to the original branch (git checkout $BRANCH), then abort and explain. The user needs to decide how to proceed.
Always return to the original branch, even if the fast-forward succeeds. The user should end up on the same branch they started on.
Show summary
Display:
git log --oneline -5 showing the resultGuardrails
استنادا إلى تصنيف SOC المهني
Create a commit from current changes with an appropriate message. Handles OpenSpec change lifecycle (verify, archive) and CHANGELOG updates automatically.
Create a new release — updates CHANGELOG.md, commits, and tags. Use when the user wants to cut a release.
Build and install asylum for the host platform from the current source tree. Use when the user wants to test local changes.