Claude Skill Pr Flow
Description
pr-flow: Claude Code skill para governanca de Pull Requests — max 2 PRs abertos, CI obrigatorio, labels padronizadas, branch protection, preflight git-state. Fail-closed.
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
pr-flow
Claude Code skill para governança de Pull Requests. Impõe disciplina de fluxo contínuo em vez de burocracia de revisão.
**Fail-closed por design.** Violação de regra de governança bloqueia a operação com diagnóstico claro. Nada passa silenciosamente.
**Versão atual:** `v1.1.1` — triggering otimizado para detecção automática + ação `team-message` documentada como entrypoint de comunicação padronizada.
O que a skill resolve
Cenário real que motivou a criação: 5 PRs abertos simultaneamente em um repo, nenhuma label, CI opcional, dev commita em `develop` por engano. Tempo de revisão infla, conflitos de merge aparecem, releases travam.
A `pr-flow` impõe:
| Regra | Como |
|---|---|
| Escopo duplicado bloqueado — outro PR aberto toca os mesmos arquivos no mesmo branch alvo | check.sh / preflight-commit.sh fail-closed |
Conflito real bloqueado — git merge-tree detecta <<<<<<< |
check.sh / preflight-commit.sh fail-closed |
Testes obrigatórios — diff em src/ requer arquivo de teste alterado |
check.sh / preflight-commit.sh fail-closed |
Risco crítico bloqueado — auth/payment/billing/migration sem approved/lgtm/security-ok |
check.sh / preflight-commit.sh fail-closed |
| CI verde obrigatório antes do merge | Branch protection em main e develop |
| 1 review aprovada mínima | Branch protection |
Labels padronizadas (ready-to-merge, blocked, needs-review) |
Criadas via gh label create --force |
| Squash merge | Histórico linear |
| Preflight anti commit em branch errada | preflight-commit.sh fail-closed em main/develop |
| Comunicação padronizada ao time após PR | team-message — template estruturado via skill |
Instalação rápida
# baixa o release mais recente e extrai direto:
curl -sSL https://github.com/IanVDev/claude-skill-pr-flow/releases/latest/download/pr-flow.skill \
| tar -xz -C ~/.claude/skills/
# OU instalação validada por checksum
Related Skills
Epic Sync
Sync epic issue bodies, labels, and local coordination snapshots from GitHub.
Git 使用 Git Worktrees
创建孤立的 Git worktrees,带有智能目录选择与安全验证。
Git Claude skills github
[Building agent skills blog](https://www.anthropic.com/engineering/equipping-agents-for-the-real-world-with-ag
Git #148
, [#161](https://github.com/affaan-m/everything-claude-code/pull/161))
Git GitHub MCP
| Token | Repos, issues, PRs, workflows |
Git GitHub MCP Server
Official first-party server to read repos, manage issues/PRs, and automate workflows.
Git