Loading...
Loading...
PR stacking workflow for breaking large features into smaller, dependent PRs. Use when planning multi-step features, creating dependent branches, or rebasing stacked changes.
npx skill4agent add bumgeunsong/daily-writing-friends pr-stacking# Install GitHub CLI (required for PR creation)
brew install gh # macOS
# or: sudo apt install gh # Ubuntu/Debian
# Authenticate
gh auth login# 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-uifeat/<feature>-1-<step> # First in stack
feat/<feature>-2-<step> # Second in stack
feat/<feature>-3-<step> # Third in stackfeat/dark-mode-1-theme-context
feat/dark-mode-2-toggle-component
feat/dark-mode-3-persist-preference## Stack Context
- **Depends on**: #123 (theme context)
- **Followed by**: #125 (persist preference)
## This PR
Adds toggle component for switching themes.# 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