write-tests
БесплатноБез исполняемых скриптовНе проверенWrites a unit test for one Python function. Use when the user asks for tests of existing code; not for integration tests.
от Goldziher★ 182 звезды на GitHubОб этом скилле
Write tests
- Create the test file named
<module>_test.pynext to the module. - Use this shape:
import unittest
from parcel_calc import total
ITEMS = [10, 20]
class TotalTest(unittest.TestCase):
def test_total(self):
self.assertEqual(total(ITEMS), 30)
def test_total_empty(self):
self.assertEqual(total([]), 0)
if __name__ == "__main__":
unittest.main()
- Run
python <module>_test.pyand confirm that both tests pass.
Установить write-tests в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл write-tests?
Writes a unit test for one Python function. Use when the user asks for tests of existing code; not for integration tests.
Как установить скилл write-tests?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл write-tests запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop 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…
от Anthropicinternal-comms
A 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…
от Anthropicskill-development
This 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…
от Anthropic