write-behavior-test

Translate behavior specifications into runnable Playwright tests with PreDB-backed state.

Updated Oct 29, 2025
One-click install
npx skills add https://github.com/coeus-ventures/epic-web --skill write-behavior-test
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: write-behavior-test
Source: https://github.com/coeus-ventures/epic-web/tree/main/.claude/skills/write-behavior-test
Command: npx skills add https://github.com/coeus-ventures/epic-web --skill write-behavior-test

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps engineering teams automatically convert behavior specifications into runnable Playwright tests, streamlining end-to-end validation based on Act:/Check: steps.

Core Features & Use Cases

  • Automatic translation of behavior specs into Playwright test files (.spec.ts) that exercise complete user workflows.
  • PreDB-backed setup to configure deterministic database state before tests.
  • One-test-per-example workflow that maps each Example from a spec to an individual Playwright test file, ensuring clear traceability.

Quick Start

Provide a behavior spec and let the skill emit a ready-to-run Playwright test in the appropriate location.

Frequently Asked Questions about write-behavior-test

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

FAQPage Schema
How do I convert behavior specs into Playwright tests?

To convert behavior specs into Playwright tests, provide Act:/Check: steps to automatically generate runnable .spec.ts files. This translation process maps each example specification to an individual end-to-end test file for clear traceability.

What is PreDB-backed state in end-to-end testing?

PreDB-backed state in end-to-end testing configures a deterministic database environment before test execution. It ensures your Playwright tests run against consistent data setups, enabling reliable and repeatable UI assertions.

Can I generate Playwright tests from Act and Check steps automatically?

Yes, you can automatically generate Playwright tests from Act and Check steps. The generation process translates these behavior specification steps directly into Playwright actions and UI assertions within structured test files.

Does generated Playwright test code include database setup and cleanup?

Yes, generated Playwright test code includes database setup and cleanup. The production workflow automatically enforces proper test structure by generating PreDB setup configurations alongside Playwright actions and enforcing test cleanup.

What is the best way to structure Playwright tests for behavior specs?

The best way to structure Playwright tests for behavior specs is a one-test-per-example workflow. This approach maps each Example from a specification to an individual test file located in app/[role]/[page]/behaviors/[behavior-name]/tests.