All skills
fixing-flaky-tests
Reproduce a flaky test locally, find its root cause, fix it, and validate with repeated runs.
- Part of PostHog/posthog
- 148 installs
- Developer Tools · Testing and debugging
When to use it
A test fails intermittently in CI but passes on rerun, and you have the failing test name and a CI run link but no confirmed cause.
For example
You say
Use fixing-flaky-tests on the Jest test frontend/src/lib/components/InsightCard.test.tsx, which failed twice in CI this week but passes locally. Find the root cause and fix it.
You get
- Root-cause explanation
- Test file fix
- N-run validation results
How it works
- Failure rate is measured from GitHub run data, not from CI digests or alerts.
- Reproduction escalates from single runs to CI-like sharding, ordering, and contention before any fix.
- Deleting a test that catches nothing real is treated as a valid outcome.
More Testing and debugging skills
See all- monitoring-expert6.3kConfigures monitoring, logging, dashboards, alerts and tracing, and runs load tests and profiling.
- test-master5.8kWrites unit, integration and end-to-end tests and finds gaps in test coverage.
- e2e-tests-studio2.5kGenerates Playwright end-to-end tests that check product behavior for playground UI changes.
- smoke-test2.5kCreates a Mastra project with create-mastra and smoke tests the Studio in Chrome via the Chrome MCP server.
Also in this pack
- react-doctor511Diagnoses and fixes React codebase health issues, including performance problems, security gaps and code quality.
- hogli267Explains the PostHog developer CLI and repo tooling for running, building, testing, and linting.
- clickhouse-migrations266Writes and modifies ClickHouse database migrations following project rules.
- survey-sdk-audit255Audits survey SDK features and version requirements, then implements survey changes across backend, UI, and SDKs.