create-test

Generate Playwright e2e and API test spec scaffolds following project conventions.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/Cottage-Energy/cottage-tests --skill create-test-cottage-energy
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: create-test
Source: https://github.com/Cottage-Energy/cottage-tests/tree/main/.claude/skills/create-test
Command: npx skills add https://github.com/Cottage-Energy/cottage-tests --skill create-test-cottage-energy

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates the creation of new Playwright e2e or API test specs following project conventions, reducing setup time and ensuring consistency across tests.

Core Features & Use Cases

  • Generates standard spec files in the correct directories (e2e_tests, api_tests) with templates for UI interactions and API validation
  • Enforces project conventions (imports, timeouts, tag usage, and afterEach cleanup) to align with CODE_STANDARDS.md
  • Provides a quick-start workflow for common feature areas like connect-account, cottage-user-move-in, homepage, payment

Quick Start

Provide a feature name and scenario, and the skill will generate a complete Playwright spec scaffold ready to run.

Frequently Asked Questions about create-test

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

FAQPage Schema
How do I scaffold Playwright tests for e2e and API scenarios?▼

Scaffold Playwright tests by providing a feature name and scenario, which generates a complete spec with proper imports, tagging, and cleanup in the correct e2e_tests or api_tests directories.

Can I generate Playwright test templates for specific feature areas like payment?▼

Yes, you can generate Playwright test templates for common feature areas like connect-account, cottage-user-move-in, homepage, and payment, producing ready-to-run spec scaffolds quickly.

How do I enforce CODE_STANDARDS.md when creating Playwright test specs?▼

To enforce CODE_STANDARDS.md, the scaffold enforces TIMEOUTS usage, page object model patterns, proper imports, afterEach cleanup, and gating validation before reporting completion.

Does the scaffolded Playwright spec pass repository standards gates automatically?▼

Yes, the scaffolded Playwright spec is validated against the repository's standards gate automatically, ensuring it passes CODE_STANDARDS.md requirements before reporting completion.

What is the best way to automate e2e UI test creation with Playwright?▼

Automate e2e UI test creation by using a scaffolding skill that applies project conventions, generating templates with proper imports, timeouts, tagging, and cleanup for immediate use.

Why do my Playwright test scaffolds fail repository standards validation?▼

Playwright test scaffolds may fail validation if they lack CODE_STANDARDS.md requirements such as TIMEOUTS usage, page object model patterns, proper imports, afterEach cleanup, or gating validation.