Skip to main content
skill CX Codex

run-relevant-tests-after-adding-error-handling-wrappers — skill

run-relevant-tests-after-adding-error-handling-wrappers is a Claude Code skill that prompts an agent to run relevant tests after adding error handling and check the success path's original return type and value.

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-relevant-tests-after-adding-error-handling-wrappers -a claude-code
Open on GitHub

What run-relevant-tests-after-adding-error-handling-wrappers does

When existing logic gets an error-handling wrapper, the skill calls for relevant tests and a check of the success path. The return type and value should stay the same as before the change.

A wrapper that drops a result or alters its type can break downstream tests. The skill also calls for tests that exercise the condition triggering error handling. It supports Claude Code, Codex, and OpenCode. For Claude Code, install it with npx.

Run npx skills add ZaxbyHub/opencode-swarm --skill run-relevant-tests-after-adding-error-handling-wrappers -a claude-code. The skill file is placed at ~/.claude/skills/run-relevant-tests-after-adding-error-handling-wrappers/SKILL.md.

What it helps with

  • run relevant tests after adding error handling
  • preserve the return type on successful calls
  • catch wrappers that drop successful results
  • test the condition that triggers error handling

Example prompts for the agent

  • Add error handling around this logic, run relevant tests, and check that successful calls return the same result.
  • Check that this wrapper preserves the return type and value on the success path.
  • Add a test for the error condition and verify the successful path still behaves as before.

How to install run-relevant-tests-after-adding-error-handling-wrappers

1Skills CLI (Vercel)

npx skills add ZaxbyHub/opencode-swarm --skill run-relevant-tests-after-adding-error-handling-wrappers -a claude-code

2Manually: put the files in place

~/.claude/skills/run-relevant-tests-after-adding-error-handling-wrappers/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/run-relevant-tests-after-adding-error-handling-wrappers/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about run-relevant-tests-after-adding-error-handling-wrappers

How do I install run-relevant-tests-after-adding-error-handling-wrappers in Claude Code?

Run npx skills add ZaxbyHub/opencode-swarm --skill run-relevant-tests-after-adding-error-handling-wrappers -a claude-code. The skill file is placed at ~/.claude/skills/run-relevant-tests-after-adding-error-handling-wrappers/SKILL.md.

What does run-relevant-tests-after-adding-error-handling-wrappers do?

It calls for relevant tests after adding error handling and a check that successful calls keep their previous return type and value.

What should tests cover after adding an error-handling wrapper?

Test the condition that triggers error handling, then verify the success path. The wrapper should not change the return type or discard the result.

Source text

SKILL.md · MIT
---
name: run-relevant-tests-after-adding-error-handling-wrappers
description: run relevant tests after adding error-handling wrappers
metadata:
  generated_from_knowledge: '["5c95c592-7720-4c63-aa85-0c0ecee6d20b"]'
  source_knowledge_ids: '["5c95c592-7720-4c63-aa85-0c0ecee6d20b"]'
  generated_at: "2026-07-14T05:31:50.456Z"
  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 relevant tests after adding error-handling wrappers

## Trigger

- (no explicit trigger metadata; cluster derived from category/tags)

## Required Procedure

- run relevant tests after adding error-handling wrappers
- confirm return type and value unchanged for non-error paths

## Forbidden Shortcuts

- (none recorded)

## Delegation Template

When delegating a task affected by this skill, include:

```
SKILLS: file:.opencode/skills/generated/run-relevant-tests-after-adding-error-handling-wrappers/SKILL.md
```

## Reviewer Checks

- Verify each required action above appears in the diff.

## Test Engineer Checks

- Add or update tests covering the trigger condition and the forbidden shortcut.

## Source Knowledge IDs

- 5c95c592-7720-4c63-aa85-0c0ecee6d20b — When wrapping existing logic in try/catch for crash prevention, verify the happy-path output is preserved — error guarding that changes return types or swallows results will break downstream tests.

© ZaxbyHub · MIT · ZaxbyHub/opencode-swarm

Similar skills

All skills for Testing and QA →

From the same set121

The whole set →
isolate-the-specific-failure-mode-before-proposing-a-fix isolate-the-specific-failure-mode-before-proposing-a-fix is a Claude Code skill that identifies the cause of each test failure before fixes, keeping unrelated failures in separate patches. CX Codex +1 ★ 539repo stars run-test-suite-after-registration-changes The run-test-suite-after-registration-changes skill calls for running the test suite after registration edits and checking that each registration point stays in sync. Use it when changing skill files and their manifests. CX Codex +1 ★ 539repo stars grep-for-mock-module-across-the-entire-test-file-and-confirm-eve grep-for-mock-module-across-the-entire-test-file-and-confirm-eve is a Claude Code skill that checks every mock.module call in a test file for real-export spreads during a Vitest-to-Bun migration. CX Codex +1 ★ 539repo stars codebase-review-swarm codebase-review-swarm runs quote-grounded code reviews and security or QA audits without editing project files. Built for deep inspections across entire codebases or large subsystems. CX Codex +1 ★ 539repo stars issue-tracer issue-tracer walks a bug from reproduction to a PR-ready fix: locate the cause, plan the patch, get it reviewed. CX Codex +1 ★ 539repo stars swarm-ci-monitor swarm-ci-monitor monitors CI runs on approved pull requests, repairs broken checks within five cycles, and merges the branch once tests pass. CX Codex +1 ★ 539repo stars restore-internals-seams-in-finally-blocks-after-each-test restore-internals-seams-in-finally-blocks-after-each-test is a Claude Code skill that directs agents to restore original _internals in finally after each test of error paths through DI seams. CX Codex +1 ★ 539repo stars check-skill-provenance-stamps-before-archiving-knowledge-entries check-skill-provenance-stamps-before-archiving-knowledge-entries is a Claude Code skill that checks source_refs and UUIDs before archiving knowledge entries, stopping removal if an active skill depends on one. CX Codex +1 ★ 539repo stars

Project sponsors

Companies that keep this analytics open