test-setup

test-setup is a skill for Codex from frabcd/codex-ai-game-studio. It costs 49 tokens per session (3,124 once invoked), scanned A, a copy of test-setup, MIT.

A setup workflow that creates a game's automated testing structure, test-runner configuration, and GitHub Actions workflow. GitHub Actions is a service that runs checks automatically when code changes.

In plain words
What is it for?
Use it once during technical setup to create the tests directory, engine-specific configuration, and workflow that runs tests on each push.
Why use it?
It establishes repeatable tests and automatic checks before development grows, instead of adding testing infrastructure later.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions subagents; mentions Codex; $skill-name invocation.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/frabcd/codex-ai-game-studio/test-setup
Any agent
npx skills add frabcd/codex-ai-game-studio --skill test-setup
Clone the repo
git clone --depth 1 https://github.com/frabcd/codex-ai-game-studio

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for test-setup

README.md
[![agentmods](https://agentmods.dev/badge/skills/frabcd/codex-ai-game-studio/test-setup.svg)](https://agentmods.dev/skills/frabcd/codex-ai-game-studio/test-setup)
Your own site
<a href="https://agentmods.dev/skills/frabcd/codex-ai-game-studio/test-setup"><img src="https://agentmods.dev/badge/skills/frabcd/codex-ai-game-studio/test-setup.svg" alt="Measured on agentmods" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,124 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 95% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00049 $0.03124
Opus 5 $0.00024 $0.01562
Sonnet 5 $0.00010 $0.00625
Haiku 4.5 $0.00005 $0.00312

Measured 2d ago against content hash 8837705d8034, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

test-setup scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

95% identical to test-setup — 40 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

plugins/ai-game-studio/skills/test-setup/SKILL.md · 429 lines

How it starts

The opening of the file, as written. The whole thing — 429 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Port provenance: adapted from the pinned upstream source at 984023ddac0d5e27624f2baacde6105e45de375f under MIT; see the repository parity ledger for the exact path and blob.

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

  1. Read engine config:

    • Read .ai-game-studio/project.json and extract the Engine: value.
    • If engine is not configured ([TO BE CONFIGURED]), stop: "Engine not configured. Run $ai-game-studio:setup-engine first, then re-run $ai-game-studio:test-setup."
  2. Check for existing test infrastructure:

    • file discovery tests/ — does the directory exist?
    • file discovery tests/unit/ and tests/integration/ — do subdirectories exist?
    • file discovery .github/workflows/ — does a CI workflow file exist?
    • file discovery tests/gdunit4_runner.gd (Godot) or tests/EditMode/ (Unity) or Source/Tests/ (Unreal) for engine-specific artifacts.
  3. Report findings:

    • "Engine: [engine]. Test directory: [found / not found]. CI workflow: [found / not found]."
    • If everything already exists AND force argument was not passed: "Test infrastructure appears to be in place. Re-run with $ai-game-studio:test-setup force to regenerate. Proceeding will not overwrite existing test files."

If the force argument is passed, skip the "already exists" early-exit and proceed — but still do not overwrite files that already exist at a given path. Only create files that are missing.

Read the full file on GitHub · 429 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 429 lines · 49 tokens per session scan A 8837705d8034

Subscribe to this mod's changes

test-setup is a skill published in the GitHub repository frabcd/codex-ai-game-studio (9 stars, last pushed 5d ago), licensed MIT. It adds 49 tokens to every session and 3,124 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 95% identical to test-setup, differing in 40 lines, and is treated as a copy.