AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Ops Ci Fix

skill-christopherlouet-claude-base-ops-ci-fix · by christopherlouet

Autonomous diagnosis and repair of failing CI/CD pipelines. Scan GitHub Actions workflows, identify failure causes, and apply fixes. Trigger when CI is broken, tests fail in CI, or workflows are stuck.

No reviews yet
0 installs
13 views
0.0% view→install

Install

$ agentstack add skill-christopherlouet-claude-base-ops-ci-fix

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-christopherlouet-claude-base-ops-ci-fix)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
1mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Ops Ci Fix? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

CI Fixer — CI/CD Diagnosis and Repair

Goal

Diagnose failing CI/CD pipelines, identify the root cause, and apply automatic fixes when safe.

Phase 1: Discovery and workflow state

Scan the workflows

# List recent runs
gh run list --limit 20 --json databaseId,status,conclusion,name,createdAt,headBranch

# Identify workflow files
ls -la .github/workflows/

Classify the state

| State | Criterion | Urgency | |------|---------|---------| | Failed | conclusion = failure | High | | Stuck | status = in_progress for > 30 min | High | | Cancelled | conclusion = cancelled (recurring) | Medium | | Stale | No successful run for 7+ days | Low |

Check the runners (if self-hosted)

# Runner status
gh api repos/{owner}/{repo}/actions/runners --jq '.runners[] | {name, status, busy}'

Phase 2: Failure diagnosis

For each failing workflow:

2.1 Extract the logs

# Logs of the failed run
gh run view  --log-failed

2.2 Classify the cause

| Category | Patterns in logs | Typical fix | |-----------|----------------------|-------------| | Test failure | FAIL, AssertionError, expect( | Fix the test or the code | | Build error | error TS, SyntaxError, cannot find | Fix the compilation error | | Dep install | npm ERR!, ERESOLVE, peer dep | Fix package.json / lockfile | | Auth/secrets | 401, 403, secret not found | Check the configured secrets | | Timeout | timed out, exceeded deadline | Increase timeout or optimize | | Disk space | no space left, ENOSPC | Clean caches / reduce artifacts | | Rate limit | rate limit, 429 | Add retry / space out the requests | | Runner offline | no runner matching, offline | Check self-hosted runners | | Flaky test | Sometimes passes, sometimes fails | Identify the flaky test, stabilize it | | Config error | invalid workflow, syntax error | Fix the workflow YAML |

2.3 Distinguish local error vs CI-only

# Reproduce locally
npm test          # or pytest, go test, etc.
npm run build
npm run lint

If it passes locally but fails in CI: environment issue (versions, secrets, cache).

Phase 3: Repair

Fix priority order (from safest to riskiest)

  1. Re-run: flaky workflows → gh run rerun
  2. Fix config: invalid YAML → edit .github/workflows/
  3. Fix deps: corrupted lockfile → rm -rf node_modules package-lock.json && npm install
  4. Fix tests: breaking test → identify and fix
  5. Fix build: compilation error → fix the source code
  6. Cancel stuck: stuck workflows → gh run cancel

Guardrails

IMPORTANT: In --dry-run mode, show the proposed actions WITHOUT executing them.

| Action | Safe | Confirmation required | |--------|------|---------------------| | Re-run a workflow | Yes | No | | Cancel a stuck run | Yes | No | | Fix workflow YAML | Medium | Show the diff first | | Regenerate lockfile | Medium | Show the diff first | | Modify source code | Risky | Yes — propose, do not apply without approval | | Modify secrets | Risky | Never — guide the user |

Applying fixes

For each applicable fix:

  1. Identify the precise root cause (not the symptom)
  2. Propose the minimal fix
  3. Apply if safe, otherwise show and wait for confirmation
  4. Verify the fix: re-run the workflow or run the tests locally

Phase 4: Verification

After the fixes:

# Check that tests pass locally
npm test && npm run build && npm run lint

# If a workflow was re-run, check its status
gh run view  --json status,conclusion

Validation loop (max 2 iterations)

  1. Apply the fix
  2. Verify (local tests + re-run CI if possible)
  3. If still failing: re-diagnose with the new logs
  4. If 2 iterations fail: escalate with a detailed report

Phase 5: Report

# CI Fix Report — YYYY-MM-DD

## Workflows analyzed
| Workflow | Branch | Status before | Cause | Action | Status after |
|----------|---------|-------------|-------|--------|-------------|
| ci.yml | main | Failed | Test failure | Fix test | Passing |
| deploy.yml | main | Stuck | Timeout | Cancel + re-run | In progress |

## Fixes applied
1. [Fix 1]: description, modified file, reason
2. [Fix 2]: ...

## Manual actions required
- [ ] Configure the `DEPLOY_TOKEN` secret (expired)
- [ ] Update the self-hosted runner v2.x → v3.x

## Recommendations
- Add a cache for npm ci (would reduce time by 3 min)
- The `auth.spec.ts` test is flaky (3 failures out of 10 runs)

Rules

  • ALWAYS diagnose before fixing (Phase 2 before Phase 3)
  • NEVER modify secrets — guide the user
  • NEVER force-push or modify git history
  • ALWAYS show the diff of workflow modifications before applying
  • When in doubt, propose the fix without applying it
  • Follow the 3-failures rule: after 2 failed fix iterations, escalate

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.