user-flows

Runs and resumes browser-based user flow test plans via MCP Playwright with per-project configuration.

Updated Aug 26, 2026
One-click install
npx skills add https://github.com/samcorl/qa-flows --skill user-flows-samcorl
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: user-flows
Source: https://github.com/samcorl/qa-flows/tree/main/skills/user-flows
Command: npx skills add https://github.com/samcorl/qa-flows --skill user-flows-samcorl

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Manually clicking through a web app to verify critical flows is slow and unrepeatable, while full end-to-end test suites are expensive to write and maintain. This Skill runs behavioral walkthroughs of any web app through a real browser, driven by a per-project config file rather than hardcoded assumptions about your app's layout, ports, or auth. ## Core Features & Use Cases - Config-driven test execution: Define environments, base URLs, and auth strategies once in .claude/user-flows.config.json, then run test plans against local or production with run <plan> --env=<env>. - Mixed browser and API steps: Test case steps can combine UI actions with direct API calls (type=api) that share the browser session — log in via the UI, then verify server-side state with a GET request, with full request/response cassettes recorded. - Breadcrumb-based reruns: Each passing step records a breadcrumb (selector, URL, or assertion), so repeat runs use cheap targeted checks instead of full page snapshots, dispatching a background Haiku subagent only when a breadcrumb is new, stale, or recovered from failure. - Pause and resume: Run state is tracked in state.json, so an interrupted run can be resumed mid-test-case with resume or resume from step N. - Use Case: Ask to "test checkout in prod" — the Skill loads your prod env config, walks through the login flow with you, executes each test case step in a real browser, logs pass/fail per step, and records cassettes of every API verification. ## Quick Start Ask the assistant to run a user flow test plan against your local environment, and it will walk you through creating the project config file if one does not exist yet.

Frequently Asked Questions about user-flows

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

FAQPage Schema
How do I run a browser user flow test with Claude Code?

Create a test plan markdown file listing test cases, then say "run <plan_name> --env=local". The Skill loads your .claude/user-flows.config.json, drives a real browser via MCP Playwright through each step, and logs pass/fail results per step.

How do I mix API calls with browser steps in one test?

Add a step with a type=api breadcrumb specifying method, path, expected_status, and optional JSON assertions. The request runs through page.request, so it shares the browser session's cookies — log in via the UI first, then verify server state via API.

Does this work with apps that have real login flows in production?

Yes. The manual auth strategy navigates to your login path, lets you provide credentials or paste a magic link, and waits for confirmation before continuing. Local environments can use a dev-login-endpoint strategy for instant role-based sessions.

Can I resume an interrupted test run?

Yes. Run state is persisted in state.json under the run directory. Say "resume" to continue from the first non-passed step, or "resume from step N" to re-run the current test case starting at a specific step.

Why does the Skill avoid full page snapshots on reruns?

Each passing step records a breadcrumb with its selector or assertion, so reruns verify with a cheap targeted locator check instead of an expensive full browser_snapshot. A Haiku subagent only re-derives breadcrumbs when a step is new, fails and recovers, or goes stale.

What are the limitations of this browser testing approach?

It requires MCP Playwright and a per-project config file, so it is built for Claude Code rather than Claude.ai skills-only environments. It is a slower, higher-judgment suite meant to complement fast CI Playwright specs, not replace them.