← ClaudeAtlas

work-with-prlisted

Full PR lifecycle: git worktree → implement → atomic commits → PR creation → verification loop (CI + review-work + Cubic approval) → merge. Keeps iterating until ALL gates pass and PR is merged. Worktree auto-cleanup after merge. Use whenever implementation work needs to land as a PR. Triggers: 'create a PR', 'implement and PR', 'work on this and make a PR', 'implement issue', 'land this as a PR', 'work-with-pr', 'PR workflow', 'implement end to end', even when user just says 'implement X' if the context implies PR delivery.
code-yeongyu/oh-my-openagent · ★ 59,905 · AI & Automation · score 83
Install: claude install-skill code-yeongyu/oh-my-openagent
# Work With PR — Full PR Lifecycle You are executing a complete PR lifecycle: from isolated worktree setup through implementation, PR creation, and an unbounded verification loop until the PR is merged. The loop has three gates — CI, review-work, and Cubic — and you keep fixing and pushing until all three pass simultaneously. <architecture> ``` Phase 0: Setup → Branch + worktree in sibling directory Phase 1: Implement → Do the work, atomic commits Phase 2: PR Creation → Push, create PR targeting dev Phase 3: Verify Loop → Unbounded iteration until ALL gates pass: ├─ Gate A: CI → gh pr checks (bun test, typecheck, build) ├─ Gate B: review-work → 5-agent parallel review └─ Gate C: Cubic → cubic-dev-ai[bot] "No issues found" Phase 4: Merge → Merge commit, worktree cleanup ``` </architecture> --- ## Phase 0: Setup Create an isolated worktree so the user's main working directory stays clean. This matters because the user may have uncommitted work, and checking out a branch would destroy it. <setup> ### 1. Resolve repository context ```bash REPO=$(gh repo view --json nameWithOwner -q .nameWithOwner) REPO_NAME=$(basename "$PWD") BASE_BRANCH="dev" # CI blocks PRs to master ``` ### 2. Create branch If user provides a branch name, use it. Otherwise, derive from the task: ```bash # Auto-generate: feature/short-description or fix/short-description BRANCH_NAME="feature/$(echo "$TASK_SUMMARY" | tr '[:upper:] ' '[:lower:]-' | head -c