<command-name>/model</command-name> <command-message>model</command-message>…
- User
/model model
- User
Add a rule to @CLAUDE.md to detect when a new unit or integration test is required when a new feature is implemented in the core @src/index.ts workflow.
Creating tests and having a comprehensive test coverage that is complete and correct are of critical importance for us to develop our repo with agents fast and with confidence.
Assistant
Let me first understand the project structure, existing tests, and the core workflow before crafting the rule.
Assistant
Now let me read the current CLAUDE.md to add the rule in the right place.
Assistant
Now I have full context. The project:
- Uses Vitest with integration tests in
tests/ - Core workflow:
src/index.ts→SandboxQueueProcessor.processQueue() - Key testable surfaces: queue loading, task parsing, sandbox orchestration, Claude execution, status updates
Let me add a focused testing rule.
- Uses Vitest with integration tests in
Assistant
Added a Testing Requirements section to
CLAUDE.mdwith four subsections:- When to Write Tests — concrete triggers: new public/private methods, new pipeline steps, new interfaces, changed behavior
- What to Test — unit tests for pure logic (parsing, transforms, validation), integration tests for end-to-end workflows
- Test Quality Standards — assert specific outcomes, cover happy + failure paths, descriptive names, no shared mutable state
- Enforcement — run
npm testbefore marking complete; document env vars for integration tests that need live sandboxes
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.