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 從公開儲存庫中收錄這些內容。

檢舉或申請下架