CI Test Sharding Parallelization

CI Test Sharding Parallelization is a skill for Claude Code, Codex from PramodDutta/qaskills. It costs 34 tokens per session (1,528 once invoked), scanned A, original, MIT.

A guide for splitting Playwright, Jest, and pytest test suites into parallel CI jobs, then combining their results.

In plain words
What is it for?
Use it to divide tests across CI workers, balance slow tests, merge reports, and identify which shard failed.
Why use it?
It reduces the time developers wait for tests while keeping results consistent and failures traceable.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for aider. Also seen: mentions Codex; built for aider; mentions Gemini CLI.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is - run: bash scripts/run-playwright-shard.sh.

Good fit Use it to divide tests across CI workers, balance slow tests, merge reports, and identify which shard failed.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/PramodDutta/qaskills
agentmods
npx agentmods add skills/pramoddutta/qaskills/ci-test-sharding-parallelization

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for CI Test Sharding Parallelization

README.md
[![agentmods](https://agentmods.dev/badge/skills/pramoddutta/qaskills/ci-test-sharding-parallelization/github.svg)](https://agentmods.dev/skills/pramoddutta/qaskills/ci-test-sharding-parallelization)
Your own site
<a href="https://agentmods.dev/skills/pramoddutta/qaskills/ci-test-sharding-parallelization"><img src="https://agentmods.dev/badge/skills/pramoddutta/qaskills/ci-test-sharding-parallelization/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for CI Test Sharding Parallelization

Your own site · 80×15
<a href="https://agentmods.dev/skills/pramoddutta/qaskills/ci-test-sharding-parallelization"><img src="https://agentmods.dev/badge/skills/pramoddutta/qaskills/ci-test-sharding-parallelization.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,528 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 3 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium MCP Rug Pull · line 79
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 92
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 160
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00034 $0.01528
Opus 5.5 $0.00014 $0.00611
Sonnet 5.5 $0.00007 $0.00306
Haiku 4.5 $0.00003 $0.00153

Measured 3mo ago against content hash db910a1f8908, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

CI Test Sharding Parallelization scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

import { spawnSync } from 'node:child_process';
seed-skills/ci-test-sharding-parallelization/SKILL.md · 223 lines

How it starts

The opening of the file, as written. The whole thing — 223 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CI Test Sharding Parallelization Skill

You are a test infrastructure engineer who reduces CI wall-clock time by sharding and parallelizing test suites while preserving deterministic results, useful reports, and clear failure ownership.

Core Principles

  1. Optimize wall-clock, not only CPU: The goal is faster feedback for developers.
  2. Shard deterministically: The same commit and shard config should run the same test distribution unless balancing is intentional.
  3. Merge reports reliably: Parallel jobs must produce one readable result for humans and machines.
  4. Keep setup cost visible: Too many shards can waste time on repeated install and boot steps.
  5. Balance long tests: Historical timing can prevent one slow shard from dominating.
  6. Fail clearly: A failure should identify shard, test file, project, and artifact.
  7. Avoid hidden order dependencies: Sharding exposes tests that rely on shared state.
  8. Tune gradually: Increase shard count only after measuring queue time and overhead.

Setup

Create scripts for each framework.

npm install --save-dev @playwright/test jest jest-junit
python -m venv .venv
. .venv/bin/activate
pip install pytest pytest-xdist pytest-json-report
mkdir -p test-results merged-reports

Use consistent environment variables.

export SHARD_INDEX=1
export SHARD_TOTAL=4
export CI_NODE_INDEX=1
export CI_NODE_TOTAL=4

Project Structure

ci/
  sharding/
    playwright.yml
    jest.yml
    pytest.yml
scripts/
  run-playwright-shard.sh
  run-jest-shard.ts
  run-pytest-shard.sh
  merge-reports.sh
test-results/
merged-reports/

Playwright Sharding

Use the built-in Playwright shard flag.

#!/usr/bin/env bash
set -euo pipefail

: "${SHARD_INDEX:?SHARD_INDEX is required}"
: "${SHARD_TOTAL:?SHARD_TOTAL is required}"

npx playwright test \
  --shard="${SHARD_INDEX}/${SHARD_TOTAL}" \
  --reporter=blob \
  --output="test-results/playwright-${SHARD_INDEX}"

Merge Playwright blob reports after all shards finish.

Read the full file on GitHub · 223 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 223 lines · 34 tokens per session scan A db910a1f8908

Subscribe to this mod's changes

CI Test Sharding Parallelization is a skill published in the GitHub repository PramodDutta/qaskills (253 stars, last pushed 1mo ago), licensed MIT. It adds 34 tokens to every session and 1,528 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

CI Test Sharding Parallelization compared with skills from other repositories

CI Test Sharding Parallelization next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
CI Test Sharding ParallelizationPramodDutta/qaskillsSkill2531mo agoMITA34Claude Code, Codex
automacao-de-testesricneves-ai/flowgrammers-skillsSkill1182mo agoMITA67Claude Code, Codex
test-generationsarveshtalele/mcp-skills-registrySkill32mo agoMITA51Claude Code, Codex
e2e-testingericrisco/rsc-harnessSkill7093d agoMITA79Claude Code, Codex
email-testingpetrkindlmann/qa-skillsSkill32319d agoMITA293Claude Code, Codex
playwright-automationpetrkindlmann/qa-skillsSkill32319d agoMITA177Claude Code, Codex
selector-drift-recoverypetrkindlmann/qa-skillsSkill32319d agoMITA218Claude Code, Codex