agentleFS
cypress-iocypress-io/ai-toolkit/skills/cypress-docs/SKILL.md

cypress-docs

Skill47 starsChanged 8 months agoMITView on GitHub

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.

2 other projects use a version of this, 1 of them edited.

Adopted by

Most recently taken up by

  • Other versions2 projects use a version of this.

    Word for word · 1

    1. gerizal/claude-skills★ 0100% same

    Edited · 1

    1. jgamaraalv/delivery-loop★ 013% same

    Wrote their own version · 0

    None found.

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository4 other files it gives its agents.

The file

Show its rules and text

We split this skill into the rules it gives an agent

17 rules. About 0 are common, 12 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈12

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before asserting “Cypress can/cannot…”: search docs first; do not rely on memory for exact signatures, defaults, or deprecated APIs.

    line 21
  2. Very specific:

    Extract structured content: follow the LLM-optimized docs strategy below (llms.txt, /llm/*) when fetching or summarizing doc pages.

    line 22
  3. Distinctive:

    Ground answers for others: when explaining Cypress to a user, writing examples, or reviewing code where correctness must match official …

    line 23
  4. Very specific:

    If the user only needs writing or fixing tests without a documentation lookup, prefer cypress-author.

    line 25
  5. Very specific:

    Prefer content under /llm/*.

    line 43
  6. Very specific:

    If /llm/* is incomplete, use standard docs pages

    line 51
  7. Distinctive:

    NEVER assume Cypress does not support a feature

    line 56
  8. Distinctive:

    ALWAYS search before concluding

    line 57
  9. Distinctive:

    If documentation cannot verify a claim:

    line 62
  10. Distinctive:

    DO NOT invent APIs or behavior

    line 66
  11. Distinctive:

    If the query includes:

    line 91
  12. Distinctive:

    If NOT provided: assume latest stable version

    line 123
  13. Distinctive:

    If behavior differs by version:

    line 124
  14. Distinctive:

    Keep answers concise but complete

    line 131
  15. Distinctive:

    NEVER invent Cypress APIs

    line 163
  16. Distinctive:

    Prefer "unknown" over incorrect

    line 166
  17. Very specific:

    Search /llm/markdown/api/ and /llm/markdown/guides/

    line 174

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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:

  1. Fetch /llms.txt
  2. Parse it to discover:
    • LLM-friendly documentation paths
    • Structured content endpoints
  3. 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.
  4. Why:
    • Markdown / JSON format
    • Cleaner structure
    • Less noise than HTML
  5. 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 TypeSearch 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

  1. /llm/* (via /llms.txt)
  2. Standard docs pages
  3. /changelog/
  4. cypress.io (blog, updates)

3. Error-Aware Routing

If the query includes:

  • Error messages
  • Stack traces

Then:

  1. Search /references/error-messages
  2. 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:
    • Explicitly call it out

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:

  1. Classify → API / network
  2. Search /llm/markdown/api/ and /llm/markdown/guides/
  3. Identify cy.intercept
  4. Extract structured details
  5. 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

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.