スキル一覧に戻る
bitsoex

pr-lifecycle

by bitsoex

Bitso Java API Wrapper

34🍴 30📅 2026年1月24日
GitHubで見るManusで実行

SKILL.md


name: pr-lifecycle description: GitHub CLI commands and workflows for managing pull requests, CI checks, CodeRabbit reviews, and branch protection version: 1.1.0 compatibility: All repositories with GitHub

metadata: category: workflow tags: - pull-requests - git - github-cli - code-review - branch-protection - stacked-prs triggers: - on-demand uses: - coderabbit-interactions - jira-workflow - stacked-prs

PR Lifecycle Management

Comprehensive workflows for managing pull requests using GitHub CLI (gh), including CI checks, CodeRabbit reviews, stacked PRs, and branch protection.

Core Principles

  1. Never Work on Main - All work must happen on feature/fix/chore branches
  2. Auto-Assignment - Always assign PRs to the current user after creation
  3. Prevent Terminal Buffering - Use echo wrappers for gh commands
  4. Conventional Commits - Follow conventional commit format for all commits

Skill Contents

Sections

Available Resources

references/ - Detailed documentation


Workflow Overview

PhaseDescriptionReference
Branch SetupCreate feature branches, never commit to mainreferences/branch-protection.md
PR CreationCreate draft PRs with proper formattingreferences/pr-creation.md
CI & ReviewsMonitor CI, respond to CodeRabbitreferences/coderabbit-integration.md
CommitsUse conventional commit formatreferences/commit-formats.md

Quick Reference

Branch Naming Convention

{type}/{JIRA-KEY}-{description}
  • feat/ - New features
  • fix/ - Bug fixes
  • chore/ - Maintenance
  • docs/ - Documentation
  • refactor/ - Code restructuring

Prevent Terminal Buffering

# Always use echo wrapper for gh commands
echo "Checking..." ; gh pr checks 123 --repo owner/repo ; echo "Done"

Create and Assign PR

CURRENT_USER=$(gh api user --jq '.login')

PR_URL=$(gh pr create --draft \
    --title "[JIRA-KEY] fix(security): description" \
    --body "## Summary..." \
    --repo owner/repo 2>&1)

PR_NUMBER=$(echo "$PR_URL" | grep -oE '[0-9]+$')
gh pr edit $PR_NUMBER --repo owner/repo --add-assignee "$CURRENT_USER"

Stacked PRs

For dependent changes, use stacked PRs with proper visualization:

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 |

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

See .claude/skills/stacked-prs for complete stacked PR workflows.

CodeRabbit Integration

Key Requirements

  1. All CI checks must pass before marking ready
  2. Address all CodeRabbit comments including nitpicks
  3. CodeRabbit approves automatically after addressing feedback

Co-Author for CodeRabbit Fixes

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

See .claude/skills/coderabbit-interactions for detailed patterns.

References

ReferenceContent
references/branch-protection.mdBranch naming, never commit to main
references/pr-creation.mdPR creation with auto-assignment
references/coderabbit-integration.mdCodeRabbit status checks and thread replies
references/commit-formats.mdCommit message templates with attribution
references/troubleshooting.mdCommon issues and solutions

Best Practices

  1. Auto-assign PRs to current user using gh api user --jq '.login'
  2. Include Jira key in branch names, commits, and PR titles
  3. Always use echo wrapper for gh commands to prevent buffering
  4. Always specify --repo owner/repo to avoid directory context issues
  5. Use GraphQL API for review threads, comments, and replies
  6. Work on other tasks while CI runs - Don't block on CodeRabbit reviews

Skill Dependencies

SkillPurpose
coderabbit-interactionsThread replies, comment export, local CLI reviews
jira-workflowTicket creation and Jira key integration
stacked-prsStacked PR management and merge workflows
  • .claude/skills/coderabbit-interactions - Detailed CodeRabbit interaction patterns
  • .claude/skills/jira-workflow - Jira ticket workflow
  • .claude/skills/stacked-prs - Stacked PR management

スコア

総合スコア

65/100

リポジトリの品質指標に基づく評価

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

レビュー

💬

レビュー機能は近日公開予定です