test-generation

Generate Playwright test code, page objects, and spec files from structured test case designs.

Updated Jan 28, 2026
One-click install
npx skills add https://github.com/cristian-robert/autonomous-automation-tester --skill test-generation-cristian-robert
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-generation
Source: https://github.com/cristian-robert/autonomous-automation-tester/tree/main/.claude/skills/test-generation
Command: npx skills add https://github.com/cristian-robert/autonomous-automation-tester --skill test-generation-cristian-robert

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill converts test case designs into ready-to-run Playwright test code, scaffolding tests and page objects to accelerate automation development.

Core Features & Use Cases

  • Specification-driven test generation: Create tests, page objects, and test specs directly from structured designs.
  • Template-based outputs: Produce consistent test templates and object models that align with your project conventions.
  • Use Case: When you have a set of high-level test scenarios, this skill can generate the initial Playwright suite you can extend and maintain.

Quick Start

  1. Provide your test case designs and invoke the generation workflow (e.g., via browser_run_code) to produce tests, pages, and specs.
  2. Review the generated files under tests/ and pages/; tailor selectors and assertions as needed.
  3. Run the Playwright test suite locally or in CI and iterate on the templates and patterns.

Frequently Asked Questions about test-generation

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

FAQPage Schema
How do I generate Playwright tests from test case designs?

To generate Playwright tests, you provide structured test case designs and invoke the generation workflow, which scaffolds ready-to-run test files, page objects, and spec files. The generated outputs are placed under the tests/ and pages/ directories for immediate review and execution.

What are Playwright page objects and how does automated scaffolding create them?

Playwright page objects are design patterns that separate UI element selectors and interactions from test logic. Automated scaffolding creates these object models directly from your structured test specifications, ensuring consistent test templates that align with your project conventions.

Do I need Node.js and Playwright installed to use automated test generation?

Yes, automated test generation requires a Node.js environment with Playwright installed to execute the generated test suites. You can also optionally configure templates in the references/ directory to customize the generated code outputs.

What is the best way to customize generated Playwright test templates for my project?

The best way to customize generated Playwright test templates is by placing your own templates in the references/ directory before generation. After generation, you can review the files under tests/ and pages/ to tailor selectors and assertions to match your specific application requirements.

Can I use specification-driven test generation for existing QA automation workflows?

Yes, specification-driven test generation fits into QA automation workflows by converting high-level test scenarios into an initial Playwright suite. You can run this suite locally or in CI, then iterate on the templates and patterns to maintain and extend your automated tests.