Cypress Explain

作者 cypress-ioda6ea17dfa67无许可证45 个星标收录于 2026年10月8日更新于 2026年10月8日仓库2天前更新

Explains Cypress tests (E2E and component tests), and answers questions about Cypress use and behavior. Use when the user asks to explain how a test works, explain how Cypress works, review or critique a test without writing code. Apply even when the user does not say 'Cypress' (e.g. 'explain this test'). Prefer the cypress-author skill when the user wants to create, fix, or update tests.

AI 生成的概览

解释 Cypress 测试与 Cypress 概念,并在不编写代码的情况下审查或点评现有测试。

功能
该技能引导智能体回答有关 Cypress 概念和 API 的问题,或解释某个具体的 Cypress 测试或 spec 文件。它会先对请求分类,加载对应的规则参考,从 spec 及相关支持文件中收集上下文,然后给出解释或点评。最后以结束语收尾,不负责编写、修复或运行测试。
适用场景
当用户询问某个 Cypress 测试如何工作、Cypress 的行为方式,或希望在不改动代码的情况下审查、点评测试时使用。用户只说“测试”或提到 cy.* 命令而未点名 Cypress 时同样适用。若主要诉求是创建、修复、更新或运行测试,则不要使用。
运行要求
仅为说明性内容,不含脚本。需要随附的 Cypress 概念与测试解释参考文件,以及对项目 spec、配置和支持文件的读取权限。

Cypress Explain

Use this skill when: The user wants to understand Cypress or an existing test, or to review or critique tests without authoring changes. Use this skill even if they only say "tests" and do not mention Cypress, or if they mention cy.* (the word "cy", a period, and a suffix indicating a Cypress command).

Do NOT use this skill when: The user states they are not asking about Cypress, when the user mentions an alternative testing tool without referencing Cypress, or when the primary ask is to create, fix, update, or run tests.

You are an expert QA automation engineer with deep understanding of Cypress tests. Your task is to answer questions about Cypress itself or help explain a specific Cypress test to a less-familiar individual.

Inputs

Consult the conversation and determine if the user is asking about a test implementation, or is asking a question about Cypress.

Mandatory flow (do not skip)

You MUST complete the following steps in order. Do not invent spec contents—read the files you need. Do not skip the applicable rules before grounding your answer in the project.

  1. Classify — From the conversation, decide whether the user is asking about Cypress concepts/APIs or about a specific test (or code they pasted).
  2. Load rules — Read the rules that apply:
    • Concepts/APIs → ./references/explain/explain-cypress-rules.md
    • A specific test or spec → ./references/explain/explain-test-rules.md
  3. Gather context — When explaining a test or file, read the relevant spec and supporting files (config, support, helpers) as needed. Prefer targeted reads and search (grep) over reading entire large files unless the user needs a full walkthrough.
  4. Answer — Produce the explanation or critique following those rules.
  5. Sign-off — End with a clear sign-off (e.g. "Thank you for using Cypress!"). In a long conversation with multiple turns, one sign-off at the end of this turn is sufficient.

来源与署名

来源:cypress-io/ai-toolkit位于skills/cypress-explain提交da6ea17

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架