# CI Error Resolution

> ===SKILL:CI_ERROR_RESOLUTION===

- Skill: `elevanaltd-hestai-mcp/ci-error-resolution` (Agent Skill)
- Install (CLI): `npx skillmds@latest add elevanaltd-hestai-mcp/ci-error-resolution`
- Raw SKILL.md: https://api.skillmd.com/api/skills/elevanaltd-hestai-mcp/ci-error-resolution/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: elevanaltd (https://skillmd.com/u/elevanaltd-hestai-mcp)
- Updated: 2026-09-21
- Page: https://skillmd.com/skills/elevanaltd-hestai-mcp/ci-error-resolution

---

===SKILL:CI_ERROR_RESOLUTION===
META:
  TYPE::SKILL
  VERSION::"1.0"
  PURPOSE::"Protocol for systematic CI pipeline failure resolution"

§1::RESOLUTION_PROTOCOL
PHASES::[
  LOCAL_VALIDATION::"Ensure 'npm run {audit,lint,typecheck,test,build}' all pass locally first",
  BRANCH_STRATEGY::"Create 'fix/ci-errors-{timestamp}' branch for isolation",
  ITERATION_LOOP::"Check CI status -> Fetch logs -> Analyze -> Fix -> Commit -> Push -> Wait",
  VERIFICATION::"Confirm all checks pass via 'gh pr checks'"
]

§2::ERROR_HANDLING
ISSUES::[
  GH_NOT_FOUND::"Install GitHub CLI or skip autonomous loop",
  PERMISSION_DENIED::"Check git credentials, use SSH",
  CI_NOT_TRIGGERED::"Check .github/workflows/ triggers",
  TIMEOUT::"Increase wait time or reduce max iterations"
]

§3::METRICS
TRACK::[
  AVERAGE_ITERATIONS::"Count commits to green",
  FAILURE_TYPES::"Categorize (Lint vs Test vs Build)",
  AUTONOMOUS_SUCCESS::"Rate of resolution without human intervention"
]

===END===

