test-helpers

Generate engine-specific test helper libraries from existing test patterns and GDD requirements.

72|7|Updated Apr 29, 2026
One-click install
npx skills add https://github.com/striderZA/OpenCodeGameStudios --skill test-helpers-striderza
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-helpers
Source: https://github.com/striderZA/OpenCodeGameStudios/tree/main/.opencode/skills/test-helpers
Command: npx skills add https://github.com/striderZA/OpenCodeGameStudios --skill test-helpers-striderza

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Test suites slow down development when teams repeatedly write the same setup, assertion, and mock patterns in every file, causing inconsistency and higher maintenance cost.

Core Features & Use Cases

  • Engine and language tailored output: Detects the configured engine, language, and testing framework, then generates helpers that fit the project’s test style rather than a generic template.
  • Pattern-aligned generation: Scans existing tests to learn common setup/teardown, assertions, object creation, and mock/stub approaches so helpers match real usage.
  • System-specific factories: For a chosen system (or all), generates tests/helpers/[system]_factory.[ext] using the system’s GDD-defined data types and formula bounds.

Quick Start

Run the skill with the scope you need, for example: /test-helpers scaffold to create the base helper library if none exists yet.

Frequently Asked Questions about test-helpers

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate test helpers that match my game engine and testing framework?

You can deduplicate test boilerplate by running this skill to scan representative test files, learn repeated setup and assertion patterns, and generate reusable helper libraries under tests/helpers/ to standardize your test suite.

How do I create system-specific test factories using GDD requirements?

You can create system-specific test factories by running this skill on a chosen system; it reads GDD-defined data types and formula bounds to generate tests/helpers/[system]_factory.[ext] files for your test suite.

Can I generate test helpers for all systems with test coverage at once?

Yes, you can generate test helpers for all systems that have corresponding test coverage simultaneously, producing individual tests/helpers/[system]_factory.[ext] files based on each system's GDD documentation without overwriting existing files.

Does generating test helpers overwrite my existing test helper files?

No, generating test helpers does not overwrite existing files; the skill safely writes new helper code under tests/helpers/ and tests/helpers/[system]_factory.[ext] while preserving your current project test suite structure.

How many test files does the skill scan to detect testing patterns?

The skill scans up to five representative files matching tests/**/*_test.* to detect common setup, teardown, assertions, object creation, and mock or stub approaches used in your existing test suite.