Agent skill
git-workflow
Automacao de operacoes git
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/git-workflow-brunoccteixeira-ta-na-mao
SKILL.md
Criar Nova Branch
# Feature
git checkout -b feat/nome-da-feature
# Bug fix
git checkout -b fix/descricao-do-bug
# Documentacao
git checkout -b docs/o-que-documenta
Commit Atomico
# Adicionar arquivos especificos (preferivel)
git add backend/app/services/novo_servico.py
git add backend/tests/test_novo_servico.py
# Commit com mensagem descritiva
git commit -m "feat: Adiciona servico de consulta de BPC
- Implementa consulta por CPF
- Adiciona cache Redis
- Inclui testes unitarios"
Padroes de Mensagem
| Prefixo | Uso |
|---|---|
feat: |
Nova funcionalidade |
fix: |
Correcao de bug |
docs: |
Documentacao |
refactor: |
Refatoracao sem mudar comportamento |
test: |
Adicao/correcao de testes |
chore: |
Manutencao (deps, configs) |
Sincronizar com Main
# Fetch das mudancas remotas
git fetch origin
# Rebase na main (preferivel a merge)
git rebase origin/main
# Se houver conflitos
git status # Ver arquivos em conflito
# Resolver manualmente
git add <arquivos>
git rebase --continue
Push e PR
# Push da branch
git push -u origin feat/nome-da-feature
# Criar PR
gh pr create --title "feat: Titulo" --body "Descricao"
# Ver status do PR
gh pr status
Desfazer Mudancas
Ultimo commit (nao pushado)
git reset --soft HEAD~1 # Mantem mudancas staged
git reset --hard HEAD~1 # Descarta mudancas (cuidado!)
Arquivo especifico
git checkout -- caminho/arquivo.py
Mudancas staged
git reset HEAD caminho/arquivo.py
Stash (guardar temporariamente)
# Guardar
git stash push -m "WIP: descricao"
# Listar
git stash list
# Recuperar
git stash pop
Ver Historico
# Commits recentes
git log --oneline -10
# Commits da branch atual vs main
git log origin/main..HEAD --oneline
# Mudancas de um arquivo
git log --follow -p -- caminho/arquivo.py
Aliases Uteis
# Adicionar no ~/.gitconfig
[alias]
st = status
co = checkout
br = branch
cm = commit -m
lg = log --oneline -10
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?