Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

write-tests

БесплатноБез исполняемых скриптовНе проверен

Write unit tests for the core logic of a file using the test framework the project already uses. Use when the user asks to add tests or runs /code:write-tests.

diegopachecoот diegopacheco★ 21 звезда на GitHub

Об этом скилле

Write Tests

Write tests for the target given in the arguments: $ARGUMENTS.

  1. Detect the test framework the project already uses. Do not add a new one.
  2. List the behaviors of the target that carry business meaning: edge cases, boundaries, error paths.
  3. Write one test per behavior. Each test name says why the behavior matters.
  4. Do not test getters, the language or the framework.
  5. Run the tests and show the output.

Every test must be able to fail when the logic it covers changes.

Установить write-tests в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл write-tests?

Write unit tests for the core logic of a file using the test framework the project already uses. Use when the user asks to add tests or runs /code:write-tests.

Как установить скилл write-tests?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл write-tests запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить write-tests с