run-failing-tests-immediately-after-test-gate-failure
run-failing-tests-immediately-after-test-gate-failure is a Claude Code skill that makes the agent rerun failing tests when test_gate fails and repair the root cause before claiming the task is done.
MIT ★ 539 updated 2026-10-29
npx skills add ZaxbyHub/opencode-swarm --skill run-failing-tests-immediately-after-test-gate-failure -a claude-codeWhat run-failing-tests-immediately-after-test-gate-failure does
The skill sets two rules for the agent: run the failing tests as soon as test_gate goes red, and fix the root cause instead of handing the task back. Inside there is a short list of required actions and a delegation snippet pointing at .opencode/skills/generated/run-failing-tests-immediately-after-test-gate-failure/SKILL.md. A reviewer check then expects every action to show up in the diff.
It hangs off the test_gate step. No gate in your pipeline means nothing fires, so you would have to invoke it yourself. The SKILLS: file:... line also has to reach the delegation prompt, or the subagent never loads it.
Why bother: the first repair attempt costs less than a re-dispatch. The completion claim stays tied to a green run.
What it helps with
- rerun failing tests right after
test_gategoes red - trace the failure to its root cause instead of re-dispatching the task
- hold the completion claim until the suite passes
- confirm in the diff that every required step ran
Example prompts for the agent
test_gatefailed on my branch. Run the failing tests, fix the root cause, then report back.- Don't re-dispatch the task — run the failing tests yourself and repair the cause.
- Add
SKILLS: file:.opencode/skills/generated/run-failing-tests-immediately-after-test-gate-failure/SKILL.mdto the delegation prompt.
How to install run-failing-tests-immediately-after-test-gate-failure
1Skills CLI (Vercel)
npx skills add ZaxbyHub/opencode-swarm --skill run-failing-tests-immediately-after-test-gate-failure -a claude-code2Manually: put the files in place
~/.claude/skills/run-failing-tests-immediately-after-test-gate-failure/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/run-failing-tests-immediately-after-test-gate-failure/
1Skills CLI (Vercel)
npx skills add ZaxbyHub/opencode-swarm --skill run-failing-tests-immediately-after-test-gate-failure -a codex2Manually: put the files in place
.agents/skills/run-failing-tests-immediately-after-test-gate-failure/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add ZaxbyHub/opencode-swarm --skill run-failing-tests-immediately-after-test-gate-failure -a cursor2Manually: put the files in place
.cursor/skills/run-failing-tests-immediately-after-test-gate-failure/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install ZaxbyHub/opencode-swarm .opencode/skills/generated/run-failing-tests-immediately-after-test-gate-failure2Manually: put the files in place
.github/skills/run-failing-tests-immediately-after-test-gate-failure/SKILL.md1Skills CLI (Vercel)
npx skills add ZaxbyHub/opencode-swarm --skill run-failing-tests-immediately-after-test-gate-failure -a gemini-cli2Platform CLI
gemini skills install https://github.com/ZaxbyHub/opencode-swarm --path .opencode/skills/generated/run-failing-tests-immediately-after-test-gate-failureManually: put the files in place
.devin/skills/run-failing-tests-immediately-after-test-gate-failure/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add ZaxbyHub/opencode-swarm --skill run-failing-tests-immediately-after-test-gate-failure -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 run-failing-tests-immediately-after-test-gate-failure
How do I install run-failing-tests-immediately-after-test-gate-failure in Claude Code?
Run npx skills add ZaxbyHub/opencode-swarm --skill run-failing-tests-immediately-after-test-gate-failure -a claude-code. The skill lands at ~/.claude/skills/run-failing-tests-immediately-after-test-gate-failure/SKILL.md.
What does this skill do?
It tells the agent to run the failing tests right after test_gate fails and fix the root cause before declaring the work complete.
How does the subagent find the skill?
Through the SKILLS: file:.opencode/skills/generated/run-failing-tests-immediately-after-test-gate-failure/SKILL.md line in the delegation prompt.
Source text
SKILL.md · MIT
--- name: run-failing-tests-immediately-after-test-gate-failure description: run failing tests immediately after test_gate failure metadata: generated_from_knowledge: '["4c577a3e-aa1a-4fce-9fda-a353a592895a"]' source_knowledge_ids: '["4c577a3e-aa1a-4fce-9fda-a353a592895a"]' generated_at: "2026-07-14T05:31:50.321Z" confidence: "0.60" status: active version: "1" skill_origin: generated --- <!-- generated by opencode-swarm skill-generator. Do not edit by hand; edits will be preserved on regeneration only with controlled update mode. --> # run failing tests immediately after test_gate failure ## Trigger - (no explicit trigger metadata; cluster derived from category/tags) ## Required Procedure - run failing tests immediately after test_gate failure - fix root cause before re-declaring completion ## Forbidden Shortcuts - (none recorded) ## Delegation Template When delegating a task affected by this skill, include: ``` SKILLS: file:.opencode/skills/generated/run-failing-tests-immediately-after-test-gate-failure/SKILL.md ``` ## Reviewer Checks - Verify each required action above appears in the diff. ## Source Knowledge IDs - 4c577a3e-aa1a-4fce-9fda-a353a592895a — When test gate fails on your work, run the failing tests yourself and fix root cause rather than waiting for re-dispatch — the first fix attempt is cheapest.
© ZaxbyHub · MIT · ZaxbyHub/opencode-swarm