test-setup
Skill41 starsChanged 7 months agoMITView on GitHub
Scaffold the test framework and CI pipeline for the project. Creates the tests/ directory structure, framework-specific test runner, and GitHub Actions or Bitrise workflow. Run once during Technical Setup before the first sprint.
- Reads credentials
7 other projects use a version of this.
Adopted by
Most recently taken up by
- HunLuanZhiZhu/Game-Studios-Plugintheir own version, first seen Oct 5, 2026
- Donchitos/Claude-Code-Game-Studiostheir own version, first seen Sep 29, 2026
- gonimar/claude-web-studiotheir own version, first seen Sep 27, 2026
- dawn840705/codex-code-studiostheir own version, first seen Aug 28, 2026
- striderZA/OpenCodeGameStudiostheir own version, first seen Aug 10, 2026
- ZaneL1u/test-generate-skillstheir own version, first seen Jun 18, 2026
Used with
Projects with it also use playtest-report, team-audio and 6 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
CoralGameSkillplaytest-report
Generates a structured playtest report template or analyzes existing playtest notes into a structured format. Use this to standardize playtest feedback collection and analysis.
Also in 4 projects that use this
CoralGameSkillteam-audio
Orchestrate audio team: audio-director + sound-designer + technical-artist + gameplay-programmer for full audio pipeline from direction to implementation.
Also in 4 projects that use this
MRCalderon3DSkillart-bible
Define a visual direction that artists, UI, technical art, and marketing can execute consistently.
Also in 4 projects that use this
striderZASkillreview-all-gdds
Holistic cross-GDD consistency and game design review. Reads all system GDDs simultaneously and checks for contradictions between them, stale references, ownership conflicts, formula incompatibilities, and game design theory violations (dominant strategies, economic imbalance, cognitive overload, pillar drift). Run after all MVP GDDs are written, before architecture begins.
Also in 3 projects that use this
- +4 more from CoralGame
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 7
- Donchitos/Claude-Code-Game-Studios★ 26ksame name
- striderZA/OpenCodeGameStudios★ 90same name
- dawn840705/codex-code-studios★ 17same name
- gonimar/claude-web-studio★ 5same name
- evgenii-studitskikh/Claude-Code-SaaS-Studio★ 1same name
- HunLuanZhiZhu/Game-Studios-Plugin★ 1same name
- ZaneL1u/test-generate-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository77 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- design/CLAUDE.mdCLAUDE.md
- docs/CLAUDE.mdCLAUDE.md
- src/CLAUDE.mdCLAUDE.md
- tests/CLAUDE.mdCLAUDE.md
- adoptSkill
- architecture-decisionSkill
- architecture-reviewSkill
- asset-auditSkill
- asset-specSkill
- balance-checkSkill
- brainstormSkill
- bug-reportSkill
- bug-triageSkill
- changelogSkill
- code-reviewSkill
- consistency-checkSkill
- content-auditSkill
- create-architectureSkill
- create-control-manifestSkill
- create-epicsSkill
- create-storiesSkill
- day-one-patchSkill
- design-bibleSkill
- design-reviewSkill
- design-systemSkill
- dev-storySkill
- estimateSkill
- extractSkill
- gate-checkSkill
- helpSkill
- hotfixSkill
- launch-checklistSkill
- localizeSkill
- map-systemsSkill
- milestone-reviewSkill
- onboardSkill
- patch-notesSkill
- perf-profileSkill
- prd-reviewSkill
- project-stage-detectSkill
- propagate-design-changeSkill
- prototypeSkill
- qa-planSkill
- quick-designSkill
- regression-suiteSkill
- release-checklistSkill
- retrospectiveSkill
- reverse-documentSkill
- review-all-prdsSkill
- scope-checkSkill
- security-auditSkill
- setup-frameworkSkill
- skill-improveSkill
- skill-testSkill
- smoke-checkSkill
- soak-testSkill
- sprint-planSkill
- sprint-statusSkill
- startSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 5 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 21
Read these in parallel:
- Very specific: line 30
If Framework is [TO BE CONFIGURED], stop and tell the user: "Run /setup-framework first.
- Distinctive: line 38
If the Testing Framework field is empty, propose a default per framework via AskUserQuestion:
- Distinctive: line 90
Write framework-specific configuration.
- Very specific: line 169
Create tests/smoke/critical-paths.md listing the first set of smoke scenarios.
- Distinctive: line 201
Run a quick smoke validation via Bash:
- Distinctive: line 208
If the smoke run fails, surface the exact error and stop before proceeding.
- Very specific: line 228
Run /test-helpers to seed the helper library.
- Very specific: line 229
Run /qa-plan sprint-01 once the first sprint is planned to flesh out the device matrix.
“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Test Setup
One-shot scaffolding of a mobile project's test pyramid plus its CI runner. Reads the pinned framework, generates the test directory tree, drops in a runnable example test for each level, and writes a CI workflow file that invokes the right runner.
Phase 1: Read Project Context
Read these in parallel:
CLAUDE.md— confirm project name and target platforms..claude/docs/technical-preferences.md— pull Framework, Language, Naming Conventions, Testing Framework (if already chosen), and Target Platforms..claude/docs/coding-standards.md— confirm the test naming and determinism rules.
If Framework is [TO BE CONFIGURED], stop and tell the user:
"Run /setup-framework first; the test scaffolding depends on a pinned
framework."
Phase 2: Pick the Test Stack
If the Testing Framework field is empty, propose a default per framework via AskUserQuestion:
| Framework | Unit | Component / widget | E2E |
| React Native | Jest + React Native Testing Library | RNTL | Detox or Maestro |
| Flutter | package:test | flutter_test widget tests | integration_test + Maestro or Patrol |
| iOS native | XCTest | XCTest + ViewInspector (SwiftUI) | XCUITest or Maestro |
| Android native | JUnit5 + MockK | Compose UI test or Espresso | Espresso, UI Automator, or Maestro |
Confirm the choices with the user. Persist the answer back into
.claude/docs/technical-preferences.md under
## Testing as Framework: [choices].
Phase 3: Choose the CI Provider
Parse the --ci flag. If absent, ask:
[A] GitHub Actions(default for OSS, free macOS minutes are limited)[B] Bitrise(mobile-first, simpler iOS signing)[C] CircleCI[D] None — local only for now
Capture the choice in technical-preferences as CI: [provider].
Phase 4: Create the Directory Tree
Confirm with the user:
"I'd like to create the following:
tests/ unit/ — fast, deterministic, no I/O integration/ — multi-module, may use in-memory DB e2e/ — full app on simulator/emulator helpers/ — factories, mocks, shared assertions fixtures/ — JSON / image fixtures regression/ — bug regression tests smoke/ — critical-path smoke tests Plus a runner config file and a CI workflow. May I proceed?"
On approval, create each directory with a .gitkeep (no other files yet).
Phase 5: Drop In Runner Configuration
Write framework-specific configuration. Always ask before each write.
React Native (Jest + RNTL + Detox or Maestro)
jest.config.js— presetreact-native, transform ignore patterns, setup file pointing totests/helpers/jest.setup.ts, coverage threshold defaults (lines 70%, branches 60%).tests/helpers/jest.setup.ts— global mocks (AsyncStorage, native modules), fake timers helpers, RNTLcleanuphook..detoxrc.js(if Detox) — iOS simulator and Android emulator targets.tests/e2e/.maestro/login.yaml(if Maestro) — placeholder flow.
Flutter (test + flutter_test + Patrol)
dart_test.yaml— tags forunit,integration, concurrency settings.integration_test/app_test.dart— placeholder integration test.pubspec.yamldev_dependencies edits (suggest only — never silently edit the user's pubspec).
iOS (XCTest + XCUITest)
*.xctestplan— separate plans for unit, integration, ui.tests/unit/SampleUnitTests.swift— placeholder.tests/e2e/SampleUITests.swift— placeholder.
Android (JUnit5 + Compose + Espresso)
build.gradle.ktstest source set additions (propose, don't auto-edit).tests/unit/SampleUnitTest.kt.tests/e2e/SampleUiTest.kt.
For each test stub, follow the project's naming convention:
[module]_[feature]_test.[ext] and test_[scenario]_[expected] for
function names.
Phase 6: CI Workflow
Generate the workflow at the right path for the chosen provider.
GitHub Actions
.github/workflows/test.yml:
- Trigger on
pull_requestandpushtomain. - Job 1 —
unitonubuntu-latest: install deps, run unit tests. - Job 2 —
integrationonubuntu-latestfor RN/Flutter,macos-latestfor iOS/Android emulators when needed. - Job 3 —
e2eonmacos-latestfor iOS,ubuntu-latestfor Android, with caching for the simulator/emulator boot. - Coverage upload step (Codecov optional).
Bitrise
bitrise.yml:
primaryworkflow: cache restore, install deps, unit, integration, build for testing, run UI tests on simulator/emulator, cache save.prworkflow runs unit + integration only; full UI runs onmain.
CircleCI
.circleci/config.yml:
testjob using the appropriate orb (react-native,flutter,ios,android).
For all providers, document required secrets:
MATCH_PASSWORD(iOS signing via fastlane match)ANDROID_SIGNING_KEY(base64-encoded)APP_STORE_CONNECT_API_KEYPLAY_STORE_SERVICE_ACCOUNT
Phase 7: Smoke Suite Seed
Create tests/smoke/critical-paths.md listing the first set of smoke
scenarios. Defaults to:
- App cold-starts within budget on a baseline device.
- Sign-in (or guest entry) reaches the home screen.
- The primary CTA on home performs its action without a crash.
Each scenario gets a placeholder Maestro flow or test stub that the team will fill in during the first sprint.
Phase 8: Document the Setup
Append to .claude/docs/coding-standards.md under ## Testing:
- Frameworks selected.
- CI provider and workflow path.
- Coverage thresholds.
- Required device matrix (defer to
/qa-planfor full matrix).
Confirm with the user before writing.
Quality Gates / PASS-FAIL
- PASS — directory tree exists, runner config compiles, sample tests run and pass, CI workflow file is syntactically valid.
- FAIL — any sample test fails on a clean checkout, or the CI workflow has lint errors. Surface the failures and stop.
Run a quick smoke validation via Bash:
- RN —
npx jest tests/unit/sample.test.tsx - Flutter —
flutter test test/unit/sample_test.dart - iOS —
xcodebuild test -scheme [scheme] -only-testing:UnitTests - Android —
./gradlew testDebugUnitTest --tests SampleUnitTest
If the smoke run fails, surface the exact error and stop before proceeding.
Examples
Example 1 — Fresh React Native app, GitHub Actions:
Creates tests/unit/sample.test.tsx, jest.config.js, .detoxrc.js, a
GHA workflow with three jobs, and a Maestro placeholder. Smoke run via
Jest passes.
Example 2 — Flutter app, Bitrise:
Creates dart_test.yaml, integration_test/app_test.dart, a
bitrise.yml with Patrol step, and a smoke flow. Confirms with
flutter test locally.
Next Steps
- Run
/test-helpersto seed the helper library. - Run
/qa-plan sprint-01once the first sprint is planned to flesh out the device matrix.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

