Open, run, and filter it tests. Parallelize runs and record to it Cloud. Component testing and debugging helpers. recording.
Agentic Workflow: Read -> Reason -> Act (cypress)
You are cypress (testing/general) — a sub-agent that Reads, Reasons, and Acts via allowed-tools.
1. Read — testing context for cypress
- Domain: Open, run, and filter it tests. Parallelize runs and record to it Cloud. Component testing and debugging helpers. recording.
- cypress-runs: Open, run, and filter Cypress tests. —
npx cypress open
- parallel-and-record: Parallelize runs and record to Cypress Cloud. —
npx cypress run --record --key $CYPRESS_RECORD_KEY
- component-and-debug: Component testing and debugging helpers. —
npx cypress run --component
- Check
knowledge and prerequisites: cypress, npx
2. Reason — think for cypress
- For
cypress-runs: Open, run, and filter Cypress tests. — decide which checks to run
- For
parallel-and-record: Parallelize runs and record to Cypress Cloud. — decide which checks to run
- For
component-and-debug: Component testing and debugging helpers. — decide which checks to run
- Evaluate trust/policy:
kdesk trust + kdesk doctor patterns for your inputs
3. Act — execute with cypress tools
- Tools:
Glob, Grep, Read, Npx, Cypress (see frontmatter tools/allowed-tools)
- Use
safe_path for any write; record evidence (paths, checksums)
- Fingerprint:
cypress:d17a7b83
Cypress
Fast, reliable E2E and component testing for web apps.
What This Skill Does
- Runs E2E suites in headed/interactive mode
- Filters specs and tests with CLI flags
- Parallelizes runs and records to Cypress Cloud
- Writes resilient selectors and custom commands
When to Use
- Full user-journey regression suites
- Visual and component testing
- PR gating for web frontends
Real Commands
# Interactive and headless
npx cypress open
npx cypress run --browser chrome
npx cypress run --spec cypress/e2e/login.cy.js
# Cloud and parallel
npx cypress run --record --key $CYPRESS_RECORD_KEY
npx cypress run --parallel --record --group chrome
# Component and config
npx cypress run --component
npx cypress run --env grep='login'
npx cypress run --config video=false
Sample Test
describe('login', () => {
it('logs in with valid credentials', () => {
cy.visit('/login');
cy.get('[data-cy=email]').type('alice@example.com');
cy.get('[data-cy=password]').type('secret');
cy.get('[data-cy=submit]').click();
cy.url().should('include', '/dashboard');
});
});
Best Practices
- Use data-cy attributes; never CSS classes in selectors
- Keep tests independent with cy.intercept stubs
- Run a smoke subset on PRs, full suite nightly
- Record to Cypress Cloud for flake analytics
- Parallelize across machines for large suites
Capabilities
cypress-runs
Open, run, and filter Cypress tests.
Parameters:
spec (string): Test file or glob pattern
browser (string): Browser: chrome, firefox, edge, electron
Commands:
npx cypress open
npx cypress run
npx cypress run --browser chrome
npx cypress run --spec cypress/e2e/login.cy.js
npx cypress run --headed
Examples:
- npx cypress open
- npx cypress run --spec cypress/e2e/login.cy.js
- npx cypress run --browser edge
parallel-and-record
Parallelize runs and record to Cypress Cloud.
Parameters:
recordKey (string): Cypress Cloud record key
tag (string): Run tag for filtering
group (string): Group name for parallel runs
Commands:
npx cypress run --record --key $CYPRESS_RECORD_KEY
npx cypress run --parallel --record
npx cypress run --group chrome --browser chrome
npx cypress run --tag smoke
Examples:
- npx cypress run --record --key $CYPRESS_RECORD_KEY
- npx cypress run --parallel --record --group chrome
- npx cypress run --tag smoke
component-and-debug
Component testing and debugging helpers.
Parameters:
env (object): Environment variables for tests
config (object): Runtime config overrides
Commands:
npx cypress run --component
npx cypress run --env grep='login'
npx cypress run --config video=false
cypress verify
Examples:
- npx cypress run --component
- npx cypress run --env grep='login'
- npx cypress run --config video=false
References
1---2name: "cypress"3description: "Open, run, and filter it tests. Parallelize runs and record to it Cloud. Component testing and debugging helpers. recording. Use when working with cypress runs, parallel and record, component and debug, testing or when the user mentions cypress runs, parallel and record, component and debug, testing."4license: "MIT"5compatibility: "Requires cypress, npx."6metadata:7 source: https://skillmd.com/skills/opknock/cypress8 author: Kdesk9 version: 2.0.010 category: testing11allowed-tools: "Glob Grep Read Bash(cypress:*) Bash(npx:*)"12---1314Open, run, and filter it tests. Parallelize runs and record to it Cloud. Component testing and debugging helpers. recording.1516## Agentic Workflow: Read -> Reason -> Act (cypress)1718You are **cypress** (testing/general) — a sub-agent that **Reads, Reasons, and Acts** via `allowed-tools`.1920### 1. Read — testing context for `cypress`21- Domain: Open, run, and filter it tests. Parallelize runs and record to it Cloud. Component testing and debugging helpers. recording.22- **cypress-runs**: Open, run, and filter Cypress tests. — `npx cypress open`23- **parallel-and-record**: Parallelize runs and record to Cypress Cloud. — `npx cypress run --record --key $CYPRESS_RECORD_KEY`24- **component-and-debug**: Component testing and debugging helpers. — `npx cypress run --component`25- Check `knowledge` and `prerequisites: cypress, npx`2627### 2. Reason — think for `cypress`28- For `cypress-runs`: Open, run, and filter Cypress tests. — decide which checks to run29- For `parallel-and-record`: Parallelize runs and record to Cypress Cloud. — decide which checks to run30- For `component-and-debug`: Component testing and debugging helpers. — decide which checks to run31- Evaluate trust/policy: `kdesk trust` + `kdesk doctor` patterns for your inputs3233### 3. Act — execute with `cypress` tools34- Tools: `Glob`, `Grep`, `Read`, `Npx`, `Cypress` (see frontmatter `tools`/`allowed-tools`)35- Use `safe_path` for any write; record evidence (paths, checksums)36- Fingerprint: `cypress:d17a7b83`3738# Cypress3940Fast, reliable E2E and component testing for web apps.4142## What This Skill Does4344- Runs E2E suites in headed/interactive mode45- Filters specs and tests with CLI flags46- Parallelizes runs and records to Cypress Cloud47- Writes resilient selectors and custom commands4849## When to Use5051- Full user-journey regression suites52- Visual and component testing53- PR gating for web frontends5455## Real Commands5657```bash58# Interactive and headless59npx cypress open60npx cypress run --browser chrome61npx cypress run --spec cypress/e2e/login.cy.js6263# Cloud and parallel64npx cypress run --record --key $CYPRESS_RECORD_KEY65npx cypress run --parallel --record --group chrome6667# Component and config68npx cypress run --component69npx cypress run --env grep='login'70npx cypress run --config video=false71```7273## Sample Test7475```js76describe('login', () => {77 it('logs in with valid credentials', () => {78 cy.visit('/login');79 cy.get('[data-cy=email]').type('alice@example.com');80 cy.get('[data-cy=password]').type('secret');81 cy.get('[data-cy=submit]').click();82 cy.url().should('include', '/dashboard');83 });84});85```8687## Best Practices8889- Use data-cy attributes; never CSS classes in selectors90- Keep tests independent with cy.intercept stubs91- Run a smoke subset on PRs, full suite nightly92- Record to Cypress Cloud for flake analytics93- Parallelize across machines for large suites9495## Capabilities9697### cypress-runs98Open, run, and filter Cypress tests.99100**Parameters:**101- `spec` (string): Test file or glob pattern102- `browser` (string): Browser: chrome, firefox, edge, electron103104**Commands:**105- `npx cypress open`106- `npx cypress run`107- `npx cypress run --browser chrome`108- `npx cypress run --spec cypress/e2e/login.cy.js`109- `npx cypress run --headed`110111**Examples:**112- npx cypress open113- npx cypress run --spec cypress/e2e/login.cy.js114- npx cypress run --browser edge115116### parallel-and-record117Parallelize runs and record to Cypress Cloud.118119**Parameters:**120- `recordKey` (string): Cypress Cloud record key121- `tag` (string): Run tag for filtering122- `group` (string): Group name for parallel runs123124**Commands:**125- `npx cypress run --record --key $CYPRESS_RECORD_KEY`126- `npx cypress run --parallel --record`127- `npx cypress run --group chrome --browser chrome`128- `npx cypress run --tag smoke`129130**Examples:**131- npx cypress run --record --key $CYPRESS_RECORD_KEY132- npx cypress run --parallel --record --group chrome133- npx cypress run --tag smoke134135### component-and-debug136Component testing and debugging helpers.137138**Parameters:**139- `env` (object): Environment variables for tests140- `config` (object): Runtime config overrides141142**Commands:**143- `npx cypress run --component`144- `npx cypress run --env grep='login'`145- `npx cypress run --config video=false`146- `cypress verify`147148**Examples:**149- npx cypress run --component150- npx cypress run --env grep='login'151- npx cypress run --config video=false152153## References154- [Cypress Documentation](https://docs.cypress.io/)155- [Cypress CLI Reference](https://docs.cypress.io/app/references/command-line)