agentleFS
berntpoppberntpopp/gencc-link/.claude/skills/ci-failure-triage/SKILL.md

ci-failure-triage

Skill0 starsChanged 5 months agoMITView on GitHub

Use when CI fails on a PR or main in gencc-link. Walks through reproducing make ci-local locally and root-causing without bypassing checks.

7 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 2 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Look at the GitHub Actions log and decide which stage failed.

    line 10
  2. Distinctive:

    Run the same Make target that failed:

    line 27
  3. Very specific:

    Do not add # type: ignore or # noqa to silence a check unless the behavior is genuinely correct and the tool is wrong.

    line 47
  4. Distinctive:

    Do not use git commit --no-verify to bypass pre-commit.

    line 49
  5. Very specific:

    If lint-loc fails, split the oversized file rather than raising the budget.

    line 50
  6. Very specific:

    Run make ci-local locally.

    line 57

“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

CI failure triage

Classify the failure

Look at the GitHub Actions log and decide which stage failed. make ci-local runs format-check, lint-ci, lint-loc, typecheck-fast, and test-fast; the CI job then runs test-cov.

  • Format check (make format-check) — Ruff disagrees with the committed formatting.
  • Lint (make lint-ci) — a Ruff lint rule.
  • File-size budget (make lint-loc) — scripts/check_file_size.py flags a file over the per-file line budget (see AGENTS.md "File Size Discipline").
  • Typecheck (make typecheck-fast) — mypy strict.
  • Tests (make test-fast) — a failing or erroring test.
  • Coverage (make test-cov) — coverage fell below the 85% gate.
  • Release (release.yml) — make ci-local, the Compose config validation, or the Docker image build failed.

Reproduce locally

Run the same Make target that failed:

make format-check
make lint-ci
make lint-loc
make typecheck-fast
make test-fast
make test-cov
# release-only:
docker compose -f docker/docker-compose.yml -f docker/docker-compose.prod.yml config
docker build -f docker/Dockerfile -t gencc-link:ci .

Tests that need the live GenCC download are marked integration and are excluded from test-fast / test-cov. Most unit tests build SQLite from the tests/fixtures/ sample TSV and do not hit the network.

Fix at root cause

  • Do not add # type: ignore or # noqa to silence a check unless the behavior is genuinely correct and the tool is wrong.
  • Do not use git commit --no-verify to bypass pre-commit.
  • If lint-loc fails, split the oversized file rather than raising the budget.
  • For a flaky test, rerun once to confirm flakiness, then mark it slow (or integration if it needs the network) and open a follow-up issue rather than disabling it.

Confirm fix

Run make ci-local locally. Push. Watch the workflow re-run.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.