parallel-test-fixing — Claude Code skill: what it does, how to install
The skill runs your test suite and assigns each failing test file to a separate subagent for parallel fixes. It helps when multiple test files break simultaneously across a codebase.
npx skills add spencerpauly/awesome-cursor-skills --skill parallel-test-fixing -a claude-codeWhat parallel-test-fixing does
The skill executes npm test -- --no-coverage 2>&1 || true and extracts failing files from test output across Jest, Vitest, or Pytest. Each file becomes one task. It launches a dedicated generalPurpose subagent for each target. The subagent inspects the code, modifies the source, and verifies the individual test file.
Once subagents finish, the workflow collects file changes and checks for potential overlaps. A full run of npm test follows. If conflicting edits produce new failures, the agent resolves them sequentially. For large test suites with 50 or more failing tests, the guide suggests grouping 5 to 10 files per subagent instead of launching separate agents for each file.
Parallel fixing breaks down when two failing test files modify the same underlying source module. Concurrent edits will overwrite each other. In that scenario, shared source dependencies belong in a single subagent. For isolated worktrees during remediation, the workflow supports best-of-n-runner subagents.
What it helps with
- dispatch failing Jest, Vitest, or Pytest files to parallel subagents
- isolate fix attempts using
best-of-n-runnerworktrees - batch test failures into groups of 5–10 for large suites
- catch merge conflicts by rerunning
npm testafter parallel edits
Example prompts for the agent
- Run the test suite and assign failing files to parallel-test-fixing subagents.
- Fix these broken Vitest test files in parallel, grouping any tests that share source files.
- Batch the failing Pytest files into groups of five and repair them using parallel-test-fixing.
How to install parallel-test-fixing
1Skills CLI (Vercel)
npx skills add spencerpauly/awesome-cursor-skills --skill parallel-test-fixing -a claude-code2Manually: put the files in place
~/.claude/skills/parallel-test-fixing/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/parallel-test-fixing/
1Skills CLI (Vercel)
npx skills add spencerpauly/awesome-cursor-skills --skill parallel-test-fixing -a codex2Manually: put the files in place
.agents/skills/parallel-test-fixing/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add spencerpauly/awesome-cursor-skills --skill parallel-test-fixing -a cursor2Manually: put the files in place
.cursor/skills/parallel-test-fixing/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install spencerpauly/awesome-cursor-skills parallel-test-fixing2Manually: put the files in place
.github/skills/parallel-test-fixing/SKILL.md1Skills CLI (Vercel)
npx skills add spencerpauly/awesome-cursor-skills --skill parallel-test-fixing -a gemini-cli2Platform CLI
gemini skills install https://github.com/spencerpauly/awesome-cursor-skills --path resources/parallel-test-fixingManually: put the files in place
.devin/skills/parallel-test-fixing/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add spencerpauly/awesome-cursor-skills --skill parallel-test-fixing -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about parallel-test-fixing
How do I install parallel-test-fixing in Claude Code?
Run npx skills add spencerpauly/awesome-cursor-skills --skill parallel-test-fixing -a claude-code. The skill file is placed at ~/.claude/skills/parallel-test-fixing/SKILL.md.
What does parallel-test-fixing do?
It runs your test suite, captures failing files from test runners like Vitest or Jest, and assigns each file to an independent subagent. After subagents apply fixes, it executes npm test to verify the full suite.
What happens if multiple failing tests share the same source file?
Assign those tests to the same subagent instead of running them in parallel. Running them separately risks conflicting file edits on the shared source code.
Source text
SKILL.md · CC0-1.0
--- name: parallel-test-fixing description: When multiple tests fail, assign each failing test file to a separate subagent that fixes it independently in parallel. user-invocable: true --- # Parallel Test Fixing Speed up fixing a broken test suite by distributing failing tests across parallel subagents. ## Workflow ### 1. Run the Full Test Suite ```bash npm test -- --no-coverage 2>&1 || true ``` Capture the output and extract all failing test files. ### 2. Group Failures Parse the test output for failing files: - Jest: `FAIL src/components/Button.test.tsx` - Vitest: `FAIL src/utils/format.test.ts` - Pytest: `FAILED tests/test_api.py::test_create_user` Group by file — each file becomes one task. ### 3. Launch Parallel Subagents For each failing test file, launch a `generalPurpose` subagent: ``` Task: Fix the failing tests in <file> The test file is: <path> The test command is: <command to run just this file> The error output was: <paste the relevant failure output> Steps: 1. Read the test file and the source file it tests 2. Understand why each test is failing 3. Fix the source code (preferred) or update the test if the test is wrong 4. Run the single test file to confirm it passes 5. Report what you changed and why ``` Launch all subagents simultaneously — they work in parallel since each touches different files. ### 4. Collect Results As each subagent completes, collect: - Which tests were fixed - What files were changed - Whether the fix might conflict with another subagent's changes ### 5. Verify Run the full test suite one more time to confirm everything passes: ```bash npm test ``` If there are new failures (from conflicting fixes), resolve them sequentially. ## Tips - If two failing tests share the same source file, assign them to the same subagent to avoid edit conflicts - Set a timeout — if a subagent is stuck for 5+ minutes, check its progress - For large test suites (50+ failures), batch into groups of 5-10 per subagent rather than one-per-file - Use `best-of-n-runner` subagents if you want isolated worktrees for each fix attempt
© spencerpauly · CC0-1.0 · spencerpauly/awesome-cursor-skills