name: gha description: Diagnóstico de GitHub Actions failures triggers:
- "/gha"
- "github actions"
- "ci failed"
- "workflow failed"
- "build failed"
GitHub Actions Diagnostics
Diagnóstico automático de falhas em GitHub Actions.
Uso
/gha # Verifica último workflow run
/gha [run_id] # Analisa run específico
/gha --flaky # Identifica testes flaky
/gha --history # Histórico de falhas
O Que Faz
- Busca último workflow run com falha
- Baixa logs do job
- Analisa erro e identifica causa raiz
- Sugere correção
Execução Manual
Se precisar debugar manualmente:
# Listar workflows
gh run list --limit 10
# Ver detalhes de um run
gh run view [RUN_ID]
# Baixar logs
gh run view [RUN_ID] --log
# Ver jobs de um run
gh run view [RUN_ID] --job [JOB_ID]
Análise Automática
Quando acionado, JARVIS irá:
- Executar
gh run list --status failure --limit 5 - Identificar o run mais recente
- Executar
gh run view [ID] --log - Analisar os logs buscando:
- Erros de teste
- Erros de build
- Erros de lint
- Timeout
- Dependências faltando
- Reportar causa provável e sugerir fix
Padrões Comuns de Erro
| Padrão | Causa Provável | Sugestão |
|---|---|---|
npm ERR! |
Dependência | npm ci ou limpar cache |
ENOENT |
Arquivo faltando | Verificar paths |
timeout |
Teste lento/flaky | Aumentar timeout ou otimizar |
FAILED em test |
Teste quebrado | Ver stack trace |
TypeScript error |
Tipo incorreto | Fix no código |
ESLint |
Lint error | Auto-fix ou manual |
Exemplo de Output
╔══════════════════════════════════════════════════════════════════════════════╗
║ GITHUB ACTIONS DIAGNOSTIC ║
╠══════════════════════════════════════════════════════════════════════════════╣
║ Run ID: 12345678 ║
║ Workflow: CI ║
║ Status: FAILED ║
║ Duration: 3m 42s ║
╠══════════════════════════════════════════════════════════════════════════════╣
║ CAUSA RAIZ: ║
║ Test failure in src/__tests__/api.test.ts:42 ║
║ ║
║ Error: Expected 200, got 404 ║
║ ║
║ SUGESTÃO: ║
║ O endpoint /api/users foi removido ou renomeado. ║
║ Verificar se o route existe em src/routes/users.ts ║
╚══════════════════════════════════════════════════════════════════════════════╝
chat Comments (0)
Sign in to join the discussion and leave a comment.
Skill Details
GitHub Stars
92
GitHub Forks
66
Created
Mar 2026
Last Updated
il y a 3 mois
tools
tools debugging
Related Skills
Build your own?
Join 12,000+ developers contributing to the Claude ecosystem.
No comments yet. Be the first to share your thoughts!