Skip to main content
skill CX Codex

include-test-files-that-assert-on-behavior-being-changed-in-decl skill

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.

MIT ★ 539 updated 2026-10-29

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add ZaxbyHub/opencode-swarm --skill include-test-files-that-assert-on-behavior-being-changed-in-decl -a claude-code
Open on GitHub

What include-test-files-that-assert-on-behavior-being-changed-in-decl does

The skill keeps a task's declared scope honest: every file whose behaviour shifts belongs in it, and that includes tests asserting on the changed path. Skip it and a fix goes out while the test covering the altered code sits outside the scope.

Two required steps. Name the test files whose assertions touch the modified behaviour, then read those assertions before a bug fix is handed off. A delegation template carries the line SKILLS: file:.opencode/skills/generated/include-test-files-that-assert-on-behavior-being-changed-in-decl/SKILL.md, and the reviewer confirms each required action turns up in the diff.

It is generated by the skill generator in opencode-swarm. Hand edits survive the next regeneration only in controlled update mode.

What it helps with

  • put tests covering changed behaviour into a task's scope
  • read test assertions before handing a bug fix to an agent
  • keep the failing test inside a delegated task
  • check the diff against the skill's required steps

Example prompts for the agent

  • Add the test files that assert on the changed behaviour to the task scope
  • Review the assertions in the affected tests before delegating the bug fix
  • Include SKILLS: file:.opencode/skills/generated/include-test-files-that-assert-on-behavior-being-changed-in-decl/SKILL.md in the delegation prompt

How to install include-test-files-that-assert-on-behavior-being-changed-in-decl

1Skills CLI (Vercel)

npx skills add ZaxbyHub/opencode-swarm --skill include-test-files-that-assert-on-behavior-being-changed-in-decl -a claude-code

2Manually: put the files in place

~/.claude/skills/include-test-files-that-assert-on-behavior-being-changed-in-decl/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/include-test-files-that-assert-on-behavior-being-changed-in-decl/

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

Questions about include-test-files-that-assert-on-behavior-being-changed-in-decl

How do I install include-test-files-that-assert-on-behavior-being-changed-in-decl in Claude Code?

Run npx skills add ZaxbyHub/opencode-swarm --skill include-test-files-that-assert-on-behavior-being-changed-in-decl -a claude-code. The skill lands in ~/.claude/skills/include-test-files-that-assert-on-behavior-being-changed-in-decl/SKILL.md.

What does this skill do?

It pulls the tests that assert on changed behaviour into a task's declared scope, and asks you to read their assertions before a bug fix is delegated.

Will my edits to SKILL.md survive?

The file comes from the skill generator in opencode-swarm. Edits made by hand are kept on the next regeneration only with controlled update mode.

Source text

SKILL.md · MIT
---
name: include-test-files-that-assert-on-behavior-being-changed-in-decl
description: include test files that assert on behavior being changed in declared scope
metadata:
  generated_from_knowledge: '["724f7982-dbd6-4f7d-a565-04aa8ce9bfbc"]'
  source_knowledge_ids: '["724f7982-dbd6-4f7d-a565-04aa8ce9bfbc"]'
  generated_at: "2026-07-14T05:31:49.971Z"
  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. -->

# include test files that assert on behavior being changed in declared scope

## Trigger

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

## Required Procedure

- include test files that assert on behavior being changed in declared scope
- review test assertions before delegating bug fixes

## Forbidden Shortcuts

- (none recorded)

## Delegation Template

When delegating a task affected by this skill, include:

```
SKILLS: file:.opencode/skills/generated/include-test-files-that-assert-on-behavior-being-changed-in-decl/SKILL.md
```

## Reviewer Checks

- Verify each required action above appears in the diff.

## Source Knowledge IDs

- 724f7982-dbd6-4f7d-a565-04aa8ce9bfbc — Declare scope for all files whose behavior changes, including tests that assert on the modified code path

© ZaxbyHub · MIT · ZaxbyHub/opencode-swarm

Similar skills

All skills for Testing and QA →

From the same set121

The whole set →
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-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. 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 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 pr-review-fix The pr-review-fix skill checks PR review findings against the current branch and fixes confirmed issues. Use it to work through reviewer comments, bot feedback, or a CI review summary. CX Codex +1 ★ 539repo stars verify-skill-mirror-pairs-exist-in-both-opencode-skills-and-clau verify-skill-mirror-pairs-exist-in-both-opencode-skills-and-clau is a Claude Code skill that checks generated skill trees for missing mirrors and folder-slug mismatches. CX Codex +1 ★ 539repo stars 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

Project sponsors

Companies that keep this analytics open