How this skill is triggered — by the user, by Claude, or both
Slash command
/devops:ci-autofixopusThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
**IMPORTANT : Exécute ce workflow étape par étape :**
IMPORTANT : Exécute ce workflow étape par étape :
Parser les logs d'échec CI GitHub Actions et lancer des agents correcteurs pour résoudre automatiquement les erreurs.
$ARGUMENTS (numéro de PR, ou la PR courante si non spécifié)
# Si PR number fourni
PR_NUMBER=${ARGUMENTS:-$(gh pr view --json number -q '.number')}
# Récupérer les derniers runs CI en échec
gh run list --branch "$(gh pr view $PR_NUMBER --json headRefName -q '.headRefName')" --status failure --limit 5
Utiliser le script parse_ci_logs.sh :
bash "${CLAUDE_PLUGIN_ROOT}/scripts/parse_ci_logs.sh" "$PR_NUMBER"
Grouper les erreurs par type :
| Catégorie | Exemples | Agent correcteur |
|---|---|---|
| Linting | PHPStan, CS-Fixer, ESLint | @phpstan-error-resolver ou Edit direct |
| Tests | PHPUnit failures | Analyse + correction du code testé |
| Build | Composer install, npm build | Correction de config |
| Types | Type errors, missing imports | Edit direct |
TaskCreate : "Corriger erreurs linting (X erreurs)"
TaskCreate : "Corriger erreurs tests (Y tests en échec)"
TaskCreate : "Corriger erreurs build (Z erreurs)"
Pour chaque catégorie d'erreurs :
@phpstan-error-resolver si erreurs PHPStanvendor/bin/php-cs-fixer fix si erreurs de styleAprès toutes les corrections :
git add -A
git commit -m "fix: corrections automatiques CI"
git push
Attendre le résultat CI :
gh run watch --exit-status
CI corrigée (tentative X/3)
Erreurs corrigées :
- PHPStan : X erreurs
- Tests : Y tests
- Build : Z erreurs
Commits ajoutés : N
CI status : passing
Ou en cas d'échec :
CI non résolue après 3 tentatives
Erreurs restantes :
- {liste des erreurs non résolues}
Action requise : correction manuelle
@phpstan-ignore* (utiliser les vraies corrections)npx claudepluginhub atournayre/claude-personas --plugin devopsDetects GitHub Actions CI failures in PRs, analyzes logs with gh CLI, fixes code, commits and pushes changes, then re-verifies up to 3 retries until passing.
Diagnoses and fixes GitHub Actions CI failures in pull requests by fetching job logs, identifying root causes like build or test errors, and proposing targeted code changes.
Iterates on a PR until CI passes. Automatically fixes CI failures, addresses categorized review feedback, and pushes fixes until all checks are green.