Skip to main content
skill CX Codex

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

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add ZaxbyHub/opencode-swarm --skill run-failing-tests-immediately-after-test-gate-failure -a claude-code
Open on GitHub

What 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_gate goes 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_gate failed 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.md to 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-code

2Manually: put the files in place

~/.claude/skills/run-failing-tests-immediately-after-test-gate-failure/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/run-failing-tests-immediately-after-test-gate-failure/

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

Similar skills

All skills for Testing and QA →

From the same set121

The whole set →
opt-in-tool-registration The opt-in-tool-registration skill sets a pattern for registering opt-in tools through a separate map and conditional merging in agents/index.ts. Use it when adding a feature controlled by a flag. CX Codex +1 ★ 539repo stars ensure-all-tests-pass-after-code-changes ensure-all-tests-pass-after-code-changes — a skill that keeps the agent honest about tests: run them after an edit, and don't hand a failing branch to review. Test updates ship with the code. CX Codex +1 ★ 539repo stars codebase-review-swarm codebase-review-swarm executes quote-grounded codebase audits across security, QA, and performance. Suitable for full-repository assessments where no source files may be touched. CX Codex +1 ★ 539repo stars add-path-type-assertions-or-realpath-resolve-calls-in-path-joini add-path-type-assertions-or-realpath-resolve-calls-in-path-joini is a Claude Code skill that adds path-type checks or realpath/resolve calls to path-joining utilities. It activates around path.join, realpath, and fs path work. CX Codex +1 ★ 539repo stars run-tests-on-the-unmodified-codebase-before-starting-to-establis run-tests-on-the-unmodified-codebase-before-starting-to-establis is a Claude Code skill that requires running tests on untouched code before edits, recording failures to distinguish them from new regressions. CX Codex +1 ★ 539repo stars engineering-conventions The engineering-conventions skill sets a workflow for changes that could affect opencode-swarm’s engineering invariants. Use it when editing architecture, tests, or session state. CX Codex +1 ★ 539repo stars include-test-files-that-assert-on-behavior-being-changed-in-decl include-test-files-that-assert-on-behavior-being-changed-in-decl is a Claude Code skill that puts tests for changed behaviour in scope, so an agent fixes code alongside its checks. CX Codex +1 ★ 539repo stars run-relevant-tests-after-logic-changes run-relevant-tests-after-logic-changes enforces running target test suites after code changes and forbids reporting completion until all checks pass. CX Codex +1 ★ 539repo stars

Project sponsors

Companies that keep this analytics open