docs/team-workflow.md
Everything in the other guides works the same whether you're solo or on a team of twenty. What changes on a team is the questions around the edges: where do the specs live, how do teammates review a plan, and how does any of this fit the pull-request flow we already have?
The short answer: a change is just files, and OpenSpec never touches git. So it fits your existing workflow instead of replacing it. This page spells out the conventions that work well.
OpenSpec reads and writes plain Markdown under openspec/. It never commits, branches, pushes, or pulls in your project — and it never clones or syncs a store on its own. That means:
openspec/ like any source. Specs, active changes, and the archive are part of your project's history. (Yes, commit the whole folder — see the FAQ.)openspec/changes/add-dark-mode/ is just files on a branch.The workflow that works well maps a change onto a branch and a pull request:
git switch -c add-dark-mode start a branch, as usual
│
/opsx:propose add-dark-mode draft the plan (proposal + specs + tasks)
│
REVIEW THE PLAN you read it before any code — see Reviewing a Change
│
/opsx:apply build it; artifacts + code change together
│
git commit && open a PR the PR contains the spec delta AND the code
│
teammate reviews, merges
│
/opsx:archive fold the delta into specs/, move the change to archive/
The plan and the code live side by side in the same branch, so your teammates review both together, and six months later the archived spec still explains why the code looks the way it does.
This is where a team feels the payoff. When a PR includes the change's delta spec, the reviewer gets something a raw diff never gives them: a plain-language statement of what this change is supposed to do, before they read a single line of code.
A good review order for the reviewer:
proposal.md — is this the right problem and scope?specs/ — is "done" defined correctly? (This is the Reviewing a Change two-minute pass, now happening in the PR.)A reviewer who disagrees with the approach can say so against the proposal, cheaply, instead of relitigating it across 300 lines of code. Put the delta spec near the top of the PR description, or point reviewers at the change folder, so they start there.
Archiving folds a change's deltas into your main openspec/specs/ and moves the change folder to openspec/changes/archive/YYYY-MM-DD-<name>/. Because specs/ is the shared source of truth, the timing matters on a team. Two workable conventions:
specs/ moving forward only with work that actually shipped.specs/ diff and your code diff land together, which can make the PR noisier.Pick one and be consistent. Either way, /opsx:archive checks that tasks are complete and offers to sync first, so nothing merges half-finished by accident.
Because changes are separate folders, they don't collide:
add-dark-mode and rate-limit-login are different folders on different branches; they never touch each other until they both archive.specs/. If two changes both modify the same requirement, archiving the second one will conflict in openspec/specs/…/spec.md — resolve it like any merge conflict, keeping the requirement that reflects reality. This is rare, and it's a feature: it's git telling you two changes disagreed about how the system should behave.Everything above assumes the plan lives in the code repo's own openspec/ folder, which is the right default. When your planning genuinely spans several repos or teams — one feature touching three services, or requirements one team owns and others consume — that's what the beta stores feature is for: planning gets its own repo that any code repo can point at. Start with the Stores User Guide.