write-tests
Generate deterministic tests matching project style. Use when adding or fixing test coverage.
от HenriGrimm★ 25 звёзд на GitHub
Установить write-tests в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Write tests
When to use
- User asks for unit/integration tests for a module or bug fix
- After implementing behavior that lacks coverage
Steps
- Discover test stack: read
package.jsonscripts, existingtest/files, and one representative test file. - Match framework and style (e.g.
node:test, Vitest, pytest) — do not introduce a new runner without asking. - Use fixed fixtures: hardcoded ids, dates, and expected strings — no
Date.now()or random UUIDs in assertions. - Prefer static expected output (full JSON/string) over building expectations in code.
- Cover: happy path, one failure/edge case, and boundary if relevant.
- Run the project's test command (
execute_commandor documented npm script) and fix failures.
Principles
- Tests document behavior; name tests by scenario (
rejects empty input) - Assert business outcomes, not private implementation details
- Minimal mocking; prefer real small fixtures
Tools
read_file, list_directory, find_files, search_in_file, save_file, execute_command
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл write-tests?
Generate deterministic tests matching project style. Use when adding or fixing test coverage.
Как установить скилл write-tests?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл write-tests запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…