Polyglot Test Agent
boshi-xixixi/TraeSkill
Generates comprehensive, workable unit tests for any programming language using a multi-agent pipeline.
Writes snapshot-style approval tests in Python, JavaScript, TypeScript or Java, comparing output against an approved file instead of writing individual assertions.
$ npx skills add lexler/skill-factory --skill approval-tests -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install lexler/skill-factory approval-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/lexler/skill-factory.git skills-src && mkdir -p .claude/skills && cp -r skills-src/output_skills/testing/approval-tests .claude/skills/approval-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 "approval-tests" agent skill from https://github.com/lexler/skill-factory/tree/main/output_skills/testing/approval-tests into .claude/skills/approval-tests/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "approval-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/lexler/skill-factory/tree/main/output_skills/testing/approval-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 lexler/skill-factory --skill approval-tests -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install lexler/skill-factory approval-tests --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/lexler/skill-factory.git skills-src && mkdir -p .agents/skills && cp -r skills-src/output_skills/testing/approval-tests .agents/skills/approval-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 "approval-tests" agent skill from https://github.com/lexler/skill-factory/tree/main/output_skills/testing/approval-tests into .agents/skills/approval-tests/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "approval-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 lexler/skill-factory --skill approval-tests -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install lexler/skill-factory approval-tests --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/lexler/skill-factory.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/output_skills/testing/approval-tests .cursor/skills/approval-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 "approval-tests" agent skill from https://github.com/lexler/skill-factory/tree/main/output_skills/testing/approval-tests into .cursor/skills/approval-tests/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "approval-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/lexler/skill-factory.git --path output_skills/testing/approval-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 lexler/skill-factory --skill approval-tests -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install lexler/skill-factory approval-tests --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/lexler/skill-factory.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/output_skills/testing/approval-tests .gemini/skills/approval-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 "approval-tests" agent skill from https://github.com/lexler/skill-factory/tree/main/output_skills/testing/approval-tests into .gemini/skills/approval-tests/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "approval-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 lexler/skill-factory approval-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 lexler/skill-factory --skill approval-tests -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/lexler/skill-factory.git skills-src && mkdir -p .github/skills && cp -r skills-src/output_skills/testing/approval-tests .github/skills/approval-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 "approval-tests" agent skill from https://github.com/lexler/skill-factory/tree/main/output_skills/testing/approval-tests into .github/skills/approval-tests/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "approval-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 lexler/skill-factory --skill approval-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 lexler/skill-factory approval-tests --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/lexler/skill-factory.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/output_skills/testing/approval-tests .opencode/skills/approval-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 "approval-tests" agent skill from https://github.com/lexler/skill-factory/tree/main/output_skills/testing/approval-tests into .opencode/skills/approval-tests/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "approval-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.
approval-testsWrites snapshot-style approval tests in Python, JavaScript, TypeScript or Java, comparing output against an approved file instead of writing individual assertions.
The skill's premise is that a saved output file can replace a long list of assertions: you capture the real output once, review and approve it as a golden master, and later runs are compared against that approved snapshot and fail only when the output actually changes. This suits complex or large output, characterizing legacy code that has no tests yet, and covering many input combinations without writing a separate assertion for each.
Per-language reference files, java.md, nodejs.md and python.md, point into deeper references folders covering setup, the API, inline usage, logging, custom reporters and scrubbers for each of Java, Node.js and Python, plus a links.md file. The excerpt itself stops at the philosophy section, before the setup instructions.
Read from SKILL.md and the folder at commit 8017333. 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.
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.
Approval Testing Toolkit loads about 1.2k tokens when it runs, and up to ~19k if it reads all its reference files. Until then it costs about 63 tokens; SKILL.md has 505 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 lexler/skill-factory at commit 8017333, republished under its Apache-2.0 licence (© lexler). 505 words, ~1,203 tokens.
.claude/skills/approval-tests/SKILL.md (or your agent's skills folder). This skill also uses 25 other files; get the full folder from GitHub.STARTER_CHARACTER = 📸
"A picture's worth 1000 assertions."
Approval tests verify complex output by comparing against a saved "golden master" file instead of writing individual assertions. You capture the output once, review it, approve it, and future runs compare against that approved snapshot.
You don't need to know the expected output upfront. Run the code, see what it produces, decide if it's correct. Approval is a judgment - you're confirming this is what the code should produce. Whoever writes the code reviews and approves.
Use approval tests when:
Use assertions when:
1. Write test with verify(result)
2. Run test → FAILS (no .approved file yet)
3. Creates: TestName.approved.txt (empty) + TestName.received.txt (actual output)
4. Review .received file - is this correct?
5. YES → rename/copy .received to .approved
6. Run test again → PASSES
7. Commit .approved file to version controlFile naming convention:
{TestClass}.{test_method}.approved.txt ← commit this
{TestClass}.{test_method}.received.txt ← gitignore thisCritical rules:
.approved files ARE your test expectations - commit them.received files are temporary - add *.received.* to .gitignore.approved files by hand - always generate via testWhen a test fails, a diff tool opens showing approved vs received. This is how you review changes. Reporters configure which diff tool to use.
All languages follow the same pattern:
verify(result) # Basic string/object verification
verify_as_json(object) # Objects as formatted JSON
verify_all(header, items) # Collections with labels
verify_all_combinations(fn, inputs) # All input combinationsNon-deterministic data (timestamps, GUIDs) must be scrubbed before verification.
[Date1] or guid_1. Without scrubbing, tests pass locally but fail in CI.See language references for implementation details.
Detect language from project files, then read the appropriate reference for installation, quick start, core patterns, and links to deeper reference files:
pyproject.toml, setup.py, requirements.txt)package.json)pom.xml, build.gradle)verify_as_json({"items": items})Flaky tests across environments usually means unscrubbed dynamic data (timestamps, UUIDs, ports, paths).
© lexler, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 25 other files (references) in output_skills/testing/approval-tests of lexler/skill-factory.
Open the folder on GitHubat commit 8017333
Approval Testing Toolkit 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 |
|---|---|---|---|---|---|---|
| Approval Testing Toolkit this skilllexler/skill-factory | 239 | — | ~1.2k | Automated safety check: Pass | Apache-2.0 | |
| Polyglot Test Agentboshi-xixixi/TraeSkill | 275 | — | ~1.7k | Automated safety check: Pass | MIT | |
| Supercovsupercorp-ai/supercov | 150 | 1 repos | ~415 | Automated safety check: Pass | MIT | |
| Crap Analyzerswingerman/engineer | 154 | — | ~1.2k | Automated safety check: Pass | MIT | |
| Property Based Testingforyourhealth111-pixel/Vibe-Skills | 3.6k | — | ~4.8k | Automated safety check: Notes | Apache-2.0 | |
| Test Case ReducerArabelaTso/Skills-4-SE | 253 | — | ~2.5k | Automated safety check: Pass | Apache-2.0 |
boshi-xixixi/TraeSkill
Generates comprehensive, workable unit tests for any programming language using a multi-agent pipeline.
supercorp-ai/supercov
Measures test coverage and code quality in a repository with the supercov CLI, and turns what it finds into small, focused tests or fixes.
swingerman/engineer
A skill your agent uses to produce a risk-based refactor + test plan for recently-changed code on a diff/branch/PR by computing CRAP (complexity × untested) on changed methods.
foryourhealth111-pixel/Vibe-Skills
Property-based testing with fast-check (TypeScript/JavaScript) and Hypothesis (Python).
ArabelaTso/Skills-4-SE
Automatically reduces bug-triggering test cases to minimal form while preserving the failure.
soba-labs/langchain-agent-skills
A skill your agent uses when you need to test or evaluate LangGraph/LangChain agents: writing unit or integration tests, generating test scaffolds, mocking LLM/tool behavior, running trajectory…
lexler/skill-factory
Creates C4 model diagrams at every zoom level, from system landscape to code, in ASCII, Mermaid or Structurizr, for designing or documenting software architecture.
lexler/skill-factory
Plans and launches Claude Code agent teams with distinct roles, right-sized tasks and detailed spawn prompts, and says when subagents or worktrees fit better.
lexler/skill-factory
Guides writing and debugging Claude Code status line scripts that read session JSON from stdin and print one line of text.
lexler/skill-factory
Catalog of obstacles, anti-patterns and patterns for working with AI coding agents, covering context management and reliability, from a published patterns collection.
lexler/skill-factory
Find where a codebase actually costs time by mining its git history (Tornhill hotspot analysis).
lexler/skill-factory
Teaches the Nullables pattern for testing without mocking libraries: production classes with an off switch, stubbed only at the third-party edge.
Works with
Categories
Writes snapshot-style approval tests in Python, JavaScript, TypeScript or Java, comparing output against an approved file instead of writing individual assertions. The skill's premise is that a saved output file can replace a long list of assertions: you capture the real output once, review and approve it as a golden master, and later runs are compared against that approved snapshot and fail only when the output actually changes. This suits complex or large output, characterizing legacy code that has no tests yet, and covering many input combinations without writing a separate assertion for each.
Approval Testing Toolkit fits situations like: verifying a function's complex output without writing many separate assertions; adding characterization tests to legacy code that has no existing tests; testing many input combinations by comparing each against an approved snapshot.
Run `npx skills add lexler/skill-factory --skill approval-tests -a claude-code`. Or copy the skill folder (output_skills/testing/approval-tests in lexler/skill-factory) into .claude/skills/approval-tests in your project. Claude Code loads it when a task matches its description.
Run `npx skills add lexler/skill-factory --skill approval-tests -a codex`. Or copy the skill folder (output_skills/testing/approval-tests in lexler/skill-factory) into .agents/skills/approval-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 lexler/skill-factory --skill approval-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/approval-tests, .gemini/skills/approval-tests, .github/skills/approval-tests and .opencode/skills/approval-tests in your project.
SKILL.md names no scripts, command-line tools or credentials: Approval Testing Toolkit is instructions for the agent only.
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.
Approval Testing Toolkit is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.2k tokens (SKILL.md is roughly 4.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 18k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Approval Testing Toolkit: Polyglot Test Agent (boshi-xixixi/TraeSkill, 275 stars), Supercov (supercorp-ai/supercov, 150 stars), Crap Analyzer (swingerman/engineer, 154 stars) and Property Based Testing (foryourhealth111-pixel/Vibe-Skills, 3.6k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
lexler (a GitHub user) maintains it in lexler/skill-factory, which has 239 GitHub stars. The repository holds 25 skills in this directory. The repository was last updated on August 26, 2026.
Source: lexler/skill-factory on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.