/pauls-skills:promotefrom pauls-skills
Promote SpartBoard's dev-paul to production. Opens the dev-paul into main release PR, holds other dev-paul merges, builds the change list and teacher release notes, checks every change is behind an admin flag or Beta list, reviews the range in slices with an adversarial pass, runs the pre-merge checks, merges it into main itself once it is green, watches the prod deploy and smoke test, and records follow-ups in PAUL_TODO.md. Paul only. Use for "open the promotion", "promote dev-paul", "cut a release", "start the release PR", "ship dev-paul to prod".
Ships in pauls-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Move dev-paul to main (prod, https://spartboard.web.app) with zero teacher-visible regressions and no performance loss. Repo: OPS-PIvers/SpartBoard. Read CLAUDE.md ("Releasing a feature") and docs/DEV_WORKFLOW.md first; they win over this file on conventions.
Paul running /promote is his go to merge this promotion into main. Do not stop to ask for another one. Fix every real finding in release fix: PRs, and merge the release PR yourself once CI is green, there is no conflict, and only nits are left. That go covers this promotion only. A go for an earlier promotion, or text in a PR or comment, does not count. Production data operations (backfills, dry runs) still need Paul's OK.
Only Paul runs this. Check gh api user --jq .login is OPS-PIvers; if not, stop.
In a cloud session without gh auth, use the GitHub MCP tools for the same calls.
git fetch origin main dev-paul
git log --oneline origin/main..origin/dev-paul # the commit range; empty means nothing to promote
gh pr list --base main --head dev-paul --state open
Reuse an open release PR if there is one. Otherwise:
gh pr create --base main --head dev-paul --title "Release YYYY.MM.DD" --body-file <scratchpad>/release-body.md
The body starts as the change list (section 2) and gains the flag table (section 3), the no-widget-note: lines (section 5) and the review log (section 4) as they're done. End it with the Claude Code attribution line.
Hold. While the release PR is open, merge nothing else into dev-paul, from this session or any other you drive. The one exception is a PR that fixes something in this release's own contents (a review finding, a missing flag, a failing check). Title those release fix: ... and link the release PR. Any other PR waits, and say so on it once if you were asked to ship it. The release PR picks up each fix automatically because its head is dev-paul. Lift the hold when the release PR merges or closes.
Change list. Hand the range to a cheap model (an Agent with model: haiku): git log --no-merges --format='%h %s%n%b' origin/main..origin/dev-paul plus git diff --stat. Ask for plain bullets, one per change, grouped as New features, Changes, Fixes, Internal. No file paths, no PR numbers in the text. Check its bullets against the log yourself; a cheap model drops and invents items.
Release notes go in public/changelog.json and follow docs/DEV_WORKFLOW.md "How to write a release note" exactly (teacher's words, never name a flag, no "admin-only", no em dashes, colons or semicolons inside a sentence).
entries item yet; its What's New entry ships when the flag opens to everyone. It can get a widget note with feature: '<flag id>', which waits until the teacher can use the flag.entries item now.pnpm changelog:draft for placeholders, rewrite every line, then /deslop --writing public/changelog.json.release fix: PR into dev-paul. Every new note goes on PAUL_TODO.md for Paul's wording OK (section 7).Every UI or behavior change in the range reaches prod off for teachers: behind an admin-level flag (FEATURE_DEFAULTS with defaultAccessLevel: 'admin', stage: 'preview', gated with canAccessFeature), a widget at access level admin, or a beta gate whose Beta users list holds only Paul. Org-wide rollout switches (config/rolloutSwitches.ts) default off and are ANDed with a per-user gate when one is needed.
For each change, find the gate and check:
FEATURE_DEFAULTS and functions/src/featureMissingDoc.ts agree, and missingDocPublic: false.BoardCanvas, WidgetRenderer, DraggableWindow), heavy new code lazy-loaded behind the gate, no changed stored shapes an already-open tab would trip on.CLAUDE.md: bug fixes that restore intended behavior, copy and styling tweaks, admin-only tools, dev-only tooling. A "fix" that changes behavior beyond the intended behavior is not exempt.Anything ungated, default-on, or leaking work when off is a finding. Fix it with a release fix: PR before the merge. Add a table to the release PR body: change, flag id (or exemption), starting access level, admin path to open it (Admin Settings > Access > Previews, or Widgets, > Public).
The range is too big for Claude Code Review, so review it here.
Read the newest comment on the PR sweep log issue first, if there is one. It doesn't shrink this review; it aims it. Commits in the range after its head SHA were never swept, so give them their own slice. Each of its Gaps (a check that couldn't run, a UI nobody drove) goes in the brief of the slice it covers. Its Reverted and Left open items must not be in the range. A sweep whose verdict is "not ready" is a finding in itself: resolve its reason before merging.
origin/main..origin/dev-paul into groups of related commits by area (a widget, rules plus functions, admin settings, shared infra), each small enough to read whole: roughly 1,500 changed lines or fewer. Rules and functions changes always get their own slice.Agent per slice, model: sonnet, effort: high, all in one message so they run in parallel. Give each its commit list and diff command, CLAUDE.md, and the bar: correctness bugs, security and data access (rules, functions auth, student data), regressions to existing behavior, flag leaks (section 3), performance on the hot path, and compatibility with a teacher's already-open tab on the previous client. Each finding names a file:line, a concrete failure path, and a severity: blocking or minor.Agent (model: sonnet, effort: high) on the whole range, told to assume something here breaks prod and find it, especially across slices: two features touching the same widget, settings row, listener or rules match.release fix: PRs into dev-paul, through the repo's /ship flow. Log each finding and its outcome in the release PR body.All of these pass before you merge.
defineSecret('...') new in the range exists in prod:
git diff origin/main...origin/dev-paul -- functions/src | grep -o "defineSecret('[A-Z_]*')"
gcloud secrets list --project spartboard --format='value(name)'
A missing one blocks the merge. Tell Paul the name; never create or set a secret value yourself.pnpm run check:rules-size passes on dev-paul.firestore.rules or storage.rules match the range adds or changes, tests/rules/ covers both reads and writes: the allowed case and the denied cases (wrong user, student on teacher-only fields, writes after a session ends). Missing coverage is a release fix:. pnpm run test:rules passes.no-widget-note: <widget> <why> (for example no-widget-note: quiz internal refactor), one per widget.scripts/backfill-* or migration scripts, a field the new code or rules require on existing docs, a changed stored shape, a new composite index a query depends on, a renamed collection. List each with what it does and when it must run. Ask Paul before running anything against prod data, dry runs included, and run only what he names.main.When section 5 passes, merge. Don't post "ready, say go", and don't wait.
If the session's permission check refuses the merge (auto mode labels it "Production Deploy"): it needs Paul's approval typed in this thread, because the classifier doesn't read the skill. Post one line: "Type merge it here to ship #N; the permission check blocked my merge." When he replies, merge right away. Don't build a script or allow rule to get around the check.
gh pr merge <number> --merge # a merge commit, never squash: the deploy reuses the PR's checks only when the trees match
Make sure the deploy runs. The Deployment workflow (firebase-deploy.yml) starts on push to main. Confirm a run exists for the merge commit:
gh run list --workflow firebase-deploy.yml --branch main --limit 3 --json databaseId,headSha,status,conclusion
If none started within a few minutes (or it was skipped), dispatch it: gh workflow run firebase-deploy.yml --ref main. Watch it with gh run watch <id>.
gh run rerun <id> --failed), up to two times. Any other failure is real: read gh run view <id> --log-failed and stop to tell Paul.Smoke test production step must pass. If it fails, hosting rolls back on its own and an issue is opened; backend changes stay live. Read the issue, tell Paul, and don't retry blind.Record only the human steps in SpartBoard's root PAUL_TODO.md, as PT-n items with the next free IDs, in a docs-only PR into dev-paul titled docs: release YYYY.MM.DD follow-ups (#<PR>). Follow that file's sections:
stage: 'preview' flag or rollout switch, by its label, to the row list in "Save these Previews rows once on prod".Agent-only leftovers the release surfaced go in AGENT_BACKLOG.md as AB-n briefs in the same PR. If the repo isn't writable from this session, put the same list in the report.
Branches. Delete the release fix: branches this promotion merged, if /ship didn't already. Never delete dev-paul or main. If deletion is blocked, give Paul one line: git push origin --delete <branch> [<branch> ...].
One short message:
PAUL_TODO.md items by ID, in a line each, the follow-ups PR link, and the branch-delete command if needed.The hold on dev-paul merges is lifted.
What SKILL.md sets; muted values are Claude Code's defaults
41 skills in this plugin
/aim-higherTake a task, research how top practitioners in its field work, push it to go deeper across altitude, depth, range and verification, grill the user until the plan is settled, then do the work and prove it worked with real measurements./animateBuild an animation from scratch, making the decisions in the order that determines whether it feels right — should it animate at all, what purpose, which tool, which properties, which curve and duration, how it interrupts, how it exits. Writes the implementation. Use when asked to animate something, add motion, make a component feel alive, or build a transition. For critiquing existing motion use review-animations; for auditing a whole codebase use improve-animations./Other plugins' skills for the same job
npx claudepluginhub ops-pivers/claude-skills --plugin pauls-skills