/write-tests
Write tests for: $ARGUMENTS
$ npx -y skills add LukeRenton/explore-claude-code --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/write-tests
Context preview
What this command does when you run it.
Write tests for: $ARGUMENTS
Command definition
write-tests.mdWrite tests for: $ARGUMENTS
Follow these conventions:
- Use Jest with TypeScript
- Use `describe` / `it` blocks (not `test()`)
- Group by behaviour, not by method name
- Mock external services (database, APIs) - never hit real endpoints
- Include edge cases: empty input, null, boundary values, error paths
- Use descriptive test names: `it('returns 404 when user does not exist')`
Structure:
describe('ComponentOrFunction', () => {
describe('when condition', () => {
it('should expected behaviour', () => {
// Arrange → Act → Assert
});
});
});After writing the tests, run `npm test` to verify they pass.
Learn Claude Code by exploring it as it was designed - interactive IDE-style docs for commands, MCP, skills, CLAUDE.md and more.
Repo: LukeRenton/explore-claude-code
Other commands on explore-claude-code.
- /my-command
Review the changes in this PR. Focus on:
Open command - /review-pr
Review the changes in this PR. Focus on:
Open command - /BUILT-IN-COMMANDS
Commands baked into Claude Code that execute fixed logic directly. Type `/` at the prompt to see them all, or type `/` followed by any letters to filter. Unlike [bundled skills](^Prompt-driven workflows like /simplify and /batch that use Claude's tools to orchestrate work. See
Open command - /btw
Ask a quick side question about your current work without adding to the conversation history. The question and answer appear in a dismissible overlay and never enter the main context.
Open command - /compact
Compresses your conversation to reclaim context window space. Claude summarises the conversation so far, discards the original messages, and continues with the summary as its new starting point.
Open command - /diff
Opens an interactive diff viewer showing uncommitted changes in your working directory and per-turn diffs from Claude's edits.
Open command

