work-with-pr — Full PR Lifecycle
Splits a task into atomic PRs, implements each in an isolated git worktree, loops until CI and the review bot pass, then auto-merges and cleans up.
Dev & CodingAdvanced★ 67,531⑂ 5,507AI score 8/10Last updated: Aug 9, 2026
What it does
Orchestrates the whole path from "here's a task" to "it's merged":
- Phase 0 — Setup: decomposes one task into the smallest atomic, independently mergeable PRs, then creates a branch and a sibling
git worktreeper PR. Independent slices are built concurrently via background subagents or a team, so the user's main working tree is never touched. - Phase 1 — Implement: all coding flows through the
ulw-loopskill, which forces every success criterion to be proven by evidence-bound manual QA written to disk (tmux / HTTP / browser / GUI). No evidence file → no commit, no push. Includes minimum-commit ratios based on files changed. - Phase 2 — PR creation: a reviewer-friendly English PR body template (Summary / Changes / QA & Evidence / Risks & Residuals / Related Issues), plus guardrails against pasting secret-bearing logs or committing temp screenshots.
- Phase 3 — Verification loop: unbounded iteration over Gate A (
gh pr checks) and Gate B (thecubic-dev-ai[bot]review). Any failing gate routes back to Phase 1 for a scoped fix and fresh QA; Cubic may only be SKIPPED when its quota is exhausted, never because it found issues. - Phase 4 — Merge & cleanup: arms
gh pr merge --merge --auto, blocks until the PR is actually MERGED, syncs.omostate back to the main repo, then removes and prunes the worktree. A failure-recovery section deliberately keeps the worktree alive when something breaks.
Who it's for
- Team leads who want agent-written code to land as reviewable PRs, not ad-hoc commits
- Developers pushing an atomic-PR culture (a 200-line PR gets a real review; a 2000-line one gets rubber-stamped)
- Anyone tired of babysitting the red-CI → fix → re-push cycle
- Repos already on GitHub CLI, GitHub Actions, and an automated review bot
Example uses
- "Implement this issue and open a PR" — the issue is split into three atomic PRs; two independent ones build in parallel worktrees, each running its own CI loop and auto-merging when green.
- "CI is failing, fix it" — pulls failed logs with
gh run view --log-failed, fixes only the identified cause as an atomic commit, re-QAs if behavior changed, pushes, and restarts verification from Gate A. - "Address the review bot's findings" — parses the Cubic review body, separates real issues from false positives, fixes the real ones, and waits for a fresh review until it reports "No issues found".
Caveat: the doc hard-codes a
devbase branch,buncommands, the Cubic bot,.omostate and a companionulw-loopskill. Adapt those to your own stack before relying on it.
· · · Install guide · · ·
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the .agents/skills/work-with-pr folder from the GitHub repo code-yeongyu/oh-my-openagent into my ~/.claude/skills/work-with-pr/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/code-yeongyu/oh-my-openagent.git /tmp/oh-my-openagent && mkdir -p ~/.claude/skills && cp -r /tmp/oh-my-openagent/.agents/skills/work-with-pr ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal and clone the repository into a temp folder:
git clone https://github.com/code-yeongyu/oh-my-openagent.git /tmp/oh-my-openagent - Create the Claude Code skills directory if it doesn't exist:
mkdir -p ~/.claude/skills - Copy the skill folder in:
cp -r /tmp/oh-my-openagent/.agents/skills/work-with-pr ~/.claude/skills/ - Make sure prerequisites are met: GitHub CLI installed and authenticated (
gh auth login), plus push/PR permission on the target repo. - Open
~/.claude/skills/work-with-pr/SKILL.mdand edit the repo-specific bits:BASE_BRANCH="dev", thebun run typecheck / bun test / bun run buildcommands, and the Cubic bot gate. If you don't have theulw-loopskill, replace Phase 1 with your own implementation loop. - Restart Claude Code and confirm
work-with-prshows up in your skills list. - Try it on a throwaway repo first — e.g. "implement X and open a PR" — before pointing it at production branches, since it enables auto-merge by default.
View source on GitHub ↗License: NOASSERTION