workflow-pr
/workflow-pr
Manage an existing PR lifecycle — review, bot feedback, conflicts, merge. Use when opening a PR from an already-committed branch, addressing review, or merging. Uncommitted working tree to merge-ready → workflow-release-prep.
- Author
- kensaurus ↗
- Repository
- cursor-kenji ↗
- Licence
- MIT
- Last repository change
- 19.10.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 19.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Manage an existing PR lifecycle — review, bot feedback, conflicts, merge. Use when opening a PR from an already-committed branch, addressing review, or merging. Uncommitted working tree to merge-ready → workflow-release-prep.
Original author description
Manage an existing PR lifecycle — review, bot feedback, conflicts, merge. Use when opening a PR from an already-committed branch, addressing review, or merging. Uncommitted working tree to merge-ready → workflow-release-prep.
How it works
- This skill vs neighbors
- How to reason
- Worked example
- Self-critique before reporting
- Invocation boundary
- Phase 1: Before Creating PR [LOW freedom — run exactly]
- Phase 2: Monitor PR [LOW freedom — run exactly]
- Phase 3: Merge Criteria [LOW freedom — run exactly]
- Error Handling
- Common Mistakes
SKILL.md preview
--- name: workflow-pr description: > Manage an existing PR lifecycle — review, bot feedback, conflicts, merge. Use when opening a PR from an already-committed branch, addressing review, or merging. Uncommitted working tree to merge-ready → workflow-release-prep. license: MIT --- # PR Workflow Skill **Degree of freedom: MIXED.** Feedback judgment `[HIGH freedom]`; validations, poll loop, and merge-only-if-asked `[LOW freedom — run exactly]`. Full checklist for an already-committed branch or an open PR. Uncommitted / staged / untracked working tree that still needs review, commit, and a merge-ready PR is **`workflow-release-prep`**. This skill does not own that sequence. ## This skill vs neighbors | Skill | Owns | |---|---| | **workflow-pr** (this) | Existing PR lifecycle: review, bot feedback, conflicts, merge if asked | | `workflow-release-prep` | Uncommitted working tree to a merge-ready PR; never merges | | `workflow-build-feature` | Feature end to end: spec, TDD, tests, Playwright, then PR | | `workflow-fix-and-ship` | One bug-fix lifecycle: triage, debug, test, fix, then PR | | `workflow-mobile-native-uiux` | Full native UI/UX run on Capacitor, Expo, or RN to a PR | ## How to reason 1. **Validate** — repo commands green; no secrets in the branch 2. **Open** — template + complete description 3. **Drive** — poll checks; address every thread 4. **Gate** — mergeable_state clean AND threads 0; merge only if asked ## Worked example > **Validate:** `pnpm typecheck && pnpm test` green; no `.env` in the diff. > **Open:** PR uses the repo template; title `fix(checkout): handle deleted SKU`. > **Drive:** CI red on lint → fix, push, re-poll; reply + resolve the bot thread. > **Gate:** `mergeable_state=clean`, 0 threads; user did not ask to merge → report merge-ready and stop. ## Self-critique before reporting - **Already committed** — dirty tree was routed to `workflow-release-prep` - **Both gates** — never treat `mergeable: true` as approval - **Merge gated** — no merge unless the user explicitly asked - **Right owner** — uncommitted pile → `workflow-release-prep`; keep-green loop after open → `babysit` ## Invocation boundary - **Standalone:** open or manage the PR. Merge only when the user explicitly asked to merge. - **Called by `workflow-release-prep`:** open the PR and return its URL. `babysit` owns the green loop; the caller stops before merge. ## Phase 1: Before Creating PR [LOW freedom — run exactly] ### 1. Run Validations **JavaScript/TypeScript:** ```bash pnpm typecheck && pnpm build && pnpm test # or: npm run typecheck && npm run build && npm test ``` **Python:** ```bash mypy . && python -m pytest && ruff check . ``` **With Makefile:** ```bash make typecheck && make build && make test ``` ### 2. Security Scan Before committing, verify: - [ ] No hardcoded paths (`/Users/username/...`) - [ ] No secrets, API keys, or tokens - [ ] No machine-specific values - [ ] Environment variables for sensitive data ### 3. Create PR 1. Search for `pull_request_template.md` in repo 2. Use template structure for PR description 3. Create PR with clear title and description --- ## Phase 2: Monitor PR [LOW freedom — run exactly] ### 4. Poll Status Check every 60-90 seconds until checks complete: **Understanding Check Status:** - `mergeable: true` → Only means no git conflicts - `mergeable_state: "clean"` → ALL checks passed, safe to merge **Mergeable State Values:** | State | Meaning | Action | |-------|---------|--------| | `"clean"` | ✅ All passed | Safe to merge | | `"unstable"` | ⚠️ Pending/failing | Wait, poll again | | `"blocked"` | ❌ Protection rules | Check requirements | | `"behind"` | ⚠️ Needs update | Update branch | ### 5. Address Bot Feedback When reviews complete: 1. **Read every comment** - Track unresolved threads 2. **For each issue:** - Analyze feedback - Implement fix - Commit and push - Reply confirming fix - **Mark thread resolved** 3. Address every comment — an unresolved thread fails Gate 2 ### 6. Wait for Re-validation After pushing fixes: 1. Poll status again 2. All checks must show `SUCCESS` 3. Re-fetch comments for NEW feedback 4. Repeat until clean --- ## Phase 3: Merge Criteria [LOW freedom — run exactly] ### 7. Final Checklist **Two gates must pass:** | Gate | Check | |------|-------| | Gate 1 | `mergeable_state == "clean"` | | Gate 2 | `unresolved_thread_count == 0` | **Both must be TRUE to merge.** ### 8. Execute Merge Only after both gates pass **and the user explicitly asked to merge**: ```bash gh pr merge --merge ``` Otherwise report that the PR is merge-ready and stop. ### 9. Verify Success Confirm merge was successful and report status. --- ## Error Handling | Situation | Action | |-----------|--------| | Checks fail 3x | Pause, ask for guidance | | Unclear feedback | Ask clarifying questions | | Merge blocked | Check protection rules, report | | Checks stuck | Run local validation, ask permission | --- ## Common Mistakes ### ❌ Merging when `mergeable_state` is "unstable" **Fix:** Always check `mergeable_state`, poll again if unstable ### ❌ Treating `mergeable: true` as approval **Fix:** `mergeable` ≠ `mergeable_state`. Check the latter. ### ❌ Not re-checking comments after push **Fix:** After every push, re-fetch comments for new threads ### ❌ Not marking threads resolved **Fix:** After addressing each comment, mark thread resolved --- ## Quick Reference ```bash # Check PR status gh pr status # View checks gh pr checks <number> # View comments gh pr view <number> --comments # Merge (only when both gates pass) gh pr merge <number> --merge ```
Versions
The database has no other skills named workflow-pr.
Database snapshot: 13.11.2026 · package version 18eb23361204 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 2 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100workflow-release-prep
Take the local working tree to a merge-ready PR against main: review, split if needed, commit, push, open the PR, drive CI green; never merge. Use when "prepare this for a PR" or "get my working tree merge-ready". Existing PR → workflow-pr. - 100github-pr-workflow
Use when creating, updating, or managing pull requests — automates the full PR lifecycle (open, review requests, labels, merge) via GitHub MCP - 100run-pr-cycle
Use when a verified owner-worker branch is ready to publish, or when an open pull request needs blocking lifecycle management through CI failures, review feedback, conflicts, and merge. - 100code-review
Use when a task, feature or bug fix is implemented and before it is committed, merged or handed back to the user, and when the user asks for a review of a change, a branch or a pull request. - 84pull-request
When the bundled pr skill or built-in commit-push-pr command resolves in this session, prefer pr for a one-shot PR from committed work and commit-push-pr to commit, push and open one at once, only when no draft, body contract, or later ready, monitor, or merge step applies; this… - 100conflicts
Resolve git merge conflicts by analyzing change intent across branches. Use when the user asks to resolve merge conflicts, sync a branch, merge branches, or when a git merge produces conflicts.