skillfed

cypress-skill

cypress-skill enables you to create production-grade end-to-end and component tests using Cypress, streamlining test automation workflows. This skill generates comprehensive test suites that validate application behavior across browsers and environments, helping teams catch regressions early and maintain code quality.

cypress-skill teaches you to write production-grade E2E and component tests using Cypress by emphasizing best practices like proper selector strategies, command chaining, and avoiding anti-patterns. The skill covers structuring test suites that validate application behavior reliably, using fixtures for test data, implementing page object models for maintainability, and leveraging custom commands in TypeScript to reduce code duplication and improve readability across your test automation workflows.

AI-generated summary based on this skill's SKILL.md

339 68 MIT updated by LambdaTest

Install

LambdaTest/agent-skills/cypress-skill · repository language: Python

CLI (skillfed)coming soon
git clone https://github.com/LambdaTest/agent-skills
cp -r agent-skills/cypress-skill ~/.claude/skills/cypress-skill

Frequently asked questions

AI-generated answers based on this skill's SKILL.md and metadata

How to write Cypress tests that are production-grade?

cypress-skill teaches you to write production-grade E2E and component tests using Cypress by emphasizing best practices like proper selector strategies, command chaining, and avoiding anti-patterns. The skill covers structuring test suites that validate application behavior reliably, using fixtures for test data, implementing page object models for maintainability, and leveraging custom commands in TypeScript to reduce code duplication and improve readability across your test automation workflows.

What does cypress-skill cover for setup and configuration?

cypress-skill guides you through setting up and configuring Cypress for both local and cloud-based test execution environments. You'll learn how to configure the test runner, organize your test files, set up headless testing for CI/CD pipelines, and integrate with cloud platforms like LambdaTest for cross-browser testing. The skill also covers GitHub Actions integration to automate test runs as part of your deployment pipeline.

How can cypress-skill help with cy.get, cy.visit, and other Cypress commands?

cypress-skill provides comprehensive coverage of core Cypress commands including cy.get, cy.visit, cy.intercept, and cy.wait, along with selector best practices to ensure your tests are resilient and maintainable. You'll learn command chaining patterns, how to properly wait for API responses using cy.intercept for network mocking, and techniques to handle asynchronous operations correctly—all essential for writing reliable tests that don't suffer from flakiness.

Can cypress-skill help with component testing in React?

Yes, cypress-skill covers Cypress component testing for React applications, enabling you to test individual components in isolation before running full E2E tests. This approach helps catch bugs early in the development cycle and provides faster feedback than E2E testing alone. The skill teaches you how to mount React components, interact with them, and verify their behavior using Cypress's component testing API.

How does cypress-skill address flaky test debugging?

cypress-skill teaches you to debug and fix flaky tests by mastering network interception with cy.intercept to mock API responses reliably, implementing proper async patterns to handle timing issues, and using cy.wait strategically to synchronize with application state changes. You'll learn to identify common causes of flakiness such as race conditions and improper waits, and apply proven techniques like session authentication management and fixture-based data testing to create stable, maintainable test suites.

Does cypress-skill include cross-browser and cloud testing integration?

cypress-skill integrates Cypress with cloud testing platforms like LambdaTest and TestMu AI for cross-browser testing, allowing you to validate your application across multiple browsers and devices without maintaining local infrastructure. The skill covers configuration for cloud-based test execution, parallel test running to reduce feedback time, and best practices for maintaining test reliability across different browser environments—essential for comprehensive quality assurance.

SKILL.md

rendered from the published skill — quoted content, verbatim

Cypress Automation Skill

You are a senior QA automation architect specializing in Cypress.

Step 1 — Execution Target

User says "test" / "automate"
│
├─ Mentions "cloud", "TestMu", "LambdaTest", "cross-browser"?
│  └─ TestMu AI cloud via cypress-cli plugin
│
├─ Mentions "locally", "open", "headed"?
│  └─ Local: npx cypress open
│
└─ Ambiguous? → Default local, mention cloud option

Step 2 — Test Type

Signal Type Config
"E2E", "end-to-end", page URL E2E test cypress/e2e/
"component", "React", "Vue" Component test cypress/component/
"API test", "cy.request" API test via

(truncated - see the full file via the links below)

Read as markdown · JSON record · Browse the source repository

File tree — 8 files
cypress-skill/SKILL.md
cypress-skill/reference/cloud-integration.md
cypress-skill/reference/component-testing.md
cypress-skill/reference/custom-commands.md
cypress-skill/reference/debugging-flaky.md
cypress-skill/reference/playbook.md
cypress-skill/scripts/scaffold-project.sh
cypress-skill/templates/cypress.config.js

Related skills

Tags

ui-automation test-framework browser-testing qa-tooling api-mocking cross-platform-testing ci-integration visual-testing accessibility-audit test-isolation