testing-anti-patterns

Identify and prevent common testing anti-patterns in test suites.

64|17|Updated Oct 20, 2025
One-click install
npx skills add https://github.com/Kastalien-Research/thoughtbox --skill testing-anti-patterns-kastalien-research
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing-anti-patterns
Source: https://github.com/Kastalien-Research/thoughtbox/tree/main/.claude/skills/testing-anti-patterns
Command: npx skills add https://github.com/Kastalien-Research/thoughtbox --skill testing-anti-patterns-kastalien-research

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill identifies and prevents common testing mistakes that lead to brittle, misleading, or ineffective tests. It ensures tests verify actual code behavior rather than mock implementations, keeping your test suite reliable and maintainable.

Core Features & Use Cases

  • Mock Behavior Prevention: Guides against testing mocks instead of real component behavior, ensuring tests provide genuine confidence.
  • Production Code Purity: Enforces rules against adding test-only methods to production classes, maintaining clean separation of concerns.
  • Dependency Understanding: Promotes thoughtful mocking by requiring a deep understanding of dependencies and side effects before creating test doubles.
  • Use Case: When reviewing or writing new tests, especially in complex systems with many dependencies, use this skill to avoid common pitfalls like incomplete mocks or over-mocking, ensuring your tests are robust and accurate.

Quick Start

You: I'm writing new tests for the payment service. Let's use the testing-anti-patterns skill to ensure best practices.