open-pr
open-pr
Publish your work for review by pushing the branch and creating/updating a Draft PR with a strong title + description.
Guardrails
- Do not implement new code here. If changes are needed, go back to
implement. - Do not merge the PR here. Review happens in
review; merge/branch cleanup happens incommit(finalise mode). - Prefer Draft PRs by default.
- For hotfixes committed directly to the default branch, a PR is optional; use
review local+commitinstead.
Workflow
-
Gather inputs
- PRD path (e.g.
tasks/f-##-<slug>.md) - base branch (default: repository default branch resolved from
origin/HEAD; ask if unclear) - PR title seed (default: from PRD title / feature ID)
- PRD path (e.g.
-
Preflight
- Confirm you are on a feature branch (not the base branch).
- Ensure the working tree is clean (
git status --porcelainis empty). - Ensure there are commits to push (compare
base...HEAD). - Ensure the PRD contains checklist-based progress (user stories/tasks/acceptance criteria) and completed items are checked.
- Capture test/check commands + results for the PR body (don't guess).
-
Push the branch
git push -u origin HEAD
-
Draft PR title + body
- Use the template below and include:
- PRD path
- what changed + why
- tests run (exact commands + results)
- how to verify
- risks / rollout / rollback (if applicable)
- Use the template below and include:
-
Create or update the PR with
gh- Try to view an existing PR for the current branch:
gh pr view --json url,number,state,isDraft -q .url
- If it exists, update:
gh pr edit --title "<title>" --body "<body>"
- If it does not exist, create a Draft PR:
gh pr create --draft --base "<base>" --title "<title>" --body "<body>"
- Capture the PR URL:
gh pr view --json url -q .url
- If
ghis unavailable, output the prepared title and body with manual instructions (repo URL, base branch, draft flag) so the user can create the PR themselves.
- Try to view an existing PR for the current branch:
-
Next
- Run
review(PR mode) when needed, then runcommit(finalise mode) when ready.
- Run
PR Template
Title
- Prefer:
f-##: <feature name>
Body (Markdown)
## Summary
- What: …
- Why: …
## PRD
- `tasks/f-##-<slug>.md`
## Changes
- …
## Testing
- `…` → ✅/❌
## How to verify
1. …
2. …
## Risks / rollout / rollback (if applicable)
- …
## Migration / backwards compatibility (if applicable)
- …
## Screenshots (if UI)
- …
## Checklist
- [ ] PRD linked
- [ ] Tests/checks run
- [ ] Edge cases considered
Output
- PR URL (or instructions if creation failed).
- Final PR title + body used.
- End with a short status block:
- Files changed: list of created/updated files
- Key decisions: any assumptions or choices made (if any)
- Next step: recommended next skill or action
More from kelvinz/cobb
compact
Compact `tasks/context.md` by summarising older completed history while preserving active context. Triggers: compact context, prune context log, trim context.
30review
Review the current branch changes for correctness, security, tests, and scope, then return a clear go/no-go decision. Triggers: review, readiness check, pre-commit review, pre-finalise review.
26implement
Implement an existing PRD (`Type: feat`/`fix`/`chore`), update tests/checks, and mark completed PRD checklist items. Triggers: implement prd, build feature from prd, execute prd checklist.
26design
Router-first workflow for high-craft design execution across four modes: ui, ux, motion, and imagery. Use when designing or refining interfaces, structuring and auditing UX/usability/accessibility, implementing or specifying interaction motion, or producing static visual artifacts (.png/.pdf) with a matching philosophy note. Triggers: design ui, improve ux flow, run design audit, add transitions, reduce motion issues, create visual imagery, craft poster composition.
20memory
Maintain durable project memory in `tasks/memory.md` (state, decisions, milestones, gotchas), inline during other workflows or standalone for cleanup/backfill. Triggers: update memory.md, decision log, record project context.
17prd
Create, update, or list PRDs for features, fixes, and chores. Handles project setup (first PRD) and ongoing PRD management. Each PRD is a self-contained spec with status, priority, and acceptance criteria. Triggers: prd, new feature, write prd, plan feature, create spec, list prds, update prd, add feature.
15