Agent skill

Choruz CI Test Reliability

by inclusionAI in inclusionAI/Choruz

Design, review, and diagnose Choruz tests and fixtures that can fail nondeterministically under CI concurrency: parallel Playwright workers sharing one PostgreSQL and one API, vitest workers, cargo…

Apache-2.0Auto-check passedTesting & QA

Install Choruz CI Test Reliability

skills CLI
$ npx skills add inclusionAI/Choruz --skill choruz-ci-test-reliability -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install inclusionAI/Choruz choruz-ci-test-reliability --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/inclusionAI/Choruz.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/choruz-ci-test-reliability .claude/skills/choruz-ci-test-reliability && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
choruz-ci-test-reliability
GitHub stars
1k
Token cost
~1.8k tokens
SKILL.md length
925 words
Files
1
Skills in repo
11
Repo updated
First seen
Licence
Apache-2.0

At a glance

Design, review, and diagnose Choruz tests and fixtures that can fail nondeterministically under CI concurrency: parallel Playwright workers sharing one PostgreSQL and one API, vitest workers, cargo…

  • Works in 4 steps: Playwright:… → vitest: apps/web unit tests run in… → cargo: integration tests under crates/… → …
  • Changing tests with those risks
  • SKILL.md covers Model the execution topology, Own your data, Allocate resources atomically and Synchronize on state, plus 5 more sections
  • Calls bash

What it does

Choruz CI Test Reliability is an agent skill from inclusionAI/Choruz. Design, review, and diagnose Choruz tests and fixtures that can fail nondeterministically under CI concurrency: parallel Playwright workers sharing one PostgreSQL and one API, vitest workers, cargo tests on a shared test database, clocks, ports, and asynchronous teardown. Use when adding or changing tests with those risks, investigating a flaky CI run, or reviewing test isolation.

Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Testing & QA, covering Unit testing, Async programming and Design review and critique. It works with Playwright, PostgreSQL and Vitest. The licence is Apache-2.0.

When your agent uses it

  • Changing tests with those risks
  • Investigating a flaky CI run
  • Reviewing test isolation

Example prompts

  • “/choruz-ci-test-reliability”

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Playwright: apps/web/playwright.config.ts runs with fullyParallel and two workers on CI (CHORUZ_E2E_WORKERS), sharded across jobs…
  2. vitest: apps/web unit tests run in worker processes; module state, process.env, timers and localStorage mocks are per file, not per test.
  3. cargo: integration tests under crates/ and services/ share the database created by infra/host/setup_test_database.sh; tests in one binary…
  4. Jobs: the e2e shards, the Rust jobs and the smoke jobs run at the same time on separate runners; they do not share a host, but they do…

What it can do on your machine

Read from SKILL.md and the folder at commit 7509c40. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • bash

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Choruz CI Test Reliability loads about 1.8k tokens when it runs. Until then it costs about 103 tokens; SKILL.md has 925 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~103
When it runs · the whole SKILL.md, loaded when a task matches
~1.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from inclusionAI/Choruz at commit 7509c40, republished under its Apache-2.0 licence (© inclusionAI). 925 words, ~1,753 tokens.

Download SKILL.mdSave it as .claude/skills/choruz-ci-test-reliability/SKILL.md (or your agent's skills folder).
name
choruz-ci-test-reliability
description
Design, review, and diagnose Choruz tests and fixtures that can fail nondeterministically under CI concurrency: parallel Playwright workers sharing one PostgreSQL and one API, vitest workers, cargo tests on a shared test database, clocks, ports, and asynchronous teardown. Use when adding or changing tests with those risks, investigating a flaky CI run, or reviewing test isolation.

Reliable Choruz CI tests

When loaded from a personal skills directory, resolve repository links from this skill's canonical .agents/skills/choruz-ci-test-reliability/ location in the active Choruz checkout, not from the installed copy.

Build tests that remain correct under the repository's real CI topology, not only when run alone on a quiet workstation. This skill owns isolation and reliability decisions; docs/testing/pr-test-policy.md owns which tests a change must add, and choruz-pre-push-checks owns which commands to run before a push.

Model the execution topology

Assume these layers overlap unless the active configuration proves otherwise:

  1. Playwright: apps/web/playwright.config.ts runs with fullyParallel and two workers on CI (CHORUZ_E2E_WORKERS), sharded across jobs (--shard=n/m). Every worker talks to the same API, the same PostgreSQL and the same pipeline started by infra/host/web_e2e.sh; only the browser context is private. retries: 1 on CI means a test that passes on retry is reported as flaky, not as passing.
  2. vitest: apps/web unit tests run in worker processes; module state, process.env, timers and localStorage mocks are per file, not per test.
  3. cargo: integration tests under crates/ and services/ share the database created by infra/host/setup_test_database.sh; tests in one binary run on parallel threads.
  4. Jobs: the e2e shards, the Rust jobs and the smoke jobs run at the same time on separate runners; they do not share a host, but they do share GitHub's artifact and cache services.

Process isolation does not isolate database rows, ports, predictable filesystem paths or inherited child processes. For every acquired resource, identify its owner, its allocation mechanism, its readiness signal, its cleanup, and its quiescent completion signal.

Own your data

The single most common Choruz flake is a test that reads global state another worker is writing.

  • Create what you assert on. Seed a group with createGroup(page, token, principal.id, uniqueName("…")), an agent with provisionAgent, a message with sendMessage; then assert on those ids and names, never on "at least one exists" or "the first item".
  • Never compare absolute counts taken at two moments (countAfter === countBefore): another worker can add a row in between. Assert the filtered result is empty and the restored list contains the seeded item, or use toBeGreaterThanOrEqual with the seeded item present.
  • Never assume an empty workspace, an empty conversation list, or that a default agent exists.
  • Use data-conversation-id and other stable attributes instead of visible text that other workers can also produce.
  • In cargo tests, give rows unique names or ids per test and scope queries to them; never truncate a shared table.

Allocate resources atomically

  • Ports come from the environment (CHORUZ_API_PORT, CHORUZ_WEB_PORT, CHORUZ_PIPELINE_METRICS_PORT, CHORUZ_PG_PORT) that web_e2e.sh already isolates per run; a test never binds a fixed port of its own. A Rust test that needs a listener binds port 0 and reads the assigned address.
  • Temporary files use a private per-test directory (tempfile::tempdir(), mkdtemp), never a predictable path.
  • Route mocks (page.route) match the exact request the test owns, not a prefix another flow also hits.

Synchronize on state

A fixed waitForTimeout is not evidence that setup completed or that cleanup settled.

  • Wait for the observable condition: expect(locator).toHaveCount(n), expect.poll(...), a readiness endpoint, an owned promise.
  • Message delivery in the web app arrives through the sync feed; wait for the bubble with the seeded content, not for a duration.
  • Use a timeout only to bound a wait, never as the condition that makes the assertion correct.
  • When time itself is the subject, inject or fake the clock and always restore real timers.
Show full SKILL.md (357 more words)Show less

Dispose to quiescence

Register cleanup right after acquisition so an assertion failure also releases the resource. Cleanup stops new requests, detaches listeners, restores globals, terminates owned work, and awaits child exit or server close. Calling abort() or kill() without awaiting completion is incomplete teardown.

Prove the intended regression

  • Establish assertion strength and safe negative controls through the policy's behaviour acceptance evidence. A repeatably green test can still assert the wrong result; isolation does not prove product correctness.
  • For a fixed flake, run the spec repeatedly with the CI settings: bash infra/host/web_e2e.sh tests/e2e/<spec> --repeat-each=3.
  • For a race, use barriers to prove overlap; repeated execution alone is not a race test.
  • Verify external state (a row, an event, a file, a process exit) instead of trusting the component's self-report.

Reject flake-masking fixes

Do not present these as root-cause fixes:

  • raising a timeout without naming the awaited state;
  • adding retries or test.fixme/test.skip;
  • making a whole file serial to hide one shared resource;
  • swallowing an error or unhandled rejection;
  • weakening an assertion or normalizing away unstable behaviour;
  • adding a sleep before cleanup or an assertion.

Never skip, disable or quarantine a test to get CI green; fix the isolation.

Diagnose an existing flake

  1. Download the shard's Playwright artifact (playwright-<shard>.zip, or playwright-full-<shard>.zip) and read the trace and screenshot of the failed attempt; the retry's pass is not evidence.
  2. Read the test for shared state: unseeded data, absolute counts, first-item locators, fixed waits, mocks broader than the test.
  3. Reproduce locally with the CI settings (CI=1, two workers, --repeat-each=3) and the neighbouring specs of the same shard, since the interfering worker is usually one of them.
  4. Fix the isolation, then run the repeat locally before pushing. A diagnosis-only request is read-only: report the cause and evidence unless the user also asks for a fix.

Validate and report

Run the smallest focused regression for the affected behaviour, plus topology-specific evidence only when the change owns that risk: restoration evidence for global mutation, quiescent-teardown evidence for lifecycle work, a negative control for a new guard. Report exact commands and observed results; do not describe retries, skipped tests, or pending CI as passing.

© inclusionAI, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/choruz-ci-test-reliability of inclusionAI/Choruz.

Open the folder on GitHubat commit 7509c40

Compare with similar skills

Choruz CI Test Reliability next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Choruz CI Test Reliability compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Choruz CI Test Reliability this skillinclusionAI/Choruz1k—~1.8kAutomated safety check: PassApache-2.0
Control UI E2Eopenclaw/openclaw392k—~2.9kAutomated safety check: PassMIT
Ckeditor5 TestingTriliumNext/Trilium38k—~3.3kAutomated safety check: PassAGPL-3.0
Check Visual Changesigrlk/storybook-addon-test-codegen1541 repos~1.4kAutomated safety check: PassMIT
Svelte Testingspences10/sveltest113—~579Automated safety check: PassMIT
Playwright Testingchongdashu/vibejam-starter-pack149—~2.1kAutomated safety check: PassNone

Similar skills

  • Control UI E2E

    openclaw/openclaw

    A skill your agent uses when designing, testing, fixing, or extending the OpenClaw Control UI GUI, including UI stress-test galleries with feedback inputs, Vitest + Playwright end-to-end checks…

    392k GitHub stars~2.9k tokensUpdated today
    Testing & QAAuto-check passed
  • Ckeditor5 Testing

    TriliumNext/Trilium

    Testing CKEditor 5 plugins in the Trilium monorepo. An agent skill from TriliumNext/Trilium.

    38k GitHub stars~3.3k tokensUpdated today
    Testing & QAAuto-check passed
  • Check Visual Changes

    igrlk/storybook-addon-test-codegen

    Check the visual impact of an edit mid-task with uiverify check — render just the components you're touching on the UI Verify fleet and diff them against the real CI baseline, without opening a PR…

    154 GitHub starsUsed in 1 repo~1.4k tokens
    Testing & QAAuto-check passed
  • Svelte Testing

    spences10/sveltest

    Fix and create Svelte 5 tests with vitest-browser-svelte and Playwright.

    113 GitHub stars~579 tokensUpdated yesterday
    Testing & QAAuto-check passed
  • Playwright Testing

    chongdashu/vibejam-starter-pack

    Plan, implement, and debug frontend tests: unit/integration/E2E/visual/a11y.

    149 GitHub stars~2.1k tokensUpdated 5 mo ago
    Testing & QAAuto-check passed
  • Ha Frontend Testing

    home-assistant/frontend

    Home Assistant frontend testing and validation workflow. An agent skill from home-assistant/frontend.

    5.7k GitHub stars~1.7k tokensUpdated today
    Testing & QAAuto-check passed

More from inclusionAI/Choruz

All 11 skills in this repo
  • Choruz Archive Agent Notes

    inclusionAI/Choruz

    A skill your agent uses when adding, auditing, pruning, archiving, restoring, or reviewing Agent Notes in this repository; checks every new note for superseded active records, classifies implemented…

    1k GitHub stars~1.2k tokensUpdated 4 days ago
    Auto-check passed
  • Choruz Merging Stacked PRs

    inclusionAI/Choruz

    A skill your agent uses when landing a chain of dependent pull requests (A ← B ← C, each based on the one below) onto main, merging a PR whose base is another open PR's branch, or whenever a request…

    1k GitHub stars~866 tokensUpdated 4 days ago
    Auto-check passed
  • Choruz Code Review

    inclusionAI/Choruz

    A skill your agent uses when reviewing a pull request in this repository; orients the reviewer to Choruz's standards (AGENTS.md conventions, the PR test policy, Agent Notes, the CI gates) and the…

    1k GitHub stars~1.7k tokensUpdated 4 days ago
    Auto-check passed
  • Choruz Doc

    inclusionAI/Choruz

    Create, restructure, review, audit, or migrate Choruz Markdown documentation (docs/, README, AGENTS.md, the in-app docs pages) using one owner per fact, tier placement, executed-operation…

    1k GitHub stars~1.6k tokensUpdated 4 days ago
    Auto-check passed
  • Choruz Find Simplifications

    inclusionAI/Choruz

    A skill your agent uses when working in this repository to find non-obvious simplification candidates, remove redundant comments or implementation-heavy documentation, write proposed Agent Notes or…

    1k GitHub stars~1.6k tokensUpdated 4 days ago
    Auto-check passed
  • Choruz PR

    inclusionAI/Choruz

    Use before opening or completing a pull request in this repository — classify the change, add the tests its type requires, run exactly what CI will run, label it, merge only on a green "CI (linux)…

    1k GitHub stars~2.6k tokensUpdated 4 days ago
    Auto-check passed

Categories

Questions about Choruz CI Test Reliability

What does Choruz CI Test Reliability do?

Design, review, and diagnose Choruz tests and fixtures that can fail nondeterministically under CI concurrency: parallel Playwright workers sharing one PostgreSQL and one API, vitest workers, cargo…. Choruz CI Test Reliability is an agent skill from inclusionAI/Choruz. Design, review, and diagnose Choruz tests and fixtures that can fail nondeterministically under CI concurrency: parallel Playwright workers sharing one PostgreSQL and one API, vitest workers, cargo tests on a shared test database, clocks, ports, and asynchronous teardown.

When should I use Choruz CI Test Reliability?

Choruz CI Test Reliability fits situations like: changing tests with those risks; investigating a flaky CI run; reviewing test isolation.

How do I install Choruz CI Test Reliability in Claude Code?

Run `npx skills add inclusionAI/Choruz --skill choruz-ci-test-reliability -a claude-code`. Or copy the skill folder (.agents/skills/choruz-ci-test-reliability in inclusionAI/Choruz) into .claude/skills/choruz-ci-test-reliability in your project. Claude Code loads it when a task matches its description.

How do I install Choruz CI Test Reliability in Codex?

Run `npx skills add inclusionAI/Choruz --skill choruz-ci-test-reliability -a codex`. Or copy the skill folder (.agents/skills/choruz-ci-test-reliability in inclusionAI/Choruz) into .agents/skills/choruz-ci-test-reliability in your project. Codex loads it when a task matches its description.

Can I use Choruz CI Test Reliability in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add inclusionAI/Choruz --skill choruz-ci-test-reliability -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/choruz-ci-test-reliability, .gemini/skills/choruz-ci-test-reliability, .github/skills/choruz-ci-test-reliability and .opencode/skills/choruz-ci-test-reliability in your project.

What does Choruz CI Test Reliability need to run?

Going by SKILL.md and its folder, Choruz CI Test Reliability needs the command-line tools its instructions call (bash).

Does Choruz CI Test Reliability access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Choruz CI Test Reliability safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Choruz CI Test Reliability use?

Choruz CI Test Reliability is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Choruz CI Test Reliability use?

About 1.8k tokens (SKILL.md is roughly 7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Choruz CI Test Reliability?

Skills that share tags, products or a category with Choruz CI Test Reliability: Control UI E2E (openclaw/openclaw, 392k stars), Ckeditor5 Testing (TriliumNext/Trilium, 38k stars), Check Visual Changes (igrlk/storybook-addon-test-codegen, 154 stars) and Svelte Testing (spences10/sveltest, 113 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Choruz CI Test Reliability?

inclusionAI (a GitHub organization) maintains it in inclusionAI/Choruz, which has 1,017 GitHub stars. The repository holds 11 skills in this directory. The repository was last updated on October 7, 2026.

Source: inclusionAI/Choruz on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.