Skip to content
Skill

AI test generator

Generates test code from acceptance criteria with an LLM and scores each test's confidence

AI test generator is an open-source agent skill for developer tools. It is available on Claude Code.

Scripts
None
Platforms
Claude Code
GitHub stars
18
Last commit
License
MIT
Listing updated

Similar skills

About AI test generator

This skill turns acceptance criteria, user stories or requirements into generated test code, with the AI producing drafts and the team reviewing them before merge. It walks the agent through defining structured inputs and expected results per criterion, generating one test per criterion through an LLM call that carries project test conventions, and checking that the output compiles or parses before any scoring happens.

Each generated test receives a heuristic confidence score based on the model's own self-assessment, the presence of vague matchers such as truthiness checks, imports that do not resolve to real modules, and generic test names. Tests are grouped into high, medium and low confidence tiers, and the output ends with a review checklist covering hallucinated APIs, weak assertions, missing setup and redundancy with existing tests.

The workflow expects a spec or story file, a Python environment with the OpenAI client, and the project's test framework, with examples given for Jest and TypeScript, Python and JavaScript syntax checks. It also covers caching prior generations, batching several criteria per call and a feedback loop that refines the prompt over time.

When your agent uses it

Use for any question or task about generating tests with an LLM from acceptance criteria, user stories or requirements, including whether it works and why generated tests assert the wrong thing. Scores confidence per test case (self-assessment plus assertion, naming and completeness checks), batches uncertain cases for human review and emits tests in the team's existing framework.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 3 files (10 KB) on GitHub on 5 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the qa-ai-assisted plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add testland/qa
/plugin install qa-ai-assisted@testland-qa

Or copy only this skill to ~/.claude/skills/ai-test-generator:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/testland/qa.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/ai-test-generator &&
cp -R "$tmp/plugins/qa-ai-assisted/skills/ai-test-generator" ~/.claude/skills/ai-test-generator &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/ai-test-generator inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/ai-test-generator to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/testland/qa.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/ai-test-generator &&
cp -R "$tmp/plugins/qa-ai-assisted/skills/ai-test-generator" ~/.agents/skills/ai-test-generator &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/ai-test-generator inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/ai-test-generator to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/testland/qa.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/ai-test-generator &&
cp -R "$tmp/plugins/qa-ai-assisted/skills/ai-test-generator" ~/.cursor/skills/ai-test-generator &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/ai-test-generator inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/testland/qa.git --path plugins/qa-ai-assisted/skills/ai-test-generator

Or copy the folder to ~/.gemini/skills/ai-test-generator yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/ai-test-generator:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/testland/qa.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/ai-test-generator &&
cp -R "$tmp/plugins/qa-ai-assisted/skills/ai-test-generator" ~/.copilot/skills/ai-test-generator &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/ai-test-generator inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/testland/qa.git

Then copy qa/plugins/qa-ai-assisted/skills/ai-test-generator into your agent's skills folder as ai-test-generator. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Structured criteria input
Defines each acceptance criterion with its id, inputs and expected outcomes in a YAML file.
One test per criterion
Prompts an LLM to write a separate test file for each acceptance criterion using project conventions.
Compile and syntax validation
Checks generated test files for TypeScript, Python or JavaScript syntax before they are scored.
Heuristic confidence scoring
Scores each test using self-reported confidence, vague matchers, unresolved imports and generic naming.
Tiered review report
Groups tests into high, medium and low confidence with a checklist for human reviewers.
Prompt feedback loop
Adds prohibitions or API examples to the prompt when recurring generation problems appear.

Good for

  • Generate Jest tests from a user story's acceptance criteria
  • Turn a list of promo code requirements into reviewable test files
  • Score generated tests and flag the weak ones for manual rewrite
  • Create a review report for AI-written tests before merging a pull request

AI test generator FAQ

What does the skill need to run?

It expects a structured YAML file of acceptance criteria, an OpenAI-compatible LLM client in the sample script, and the team's test framework and conventions document. The examples use Jest and TypeScript, Python and JavaScript checks.

Does AI test generator change the project's code?

It writes generated test files to a tests/generated folder and produces a markdown report. The skill's guidance says generated tests should be curated by a person before they are merged.

How is confidence determined?

The score starts at 100 and drops for low self-reported confidence, vague matchers, unresolved imports and generic test names. The skill notes this is heuristic and that high-confidence tests can still be wrong.

Is AI test generator tied to a specific AI client?

The skill is distributed as a Claude Code plugin in the testland-qa marketplace, but its steps are plain instructions and scripts for running an LLM.

How do I install AI test generator in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/ai-test-generator to use it in all your projects, or to .claude/skills/ai-test-generator in one project. Or install the qa-ai-assisted plugin, which includes it: /plugin marketplace add testland/qa, then /plugin install qa-ai-assisted@testland-qa.

Does AI test generator run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use AI test generator?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

What are the best alternatives to AI test generator?

The closest alternatives to AI test generator are AI evaluation, Create test, API to testcase generator, AI regression testing and Agentic eval.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from testland/qa

  1. Builds a CI ratchet that fails PRs only on new accessibility violations

    • Open source
    • 18 GitHub stars
    • Developer tools
  2. Guides an agent through W3C ARIA Authoring Practices patterns for custom widgets

    • Open source
    • 18 GitHub stars
    • Developer tools
  3. Adds automated axe-core accessibility scans to Playwright, Cypress and CI pipelines

    • Open source
    • 18 GitHub stars
    • Developer tools
  4. Builds manual screen-reader test scripts and signed sign-off reports for a feature

    • Open source
    • 18 GitHub stars
    • Developer tools
  5. Checks color pairs and design tokens against WCAG contrast ratios for text and UI

    • Open source
    • 18 GitHub stars
    • Design and media
  6. Aggregates multi-page accessibility scans into a WCAG 2.2 conformance report

    • Open source
    • 18 GitHub stars
    • Documentation review