type-test-code
FreeNo executable scriptsNot checkedWrite types first, then test and code independently
by gregwebs★ 26 GitHub starsAbout this skill
When writing code
- first design and implement the types: done by the
planner. - write tests with an indepdent subagent: done by the
tester. - write code independent of the tests: done by the
coder.
The task is complete when both
- the
coderhas completed the implementation plan (written all the code) - the
testeris 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.
Install type-test-code in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the type-test-code skill do?
Write types first, then test and code independently
How do I install the type-test-code skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the type-test-code skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
by 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…
by 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…
by 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…
by Anthropic