Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
flaky-tests, test-sampling, test-intelligence, ci-gates, quarantine, playwright-e2e, visual-regression, flaker ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
flaker is a test-intelligence toolkit for:
It is designed for repositories where:
flaker helps answer:
Upgrading from 0.0.x / 0.1.x? See docs/how-to-use.md#config-migration for the full key rename map. Starting with
0.2.0, the CLI refuses to start on legacy configs and points to the migration guide.Upgrading from 0.4.x? See docs/migration-0.4-to-0.5.md or docs/migration-0.4-to-0.5.ja.md.
0.5.xkeeps existing profiles working, but the recommended user-facing commands are now gate-oriented.Upgrading from 0.12.x?
0.13.0is a breaking release:--profile/[profile.*]/FLAKER_PROFILEare gone, replaced by--gate/[gate.iteration|merge|release]/FLAKER_GATE; therandom,gbdt, andcoverage-guidedstrategies,cluster_mode,model_path,[coverage],adaptive*keys,dev train, and theopscommand group are removed. See docs/migration-0.12-to-0.13.md / docs/migration-0.12-to-0.13.ja.md.
pnpm add -D @mizchi/flaker
Or run it without installing:
pnpm dlx @mizchi/flaker --help
Requirements:
This repo also ships a Claude Code plugin with two skills:
flaker-setup
Introduce flaker on a fresh repository. Day 0 → Week 4 onboarding flow, decision points, copy-paste commands, and pitfalls.flaker-management
Operate flaker after setup. Advisory vs required gating, nightly triage, quarantine, flaky tag management, and staged Playwright E2E / VRT rollout.# In Claude Code
/plugin marketplace add mizchi/flaker
/plugin install flaker@flaker
Then ask the agent something like:
The setup reference checklist lives at docs/new-project-checklist.ja.md and docs/new-project-checklist.md.
The 0.4.x -> 0.5.x migration guide lives at docs/migration-0.4-to-0.5.ja.md and docs/migration-0.4-to-0.5.md.
The user guide lives at docs/usage-guide.ja.md and docs/usage-guide.md.
The operations guide lives at docs/operations-guide.ja.md and docs/operations-guide.md.
The operations quick start lives at docs/flaker-management-quickstart.ja.md and docs/flaker-management-quickstart.md.
flaker also publishes a MoonBit library surface at mizchi/flaker.
The root package re-exports both:
If you prefer a stricter import boundary, the same types are still available
from mizchi/flaker/contracts.
import {
"mizchi/flaker" @flaker,
}
test "sample from historical runs" {
let meta = @flaker.build_sampling_meta(
[
@flaker.SamplingHistoryRowInput::{
suite: "tests/login.spec.ts",
test_name: "login works",
task_id: Some("web-login"),
filter: None,
variant: None,
test_id: None,
status: "passed",
retry_count: 0,
duration_ms: 1200,
created_at: "2026-04-03T00:00:00.000Z",
},
],
[
@flaker.SamplingListedTestInput::{
suite: "tests/login.spec.ts",
test_name: "login works",
task_id: Some("web-login"),
filter: None,
variant: None,
test_id: None,
},
],
)
let sampled = @flaker.sample_weighted(meta, count=1, seed=1UL)
assert_eq(sampled.length(), 1)
}
The root library surface intentionally re-exports pure logic only:
7-day copy clicks
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground