test-setup — скилл для Claude Code: что делает и как установить
Скилл создаёт основу для автотестов и CI: каталоги, конфигурацию тестового раннера и workflow GitHub Actions. Нужен до начала разработки.
npx skills add Donchitos/Claude-Code-Game-Studios --skill test-setup -a claude-codeЧто делает test-setup
Скилл определяет настроенный движок проекта, готовит структуру tests/, конфигурацию его тестового раннера и workflow .github/workflows/tests.yml. Через шесть фаз он проверяет текущее состояние, показывает план, создаёт отсутствующие файлы, настраивает CI/CD, добавляет заготовку smoke-теста и выводит итог.
Скилл не перезаписывает существующие тестовые файлы. Перед созданием файлов он запрашивает подтверждение, а флаг force лишь позволяет продолжить при уже существующем каталоге: он всё равно создаёт только отсутствующие файлы. Если движок проекта не настроен, работа останавливается и нужно перейти к /setup-engine.
Для Unity CI секрет UNITY_LICENSE настраивается вручную. Это повод проверить секрет до запуска workflow, иначе подготовленная автоматизация не получит лицензию.
Какие задачи решает
- создать структуру каталога
tests/ - настроить тестовый раннер для движка проекта
- добавить workflow GitHub Actions для запуска тестов при каждом push
- подготовить smoke-тест для начала разработки
- проверить, какие файлы тестовой инфраструктуры уже существуют
Примеры запросов агенту
- Запусти скилл
test-setupперед началом первого спринта и покажи план. - Запусти
test-setup force, создай только отсутствующие файлы и не перезаписывай тесты. - Настрой тестовую инфраструктуру проекта и workflow
.github/workflows/tests.ymlчерез скиллtest-setup.
Как установить test-setup
1Через Skills CLI (Vercel)
npx skills add Donchitos/Claude-Code-Game-Studios --skill test-setup -a claude-code2Вручную: положить файлы
~/.claude/skills/test-setup/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/test-setup/
1Через Skills CLI (Vercel)
npx skills add Donchitos/Claude-Code-Game-Studios --skill test-setup -a codex2Вручную: положить файлы
.agents/skills/test-setup/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add Donchitos/Claude-Code-Game-Studios --skill test-setup -a cursor2Вручную: положить файлы
.cursor/skills/test-setup/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install Donchitos/Claude-Code-Game-Studios test-setup2Вручную: положить файлы
.github/skills/test-setup/SKILL.md1Через Skills CLI (Vercel)
npx skills add Donchitos/Claude-Code-Game-Studios --skill test-setup -a gemini-cli2Командой платформы
gemini skills install https://github.com/Donchitos/Claude-Code-Game-Studios --path .claude/skills/test-setupВручную: положить файлы
.devin/skills/test-setup/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add Donchitos/Claude-Code-Game-Studios --skill test-setup -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о test-setup
Как установить test-setup в Claude Code?
Выполните по порядку: npx skills add Donchitos/Claude-Code-Game-Studios --skill test-setup -a claude-code, затем повторите npx skills add Donchitos/Claude-Code-Game-Studios --skill test-setup -a claude-code, после чего откройте ~/.claude/skills/test-setup/SKILL.md.
Что делает скилл test-setup?
Он создаёт основу тестовой инфраструктуры проекта: каталог tests/, конфигурацию тестового раннера, workflow .github/workflows/tests.yml и заготовку smoke-теста. Также он проверяет существующие файлы и не перезаписывает их.
Что произойдёт, если движок проекта не настроен?
Скилл остановится и перенаправит к /setup-engine. Он не угадывает, какой движок использовать.
Исходный текст
SKILL.md · MIT
---
name: test-setup
description: "Scaffold the test framework and CI — tests/ directory, engine test runner, GitHub Actions workflow. Once, before the first sprint."
argument-hint: "[force]"
user-invocable: true
allowed-tools: Read, Glob, Grep, Write, Bash(grep -q 'com.unity.test-framework' Packages/manifest.json), Bash(bash "*/.claude/skills/test-setup/../../hooks/yaml-helper.sh" resolve_config *)
model: sonnet
---
!`bash "${CLAUDE_SKILL_DIR}/../../hooks/yaml-helper.sh" resolve_config --keys automation,workflow,qa.level`
**Automation mode**: Resolve `modes.automation` (`project.local.yaml` →
`project.yaml` → default `collaborative`). Every `AskUserQuestion` call and
every file write follows `.claude/docs/automation-modes.md`
(collaborative asks always · guided major-only · autonomous logs and proceeds;
`automation_always_ask` categories always prompt).
# Test Setup
This skill scaffolds the automated testing infrastructure for the project.
It detects the configured engine, generates the appropriate test runner
configuration, creates the standard directory layout, and wires up CI/CD
so tests run on every push.
Run this once during the Technical Setup phase, before any implementation
begins. A test framework installed at sprint start costs 30 minutes.
A test framework installed at sprint four costs 3 sprints.
**Output:** `tests/` directory structure + `.github/workflows/tests.yml`
---
## Phase 1: Detect Engine and Existing State
**Read `references/1-detect.md` now and follow it** — this phase's steps are in that file, not here. Read it again if the conversation was compacted or resumed during this phase.
## Phase 2: Present Plan
**Read `references/2-plan.md` now and follow it** — this phase's steps are in that file, not here. Read it again if the conversation was compacted or resumed during this phase.
## Phase 3: Create Directory Structure
**Read `references/3-directories.md` now and follow it** — this phase's steps are in that file, not here. Read it again if the conversation was compacted or resumed during this phase.
## Phase 4: Create CI/CD Workflow
**Read `references/4-ci.md` now and follow it** — this phase's steps are in that file, not here. Read it again if the conversation was compacted or resumed during this phase.
## Phase 5: Create Smoke Test Seed
**Read `references/5-smoke-seed.md` now and follow it** — this phase's steps are in that file, not here. Read it again if the conversation was compacted or resumed during this phase.
## Phase 6: Post-Setup Summary
**Read `references/6-summary.md` now and follow it** — this phase's steps are in that file, not here. Read it again if the conversation was compacted or resumed during this phase.
## Collaborative Protocol
- **Never overwrite existing test files** — only create files that are missing.
If a test runner file exists, leave it as-is.
- **Always ask before creating files** — Phase 2 requires explicit approval.
- **Engine detection is non-negotiable** — if the engine is not configured,
stop and redirect to `/setup-engine`. Do not guess.
- **`force` flag skips the "already exists" early-exit but never overwrites.**
It means "create any missing files even if the directory already exists."
- For Unity CI, note that the `UNITY_LICENSE` secret must be configured
manually. Do not attempt to automate license management.
© Donchitos · MIT · Donchitos/Claude-Code-Game-Studios