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…
от oxidecomputer★ 631 звезда на GitHubОб этом скилле
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) orgit diff --cached(staged) - jj:
jj diff --git
- git:
This commit only (stacked diff workflow): Changes are in the current commit only.
- git:
git diff HEAD^ - jj:
jj diff --git --from @--
- git:
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() | @)'
- git:
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.
Установить flake-review в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл 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.
Как установить скилл flake-review?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл flake-review запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic