testing-anti-patterns

Identify mocking errors and prevent test-only methods in production code.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/vanmarkic/credit-castor --skill testing-anti-patterns-vanmarkic
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing-anti-patterns
Source: https://github.com/vanmarkic/credit-castor/tree/main/.claude/skills/testing-anti-patterns
Command: npx skills add https://github.com/vanmarkic/credit-castor --skill testing-anti-patterns-vanmarkic

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill prevents common testing mistakes that lead to unreliable tests, polluted production code, and false confidence. It ensures your tests genuinely verify behavior, not just mock interactions.

Core Features & Use Cases

  • Identify Mocking Errors: Guides against testing mock behavior or mocking without understanding dependencies.
  • Prevent Production Pollution: Enforces rules against adding test-only methods to production classes.
  • Use Case: When you're tempted to add a destroy() method to a production class just for cleanup in tests, this skill reminds you to create a test utility instead, keeping your production code clean.

Quick Start

I'm writing a new test and considering adding a mock. Use the testing-anti-patterns skill to ensure I avoid common mistakes.