Command Palette

Search for a command to run...

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

type-test-code

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

Write types first, then test and code independently

gregwebsот gregwebs★ 26 звёзд на GitHub

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

When writing code

  1. first design and implement the types: done by the planner.
  2. write tests with an indepdent subagent: done by the tester.
  3. write code independent of the tests: done by the coder.

The task is complete when both

  • the coder has completed the implementation plan (written all the code)
  • the tester is satisfied with the level of testing.

Use the /orchestration skill to manage sub-agents.

Planner

Make all type changes at testing seams. If you have already been given a plan that specifies these changes, go ahead and use it. If instead you need to determine the changes to make, use the planner sub-agent to implement the types.

This includes either interfaces or function/method stubs. You may need to write stub code inside a function to satisfy type checking: use either a standard for "unimplemented" or a TODO comment so the incompletion is obvious.

Ensure the code type checks.

Tester

Once types are in place, spawn a separate tester sub-agent for writing tests. If there is no tester sub-agent role defined than use the implementer sub-agent role.

Write the tests without looking at the implementation, just the types.

Use /verify to guide the writing of tests.

If tests are to be written in the same file as the code, see if you can first write tests in a separate file and then later move them into the code file after the code implementation is complete.

Maintain a persistent testing sub-agent to continue to run the tests until they all pass. When notified that an implementation section has landed, run the relevant tests. When there is a test failure due to an implementation issue, notify the coder.

Coder

Spawn a separate coder sub-agent for writing the code. If there is no coder sub-agent role defined than use the implementer sub-agent role. The sub-agent should be given an /implementation-plan for the changes.

Write the implementation for the types without looking at the tests.

When a section of code writing is completed, notify the tester sub-agent. When you are notified about a test failure, you can then look at the test and run it yourself.

Установить type-test-code в Claude Code и Claude Desktop

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

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

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

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

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

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

FAQ

Что делает скилл type-test-code?

Write types first, then test and code independently

Как установить скилл type-test-code?

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

Скилл type-test-code запускает скрипты?

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

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

Сравнить type-test-code с