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
npx skills add ZaxbyHub/opencode-swarm --skill run-relevant-tests-after-adding-error-handling-wrappers -a claude-codeWhat 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-code2Manually: put the files in place
~/.claude/skills/run-relevant-tests-after-adding-error-handling-wrappers/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/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 codex2Manually: put the files in place
.agents/skills/run-relevant-tests-after-adding-error-handling-wrappers/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add ZaxbyHub/opencode-swarm --skill run-relevant-tests-after-adding-error-handling-wrappers -a cursor2Manually: put the files in place
.cursor/skills/run-relevant-tests-after-adding-error-handling-wrappers/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install ZaxbyHub/opencode-swarm .opencode/skills/generated/run-relevant-tests-after-adding-error-handling-wrappers2Manually: put the files in place
.github/skills/run-relevant-tests-after-adding-error-handling-wrappers/SKILL.md1Skills CLI (Vercel)
npx skills add ZaxbyHub/opencode-swarm --skill run-relevant-tests-after-adding-error-handling-wrappers -a gemini-cli2Platform CLI
gemini skills install https://github.com/ZaxbyHub/opencode-swarm --path .opencode/skills/generated/run-relevant-tests-after-adding-error-handling-wrappersManually: put the files in place
.devin/skills/run-relevant-tests-after-adding-error-handling-wrappers/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add ZaxbyHub/opencode-swarm --skill run-relevant-tests-after-adding-error-handling-wrappers -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-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