/sdlc:openspec-save
Get your OpenSpec change reviewed and merged as its own pull request, before any implementation code exists.
Why use it
/sdlc:plan with the choice Create OpenSpec change stages the spec of your change in a folder outside the tracked tree.
No branch and no pull request holds the spec yet.
This skill moves the change onto its own branch, commits it and opens a pull request that holds only the spec.
Your reviewers merge the spec first. Then you ship the implementation.
Example
The plan add-widget.md staged the change add-widget. On the default branch, with no uncommitted change in tracked files, run:
/openspec-save /Users/me/.claude/plans/add-widget.md
- The skill creates the branch
openspec/add-widgetand moves the change intoopenspec/changes/add-widget/. - The commit skill drafts the commit message and asks you to approve it.
- The pr skill asks for release intent. Choose Skip release (acknowledged): the PR holds only the OpenSpec change.
- The skill prints the change name, the branch and the PR URL.
Merge that PR. Then create a new branch from the default branch and run /sdlc:ship --plan <plan-path>.
/openspec-save is the short name. The full command name is /sdlc:openspec-save.
What you get
- Spec review before any code exists. The change gets its own branch
openspec/<change>, its own commit and its own PR. - One command for the hand work. The skill creates the branch, moves and stages the change, then runs the commit skill and the pr skill.
- Your decisions stay yours. The commit skill and the pr skill ask you directly, and the skill never answers a question for you.
- A stopped run is safe to repeat. Run the skill again on the saved branch, and the run continues at the commit or at the PR.
- No half-saved change. The tool checks that each file of the change is in the git index before it marks the plan as saved.
More examples
Name the plan with a flag, and skip the commit approval:
/openspec-save --plan /Users/me/.claude/plans/add-widget.md --auto
The commit skill does not ask you to approve its message. The pr skill still asks for release intent and for approval of the PR text.
| Flag | What it does |
|---|---|
--plan <path> |
Names the plan file. Same as the positional <plan-path>. |
--auto |
Skips the approval question of the commit skill. The pr skill still asks you. |
Continue a stopped run:
/openspec-save /Users/me/.claude/plans/add-widget.md
You declined the commit in the first run, so the branch openspec/add-widget holds the staged change.
Run the same command again on that branch. The tool returns already, and the run continues at the commit.
When the commit exists and the PR does not, the run continues at the PR.
The merge-first flow
/planstages the change and writes the**OpenSpec-Staging:**header line in the plan file./openspec-savecreates the branchopenspec/<change>, moves the change intoopenspec/changes/<change>/, commits it, and opens a PR.- You and your reviewers merge that PR into the default branch.
- You create a new branch from the default branch and run
/shipwith the same plan file.
The OpenSpec PR and the code PR are two separate PRs.
/plan stages the change under .sdlc-v2/openspec-staging/<change>/ of the main worktree. When the skill can find the main worktree, it runs from any worktree of the repo.
A change that an older plugin staged sits in that folder of the active worktree, and the skill can fall back to it.
When the skill cannot find the main worktree, it uses only the folder of the active worktree and prints the warning Main worktree not found (...).
Where the skill finds the staged change has the exact rules.
Reference
- Flags and prerequisites: the two flags, the rules for the plan path, the state the repository needs, and where the skill finds the staged change.
- Stops and repeat runs: what a save changes, what stops a run, and how the next run continues.
Related skills
- /sdlc:plan: stages the OpenSpec change and writes the header line that this skill reads.
- /sdlc:commit: commits the staged change. It runs inside this skill.
- /sdlc:pr: opens the PR, or updates the open PR of the branch. It runs inside this skill.
- /sdlc:ship: run it on a new branch from the default branch after the OpenSpec PR is merged.