From cycle
Provides domain knowledge for multi-PR review orchestration: CodeRabbit/GitHub monitoring patterns, polling strategies, fix dispatch, worktree management. Supports /cycle:pr batch operations.
npx claudepluginhub george-rd/claude-next-level --plugin cycleThis skill uses the workspace's default tool permissions.
Reference knowledge for orchestrating PR review cycles. The procedural workflow lives in `/cycle:pr`; this skill provides the patterns and expertise that workflow depends on.
Fetches unresolved CodeRabbit review comments from GitHub PRs and auto-fixes them interactively or in batch using GitHub CLI and git.
Configures and runs CodeRabbit automated PR code reviews using .coderabbit.yaml for profiles, path filters, instructions, and auto-review triggers on GitHub.
Evaluates CodeRabbit comments on GitHub PRs: classifies as bug/security/performance/style/docs, validates issues, then applies fixes or replies.
Share bugs, ideas, or general feedback.
Reference knowledge for orchestrating PR review cycles. The procedural workflow lives in /cycle:pr; this skill provides the patterns and expertise that workflow depends on.
/cycle:pr is running in multi-PR mode and needs domain knowledgeCodeRabbit and GitHub Actions have predictable timing:
| Event | Typical Delay | What to Check |
|---|---|---|
| Push → CI start | 10-30 sec | gh pr checks <N> |
| Push → CI complete | 1-5 min | gh pr checks <N> (look for all green/red) |
| Push → CodeRabbit review | 1-3 min | gh api repos/{o}/{r}/pulls/{n}/comments |
| Fix push → CodeRabbit re-review | 1-2 min | Same, filter by created_at > last_check |
Optimal cadence: First poll at 2-3 min. Then every 3-5 min. CodeRabbit converges after ~3 rounds — if you're past round 3 and still getting new comments, check for a recurring pattern rather than fixing one-off.
# CI status (pass/fail/pending)
gh pr checks {{PR_NUMBER}}
# Inline review comments (CodeRabbit, humans)
gh api repos/{{OWNER}}/{{REPO}}/pulls/{{PR_NUMBER}}/comments \
--jq '.[] | {id, path, line, body, user: .user.login, created_at}'
# Review summaries (approve/request-changes/comment)
gh api repos/{{OWNER}}/{{REPO}}/pulls/{{PR_NUMBER}}/reviews \
--jq '.[] | {id, state, body, user: .user.login}'
# General PR comments (issue-level)
gh api repos/{{OWNER}}/{{REPO}}/issues/{{PR_NUMBER}}/comments \
--jq '.[] | {id, body, user: .user.login, created_at}'
A PR is clean when ALL of:
gh pr checks shows all greenThe monitoring loop dispatches finite background agents. Each agent:
The agent does NOT wait for re-review. The monitoring loop handles the re-poll.
Located at: templates/pr-agent-prompt.md
Required placeholders:
{{WORKTREE_PATH}}: Working directory (worktree path or repo root){{BRANCH}}: Head branch name{{PR_NUMBER}}: GitHub PR number{{OWNER}} / {{REPO}}: Repository coordinates{{COMMENT_LIST}}: Formatted comment list for the agent to addressAgents sometimes complete edits but stop before committing. The agent prompt template includes a MUST-complete section to prevent this. If an agent still stops early:
| Scenario | Strategy |
|---|---|
| Worktrees available | Dispatch all fix agents in parallel |
| No worktrees, different repos | Parallel is fine |
| No worktrees, same repo | Serialize — one agent at a time |
| Agent already running for a PR | Wait for it to complete |
# Create worktree for a branch
git worktree add ../repo-worktree-<branch-suffix> <branch-name>
# List all worktrees
git worktree list
SKIP_PREPUSH=1 after manual build verificationgit worktree remove <path>git worktree prune periodicallyWhen dispatching agents, always provide the absolute worktree path so the agent can cd directly. Check git worktree list to find it.
Watch for these patterns when reviewing comments across multiple PRs:
| Pattern | Signal | Action |
|---|---|---|
| Same style comment on 2+ PRs | Convention issue | Apply fix to ALL affected PRs |
| Architecture feedback | Structural concern | Evaluate cross-PR impact before fixing |
| Merge conflict warning | Overlapping changes | Merge simpler PR first, rebase others |
| Shared dependency change | Coordination needed | Fix in one PR, verify in others |
.coderabbit.yaml in repo root controls behavior@coderabbitai resolve to mark threads as resolved| CodeRabbit Comment | How to Handle |
|---|---|
| Bug/logic error | Fix immediately — these are high-signal |
| Security issue | Fix immediately |
| Style/nitpick | Fix it — clean PRs merge faster |
| Performance suggestion | Fix if small; issue if large refactor |
| False positive | Reply explaining why it's incorrect |
| Problem | Root Cause | Resolution |
|---|---|---|
| Agent edits but doesn't commit | Agent hit context limit or stopped early | Resume agent or take over manually |
| CI fails on unrelated test | Flaky test or upstream break | gh run rerun --failed or push empty commit |
| Merge conflict post-fix | Base branch moved | git rebase main in the PR branch |
| CodeRabbit not posting | Missing config or rate limit | Check .coderabbit.yaml; close/reopen PR |
| Reviewer requests large refactor | Scope creep | Create follow-up issue; keep PR focused |
| Agent infinite loop | Keeps re-fixing same thing | Stop after 3 identical fixes; escalate to user |
| Worktree in bad state | Uncommitted changes or detached HEAD | git worktree remove --force + recreate |