Create thorough, maintainable test suites covering happy paths, edge cases, and error handling.
Generates comprehensive test suites with clear naming, AAA pattern, and coverage for happy paths, edge cases, and errors. Triggered when creating or reviewing tests for functions, APIs, or components.
/plugin marketplace add jtsylve/claude-experiments/plugin install meta-prompt@claude-experimentsThis skill inherits all available tools. When active, it can use any tool Claude has access to.
Create thorough, maintainable test suites covering happy paths, edge cases, and error handling.
| Principle | Application |
|---|---|
| Clear names | should return X when Y |
| AAA pattern | Arrange → Act → Assert |
| One behavior | Each test verifies one thing |
| Isolation | No shared state between tests |
| Specific asserts | toEqual([1,2,3]) not toBeTruthy() |
| Framework | Structure | Assert | Mock |
|---|---|---|---|
| Jest | describe/it | expect().toBe/toEqual | jest.mock() |
| pytest | test_name() | assert x == y | mocker.patch() |
| JUnit | @Test | assertEquals() | @Mock + Mockito |
| Mocha | describe/it | Chai expect().to | Sinon |
| RSpec | describe/it | expect().to eq | allow().to receive |
| Go | TestName(t) | t.Error() | Manual/testify |
Mock: API calls, DB, file system, time, external services
Don't mock: Simple data, pure functions, code under test
describe('UserService', () => {
describe('createUser', () => {
it('should create user with valid data', () => {
// Arrange
const data = { name: 'John', email: 'john@test.com' }
// Act
const user = createUser(data)
// Assert
expect(user.name).toBe('John')
})
it('should throw when email invalid', () => {
expect(() => createUser({ email: 'bad' })).toThrow(ValidationError)
})
})
})
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.
Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.