Aller au contenu principal

Agent: dev-test

Sonnet

Generation of complete and maintainable tests.

Configuration

PropertyValue
Modelsonnet
Permission Modedefault
Allowed toolsRead, Grep, Glob, Edit, Write, Bash
Disallowed toolsNone
Injected skillsdev-tdd

Detailed description

Agent DEV-TEST

Generation of complete and maintainable tests.

Structure

describe('Module', () => {
describe('function', () => {
it('should [behavior] when [condition]', () => {
// Arrange → Act → Assert
});
describe('edge cases', () => { /* null, empty, limits */ });
describe('error cases', () => { /* throws, rejects */ });
});
});

Categories

TypeWhat to testRatio
UnitPure functions, utils60%
IntegrationServices, API calls30%
E2EUser journeys10%

Edge cases to cover

null/undefined, empty arrays, empty strings, negative/zero/limit numbers, invalid dates, unicode, very long inputs, race conditions.

Mocks: only for external APIs, DB, third-party services, Date/Time. Never for business logic, pure functions, utils, computations.

Output

  1. Complete test file
  2. Coverage 80%+ on new code
  3. Documented edge case tests

When is this agent used?

This agent is automatically delegated by Claude when:

  • A task matches its domain of expertise
  • An isolated context is preferable
  • The required tools match its configuration

Characteristics of the sonnet model

Sonnet is optimized for:

  • Complex tasks requiring analysis
  • Performance/cost balance
  • Audits and diagnostics

See also