ultroncore/claude-skill-vault/playwright-flow-recorder
Claude Code and agent skill by ultroncore/claude-skill-vault
- community
Checking that the SKILL.md file is still in the repository.
Creates Playwright test scripts from natural language user flow descriptions. This skill should be used when generating E2E tests from scenarios, converting user stories to test code, recording user flows, creating test scripts from descriptions like "user signs up and creates project", or translating acceptance criteria into executable tests. Trigger terms include playwright test, e2e flow, user scenario, test from description, record flow, user journey, test script generation, acceptance test…
Install
npx vskill@latest install ultroncore/claude-skill-vault/playwright-flow-recorderSKILL.md
The same SKILL.md was published earlier as ultroncore/claude-skill-vault/playwright-flow-recorder.
Playwright Flow Recorder
Generate Playwright test scripts from natural language scenario descriptions.
Overview
To create E2E tests from user flow descriptions, this skill translates natural language scenarios into executable Playwright test code with proper assertions, error handling, and best practices.
When to Use
Use this skill when:
- Converting user stories to E2E tests
- Generating tests from acceptance criteria
- Creating test scripts from flow descriptions
- Translating business requirements into tests
- Documenting user journeys as executable tests
- Building test coverage for critical user paths
Flow Description Format
Simple Flow
Detailed Flow
Acceptance Criteria Format
Generation Process
1. Parse Flow Description
To analyze the scenario, use scripts/parse_flow.py:
The script identifies:
- Actions (navigate, click, fill, select, etc.)
- Elements (buttons, inputs, links, etc.)
- Assertions (sees, redirected, displays, etc.)
- Data inputs (form values, selections, etc.)
2. Map to Playwright Actions
To convert parsed steps to Playwright code, use the action mapping:
Navigation:
- "navigates to X" →
await page.goto('/x') - "clicks X" →
await page.getByRole('button', { name: /x/i }).click() - "selects X from Y" →
await page.getByLabel(/y/i).selectOption('x')
Form Input:
- "fills X with Y" →
await page.getByLabel(/x/i).fill('y') - "enters X" →
await page.getByLabel(/x/i).fill('x') - "types X" →
await page.getByLabel(/x/i).type('x')
Assertions:
- "sees X" →
await expect(page.getByText(/x/i)).toBeVisible() - "is redirected to X" →
await expect(page).toHaveURL(/x/) - "X displays Y" →
await expect(page.getByRole('x')).toContainText(/y/i)
3. Generate Test Structure
To create the test file, use the template from assets/test-template.ts:
4. Add Assertions and Waits
To ensure test reliability, add:
- Explicit waits for dynamic content
- Assertions after state changes
- Error state checks
- Loading state handling
5. Generate Data Fixtures
To create test data, use scripts/generate_fixtures.py:
Usage Examples
Example 1: User Signup Flow
Input Description:
Generated Test:
Example 2: Entity Relationship Flow
Input Description:
Generated Test:
Example 3: Timeline Flow
Input Description:
Generated Test:
Advanced Features
Authentication Flows
To handle authentication, use the setup from references/auth-patterns.md:
API Mocking
To mock API responses, use Playwright's route handlers:
Error Scenarios
To test error handling:
Command Usage
Generate Test from Description
Generate Test from File
Generate Multiple Tests
Resources
Consult the following resources for detailed information:
scripts/parse_flow.py- Flow description parserscripts/generate_flow_test.py- Test generatorscripts/generate_fixtures.py- Test data generatorreferences/playwright-actions.md- Action mapping referencereferences/auth-patterns.md- Authentication patternsreferences/selectors.md- Selector best practicesassets/test-template.ts- Base test templateassets/action-templates/- Action code templates
Best Practices
- Use semantic selectors (role, label, text)
- Add explicit waits for dynamic content
- Include assertions after state changes
- Test error scenarios
- Keep tests independent
- Use descriptive test names
- Add comments for complex flows
- Group related tests with describe blocks
Related Skills
playwright— Playwright testingwebapp-testing— test automationci-cd-pipeline-builder— CI testing
GitNexus Index
This skill is indexed by GitNexus for knowledge graph traversal. Index path: /Users/localuser/.claude/skills/playwright-flow-recorder/.gitnexus Last indexed: 2026-05-23
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/automation/playwright-flow-recorder/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ultroncore/claude-skill-vault/playwright-flow-recorder)