一键导入
parallel-test-fixing
When multiple tests fail, assign each failing test file to a separate subagent that fixes it independently in parallel.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
When multiple tests fail, assign each failing test file to a separate subagent that fixes it independently in parallel.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use Cursor's browser aria snapshots to audit a page for accessibility issues — missing labels, broken tab order, contrast, and ARIA misuse.
Add PostHog analytics to a web application, including event tracking, page views, feature flags, and session replay.
Generate OpenAPI/Swagger documentation for an API, including endpoint schemas, request/response types, and interactive docs UI.
Add authentication to a web application using NextAuth.js (Auth.js), including OAuth providers, session management, and protected routes.
Dockerize an application with a production-ready Dockerfile, docker-compose setup, and .dockerignore.
Set up Playwright end-to-end testing in a project, including test configuration, example tests, and CI integration.
| 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 |
Speed up fixing a broken test suite by distributing failing tests across parallel subagents.
npm test -- --no-coverage 2>&1 || true
Capture the output and extract all failing test files.
Parse the test output for failing files:
FAIL src/components/Button.test.tsxFAIL src/utils/format.test.tsFAILED tests/test_api.py::test_create_userGroup by file — each file becomes one task.
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.
As each subagent completes, collect:
Run the full test suite one more time to confirm everything passes:
npm test
If there are new failures (from conflicting fixes), resolve them sequentially.
best-of-n-runner subagents if you want isolated worktrees for each fix attempt