fixing-flaky-tests
Claude Code skill by @PostHog
Guides an agent through reproducing, root-causing, fixing, and validating flaky tests in the PostHog monorepo. Use when a test fails intermittently in CI but passes on rerun or locally, when `hogli ci:insights` or the debugging-ci-failures skill classifies a failure as a flaky test, when given a GitHub Actions URL for a flaky job, when asked to check Trunk Flaky Tests for a test, PR, or master, or when asked to deflake, stabilize, or fix a flaky Jest, pytest, or Playwright test. Core discipline: reproduce locally before changing anything, fix the root cause (never mask it with sleeps, retries, or bigger timeouts), and prove the fix with an N-run validation loop sized to the observed failure rate. Stabilizing is not the only valid outcome — the skill also gates whether the test should exist, so deleting a test that catches nothing real, or re-leveling one that flakes because of the level it runs at, are first-class endings.
- Price: Free
- Signal index: 0/100
- Source: posthog/posthog
- Updated:
Related topics
- Testing skills
- Debugging skills
- GitHub skills
- CI/CD skills
- Unit testing skills
- Playwright skills
- Agent memory skills
- Google Ads skills
- ComfyUI skills
- PHP and Laravel skills
- Google Cloud skills
- Angular skills
- Keyword research skills
- Accessibility skills
- Creative writing skills
- Data analysis skills
- Technical SEO skills
- Video editing skills
- Logo and brand design skills
- Education skills
- JavaScript skills
- Word documents skills
- Software architecture skills
- Excel and spreadsheets skills
- Claude Code workflow skills
- Java skills
- Product management skills
- Kubernetes skills
- Market research skills
- Google Workspace skills
Create a free account to install this skill or run it from Claude Code or Codex.