Skip to content
payloadcms avatar

Triage Ci Flake

Turns a failing CI check on main or a PR's status checks into a reproducible investigation, with a mandatory run-before-fix rule.

CCM score
70 of 100
skills.sh installs
314
GitHub stars
46K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers triage of e2e and Playwright test failures that pass locally but fail in CI, including flaky timing and bundling issues
  • Includes a PR-based workflow that pulls failing status checks, aggregates failing suites into a summary table, and spots common patterns
  • Enforces reproduction in dev mode first, then against a production build via pnpm prepare-run-test-against-prod and pnpm dev:prod, before any fix is proposed
  • Designed for maintainers of the Payload monorepo who need to isolate a single named test rather than rerun whole suites

Install

$ npx -y skills add payloadcms/payload --skill triage-ci-flake -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Triage CI Failure

Overview

Systematic workflow designed specifically for triaging and fixing end-to-end (e2e) test failures in CI, especially flaky Playwright tests that pass locally but fail in CI. E2E tests that made it to main are usually flaky due to timing, bundling, or environment differences.

CRITICAL RULE: You MUST run the reproduction workflow before proposing any fixes. No exceptions.

When to Use

  • CI test fails on main branch after PR was merged
  • Test passes locally but fails in CI
  • Test failure labeled as "flaky" or intermittent
  • E2E test timing out in CI only
  • User provides a PR URL/number with failing checks

PR-Based Workflow (When PR URL/Number Provided)

When the user provides a PR URL (e.g., https://github.com/payloadcms/payload/pull/16701) or PR number:

Step 1: Fetch PR Status Checks

First, use tool_search with query "github pull request status checks" to load the GitHub tools.

Then use the github-pull-request_pullRequestStatusChecks tool to get all failing checks:

Details

Repository
github.com/payloadcms/payload
Categories
Debugging, Testing & QA, DevOps & Cloud
First seen
Jun 3, 2026

Questions

How do I triage a flaky CI test failure with the triage-ci-flake skill?

The triage-ci-flake skill walks through end-to-end test failures in CI, especially flaky Playwright tests that pass locally but fail in CI. It runs the failing test against dev code first, then against bundled production code, before any fix is proposed.

How do I install the triage-ci-flake skill?

Run npx -y skills add payloadcms/payload --skill triage-ci-flake -y in a project to install it. Once installed, the agent can aggregate failing checks from a pull request URL or number and work through each failing test.

Which other skills sit in the Debugging category next to triage-ci-flake?

triage-ci-flake sits in the Debugging category alongside diagnosing-bugs, azure-messaging, safe-debug, systematic-debugging and sentry-cli. Its focus is narrower, on CI and Playwright end-to-end failures rather than general debugging.

More from payloadcms/payload

All 5

Similar to Triage Ci Flake

More Debugging