fix-ci
БесплатноБез исполняемых скриптовНе проверенFind failing PR checks, inspect logs or check links, and apply focused fixes. Routing depends on failure type (build/test/security).
от fmflurry★ 173 звезды на GitHubОб этом скилле
Fix CI
If the current project has .claude/skills/fix-ci/SKILL.md or .opencode/skills/fix-ci/SKILL.md, read it and its references/; project specifics override this generic version.
Trigger
A branch or PR has failing CI checks and needs a fast, iterative path to green.
Workflow
1. Resolve the PR
Extract PR metadata:
gh pr view --json number,url,headRefName,baseRefName
If gh cannot map the SSH host alias (e.g., gh-pro), provide --repo <owner/repo> derived from:
git remote get-url origin
2. Inspect Checks
List all PR-attached checks:
gh pr checks --json name,bucket,state,workflow,link
Identify the first failed or erroring check. Use bucket to filter to actionable states (not "completed" or "skipped").
3. Inspect Logs
For GitHub Actions runs, extract logs:
gh run view <run-id> --log-failed
For external checks (Sonarqube, etc.), follow the link field to the check's page.
4. Derive Routing from Workflow Files
Before applying a fix, read the workflow file(s) to understand the job structure and owner:
GitHub Actions: Read
.github/workflows/*.yml. For the failing job, extract:- Job name and
runs-onplatform stepswithrun:commands (these are your repro steps)needs:(job dependencies)secrets:and Docker image requirements
- Job name and
Azure Pipelines: Read
azure-pipelines.yml. For the failing stage/job:- Stage name and job
pool(platform) stepswithscript:commands (these are your repro steps)- Service connections and Docker image requirements
- Stage name and job
From this analysis, build a job → repro command → owner map. Examples per tech stack:
| Stack | Repro Command | Owner |
|---|---|---|
| TS/Angular/Node | npx tsc --noEmit |
build-error-resolver |
| Node linting | npm run lint or pnpm run lint |
build-error-resolver |
| .NET build | dotnet build --nologo -clp:ErrorsOnly |
build-error-resolver |
| .NET test | dotnet test |
If tdd-guide or coder is installed, dispatch to that agent. Otherwise the main agent loads the tdd or coder skill and fixes it inline |
| Node tests | npm test or pnpm test |
If tdd-guide or coder is installed, dispatch to that agent. Otherwise the main agent loads the tdd or coder skill and fixes it inline |
| E2E (Playwright, Cypress, etc.) | npm run e2e (or project-specific) |
e2e-runner |
| Secret scanning (gitleaks) | Workflow log excerpt | STOP, security-reviewer; rotate any exposed secret |
| SAST/Security scanner (opengrep, SonarQube, etc.) | Check logs | security-reviewer |
| Dependency/supply-chain gates | Check workflow output | Ask human (new dependencies need review) |
| Branch-name checks | Workflow rule output | Ask human (rename requires new PR) |
5. Reproduce Locally
Before applying a fix, reproduce the failure locally using the repro command extracted above. Verify the issue is real, not environmental.
6. Route the Fix
Determine the failure type and delegate appropriately:
| Failure Type | Route | Notes |
|---|---|---|
| Build, typecheck, lint (tsc, eslint, prettier, dotnet build, etc.) | build-error-resolver | Minimal fix, verify with same command locally |
| Unit tests or integration tests failing | If tdd-guide or coder is installed, dispatch to that agent. Otherwise the main agent loads the tdd or coder skill and fixes it inline |
Fix the test or implementation; do not disable tests |
| Comment gate, permissions, branch naming | Ask human | Inspect the workflow output for the gate rule |
| gitleaks (leaked secrets) | STOP, security-reviewer | Never allowlist; rotate the secret; abort immediately |
| opengrep / SAST security scanner | security-reviewer | Severity-based routing |
| supply-chain, check-added-deps | STOP, ask human | New dependencies need security review before approval |
| branch-name policy violation | ask human | Rename requires new PR; never force-push a rename onto an existing PR |
7. Push and Re-Check
After a fix is merged locally:
- Stage relevant files and create a commit (or squash into an existing one per git-workflow conventions).
- Push to the branch (normal push, no force). If
git-specialistis installed, dispatch to that agent. Otherwise the main agent loads thegit-workflowskill and pushes inline. - Re-run
gh pr checks --json …to see the updated check set. - If all checks are green, report success.
- If new failures appear, repeat from step 2 (root cause diagnosis).
Guardrails
- Never edit workflows (
.github/workflows/*.yml,azure-pipelines.yml) without explicit human consent. Workflow changes are infrastructure; they belong in a separate PR. - Never disable or skip tests. If a test is failing legitimately, fix the code, not the test.
- Never use
--no-verifyto bypass hooks. - Routing is mandatory when the specialist is installed. If the agent for that failure is installed, dispatch to that
Установить fix-ci в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл fix-ci?
Find failing PR checks, inspect logs or check links, and apply focused fixes. Routing depends on failure type (build/test/security).
Как установить скилл fix-ci?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл fix-ci запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic