Back to list
bitsoex

stacked-prs

by bitsoex

Bitso Java API Wrapper

34🍴 30📅 Jan 24, 2026

SKILL.md


name: stacked-prs description: Manage stacked PRs with proper visualization, merge-based updates, and iterative CodeRabbit feedback cycles version: 1.1.0 compatibility: All repositories with GitHub

metadata: category: workflow tags: - pull-requests - git - code-review - coderabbit triggers: - on-demand uses: - coderabbit-interactions - pr-lifecycle

Stacked PRs Workflow

Workflows for managing stacked (dependent) pull requests with proper visualization, merge-based updates, and iterative CodeRabbit review cycles.

Core Principles

  1. No Force Pushes - Always use merge commits, never rebase/force-push
  2. Draft First - PRs start as drafts until CI passes and CodeRabbit approves
  3. Bottom-Up Processing - Address feedback from lowest PR in stack first
  4. Comprehensive Reviews - Address all CodeRabbit comments including nitpicks
  5. Visual Stack - Use PR titles and descriptions to show stack relationships

Skill Contents

Available Resources

references/ - Detailed documentation

scripts/ - Automation scripts


Workflow Overview

PhaseDescriptionReference
CreationCreate stacked PRs with proper titles and descriptionsreferences/pr-formatting.md
UpdatesMerge changes through the stack (no rebasing)references/merge-workflow.md
ReviewsProcess CodeRabbit feedback in cyclesreferences/review-cycles.md
ReadinessMark ready only after CI + CodeRabbit approvalreferences/readiness-checklist.md

Quick Reference

PR Title Format

[JIRA-KEY] type(scope): description (PR N/M)

Stack Visualization (in PR Description)

## PR Stack

| # | PR | Title | Status |
|---|-----|-------|--------|
| 1 | #78 | PNPM migration | Merged |
| 2 | **#79** | Shell to JS | This PR |
| 3 | #80 | Skills content | Depends on #79 |
| 4 | #81 | Validation & CI | Depends on #80 |

Merge Flow (Not Rebase)

# After fixing issues in PR #79
git checkout feat/pr-80-branch
git merge feat/pr-79-branch --no-edit
git push origin feat/pr-80-branch
# Repeat for subsequent PRs in stack

Scripts

ScriptPurpose
scripts/check-stack-status.tsCheck CI and CodeRabbit status for all PRs in stack

References

ReferenceContent
references/pr-formatting.mdPR title and description templates
references/merge-workflow.mdHow to propagate changes through the stack
references/review-cycles.mdProcessing CodeRabbit feedback iteratively
references/readiness-checklist.mdWhen to mark PRs ready for review
references/automation-patterns.mdPolling loops, callbacks, and autonomous operation

Key Requirement: CodeRabbit Approval

PRs should only be marked "Ready for Review" when:

  1. All CI checks pass
  2. All CodeRabbit comments addressed (including nitpicks)
  3. CodeRabbit has approved (happens automatically after addressing feedback)
  4. All previous PRs in the stack are merged

Important: Do NOT explicitly request CodeRabbit approval. It approves automatically after you've addressed all its comments and pushed fixes.

Programmatic Automation

For autonomous AI agents, use polling loops to monitor status:

async function waitForPRReady(prNumber: number, repo: string, maxAttempts = 30, intervalMs = 60000) {
  for (let attempt = 1; attempt <= maxAttempts; attempt++) {
    const status = await checkPRStatus(prNumber, repo);

    if (status.ciPassed && status.coderabbitApproved && status.openComments === 0) {
      return { ready: true, status };
    }

    console.log(`Attempt ${attempt}/${maxAttempts}: CI=${status.ciPassed}, CR=${status.coderabbitApproved}, Comments=${status.openComments}`);

    if (attempt < maxAttempts) {
      await sleep(intervalMs);
    }
  }
  return { ready: false, reason: 'timeout' };
}

See references/automation-patterns.md for complete polling implementations.

Skill Dependencies

SkillPurpose
coderabbit-interactionsThread replies, comment export, local CLI reviews
pr-lifecycleBase PR management patterns
  • .claude/skills/coderabbit-interactions - Detailed CodeRabbit interaction patterns
  • .claude/skills/pr-lifecycle - GitHub CLI commands for PR management

Score

Total Score

65/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

+5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon