cgs-test-helpers

cgs-test-helpers is a skill for Claude Code from merlinhu1/codex-game-studio. It costs 45 tokens per session (582 once invoked), scanned A, original, MIT.

A guide for creating reusable helpers for tests while keeping each test's checks visible and meaningful.

In plain words
What is it for?
Use it to design shared test setup and helper functions with clear boundaries for test data, checks, and misuse prevention.
Why use it?
It reduces repeated test setup without hiding assertions, overusing fake components, or tying tests too closely to internal code details.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: model in frontmatter; reads .claude/ paths; installed under .agents/ (shared by several agents).

Good fit Use it to design shared test setup and helper functions with clear boundaries for test data, checks, and misuse prevention.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/merlinhu1/codex-game-studio/cgs-test-helpers
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.

Any agent
npx skills add merlinhu1/codex-game-studio --skill cgs-test-helpers
Clone the repo
git clone --depth 1 https://github.com/merlinhu1/codex-game-studio

Made for: Claude Code.

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 cgs-test-helpers

README.md
[![agentmods](https://agentmods.dev/badge/skills/merlinhu1/codex-game-studio/cgs-test-helpers/github.svg)](https://agentmods.dev/skills/merlinhu1/codex-game-studio/cgs-test-helpers)
Your own site
<a href="https://agentmods.dev/skills/merlinhu1/codex-game-studio/cgs-test-helpers"><img src="https://agentmods.dev/badge/skills/merlinhu1/codex-game-studio/cgs-test-helpers/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cgs-test-helpers

Your own site · 80×15
<a href="https://agentmods.dev/skills/merlinhu1/codex-game-studio/cgs-test-helpers"><img src="https://agentmods.dev/badge/skills/merlinhu1/codex-game-studio/cgs-test-helpers.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 582 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found 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.00045 $0.00582
Opus 5 $0.00023 $0.00291
Sonnet 5 $0.00009 $0.00116
Haiku 4.5 $0.00005 $0.00058

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

Security

Grade A, and why

cgs-test-helpers 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 6d 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.

.agents/skills/cgs-test-helpers/SKILL.md · 81 lines

What it actually says

Codex Game Studio Test Helpers

Use this skill for test helpers work in Template Game.

Objective

Design reusable test helpers without hiding assertions, over-mocking, or coupling tests to implementation details.

Inputs

  • AGENTS.md
  • .codex/studio.json
  • task-relevant files named by the user or task record
  • design/gdd.md
  • production/session-state/active.md
  • tests/

Arguments

  • Objective or user request.
  • Target files, scenes, assets, or docs.
  • Constraints, deadlines, acceptance criteria, and verification command when known.

Procedure

  1. Clarify the requested design reusable test helpers without hiding assertions, over-mocking, or coupling tests to implementation details. and identify the current project stage.
  2. Collect evidence for Helper Purpose, Assertion Boundary, Fixture Shape.
  3. Run or define the focused validation loop before reporting conclusions.
  4. Produce the requested artifact or review with clear file paths and verification evidence.

Write Targets

  • tests/
  • production/session-state/
  • prototypes/

Output Contract

  • Summary
  • Helper Purpose
  • Assertion Boundary
  • Fixture Shape
  • Misuse Guard
  • Risks
  • Changed files or proposed files
  • Verification evidence
  • Next owner or decision

Quality Gates

  • Helper Purpose
  • Assertion Boundary
  • Fixture Shape
  • Misuse Guard
  • Scope remains bounded to the current task and project stage.
  • Report labels unverified assumptions separately from evidence.

Decision Gates

  • Continue only when the expected output can be verified or clearly labeled as a plan.
  • Escalate to producer or qa-playtester when scope, ownership, or acceptance evidence is ambiguous.
  • Stop before broad rewrites, generated prompt mirrors, or hidden lifecycle behavior.

Handoff

Report changed files, verification evidence, remaining risks, and the next owner or decision. Do not imply hidden hooks or autonomous background work.

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. 6d ago First seen · 81 lines · 45 tokens per session scan A ef144b06a495

Subscribe to this mod's changes

cgs-test-helpers is a skill published in the GitHub repository merlinhu1/codex-game-studio (54 stars, last pushed 1mo ago), licensed MIT. It adds 45 tokens to every session and 582 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

javascript-testing-patterns

Implement comprehensive testing strategies using Jest, Vitest, and Testing Library for unit tests, integration tests, and end-to-end testing with mocking, fixtures, and test-driven development. Use when writing JavaScript/TypeScript tests, setting up test infrastructure, or implementing TDD/BDD workflows.

HermeticOrmus/claude-code-game-development · 63 tokens

test-helpers

Generate engine-specific test helper libraries for the project's test suite. Reads existing test patterns and produces tests/helpers/ with assertion utilities, factory functions, and mock objects tailored to the project's systems. Reduces boilerplate in new test files.

striderZA/OpenCodeGameStudios · 50 tokens

tests-run

Execute Unity tests (EditMode or PlayMode) and return per-test results. Supports filtering by test assembly, namespace, class, and method. Refreshes the AssetDatabase first; defers execution across domain reloads if scripts changed. Precondition: every open scene must be saved — dirty scenes abort the run.

IvanMurzak/Unity-MCP · 68 tokens

api-testing

Testing patterns for MCP tool/resource handlers using createMockContext and Vitest. Covers mock context options, handler testing, McpError assertions, format testing, Vitest config setup, and test isolation conventions.

cyanheads/obsidian-mcp-server · 46 tokens

testing

Use this skill when writing, reviewing, or improving tests in WrongStack. Triggers: user says "test", "unit test", "integration test", "e2e", "mock", "vitest", "coverage", "assert", "expect", "test strategy", "write tests".

WrongStack/WrongStack · 61 tokens

test-generator

Generate test templates for unit tests, integration tests, and UI tests using Swift Testing and XCTest. Use when adding tests to iOS/macOS apps.

rshankras/claude-code-apple-skills · 33 tokens