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
npx skills add ZaxbyHub/opencode-swarm --skill include-test-files-that-assert-on-behavior-being-changed-in-decl -a claude-codeWhat 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.mdin 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-code2Manually: put the files in place
~/.claude/skills/include-test-files-that-assert-on-behavior-being-changed-in-decl/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/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 codex2Manually: put the files in place
.agents/skills/include-test-files-that-assert-on-behavior-being-changed-in-decl/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add ZaxbyHub/opencode-swarm --skill include-test-files-that-assert-on-behavior-being-changed-in-decl -a cursor2Manually: put the files in place
.cursor/skills/include-test-files-that-assert-on-behavior-being-changed-in-decl/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install ZaxbyHub/opencode-swarm .opencode/skills/generated/include-test-files-that-assert-on-behavior-being-changed-in-decl2Manually: put the files in place
.github/skills/include-test-files-that-assert-on-behavior-being-changed-in-decl/SKILL.md1Skills CLI (Vercel)
npx skills add ZaxbyHub/opencode-swarm --skill include-test-files-that-assert-on-behavior-being-changed-in-decl -a gemini-cli2Platform CLI
gemini skills install https://github.com/ZaxbyHub/opencode-swarm --path .opencode/skills/generated/include-test-files-that-assert-on-behavior-being-changed-in-declManually: put the files in place
.devin/skills/include-test-files-that-assert-on-behavior-being-changed-in-decl/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add ZaxbyHub/opencode-swarm --skill include-test-files-that-assert-on-behavior-being-changed-in-decl -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 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