Cypress Documentation
Purpose
Enable the agent to retrieve accurate, up-to-date, and verifiable information about the Cypress testing framework by prioritizing official documentation and structured sources.
When to use
Apply this skill whenever the task depends on finding, reading, or quoting Cypress documentation rather than general testing intuition:
- Look up facts: commands, APIs, assertions, lifecycle hooks, configuration options, environment variables, CLI flags, plugins, or TypeScript types as documented by Cypress.
- Confirm behavior: how something works in a given Cypress version, E2E vs component testing differences, browser support, or networking/cy.intercept semantics.
- Before asserting “Cypress can/cannot…”: search docs first; do not rely on memory for exact signatures, defaults, or deprecated APIs.
- Extract structured content: follow the LLM-optimized docs strategy below (
llms.txt, /llm/*) when fetching or summarizing doc pages.
- Ground answers for others: when explaining Cypress to a user, writing examples, or reviewing code where correctness must match official docs.
If the user only needs writing or fixing tests without a documentation lookup, prefer cypress-author; if they only need test explanation without fetching docs, prefer cypress-explain. Use this skill when official documentation is the source of truth.
Source Prioritization
Primary Sources (ALWAYS search first)
🤖 LLM-Optimized Docs Strategy
When accessing docs.cypress.io:
Fetch /llms.txt
Parse it to discover:
- LLM-friendly documentation paths
- Structured content endpoints
Prefer content under /llm/*. Every path on the site has an optimized version hosted under /llm - for example, https://docs.cypress.io/app/faq is available at https://docs.cypress.io/llm/markdown/app/faq.md.
Why:
- Markdown / JSON format
- Cleaner structure
- Less noise than HTML
Fallback:
- If
/llm/* is incomplete, use standard docs pages
Critical Rules
Never Assume Missing Features
- NEVER assume Cypress does not support a feature
- ALWAYS search before concluding
- Retry with alternate terminology if needed
Anti-Hallucination Guard
If documentation cannot verify a claim:
- Say: "I could not verify this in Cypress docs"
- Provide closest supported alternative (if available)
- DO NOT invent APIs or behavior
Search Strategy
1. Classify the Query
| Query Type |
Search Location |
| How do I... |
/guides/, /core-concepts/ |
| What is... |
/core-concepts/ |
| API / Commands |
/api/commands/ |
| Assertions |
/api/assertions/ |
| Config issues |
/configuration/ |
| CI/CD |
/guides/ci-cd/ |
| Errors |
/references/error-messages/ |
2. Search Flow
/llm/* (via /llms.txt)
- Standard docs pages
/changelog/
cypress.io (blog, updates)
3. Error-Aware Routing
If the query includes:
- Error messages
- Stack traces
Then:
- Search
/references/error-messages
- Expand to guides and API docs
Structured Extraction Rules
Commands
- Syntax
- Required arguments
- Optional options
- Return behavior
- Example usage
Concepts
- Definition
- Key rules
- Common pitfalls
- Example
Configuration
- Option name
- Type
- Default value
- Example
Version Awareness
- Detect Cypress version if provided
- If NOT provided: assume latest stable version
- If behavior differs by version:
Response Style Guidelines
- Prefer official examples
- Provide working code snippets
- Keep answers concise but complete
- Avoid speculation
Caching Strategy (Optional)
Cache frequently used topics:
- cy.visit
- cy.get
- cy.intercept
- authentication patterns
- common configuration
Confidence Annotation
Internally assess confidence:
- High → Direct match in official docs
- Medium → Inferred from multiple sources
- Low → Unclear or edge case
If LOW:
- Clearly communicate uncertainty
LLM Path Auto-Discovery
- Always parse
/llms.txt
- Dynamically adapt to:
- New
/llm/* paths
- Updated documentation formats
Safety Rules
- NEVER invent Cypress APIs
- NEVER guess syntax
- ALWAYS verify behavior
- Prefer "unknown" over incorrect
Example Behavior
User: "How do I mock API requests in Cypress?"
Agent should:
- Classify → API / network
- Search
/llm/markdown/api/ and /llm/markdown/guides/
- Identify
cy.intercept
- Extract structured details
- Return:
- Explanation
- Syntax
- Example
- Notes
Summary
This skill ensures:
- Accurate answers from official sources
- Reduced hallucination
- Structured, high-quality outputs
- Adaptability to evolving Cypress docs
1---
2name: cypress-docs
3description: Search and extract Cypress information from official documentation (docs.cypress.io, cypress.io); prefer LLM markdown under /llm/* and refuse unverified API or behavior claims.
4model: inherit
5background: false
6metadata:
7 source: https://skillmd.com/skills/om-scogo/cypress-docs
8 version: 1.0.0
9---
10
11# Cypress Documentation
12
13## Purpose
14Enable the agent to retrieve accurate, up-to-date, and verifiable information about the Cypress testing framework by prioritizing official documentation and structured sources.
15
16## When to use
17
18Apply this skill whenever the task depends on **finding, reading, or quoting Cypress documentation** rather than general testing intuition:
19
20- **Look up facts**: commands, APIs, assertions, lifecycle hooks, configuration options, environment variables, CLI flags, plugins, or TypeScript types as documented by Cypress.
21- **Confirm behavior**: how something works in a given Cypress version, E2E vs component testing differences, browser support, or networking/cy.intercept semantics.
22- **Before asserting “Cypress can/cannot…”**: search docs first; do not rely on memory for exact signatures, defaults, or deprecated APIs.
23- **Extract structured content**: follow the LLM-optimized docs strategy below (`llms.txt`, `/llm/*`) when fetching or summarizing doc pages.
24- **Ground answers for others**: when explaining Cypress to a user, writing examples, or reviewing code where correctness must match official docs.
25
26If the user only needs **writing or fixing tests** without a documentation lookup, prefer `cypress-author`; if they only need **test explanation** without fetching docs, prefer `cypress-explain`. Use **this** skill when official documentation is the source of truth.
27
28## Source Prioritization
29
30### Primary Sources (ALWAYS search first)
31- https://docs.cypress.io
32- https://www.cypress.io
33
34## 🤖 LLM-Optimized Docs Strategy
35
36When accessing `docs.cypress.io`:
37
381. Fetch `/llms.txt`
39
402. Parse it to discover:
41 - LLM-friendly documentation paths
42 - Structured content endpoints
43
443. Prefer content under `/llm/*`. Every path on the site has an optimized version hosted under `/llm` - for example, `https://docs.cypress.io/app/faq` is available at `https://docs.cypress.io/llm/markdown/app/faq.md`.
45
464. Why:
47 - Markdown / JSON format
48 - Cleaner structure
49 - Less noise than HTML
50
515. Fallback:
52 - If `/llm/*` is incomplete, use standard docs pages
53
54## Critical Rules
55
56### Never Assume Missing Features
57- NEVER assume Cypress does not support a feature
58- ALWAYS search before concluding
59- Retry with alternate terminology if needed
60
61### Anti-Hallucination Guard
62
63If documentation cannot verify a claim:
64
65- Say: "I could not verify this in Cypress docs"
66- Provide closest supported alternative (if available)
67- DO NOT invent APIs or behavior
68
69## Search Strategy
70
71### 1. Classify the Query
72
73| Query Type | Search Location |
74|------------------|------------------------------|
75| How do I... | /guides/, /core-concepts/ |
76| What is... | /core-concepts/ |
77| API / Commands | /api/commands/ |
78| Assertions | /api/assertions/ |
79| Config issues | /configuration/ |
80| CI/CD | /guides/ci-cd/ |
81| Errors | /references/error-messages/ |
82
83### 2. Search Flow
84
851. `/llm/*` (via `/llms.txt`)
862. Standard docs pages
873. `/changelog/`
884. `cypress.io` (blog, updates)
89
90### 3. Error-Aware Routing
91
92If the query includes:
93- Error messages
94- Stack traces
95
96Then:
971. Search `/references/error-messages`
982. Expand to guides and API docs
99
100## Structured Extraction Rules
101
102### Commands
103- Syntax
104- Required arguments
105- Optional options
106- Return behavior
107- Example usage
108
109### Concepts
110- Definition
111- Key rules
112- Common pitfalls
113- Example
114
115### Configuration
116- Option name
117- Type
118- Default value
119- Example
120
121## Version Awareness
122
123- Detect Cypress version if provided
124- If NOT provided: assume latest stable version
125- If behavior differs by version:
126 - Explicitly call it out
127
128## Response Style Guidelines
129
130- Prefer official examples
131- Provide working code snippets
132- Keep answers concise but complete
133- Avoid speculation
134
135## Caching Strategy (Optional)
136
137Cache frequently used topics:
138- cy.visit
139- cy.get
140- cy.intercept
141- authentication patterns
142- common configuration
143
144## Confidence Annotation
145
146Internally assess confidence:
147
148- High → Direct match in official docs
149- Medium → Inferred from multiple sources
150- Low → Unclear or edge case
151
152If LOW:
153- Clearly communicate uncertainty
154
155## LLM Path Auto-Discovery
156
157- Always parse `/llms.txt`
158- Dynamically adapt to:
159 - New `/llm/*` paths
160 - Updated documentation formats
161
162## Safety Rules
163
164- NEVER invent Cypress APIs
165- NEVER guess syntax
166- ALWAYS verify behavior
167- Prefer "unknown" over incorrect
168
169## Example Behavior
170
171User: "How do I mock API requests in Cypress?"
172
173Agent should:
1741. Classify → API / network
1752. Search `/llm/markdown/api/` and `/llm/markdown/guides/`
1763. Identify `cy.intercept`
1774. Extract structured details
1785. Return:
179 - Explanation
180 - Syntax
181 - Example
182 - Notes
183
184## Summary
185
186This skill ensures:
187- Accurate answers from official sources
188- Reduced hallucination
189- Structured, high-quality outputs
190- Adaptability to evolving Cypress docs