Skip to content
Agentmart
Submit a tool
This entry duplicates fix-ci, which is the one we list in search.

fix-ci

Find failing PR checks, inspect logs or check links, and apply focused fixes.

Skill by fmflurry

IndexedMIT★ 171
Write a review

Chalk Labs

Need help deploying fix-ci?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/fmflurry-fix-ci-42ca45

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Find failing PR checks, inspect logs or check links, and apply focused fixes. Routing depends on failure type (build/test/security).

Use cases: testing, devops, security

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions: not checked yet.

What's inside

Skill name
fix-ci
Description
Find failing PR checks, inspect logs or check links, and apply focused fixes. Routing depends on failure type (build/test/security).
License
MIT
Instructions
118 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# 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:

```bash
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:

```bash
git remote get-url origin
```

### 2. Inspect Checks

List all PR-attached checks:

```bash
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:

```bash
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-on` platform
  - `steps` with `run:` commands (these are your repro steps)
  - `needs:` (job dependencies)
  - `secrets:` and Docker image requirements
  
- **Azure Pipelines:** Read `azure-pipelines.yml`. For the failing stage/job:
  - Stage name and job `pool` (platform)
  - `steps` with `script:` commands (these are your repro steps)
  - Service connections and Docker image requirements

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:

1. Stage relevant files and create a commit (or squash into an existing one per git-workflow conventions).
2. Push to the branch (normal push, no force). If `git-specialist` is installed, dispatch to that agent. Otherwise the main agent loads the `git-workflow` skill and pushes inline.
3. Re-run `gh pr checks --json …` to see the updated check set.
4. If all checks are green, report success.
5. 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-verify`** to bypass hooks.
- **Routing is mandatory when the specialist is installed.** If the agent for that failure is installed, dispatch to that agent. Otherwise the main agent loads the matching skill and fixes the failure inline. Do not disable tests.

## Output

- PR URL and current branch
- First failing check: name, link, and root error or log excerpt
- Workflow file location and job analysis (repro command, owner)
- Fixes applied, iteration order, and result (green or still-failing)
- Next action (repeat if needed, or report success)

From fmflurry/settings-opencode, MIT.

More from fmflurry/settings-opencode

Signals

Stars
171
Forks
9
Open issues
0
Last commit (this folder)
Oct 2, 2026 (1 month ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

Same skill elsewhere

Copies of this SKILL.md published by others; search shows only one of them.

More from fmflurry

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get fix-ci running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying fix-ci?

CallGet help
Cite this page

fix-ci skill. Agent Mart. https://agentmart.dev/skills/fmflurry-fix-ci-42ca45 (last updated 2026-10-24)