include-test-files-that-assert-on-behavior-being-changed-in-decl скилл
Скилл include-test-files-that-assert-on-behavior-being-changed-in-decl для Claude Code включает в scope задачи тесты изменяемого поведения, чтобы агент исправлял код вместе с проверками.
MIT ★ 539 обновлён 2026-10-29
npx skills add ZaxbyHub/opencode-swarm --skill include-test-files-that-assert-on-behavior-being-changed-in-decl -a claude-codeЧто делает include-test-files-that-assert-on-behavior-being-changed-in-decl
Скилл задаёт правило для делегирования: в объявленный объём задачи попадают все файлы, чьё поведение меняется, включая тесты, которые проверяют изменённый участок кода. Без этого агенту отдают правку, а падающий тест остаётся вне scope и всплывает позже.
Внутри два обязательных шага: перечислить тестовые файлы с проверками на затронутое поведение и просмотреть их утверждения до того, как отдавать исправление бага. Для делегирования есть шаблон со строкой SKILLS: file:.opencode/skills/generated/include-test-files-that-assert-on-behavior-being-changed-in-decl/SKILL.md, а проверяющий сверяет по диффу, что каждый пункт выполнен.
Файл собран генератором скиллов opencode-swarm. Правки руками сохранятся при следующей регенерации только в контролируемом режиме обновления.
Какие задачи решает
- включить в объявленный объём задачи тесты, завязанные на изменяемый код
- проверить утверждения в тестах перед делегированием исправления бага
- не потерять падающий тест при передаче задачи агенту
- сверить дифф с обязательными действиями из скилла
Примеры запросов агенту
- Составь scope задачи и добавь туда тестовые файлы, которые проверяют изменяемое поведение
- Перед тем как отдать исправление бага, просмотри утверждения в затронутых тестах
- Добавь в делегирование строку
SKILLS: file:.opencode/skills/generated/include-test-files-that-assert-on-behavior-being-changed-in-decl/SKILL.md
Как установить include-test-files-that-assert-on-behavior-being-changed-in-decl
1Через Skills CLI (Vercel)
npx skills add ZaxbyHub/opencode-swarm --skill include-test-files-that-assert-on-behavior-being-changed-in-decl -a claude-code2Вручную: положить файлы
~/.claude/skills/include-test-files-that-assert-on-behavior-being-changed-in-decl/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/include-test-files-that-assert-on-behavior-being-changed-in-decl/
1Через Skills CLI (Vercel)
npx skills add ZaxbyHub/opencode-swarm --skill include-test-files-that-assert-on-behavior-being-changed-in-decl -a codex2Вручную: положить файлы
.agents/skills/include-test-files-that-assert-on-behavior-being-changed-in-decl/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add ZaxbyHub/opencode-swarm --skill include-test-files-that-assert-on-behavior-being-changed-in-decl -a cursor2Вручную: положить файлы
.cursor/skills/include-test-files-that-assert-on-behavior-being-changed-in-decl/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install ZaxbyHub/opencode-swarm .opencode/skills/generated/include-test-files-that-assert-on-behavior-being-changed-in-decl2Вручную: положить файлы
.github/skills/include-test-files-that-assert-on-behavior-being-changed-in-decl/SKILL.md1Через Skills CLI (Vercel)
npx skills add ZaxbyHub/opencode-swarm --skill include-test-files-that-assert-on-behavior-being-changed-in-decl -a gemini-cli2Командой платформы
gemini skills install https://github.com/ZaxbyHub/opencode-swarm --path .opencode/skills/generated/include-test-files-that-assert-on-behavior-being-changed-in-declВручную: положить файлы
.devin/skills/include-test-files-that-assert-on-behavior-being-changed-in-decl/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через 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 и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы об include-test-files-that-assert-on-behavior-being-changed-in-decl
Как установить include-test-files-that-assert-on-behavior-being-changed-in-decl в Claude Code?
Выполните npx skills add ZaxbyHub/opencode-swarm --skill include-test-files-that-assert-on-behavior-being-changed-in-decl -a claude-code. Скилл окажется в ~/.claude/skills/include-test-files-that-assert-on-behavior-being-changed-in-decl/SKILL.md.
Что делает этот скилл?
Добавляет в объявленный scope задачи тесты, которые проверяют изменяемое поведение, и требует просмотреть их утверждения до делегирования исправления бага.
Сохранятся ли мои правки в SKILL.md?
Файл генерирует skill-generator из opencode-swarm. Ручные правки выживут при следующей регенерации только в контролируемом режиме обновления.
Исходный текст
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