breakup-pr
O que ela faz
Esta skill divide uma mudança grande de código em fatias verticais de funcionalidade, cada uma entregue como um pull request empilhado. É para desenvolvedores cuja mudança é grande demais para revisar e que querem entregá-la em etapas seguras.
Quando usar
- ✓Quando um pull request é grande demais para um revisor ler com conforto.
- ✓Quando você quer dividir uma funcionalidade em pull requests menores que se apoiam uns nos outros.
- ✓Quando você quer que todas as partes de uma funcionalidade sejam entregues juntas atrás de uma mesma feature flag.
Link da skill
https://github.com/lightdash/lightdash/blob/main/.claude/skills/breakup-pr/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Meu pull request altera o banco de dados, a API e o frontend. Divida-o em fatias empilhadas que eu possa revisar uma de cada vez.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
A skill planeja um conjunto de fatias verticais, cada uma sendo uma mudança pequena que pode ser mesclada e verificada sozinha. Ela cria os pull requests empilhados com a ferramenta de pilha, e todas as fatias ficam atrás de uma mesma feature flag.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do GitHub.
Break Up PR into Vertical Feature Slices
You are splitting a large PR into vertical feature slices — each slice is an independently mergeable, CI-green stacked PR delivered via gh stack (see the /gh-stack skill for commands).
All slices are gated behind a single shared feature flag so the feature ships atomically when the flag is enabled.
Why Vertical Slices?
Large PRs are hard to review, hard to reason about, and risky to merge. Vertical slicing solves this by breaking work into small, focused changes that are easier to understand and safer to ship.
Easier code review:
- Reviewers can focus on one concern at a time (e.g., "just the migration" or "just the API")
- Each PR tells a clear story — what changed and why is obvious from the diff
- Smaller diffs mean faster reviews and higher-quality feedback
- Comments and discussions stay focused instead of sprawling across unrelated changes
Iterative improvement:
- Each slice can be reviewed, refined, and merged independently
- Feedback on early slices (e.g., schema design) can inform later slices before they're written
- If a later slice needs rework, earlier slices are already safely merged
- The stack shows a natural progression — reviewers understand the "journey" of the feature
Safer delivery:
- Smaller changes = smaller blast radius if something goes wrong
- Issues are easier to bisect — you know exactly which slice introduced a problem
- Rollback is surgical: revert one slice, not the whole feature
- CI catches issues earlier in the stack, before dependent code is written
Better collaboration:
- Multiple people can review different slices in parallel
- Stack structure makes dependencies explicit — no guessing what to review first
- Merge conflicts are localized to individual slices
- Progress is visible: "3 of 5 PRs merged" is clearer than "PR still in review"
The feature flag unifies it all: Even though slices merge incrementally, the feature flag keeps everything hidden until you're ready to ship. Merge with confidence, ship when ready.
Process
Step 1: Analyze the PR
If given a PR URL, fetch and analyze the diff:
gh pr diff <PR_NUMBER>
If on a branch, analyze the diff against main:
git diff main...HEAD
Understand:
- What files are changed and why
- The dependency graph between changes (schema → backend → frontend)
- What constitutes a "vertical" — an independently testable slice of functionality
Step 2: Identify the Feature Flag
Determine the feature flag name for this feature:
- Check if the PR already uses a feature flag — if so, reuse it
- If not, create one following the naming convention: kebab-case (e.g.,
my-new-feature)
The feature flag goes in packages/common/src/types/featureFlags.ts:
export enum FeatureFlags {
// ... existing flags
MyNewFeature = 'my-new-feature',
}
CRITICAL: The same feature flag is used for ALL vertical slices. This ensures the entire feature is gated atomically.
Step 3: Plan the Vertical Slices
Break the PR into vertical slices ordered by dependency (bottom of stack = first to merge):
What is a vertical slice? A vertical slice is a thin, end-to-end piece of user-facing functionality that cuts through all architectural layers (migration + types + backend + API + frontend). Each slice delivers something a user could test or demo, even if it's narrow.
How to identify slices: Think about the feature from the user's perspective. Ask: "What are the distinct things a user can do with this feature?" Each answer is a candidate slice.
For example, a "content verification" feature might slice as:
- Admin can verify/unverify a chart (migration + model + service + API + UI — but only for charts)
- Admin can verify/unverify a dashboard (extend to dashboards)
- Verified badge appears in search and content browser
- Editing content auto-removes verification
- Admin settings panel to view all verified content
Each slice touches every layer it needs — that's what makes it vertical.
Anti-pattern: horizontal/layer slicing Do NOT slice by architectural layer (e.g., "PR 1: migration", "PR 2: backend types", "PR 3: API", "PR 4: frontend"). This produces PRs that aren't independently testable and forces reviewers to hold the whole feature in their head across multiple PRs.
Slicing guidelines:
- Start with the narrowest end-to-end path — the simplest user action that exe
Perguntas frequentes
O que é uma fatia vertical?
É uma parte pequena e completa de uma funcionalidade que pode ser revisada e mesclada por conta própria.
A funcionalidade é entregue em partes?
Não, todas as fatias ficam atrás de uma mesma feature flag, então a funcionalidade é ativada de uma vez.
Qual ferramenta cria a pilha?
A skill usa os comandos gh stack da skill gh-stack.
Detalhes
Descrição original do autor
Break up a large PR into vertical feature slices delivered incrementally as stacked PRs via `gh stack`. All verticals share a single feature flag so the entire feature ships atomically. Use when: splitting a large PR, breaking up a diff, vertical slicing, incremental delivery, phased rollout, or when a PR is too large to review.
repo: lightdash/lightdash
Popularidade
- Estrelas no GitHub
- 6,2 mil
- Posição no ranking
- #14394
- Licença
- —
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
lightdash-agent-slack-messaging
6,2 milAjuda seu agente a escrever relatórios de manutenção e de atividade claros e amigáveis para administradores do Lightdash, baseados apenas nas evidências disponíveis.
developing-in-lightdash
6,2 milAjuda seu agente a ler, criar e editar dashboards e gráficos do Lightdash como JSON, incluindo as configurações de cada tipo de gráfico.
filter-expressions
6,2 milAjuda seu agente a escrever expressões de filtro corretas para consultas de métricas do Lightdash, incluindo filtros em métricas personalizadas.
mcp-artifact-integration
6,2 milAjuda seu agente a mostrar resultados de consultas do Lightdash dentro de um artefato HTML ou React, tratando os estados de carregamento, erro e vazio.
Skills parecidas
diffs
394 milPermite que seu agente gere um diff real e compartilhável das edições, como link de visualização ou arquivo de imagem, em vez de um resumo escrito à mão.
coding-agent
394 milAjuda seu agente a passar um trabalho grande de programação para o Codex, Claude Code ou OpenCode em segundo plano e acompanhar o andamento.
gh-issues
394 milAjuda seu agente a encontrar issues do GitHub, escolher quais resolver e abrir pull requests com correções, acompanhando os comentários de revisão.