Skills for Real Engineers. Straight from my .agents directory.
testing-anti-patterns
Agent skill fromrohitg00/skillkit
Reviews test code to identify and fix common testing anti-patterns including flaky tests, over-mocking, brittle assertions, test interdependency, and hidden test logic. Flags bad patterns, explains the specific defect, and provides corrected implementations. Use when reviewing test code, debugging intermittent or unreliable test failures, or when the user mentions flaky tests, test smells, brittle tests, test isolation issues, mock overuse, slow tests, or test maintenance problems.
How to install testing-anti-patterns
npx skills add rohitg00/skillkit# or add only this skill to Claude Code: copy the folder
packages/core/src/methodology/packs/testing/anti-patterns/
# into
~/.claude/skills/anti-patterns/ (all projects)
.claude/skills/anti-patterns/ (one project)
1# Testing Anti-Patterns23You are identifying and avoiding common testing anti-patterns.45## Review Workflow67Follow these steps when reviewing test code:891. **Run tests in isolation** — Verify each test passes independently (no shared state, no ordering dependency).102. **Check for patterns below** — Scan for each anti-pattern in the checklist; flag every match with the specific defect.113. **Apply refactoring strategy** — Use the refactoring strategies section to select and apply the appropriate fix.124. **Verify the test still fails when code breaks** — After fixing, confirm the corrected test catches real regressions (remove or stub the implementation to confirm a failure occurs).1314## Critical Anti-Patterns1516### 1. The Liar - Tests That Always Pass1718**Problem:** Test passes even when the code is broken.1920```typescript21// BAD - Always passes because it tests nothing meaningful22it('should process data', () => {23 const result = processData(input);24 expect(result).toBeDefined(); // Too weak25});2627// GOOD - Actually verifies behavior28it('should transform input to uppercase', () => {29 const result = processData({ text: 'hello' });30 expect(result.text).toBe('HELLO');31});32```3334**Detection:** Remove or break the implementation - test should fail.3536### 2. The Giant - Tests Too Large3738**Problem:** Single test covers too many behaviors.3940```typescript41// BAD - Tests multiple things42it('should handle user registration', async () => {43 const user = await register(userData);44…
Excerpt shown under the repository's Apache-2.0 license.
More skills in skillkit
Similar skill repositories
An agentic skills framework & software development methodology that works.
Public repository for Agent Skills
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
Production-grade engineering skills for AI coding agents.
The open-source app everyone uses to manage agents at work
