Prompt file imported from Bassov/photobooks (
.cursor/commands/next-roadmap-item.md). Copyright stays with the author.
Next roadmap item (unattended)
Run ONE roadmap item end to end in this session. This message is the
explicit request for planning, apply, manual check, archive, PR and CI — do not
stop between stages. Mandates live in openspec/config.yaml (rules + operations),
.cursor/rules/git-finish.mdc, .cursor/agents and skill roadmap; follow them,
do not restate them.
- Preflight:
git statusclean (else stop), thengit fetch origin && git switch main && git pull --ff-only. - Collect slugs with an open PR or remote branch (
gh pr list --state open,git branch -r; branchfeat/<slug>orfix/<slug>), thenpnpm -s roadmap next --skip <slugs>. Its output (slug, tag, milestone goal, title, file, full scope) is the item; do not read docs/roadmap.md. It skips [contingency] items; take one only when its gate has failed (pnpm -s roadmap show <slug>). State item, tag and skips.git switch -c feat/<slug>(fix/ for bug items). - Plan with the OpenSpec CLI, not /opsx-propose (its planning boundary would end
this run):
openspec new change <slug>; for each ready artifactopenspec instructions <id> --change <slug> --json→ write it →openspec status --change <slug> --json. Launch the reviewer subagents where rules.proposal / rules.design require and loop to pass. Over budget: grow the roadmap withpnpm roadmap add <new-slug> --after <slug> ..., not the PR. - /opsx-apply through the Verification checklist, including openspec-implementation-reviewer pass and the Manual check.
- /opsx-archive : answer "Sync now"; confirm only when every task is
checked. Then close the item on this branch:
pnpm roadmap done <slug>(--note "..."when the shipped scope deviates; required for a [contingency]). If it reports a milestone review cut, commit the archive move and stop after the PR is green. pnpm roadmap check, then commit, PR and wait for green per git-finish.mdc.
Stop and ask only for: dirty tree, a milestone review cut, an item whose intent
contradicts a spec or open issue, the git-finish CI stop conditions. Security-tagged
items continue; run the Security Review sub-agent before archive. Until
gate-ratchet/gate-ratchet-ci are merged, a gate-config edit MUST be strictly
stricter and listed in the touch-set with a reason; otherwise stop. Until
dependency-policy is merged, a new or changed dependency needs pnpm audit:ci
evidence and a Security Review pass before archive. Otherwise record assumptions
in the artifacts and continue.
Final reply in Russian: item, PR URL, check status, reviewer verdicts, skipped
survivors, assumptions.
