Skill Details
Runtime
(claude-5-5-sonnet)
Example user message
[userMessage]: I have 18 modified files on feature/auth-v2 mixing TypeScript interfaces, middleware refactors, and new OAuth routes. Can you break this branch down into stacked micro-PRs?
Example agent response
## Stacked Micro-PR Topology (`feature/auth-v2` -> 3 Stacked PRs)
To ensure zero broken intermediate builds and keep every review under 250 LOC, here is the topological decomposition ordered by AST import dependencies:
| Stack Order | Branch Name | Base Branch | Scope & Included Files | Est. Diff | Verification Gate |
| :--- | :--- | :--- | :--- | :--- | :--- |
| **PR 1/3** | `stack/01-auth-types-config` | `main` | `src/types/auth.ts`, `src/config/oauth.ts`, `src/schemas/token.schema.ts` | +145 / -12 | `npx tsc --noEmit` |
| **PR 2/3** | `stack/02-auth-middleware-core` | `stack/01-auth-types-config` | `src/middleware/jwt.ts`, `src/services/session.ts`, `tests/unit/jwt.spec.ts` | +210 / -68 | `npm test -- tests/unit/jwt.spec.ts` |
| **PR 3/3** | `stack/03-oauth-routes-e2e` | `stack/02-auth-middleware-core` | `src/routes/oauth.controller.ts`, `src/app.ts`, `tests/e2e/oauth.e2e.ts` | +195 / -24 | `npm run test:e2e` |
### Automated Git Execution Commands
```bash
# 0. Create safety backup of the monolithic branch
git checkout feature/auth-v2
git tag backup/feature-auth-v2-pre-split
# 1. Layer 1: Foundation Types & Schemas
git checkout -b stack/01-auth-types-config main
git checkout feature/auth-v2 -- src/types/auth.ts src/config/oauth.ts src/schemas/token.schema.ts
npx tsc --noEmit
git commit -m "feat(auth): add OAuth2 TypeScript interfaces and token validation schemas"
# 2. Layer 2: Core Middleware & Session Services + Unit Tests
git checkout -b stack/02-auth-middleware-core stack/01-auth-types-config
git checkout feature/auth-v2 -- src/middleware/jwt.ts src/services/session.ts tests/unit/jwt.spec.ts
npm test -- tests/unit/jwt.spec.ts
git commit -m "feat(auth): implement session rotation and JWT verification middleware"
# 3. Layer 3: API Route Controllers & E2E Suite
git checkout -b stack/03-oauth-routes-e2e stack/02-auth-middleware-core
git checkout feature/auth-v2 -- src/routes/oauth.controller.ts src/app.ts tests/e2e/oauth.e2e.ts
npm run test:e2e
git commit -m "feat(auth): wire OAuth2 callback endpoints and end-to-end test suite"
```
Get this skill + 9 more with Select$14 your first month, then $19/mo$14 first month, then $19/mo
View SelectBy purchasing this skill, you agree to our terms of service
CLAUDE-5-5-SONNET
Stop submitting massive, unreviewable pull requests that stall code reviews. Automatically analyze large Git branches and split them into clean, logical, and stacked micro-PRs.
...more
Added 5 days ago
