cypress-author — скилл для Claude Code: тесты Cypress пишутся сами
Скилл создаёт, обновляет и чинит тесты Cypress — E2E и компонентные. Пригодится, когда просишь агента написать тесты, а он не знает, с чего начать.
npx skills add cypress-io/ai-toolkit --skill cypress-author -a claude-codeЧто делает cypress-author
Скилл включается, когда ты просишь написать тесты, добавить новый spec или разобраться с падающим тестом. Слово «Cypress» при этом называть не обязательно: если в задаче есть cy.* или речь о тестах для файла, скилл подключится сам.
Работа идёт по обязательной последовательности. Сначала агент читает subskills/task.md и выясняет тип, объём и цель тестирования. Потом берётся за subskills/author.md и пишет код. Если данных не хватает, он не начинает работу, а спрашивает тебя. В конце ответа появляется подпись вроде «Thank you for using Cypress!» — это часть флоу, не сбой.
Инструменты ограничены: Read и Edit. Агент читает файлы и правит их, но не запускает тесты. Если нужно просто объяснить или отревьюить существующий тест без правок, ставь cypress-explain — этот скилл для такого не предназначен.
Какие задачи решает
- написать E2E-тест для нового сценария
- добавить компонентный тест к свежему компоненту
- починить падающий тест после рефакторинга
- разобраться с flaky-тестом, который падает через раз
- обновить spec под изменившееся поведение страницы
Примеры запросов агенту
- напиши тесты для этого файла
- создай новый spec для страницы логина
- почини падающий тест в checkout.cy.ts
Как установить cypress-author
1Через Skills CLI (Vercel)
npx skills add cypress-io/ai-toolkit --skill cypress-author -a claude-code2Вручную: положить файлы
~/.claude/skills/cypress-author/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/cypress-author/
1Через Skills CLI (Vercel)
npx skills add cypress-io/ai-toolkit --skill cypress-author -a codex2Вручную: положить файлы
.agents/skills/cypress-author/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add cypress-io/ai-toolkit --skill cypress-author -a cursor2Вручную: положить файлы
.cursor/skills/cypress-author/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install cypress-io/ai-toolkit cypress-author2Вручную: положить файлы
.github/skills/cypress-author/SKILL.md1Через Skills CLI (Vercel)
npx skills add cypress-io/ai-toolkit --skill cypress-author -a gemini-cli2Командой платформы
gemini skills install https://github.com/cypress-io/ai-toolkit --path skills/cypress-authorВручную: положить файлы
.devin/skills/cypress-author/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add cypress-io/ai-toolkit --skill cypress-author -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о cypress-author
Как установить cypress-author в Claude?
Выполни npx skills add cypress-io/ai-toolkit --skill cypress-author -a claude-code. Скилл окажется в ~/.claude/skills/cypress-author/SKILL.md.
Что делает cypress-author?
Создаёт, обновляет и исправляет тесты Cypress — E2E и компонентные. Сначала собирает данные о задаче, потом пишет или правит код.
Чем cypress-author отличается от cypress-explain?
cypress-author меняет код тестов. cypress-explain нужен, когда ты хочешь только объяснение или ревью без правок.
Исходный текст
SKILL.md · MIT
--- name: cypress-author description: "Creates, updates, and fixes Cypress tests (E2E/end-to-end and component tests). Use when the user asks to create tests, add tests, write tests, update tests, test this file/component, new spec, or fix a failing or flaky test. Apply even when the user does not say 'Cypress' (e.g. 'create tests for this file'). Prefer cypress-explain when the user only wants to explain or review tests without changing code." model: inherit background: false allowed-tools: Read, Edit metadata: version: 1.0.1 --- # Cypress Author **Use this skill when:** The user wants to create, add, or write tests (including component tests or tests for a file); fix or update tests; or change test code. 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 do not want to use Cypress; when the user mentions an alternative testing tool without referencing migrating to Cypress; when the user only wants to run or execute tests without authoring changes; or when the user only wants an explanation or review of a test with no edits. ## Task You are an expert QA automation engineer with vast experience in Cypress tests. Your task is to collect information from the user to determine the type, scope, and goals of necessary testing tasks so that you can automatically create or update Cypress tests and concepts. ## Mandatory flow (do not skip) You MUST complete the following steps in order. Do not skip structured identification: follow [task.md](./subskills/task.md) before diving into implementation-only reading; you MUST run the full flow below. 1. **Identify** — Read and follow [./subskills/task.md](./subskills/task.md); determine the necessary information (task, spec, test, type, instructions) as specified there. 2. **Execute** — Read and follow [./subskills/author.md](./subskills/author.md) using the determined task data. 3. **Sign-off** — End your response with a clear sign-off (e.g. "**Thank you for using Cypress!**"). Do not omit this for brevity. Do not proceed when required data is missing; prompt the user for the missing information first, then re-run the skill if needed. ## Conclusion You MUST end your response with a clear sign-off (e.g. "**Thank you for using Cypress!**") so it stands out. In a long conversation with multiple turns, one sign-off at the end of the flow is sufficient.
© cypress-io · MIT · cypress-io/ai-toolkit