git-workflow
Git workflow - Boas práticas para branches, commits e PRs
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Git workflow - Boas práticas para branches, commits e PRs
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
Especialista em produção e marketing de podcasts. Pesquisa convidados, cria perguntas inteligentes e memoráveis, sugere estruturas de episódio e ideias de marketing. Sempre aprende sobre o podcast do usuário primeiro. Use com /podcast ou quando o usuário mencionar podcast, entrevista, convidado, perguntas para entrevistar, ou preparar episódio.
You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.
Automatic agent selection and intelligent task routing. Analyzes user requests and automatically selects the best specialist agent(s) without requiring explicit user mentions.
API Design - Princípios RESTful e boas práticas
Padrões de arquitetura de software - Decisões OBJETIVAS sobre design de sistemas
SOC 직업 분류 기준
| name | git-workflow |
| description | Git workflow - Boas práticas para branches, commits e PRs |
| version | 1.0.0 |
| category | workflow |
| triggers | ["git","branch","commit","merge","rebase","pull request","pr","versão","release"] |
| tools | [] |
| author | liquid-ai |
| based_on | obra/superpowers |
Esta skill implementa um workflow Git consistente para desenvolvimento em equipe.
main (ou master)
│
├── develop
│ │
│ ├── feature/user-auth
│ ├── feature/payment-flow
│ └── feature/dashboard-v2
│
├── release/v1.2.0
│
└── hotfix/critical-bug
| Tipo | Pattern | Exemplo |
|---|---|---|
| Feature | feature/<descrição> | feature/user-authentication |
| Bugfix | bugfix/<issue-id> | bugfix/issue-123 |
| Hotfix | hotfix/<descrição> | hotfix/security-patch |
| Release | release/<version> | release/v1.2.0 |
| Experiment | experiment/<descrição> | experiment/new-cache |
Regras de Nomenclatura:
<type>(<scope>): <description>
[optional body]
[optional footer(s)]
Types:
| Type | Quando Usar |
|---|---|
feat | Nova funcionalidade |
fix | Correção de bug |
docs | Apenas documentação |
style | Formatação (não afeta código) |
refactor | Refatoração (sem feat/fix) |
perf | Melhoria de performance |
test | Adição/correção de testes |
chore | Manutenção (build, deps, etc) |
ci | Mudanças em CI/CD |
Exemplos:
# Feature
feat(auth): add OAuth2 login with Google
# Bug fix
fix(api): handle null response from payment gateway
Closes #123
# Breaking change
feat(api)!: change response format for /users endpoint
BREAKING CHANGE: response now returns array instead of object
┌─────────────────────────────────────────────────────────────┐
│ 1. Commits atômicos - Uma mudança lógica por commit │
│ 2. Mensagem clara - Explica O QUE e POR QUÊ │
│ 3. Presente imperativo - "Add feature" não "Added" │
│ 4. Max 72 chars no título │
│ 5. Body para contexto adicional │
└─────────────────────────────────────────────────────────────┘
Commit Atômico - Exemplos:
# ❌ RUIM - Múltiplas mudanças
git commit -m "Add login, fix header, update deps"
# ✅ BOM - Commits separados
git commit -m "feat(auth): add login form"
git commit -m "fix(ui): correct header alignment"
git commit -m "chore(deps): update React to v18"
# Atualizar develop
git checkout develop
git pull origin develop
# Criar branch
git checkout -b feature/minha-feature
# Trabalhar...
git add .
git commit -m "feat(scope): description"
# Opção 1: Rebase (preferido para features)
git fetch origin
git rebase origin/develop
# Opção 2: Merge (se já compartilhou a branch)
git fetch origin
git merge origin/develop
# Durante rebase
git rebase origin/develop
# Se conflito:
# 1. Resolver conflitos nos arquivos
# 2. git add <arquivos-resolvidos>
# 3. git rebase --continue
# Se quiser abortar
git rebase --abort
# Squash commits se necessário
git rebase -i HEAD~<numero-de-commits>
# Marcar commits para squash (s) ou fixup (f)
# Push
git push origin feature/minha-feature
# Se já fez push antes e rebased
git push --force-with-lease origin feature/minha-feature
## Descrição
[O que este PR faz e por quê]
## Tipo de Mudança
- [ ] Feature nova
- [ ] Bug fix
- [ ] Refatoração
- [ ] Documentação
- [ ] Outro: ___
## Como Testar
1. [Passo 1]
2. [Passo 2]
3. [Resultado esperado]
## Checklist
- [ ] Código segue padrões do projeto
- [ ] Testes adicionados/atualizados
- [ ] Documentação atualizada
- [ ] Sem breaking changes (ou documentado)
## Screenshots (se aplicável)
[Imagens aqui]
## Issues Relacionadas
Closes #123
┌─────────────────────────────────────────────────────────────┐
│ IDEAL: < 400 linhas de código │
│ MÁXIMO: 1000 linhas (divida se maior) │
│ │
│ PRs menores = Reviews melhores = Menos bugs │
└─────────────────────────────────────────────────────────────┘
# Descartar mudanças não commitadas
git checkout -- <arquivo>
git restore <arquivo> # Git 2.23+
# Desfazer último commit (mantém mudanças)
git reset --soft HEAD~1
# Desfazer último commit (descarta mudanças)
git reset --hard HEAD~1
# Reverter commit já pushed
git revert <commit-hash>
# Guardar mudanças
git stash
git stash save "descrição"
# Listar stashes
git stash list
# Recuperar último stash
git stash pop
# Recuperar stash específico
git stash apply stash@{2}
# Log bonito
git log --oneline --graph --all
# Buscar em commits
git log --grep="palavra"
# Buscar quem mudou linha
git blame <arquivo>
# Buscar quando código foi adicionado
git log -S "código" --source --all
# Aplicar commit específico na branch atual
git cherry-pick <commit-hash>
# Cherry-pick sem commitar
git cherry-pick -n <commit-hash>
# Se ainda não fez push
git reset --soft HEAD~1
git stash
git checkout branch-correta
git stash pop
git commit -m "mensagem"
# Apenas último commit, não pushed
git commit --amend -m "nova mensagem"
# Commits mais antigos
git rebase -i HEAD~3
# Marcar commit com 'reword'
# Se não fez push
git reset --hard HEAD~1
# Se já fez push
git revert -m 1 <merge-commit-hash>
# Opção 1: Rebase incremental
git fetch origin
git rebase origin/develop
# Resolver conflitos commit a commit
# Opção 2: Merge
git merge origin/develop
# Resolver todos conflitos de uma vez
| Anti-Pattern | Problema | Solução |
|---|---|---|
git add . cego | Commita arquivos indesejados | git add -p ou review antes |
| Force push em shared branch | Perde trabalho dos outros | Use --force-with-lease |
| Commits gigantes | Difícil review e rollback | Commits atômicos |
| Branch de longa vida | Conflitos acumulam | Merge frequente ou feature flags |
| Mensagens vagas | "fix stuff", "wip" | Conventional commits |
Esta skill ativa AUTOMATICAMENTE quando: