Claude Skill MartBrowse skillsWhat is a Skill?
Back to list

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 & CodingAdvanced67,5315,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 worktree per 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-loop skill, 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 (the cubic-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 .omo state 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

  1. "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.
  2. "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.
  3. "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 dev base branch, bun commands, the Cubic bot, .omo state and a companion ulw-loop skill. Adapt those to your own stack before relying on it.

· · · Install guide · · ·

Install in the Claude app (no terminal)
  1. Download the ZIP with the button below.
  2. In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
  3. Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Download 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.

  1. 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
    
  2. Create the Claude Code skills directory if it doesn't exist:
    mkdir -p ~/.claude/skills
    
  3. Copy the skill folder in:
    cp -r /tmp/oh-my-openagent/.agents/skills/work-with-pr ~/.claude/skills/
    
  4. Make sure prerequisites are met: GitHub CLI installed and authenticated (gh auth login), plus push/PR permission on the target repo.
  5. Open ~/.claude/skills/work-with-pr/SKILL.md and edit the repo-specific bits: BASE_BRANCH="dev", the bun run typecheck / bun test / bun run build commands, and the Cubic bot gate. If you don't have the ulw-loop skill, replace Phase 1 with your own implementation loop.
  6. Restart Claude Code and confirm work-with-pr shows up in your skills list.
  7. 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 GitHubLicense: NOASSERTION