testing-anti-patterns
✓Use when writing or changing tests, adding mocks, or tempted to add test-only methods to production code - prevents testing mock behavior, production pollution with test-only methods, and mocking without understanding dependencies
Installation
SKILL.md
Tests must verify real behavior, not mock behavior. Mocks are a means to isolate, not the thing being tested.
Core principle: Test what the code does, not what the mocks do.
your human partner's correction: "Are we testing the behavior of a mock?"
Use when writing or changing tests, adding mocks, or tempted to add test-only methods to production code - prevents testing mock behavior, production pollution with test-only methods, and mocking without understanding dependencies Source: d-oit/do-novelist-ai.
Facts (cite-ready)
Stable fields and commands for AI/search citations.
- Install command
npx skills add https://github.com/d-oit/do-novelist-ai --skill testing-anti-patterns- Source
- d-oit/do-novelist-ai
- Category
- </>Dev Tools
- Verified
- ✓
- First Seen
- 2026-02-01
- Updated
- 2026-02-18
Quick answers
What is testing-anti-patterns?
Use when writing or changing tests, adding mocks, or tempted to add test-only methods to production code - prevents testing mock behavior, production pollution with test-only methods, and mocking without understanding dependencies Source: d-oit/do-novelist-ai.
How do I install testing-anti-patterns?
Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/d-oit/do-novelist-ai --skill testing-anti-patterns Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code or Cursor
Where is the source repository?
https://github.com/d-oit/do-novelist-ai
Details
- Category
- </>Dev Tools
- Source
- skills.sh
- First Seen
- 2026-02-01