🎯

pr-stacking

🎯Skill

from bumgeunsong/daily-writing-friends

VibeIndex|
What it does

Enables developers to break large features into smaller, dependent PRs for incremental development and easier code reviews.

πŸ“¦

Part of

bumgeunsong/daily-writing-friends(12 items)

pr-stacking

Installation

git cloneClone repository
git clone https://github.com/BumgeunSong/daily-writing-friends.git
npm runRun npm script
npm run dev
πŸ“– Extracted from docs: bumgeunsong/daily-writing-friends
1Installs
-
AddedFeb 4, 2026

Skill Details

SKILL.md

PR stacking workflow for breaking large features into smaller, dependent PRs. Use when planning multi-step features, creating dependent branches, or rebasing stacked changes.

Overview

# PR Stacking

Break large features into logical, dependent PRs for better code quality and easier reviews.

Prerequisites

```bash

# Install GitHub CLI (required for PR creation)

brew install gh # macOS

# or: sudo apt install gh # Ubuntu/Debian

# Authenticate

gh auth login

```

When to Stack

Stack PRs when:

  • Feature spans multiple logical steps (frontend + backend, model + UI)
  • Change exceeds ~300 lines of diff
  • Work can be merged incrementally

Skip stacking for:

  • Single-purpose bug fixes
  • Small, isolated changes
  • Refactoring within one file

Quick Start

```bash

# 1. Create first PR branch from main

git checkout main && git pull

git checkout -b feat/user-api

# 2. Make changes, commit, push

git add . && git commit -m "Add user API endpoint"

git push -u origin feat/user-api

# 3. Stack: create dependent branch FROM current branch

git checkout -b feat/user-ui # branches from feat/user-api

# 4. Continue working on dependent changes

git add . && git commit -m "Add user profile component"

git push -u origin feat/user-ui

```

Core Workflow

Branch Naming

```

feat/-1- # First in stack

feat/-2- # Second in stack

feat/-3- # Third in stack

```

Example:

```

feat/dark-mode-1-theme-context

feat/dark-mode-2-toggle-component

feat/dark-mode-3-persist-preference

```

PR Descriptions

Include stack context in PR body:

```markdown

Stack Context

  • Depends on: #123 (theme context)
  • Followed by: #125 (persist preference)

This PR

Adds toggle component for switching themes.

```

Merge Order

Merge from bottom to top:

  1. Merge base PR first (#123 theme context)
  2. Rebase dependent PR onto updated main
  3. Merge next PR (#124 toggle component)
  4. Repeat until stack is fully merged

Rebasing Stacked Branches

When base PR changes:

```bash

# Update base branch

git checkout feat/dark-mode-1-theme-context

git pull origin feat/dark-mode-1-theme-context

# Rebase dependent branch

git checkout feat/dark-mode-2-toggle-component

git rebase feat/dark-mode-1-theme-context

# Force push (branch only, never main)

git push --force-with-lease

```

References

  • [references/workflow-steps.md](references/workflow-steps.md) - Detailed step-by-step guide
  • [references/rebase-guide.md](references/rebase-guide.md) - Handling conflicts and rebasing

More from this repository10

🎯
refactoring🎯Skill

Refactors code by extracting pure functions from side-effect-laden logic, enabling easier testing and maintainability.

🎯
code-style🎯Skill

Enforces clean, readable code by providing guidelines for function design, naming conventions, and code clarity principles.

🎯
testing🎯Skill

Enforces output-based testing of pure functions, guiding developers to write testable code by focusing on functional core transformations.

🎯
react-hook🎯Skill

I apologize, but I cannot generate a description without seeing the specific details about the "react-hook" skill from the repository. Could you provide more context or details about what this part...

🎯
daily-writing-friends-design🎯Skill

Provides a comprehensive design system for Daily Writing Friends, ensuring consistent UI components, styling, and accessibility across the application.

🎯
api-layer🎯Skill

Manages API interactions and request handling for the Daily Writing Friends application, facilitating communication between frontend and backend services.

🎯
skill-creator🎯Skill

Guides developers in designing Claude Skills using progressive disclosure, optimizing skill architecture and content creation.

🎯
fetching-pr-comments🎯Skill

Retrieves and parses GitHub PR review comments for the current branch using GitHub CLI, enabling quick review of code-level feedback.

🎯
firebase-functions🎯Skill

Streamlines Firebase Cloud Functions development with structured TypeScript patterns, error handling, and organized function implementations.

🎯
commit🎯Skill

Stages and commits git changes following specific Korean commit message guidelines for clean, meaningful version control.