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-cypress-docs3description: 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.4---56# Cypress Documentation78## Purpose9Enable the agent to retrieve accurate, up-to-date, and verifiable information about the Cypress testing framework by prioritizing official documentation and structured sources.1011## When to use1213Apply this skill whenever the task depends on **finding, reading, or quoting Cypress documentation** rather than general testing intuition:1415- **Look up facts**: commands, APIs, assertions, lifecycle hooks, configuration options, environment variables, CLI flags, plugins, or TypeScript types as documented by Cypress.16- **Confirm behavior**: how something works in a given Cypress version, E2E vs component testing differences, browser support, or networking/cy.intercept semantics.17- **Before asserting “Cypress can/cannot…”**: search docs first; do not rely on memory for exact signatures, defaults, or deprecated APIs.18- **Extract structured content**: follow the LLM-optimized docs strategy below (`llms.txt`, `/llm/*`) when fetching or summarizing doc pages.19- **Ground answers for others**: when explaining Cypress to a user, writing examples, or reviewing code where correctness must match official docs.2021If 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.2223## Source Prioritization2425### Primary Sources (ALWAYS search first)26- https://docs.cypress.io27- https://www.cypress.io2829## 🤖 LLM-Optimized Docs Strategy3031When accessing `docs.cypress.io`:32331. Fetch `/llms.txt`34352. Parse it to discover:36 - LLM-friendly documentation paths37 - Structured content endpoints38393. 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`.40414. Why:42 - Markdown / JSON format43 - Cleaner structure44 - Less noise than HTML45465. Fallback:47 - If `/llm/*` is incomplete, use standard docs pages4849## Critical Rules5051### Never Assume Missing Features52- NEVER assume Cypress does not support a feature53- ALWAYS search before concluding54- Retry with alternate terminology if needed5556### Anti-Hallucination Guard5758If documentation cannot verify a claim:5960- Say: "I could not verify this in Cypress docs"61- Provide closest supported alternative (if available)62- DO NOT invent APIs or behavior6364## Search Strategy6566### 1. Classify the Query6768| Query Type | Search Location |69|------------------|------------------------------|70| How do I... | /guides/, /core-concepts/ |71| What is... | /core-concepts/ |72| API / Commands | /api/commands/ |73| Assertions | /api/assertions/ |74| Config issues | /configuration/ |75| CI/CD | /guides/ci-cd/ |76| Errors | /references/error-messages/ |7778### 2. Search Flow79801. `/llm/*` (via `/llms.txt`)812. Standard docs pages823. `/changelog/`834. `cypress.io` (blog, updates)8485### 3. Error-Aware Routing8687If the query includes:88- Error messages89- Stack traces9091Then:921. Search `/references/error-messages`932. Expand to guides and API docs9495## Structured Extraction Rules9697### Commands98- Syntax99- Required arguments100- Optional options101- Return behavior102- Example usage103104### Concepts105- Definition106- Key rules107- Common pitfalls108- Example109110### Configuration111- Option name112- Type113- Default value114- Example115116## Version Awareness117118- Detect Cypress version if provided119- If NOT provided: assume latest stable version120- If behavior differs by version:121 - Explicitly call it out122123## Response Style Guidelines124125- Prefer official examples126- Provide working code snippets127- Keep answers concise but complete128- Avoid speculation129130## Caching Strategy (Optional)131132Cache frequently used topics:133- cy.visit134- cy.get135- cy.intercept136- authentication patterns137- common configuration138139## Confidence Annotation140141Internally assess confidence:142143- High → Direct match in official docs144- Medium → Inferred from multiple sources145- Low → Unclear or edge case146147If LOW:148- Clearly communicate uncertainty149150## LLM Path Auto-Discovery151152- Always parse `/llms.txt`153- Dynamically adapt to:154 - New `/llm/*` paths155 - Updated documentation formats156157## Safety Rules158159- NEVER invent Cypress APIs160- NEVER guess syntax161- ALWAYS verify behavior162- Prefer "unknown" over incorrect163164## Example Behavior165166User: "How do I mock API requests in Cypress?"167168Agent should:1691. Classify → API / network1702. Search `/llm/markdown/api/` and `/llm/markdown/guides/`1713. Identify `cy.intercept`1724. Extract structured details1735. Return:174 - Explanation175 - Syntax176 - Example177 - Notes178179## Summary180181This skill ensures:182- Accurate answers from official sources183- Reduced hallucination184- Structured, high-quality outputs185- Adaptability to evolving Cypress docs