Ue Test Authoring
JasonMa0012/MooaToon
A skill your agent uses when writing or modifying UE automated tests (Automation, CQTest, Functional, Gauntlet, LowLevel) with Rider MCP available.
Generate high-quality tests for OhMyCode modules. An agent skill from AlphaLab-USTC/OhMyCode.
$ npx skills add AlphaLab-USTC/OhMyCode --skill gen-tests -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install AlphaLab-USTC/OhMyCode gen-tests --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/AlphaLab-USTC/OhMyCode.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/gen-tests .claude/skills/gen-tests && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "gen-tests" agent skill from https://github.com/AlphaLab-USTC/OhMyCode/tree/main/.claude/skills/gen-tests into .claude/skills/gen-tests/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "gen-tests", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/AlphaLab-USTC/OhMyCode/tree/main/.claude/skills/gen-testsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add AlphaLab-USTC/OhMyCode --skill gen-tests -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install AlphaLab-USTC/OhMyCode gen-tests --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/AlphaLab-USTC/OhMyCode.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.claude/skills/gen-tests .agents/skills/gen-tests && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "gen-tests" agent skill from https://github.com/AlphaLab-USTC/OhMyCode/tree/main/.claude/skills/gen-tests into .agents/skills/gen-tests/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "gen-tests", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add AlphaLab-USTC/OhMyCode --skill gen-tests -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install AlphaLab-USTC/OhMyCode gen-tests --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/AlphaLab-USTC/OhMyCode.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.claude/skills/gen-tests .cursor/skills/gen-tests && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "gen-tests" agent skill from https://github.com/AlphaLab-USTC/OhMyCode/tree/main/.claude/skills/gen-tests into .cursor/skills/gen-tests/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "gen-tests", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/AlphaLab-USTC/OhMyCode.git --path .claude/skills/gen-tests--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add AlphaLab-USTC/OhMyCode --skill gen-tests -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install AlphaLab-USTC/OhMyCode gen-tests --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/AlphaLab-USTC/OhMyCode.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.claude/skills/gen-tests .gemini/skills/gen-tests && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "gen-tests" agent skill from https://github.com/AlphaLab-USTC/OhMyCode/tree/main/.claude/skills/gen-tests into .gemini/skills/gen-tests/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "gen-tests", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install AlphaLab-USTC/OhMyCode gen-testsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add AlphaLab-USTC/OhMyCode --skill gen-tests -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/AlphaLab-USTC/OhMyCode.git skills-src && mkdir -p .github/skills && cp -r skills-src/.claude/skills/gen-tests .github/skills/gen-tests && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "gen-tests" agent skill from https://github.com/AlphaLab-USTC/OhMyCode/tree/main/.claude/skills/gen-tests into .github/skills/gen-tests/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "gen-tests", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add AlphaLab-USTC/OhMyCode --skill gen-tests -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install AlphaLab-USTC/OhMyCode gen-tests --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/AlphaLab-USTC/OhMyCode.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.claude/skills/gen-tests .opencode/skills/gen-tests && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "gen-tests" agent skill from https://github.com/AlphaLab-USTC/OhMyCode/tree/main/.claude/skills/gen-tests into .opencode/skills/gen-tests/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "gen-tests", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
gen-testsGenerate high-quality tests for OhMyCode modules. An agent skill from AlphaLab-USTC/OhMyCode.
Gen Tests is an agent skill from AlphaLab-USTC/OhMyCode. Generate high-quality tests for OhMyCode modules. Use when user wants to create, add, or generate tests for a module or file.
Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Testing & QA, covering Test generation. It works with Bash. The repository describes itself as: Minimal and Customizable CC-Style Coding Agent. The licence is MIT.
5 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 4d1bb28. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are python).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Gen Tests loads about 1.6k tokens when it runs. Until then it costs about 34 tokens; SKILL.md has 506 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from AlphaLab-USTC/OhMyCode at commit 4d1bb28, republished under its MIT licence (© AlphaLab-USTC). 506 words, ~1,570 tokens.
.claude/skills/gen-tests/SKILL.md (or your agent's skills folder).Generate project-convention-compliant tests for a given module or file.
This skill is part of the OhMyCode development closed-loop:
编码 ──→ /gen-tests ──→ /run-tests ──→ 分析失败 ──→ 修代码 ──╮
↑ │
╰────────────────────────────────────────────────────────────╯After generating tests, always proceed to /run-tests to verify them.
ohmycode/tools/bash.py, core/loop)$ARGUMENTS — module name or file path to test (e.g., ohmycode/tools/bash.py, core/loop, providers/anthropic).
If $ARGUMENTS is empty, ask the user which module to generate tests for.
Map the argument to a source file path:
| Argument form | Resolved source path |
|---|---|
ohmycode/tools/bash.py | use as-is |
tools/bash | ohmycode/tools/bash.py |
core/loop | ohmycode/core/loop.py |
providers/openai | ohmycode/providers/openai.py |
config | ohmycode/config/config.py |
Read the resolved source file. Identify:
_private unless critical)Read tests/conftest.py to learn available fixtures:
MockProvider — fake LLM that yields configurable responses, use for anything touching providersmock_provider — fixture returning a default MockProvider()mock_config — minimal config dicttmp_dir — alias for tmp_path, use for file-based testsCheck for existing test file at the mirror path (see Step 4 path rule). If it exists, read it to understand current coverage and style — extend rather than overwrite.
List test scenarios before writing code. Cover three categories:
| Category | Examples |
|---|---|
| Happy path | Normal input → expected output |
| Error / failure | Invalid input, missing params, API errors → graceful error |
| Edge cases | Empty input, huge input, concurrent calls, boundary values |
For each scenario, write a one-line description:
- test_bash_echo: simple command returns stdout
- test_bash_exit_code: non-zero exit → is_error=True
- test_bash_timeout: long command + short timeout → timeout errorSource ohmycode/X/Y.py → Test tests/X/test_Y.py
Examples:
ohmycode/tools/bash.py → tests/tools/test_bash.pyohmycode/core/loop.py → tests/core/test_loop.pyohmycode/providers/openai.py → tests/providers/test_openai_provider.pyEnsure tests/X/__init__.py exists (create empty if needed).
@pytest.mark.asynciotmp_path or tmp_dir fixture for any file I/Otmp_pathimport pytest
from ohmycode.tools.base import ToolContext
from ohmycode.tools.<module> import <ToolClass>
@pytest.fixture
def ctx(tmp_path):
return ToolContext(mode="auto", agent_depth=0, cwd=str(tmp_path), is_sub_agent=False)
@pytest.mark.asyncio
async def test_<tool>_basic(ctx):
tool = <ToolClass>()
result = await tool.execute({"param": "value"}, ctx)
assert not result.is_error
assert "expected" in result.output
@pytest.mark.asyncio
async def test_<tool>_error(ctx):
tool = <ToolClass>()
result = await tool.execute({"bad_param": ""}, ctx)
assert result.is_errorimport pytest
from ohmycode.config.config import OhMyCodeConfig
from ohmycode.core.<module> import <Class>
@pytest.mark.asyncio
async def test_<feature>_happy_path(mock_provider):
config = OhMyCodeConfig(provider="mock", model="test", mode="auto", api_key="x")
obj = <Class>(config=config)
obj._provider = mock_provider
# setup and assertions ...
@pytest.mark.asyncio
async def test_<feature>_error(mock_provider):
# test error handling path
...import pytest
from ohmycode.providers.base import PROVIDER_REGISTRY
def test_<provider>_is_registered():
import ohmycode.providers.<module> # noqa: F401
assert "<provider_name>" in PROVIDER_REGISTRY
def test_<provider>_instantiation():
from ohmycode.providers.<module> import <ProviderClass>
provider = <ProviderClass>(api_key="test-key", base_url="http://localhost:8080/v1")
assert provider.name == "<provider_name>"/run-testsAfter writing the test file, immediately use /run-tests to execute and verify:
/run-tests X/Y (e.g., /run-tests tools/bash)/run-tests will handle: execution, failure analysis, regression checkIf /run-tests reports failures:
/run-tests/run-testsBefore finishing, verify:
tmp_path used for file I/Oconftest.py reused where applicable@pytest.mark.asyncio__init__.py/run-tests confirms: new tests pass + full suite has no regressions→ /run-tests — always run tests after generating them
© AlphaLab-USTC, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .claude/skills/gen-tests of AlphaLab-USTC/OhMyCode.
Open the folder on GitHubat commit 4d1bb28
Gen Tests next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Gen Tests this skillAlphaLab-USTC/OhMyCode | 131 | — | ~1.6k | Automated safety check: Pass | MIT | |
| Ue Test AuthoringJasonMa0012/MooaToon | 750 | — | ~2.1k | Automated safety check: Notes | Custom licence | |
| Write and Verify Playwright Testsappsmithorg/appsmith | 41k | — | ~2.9k | Automated safety check: Notes | Apache-2.0 | |
| E2Ecallstack/react-native-pager-view | 3.4k | 1 repos | ~2.1k | Automated safety check: Pass | MIT | |
| Adk Verify Snippetsgoogle/adk-python | 22k | — | ~1.4k | Automated safety check: Pass | Apache-2.0 | |
| Engine E2Ewix/react-native-navigation | 13k | — | ~1.1k | Automated safety check: Pass | MIT |
JasonMa0012/MooaToon
A skill your agent uses when writing or modifying UE automated tests (Automation, CQTest, Functional, Gauntlet, LowLevel) with Rider MCP available.
appsmithorg/appsmith
Writes a Playwright end-to-end test from a prompt, runs it against a live Appsmith deployment and retries with fixes up to three times until it passes.
callstack/react-native-pager-view
Agentic end-to-end tests with e2e, the e2e runner. An agent skill from callstack/react-native-pager-view.
google/adk-python
Checks that every Python code block in a Markdown file actually compiles and runs, by extracting each block to a temporary file, executing it in an isolated subprocess, and writing a pass/fail…
wix/react-native-navigation
Run Wix Engine (mobile-apps-engine) iOS E2E tests locally to validate RNN changes.
dimensionalOS/dimos
Rules for writing, fixing and reviewing pytest unit tests that are hermetic: behavior-focused, deterministic, isolated and cheap to run.
AlphaLab-USTC/OhMyCode
Guide for adding a new feature to OhMyCode. An agent skill from AlphaLab-USTC/OhMyCode.
AlphaLab-USTC/OhMyCode
Guide for adding a new LLM provider to OhMyCode. An agent skill from AlphaLab-USTC/OhMyCode.
AlphaLab-USTC/OhMyCode
Guide for adding a new tool to OhMyCode. An agent skill from AlphaLab-USTC/OhMyCode.
AlphaLab-USTC/OhMyCode
Run OhMyCode benchmarks — score any provider/model with token tracking.
AlphaLab-USTC/OhMyCode
Guide for customizing OhMyCode's terminal output style and rendering.
AlphaLab-USTC/OhMyCode
Guide for customizing OhMyCode's AI personality and behavior via system prompt.
Works with
Categories
Generate high-quality tests for OhMyCode modules. An agent skill from AlphaLab-USTC/OhMyCode. Gen Tests is an agent skill from AlphaLab-USTC/OhMyCode. Generate high-quality tests for OhMyCode modules.
Gen Tests fits situations like: user wants to create; generate tests for a module.
Run `npx skills add AlphaLab-USTC/OhMyCode --skill gen-tests -a claude-code`. Or copy the skill folder (.claude/skills/gen-tests in AlphaLab-USTC/OhMyCode) into .claude/skills/gen-tests in your project. Claude Code loads it when a task matches its description.
Run `npx skills add AlphaLab-USTC/OhMyCode --skill gen-tests -a codex`. Or copy the skill folder (.claude/skills/gen-tests in AlphaLab-USTC/OhMyCode) into .agents/skills/gen-tests in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add AlphaLab-USTC/OhMyCode --skill gen-tests -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/gen-tests, .gemini/skills/gen-tests, .github/skills/gen-tests and .opencode/skills/gen-tests in your project.
SKILL.md names no scripts, command-line tools or credentials: Gen Tests is instructions for the agent only. Our summary lists: Python 3.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Gen Tests is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.6k tokens (SKILL.md is roughly 6.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Gen Tests: Ue Test Authoring (JasonMa0012/MooaToon, 750 stars), Write and Verify Playwright Tests (appsmithorg/appsmith, 41k stars), E2E (callstack/react-native-pager-view, 3.4k stars) and Adk Verify Snippets (google/adk-python, 22k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
AlphaLab-USTC (a GitHub user) maintains it in AlphaLab-USTC/OhMyCode, which has 131 GitHub stars. The repository holds 10 skills in this directory. The repository was last updated on April 2, 2026.
Source: AlphaLab-USTC/OhMyCode on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.