Write tests
SkillFiles & storageLets your agent write unit tests for a file or function in the style of your project's existing tests.
Instructions available. Your AI can read the instructions. Execution depends on the setup they require.
Account requirements not reviewed. Check the skill instructions before use; ahel provides instructions and does not run this skill.
Add ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.
Then ask your AI: use the Write tests skill
About this skill
Writes unit tests for a specified file or function in the style of the project's existing tests. Use when asked to add tests, cover code with tests, or check edge cases.
What this skill tells your AI
The instructions your AI receives, as published by justxor/claude-code-pro-course in starter-kit/.claude/skills/write-tests/SKILL.md and read by ahel’s review.
Цель: $ARGUMENTS
- Найди тестовый фреймворк и 1–2 существующих теста рядом — повторяй их стиль, структуру и расположение.
- Прочитай тестируемый код. Составь список сценариев:
- основной (happy path)
- граничные значения (пусто, 0, отрицательные, очень большие, unicode)
- ошибки и исключения
- взаимодействие с зависимостями (моки — только для внешних систем)
- Покажи список сценариев одной строкой каждый, затем напиши тесты.
- Запусти только новые тесты. Если тест падает из-за бага в коде — НЕ подгоняй тест, а сообщи о баге.
- Итог: сколько тестов, что покрыто, какие баги найдены.
Signals
- GitHub stars
- 143
- Forks
- 26
- Last commit
- Oct 2026
Advanced
- Item type
- skill
- Key
write-tests-justxor- Source
- github.com/justxor/claude-code-pro-course
github.com/justxor/claude-code-pro-course