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

ci-failure-triage

Skill0 starsChanged 4 months agoMITView on GitHub

Use when `make ci-local` fails locally or a GitHub Actions run reports a CI failure (format, lint, line-budget, typecheck, or test errors).

We split this skill into the rules it gives an agent

1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 9 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

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

    Run make ci-local and read the log to see which sub-target failed.

    line 12

“Common” is measured: kept by at least 6 in 10 of the 9 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

Follow AGENTS.md first.

Workflow

  1. Run make ci-local and read the log to see which sub-target failed. It typically chains format-check lint-ci lint-loc typecheck test-fast test-integration, but repos vary (e.g. clinvar-link has no lint-loc) — trust the actual recipe/CI log, not this list.
  2. Format (format-check) — run make format, re-check.
  3. Lint (lint-ci) — run make lint-fix; fix remaining findings by hand rather than blanket-ignoring.
  4. Line budget (lint-loc, the per-file line budget in scripts/check_file_size.py, where present) — split the growing module along its seams; edit .loc-allowlist only with a tracked decomposition reason.
  5. Typecheck (typecheck) — run make typecheck; fix the type, don't add broad ignore_errors / # type: ignore.
  6. Tests (test-fast / test-integration) — fix code or test per the assertion; parser/data changes need fixture-backed coverage under tests/.
  7. Re-run make ci-local until green before handoff.

Common mistakes

  • Silencing lint/typecheck instead of fixing the cause.
  • Bumping .loc-allowlist to dodge a needed split.
  • Committing with a red ci-local.

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.

Reviews can't be read right now.

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.