gha
Diagnóstico de GitHub Actions failures
Installation
Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.
View source ↗GuidesSkill instructions
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 ║
╚══════════════════════════════════════════════════════════════════════════════╝
Examples
Read the usage examples in the source repository.
View source ↗Source history
- Indexed on
- 2026-03-11
- Index updated
- 2026-03-11
- Branch
- main
Index and sync dates describe this directory. View the source repository for code history.
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!