ci-fix-with-memory

ci-fix-with-memory is a skill for Claude Code from jerseycheese/agent-skills. It costs 74 tokens per session (2,495 once invoked), scanned A, original, MIT.

An automatic workflow for diagnosing failed continuous-integration (CI) checks, which are automated tests and build checks run on code changes. It keeps notes about earlier attempts and known problems.

In plain words
What is it for?
It helps investigate failed tests, lint checks, builds, and other CI jobs on pull requests. It records what was tried, what worked, and what remains blocked.
Why use it?
It helps prevent repeating fixes that already failed and preserves debugging context between sessions. It starts when a pull request's CI checks are confirmed to be failing.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: names the TodoWrite tool.

Part of the workflow-skills plugin — 34 skills shipped together

Good fit It helps investigate failed tests, lint checks, builds, and other CI jobs on pull requests. It records what was tried, what worked, and what remains blocked.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jerseycheese/agent-skills/ci-fix-with-memory
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add jerseycheese/agent-skills --skill ci-fix-with-memory
Clone the repo
git clone --depth 1 https://github.com/jerseycheese/agent-skills

Made for: Claude Code.

Or install workflow-skills, the plugin that ships this one along with the rest of its 34 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ci-fix-with-memory

README.md
[![agentmods](https://agentmods.dev/badge/skills/jerseycheese/agent-skills/ci-fix-with-memory/github.svg)](https://agentmods.dev/skills/jerseycheese/agent-skills/ci-fix-with-memory)
Your own site
<a href="https://agentmods.dev/skills/jerseycheese/agent-skills/ci-fix-with-memory"><img src="https://agentmods.dev/badge/skills/jerseycheese/agent-skills/ci-fix-with-memory/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ci-fix-with-memory

Your own site · 80×15
<a href="https://agentmods.dev/skills/jerseycheese/agent-skills/ci-fix-with-memory"><img src="https://agentmods.dev/badge/skills/jerseycheese/agent-skills/ci-fix-with-memory.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,495 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00074 $0.02495
Opus 5.5 $0.00030 $0.00998
Sonnet 5.5 $0.00015 $0.00499
Haiku 4.5 $0.00007 $0.00249

Measured 8d ago against content hash 12c5a5627f6d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ci-fix-with-memory scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/ci-fix-with-memory/SKILL.md · 393 lines

How it starts

The opening of the file, as written. The whole thing — 393 lines — stays where its author put it; the contents beside it link to each section on GitHub.

When to invoke (auto-trigger)

Invoke automatically whenever:

  • The user mentions CI is failing, red, or blocked
  • gh pr checks shows a failure
  • A push triggers a failed workflow run

Do NOT invoke for: local test failures (use test-fix instead), lint-only failures with an obvious single-line fix.

Self-Healing CI Pipeline with Handoff Memory

When to Use This Skill

Use this skill when:

  • CI checks are failing on a PR
  • You want to avoid repeating previously failed fix attempts
  • You need systematic CI debugging with context preservation
  • Multiple CI check types are failing (lint, tests, build, etc.)

Critical Setup

This skill requires a .handoff/ directory structure:

.handoff/
├── latest.md          # Most recent session handoff
└── known-issues.md    # Persistent log of failed approaches

If these don't exist, the skill will create them on first run.

Pipeline Steps

Phase 1: Ingest Context (Before ANY Action)

  1. Read the handoff file

    cat .handoff/latest.md
    

    This contains:

    • What was tried in the previous session
    • What worked and what didn't
    • Current branch state
    • Open questions or blockers
  2. Read the known issues log

    cat .handoff/known-issues.md
    

    This contains:

    • Approaches that have been tried and failed
    • Specific commands or fixes that don't work
    • Patterns to avoid
    • Environmental quirks
  3. Acknowledge context Present a brief summary:

    ## Context Loaded
    
    ### From Previous Session
    [Key points from latest.md]
    
    ### Known Failed Approaches
    [List from known-issues.md]
    
    ### Starting Fresh Investigation
    

Phase 2: Get Current CI Status

  1. Fetch current CI check status

    gh pr checks [PR_NUMBER]
    
  2. For each failing check, get full logs

    gh pr checks [PR_NUMBER] --watch
    # OR
    gh api repos/{owner}/{repo}/commits/{sha}/check-runs
    
  3. Create TodoWrite checklist

    - [ ] Fix lint failures
    - [ ] Fix TypeScript errors
    - [ ] Fix test failures
    - [ ] Fix build errors
    

Read the full file on GitHub · 393 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago Changed · -2 lines · -27 tokens per session 12c5a5627f6d
  2. 1mo ago First seen · 395 lines · 101 tokens per session scan A b44ba244b10c

Subscribe to this mod's changes

ci-fix-with-memory is a skill published in the GitHub repository jerseycheese/agent-skills (3 stars, last pushed 5d ago), licensed MIT. It adds 74 tokens to every session and 2,495 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

megalinter-setup

Install or upgrade MegaLinter on a repository. Use when the user wants to add MegaLinter to a project, set up linting CI, update MegaLinter configuration or version, or says "install megalinter", "setup linting", "add code quality checks", "update megalinter skills". Always goes through npx mega-linter-runner…

ulises-jeremias/agent-toolkit · 131 tokens

gh-fix-ci

Diagnose failing GitHub Actions checks on a PR via gh, summarize the failure context, propose a plan, and only implement after explicit user approval. External CI providers (Buildkite, CircleCI, etc.) are reported by URL only.

ulises-jeremias/agent-toolkit · 53 tokens

megalinter

Entry point for everything MegaLinter. Use when the user wants to lint their repository, set up MegaLinter, check or fix lint errors, make CI lint jobs pass, or says "run megalinter", "fix lint errors", "make the linters happy", "clean up code quality". Detects the repository state and orchestrates the…

ulises-jeremias/agent-toolkit · 101 tokens

ci-debug-loop

Watch a GitHub Actions CI run, diagnose failures from logs, apply fixes, re-push, and repeat until green or escalate. Use when CI is failing and the user wants to debug and fix it iteratively, or says "fix CI", "debug the build", or similar.

paultyng/skill-issue · 62 tokens

investigate-ci

Investigates GitHub Actions workflow failures for any repo. Fetches recent runs, identifies failures, extracts error logs, diagnoses root causes, and suggests fixes. Use when a deploy or CI workflow fails and you need to understand why.

mostafa-drz/claude-skills · 50 tokens

github-actions-silent-failures

Diagnose GitHub Actions workflows that fail silently — a reusable-workflow run with zero jobs/logs, a gh-aw import mis-resolving vs a repo named .github, self-hosted-runner traps. Use when a required check never reds or a run has no jobs.

dryvist/claude-code-plugins · 65 tokens