Skip to content
Skills Library
Programming · Review & audit

flake-review

/flake-review

Review code for patterns known to cause flaky tests. Use when the user asks to review tests or a change for flakiness, or when reviewing a diff that adds or modifies tests.

Repository
omicron ↗
Licence
MPL-2.0
Last repository change
27.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 27.10.2026, without references to retired models or APIs.

Licence

MPL-2.0, otwarta.

What it does and when to use it

Review code for patterns known to cause flaky tests. Use when the user asks to review tests or a change for flakiness, or when reviewing a diff that adds or modifies tests.

Original author description

Review code for patterns known to cause flaky tests. Use when the user asks to review tests or a change for flakiness, or when reviewing a diff that adds or modifies tests.

How it works

  1. Instructions
Original SKILL.md headings · 44 lines, 328 words
SKILL.md preview
---
name: flake-review
description: Review code for patterns known to cause flaky tests. Use when the user asks to review tests or a change for flakiness, or when reviewing a diff that adds or modifies tests.
---

# Flake review

Review code for patterns known to cause flaky tests in Omicron.

## Instructions

### Step 1: Read the pattern catalog

Read `docs/flake-patterns.adoc` in full. It describes each known flake pattern: what it is, why it is bad, how to fix it, and example commits. Do not work from memory; the catalog is the source of truth and may have gained patterns since your last memory or training data.

### Step 2: Determine the code under review

If the user pointed at specific files, tests, or a PR, review those. Otherwise, prompt the user to ascertain the scope of the diff. This can be:

- **Uncommitted changes**: Changes not yet committed.
  - git: `git diff` (unstaged) or `git diff --cached` (staged)
  - jj: `jj diff --git`

- **This commit only** (stacked diff workflow): Changes are in the current commit only.
  - git: `git diff HEAD^`
  - jj: `jj diff --git --from @--`

- **This branch** (feature branch workflow): Changes span the entire branch.
  - git: `git diff $(git merge-base HEAD main)`
  - jj: `jj diff --git --from 'fork_point(trunk() | @)'`

Focus on test code and on test-support code (test utilities, simulated components, test configs), but remember that some flakes are genuine bugs in the system under test, so also consider production code that the changed tests exercise.

### Step 3: Check against each pattern

For each pattern in the catalog, check whether the code under review exhibits it. Remember that you can examine the example commits by running `git show <commit-hash>` or `jj show --git <commit-hash>`.

### Step 4: Report findings

For each finding, report:

* The pattern name from the catalog.
* The location (`file:line`).
* Why the code is susceptible, in terms of the specific race or timing assumption.
* A suggested fix, preferring the helpers the catalog recommends (for example, `wait_for_condition`, `wait_for_watch_channel_condition`, `now_db_precision()`).

If a finding looks like a bug in the system under test rather than the test itself, say so explicitly.

Versions

The database has no other skills named flake-review.

Database snapshot: 13.11.2026 · package version 27dfed2a6864 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100triage-ci-flake
    Use when CI tests fail on main branch after PR merge, when investigating flaky test failures, or when user provides a PR URL/number to aggregate all failing tests
  • 100analyzing-test-flakiness
    Find genuinely flaky tests in a Qase project — cases that both pass and fail — and separate them from tests that are simply broken. Use when the user asks which tests are flaky, unreliable, unstable, intermittent, or non-deterministic; about test stability, flakiness, or the…
  • 98go-testing-code-review
    Reviews Go test code for proper table-driven tests, assertions, and coverage patterns. Use when reviewing *_test.go files.
  • 100review-testing
    Review test code for quality, design, and completeness after implementing a feature or fixing a bug. Use when the user asks to "review my tests", "check my test quality", "are these tests good enough", "review testing", or after completing a feature implementation that includes…
  • 90test-flakiness
    Finds and fixes flaky tests: reruns suspects to measure flake rate, diagnoses causes (timing, shared state, order dependence, network, clocks, animations) and proposes root-cause fixes. Use when CI fails intermittently or a test passes on retry.
  • 100fix-flakes
    Diagnose and fix flaky tests tracked as open kind/flake issues in kubernetes-sigs/agent-sandbox — reproduce the flake, apply a minimal fix, and open a PR linking the issue. Use when asked to fix a flake, work through kind/flake issues, or when run on a schedule after…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.