Every premium and members-only resource for $9.99/month, as a no-commitment subscription. See the plans

PalateKit

Menu

Request a resource

Describe the resource you are missing in one sentence. We will email you when it is published.

0 / 280

Unlock PalateKit

Unlock everything

Plan

Paying means accepting our terms of sale.

Secure payment by Stripe. Receipts and invoices sent by email.

Welcome back

Sign in to install, download or save this resource. A free account is enough for free resources.

Avoiding test and mock anti-patterns v1.0.0

Use this resource to spot and fix testing and mocking anti-patterns

New

  • 460 downloads
  • 178 likes
  • 150 saves

Free

Install with the CLI

In a terminal, from the folder you want:

npx --yes palatekit@latest install avoid-test-anti-patterns

With no option, the skill goes to ~/.agents/skills/; add --agent claude-code (or codex, cursor…) to target an agent.

First time: connect the CLI with

npx --yes palatekit@latest login

The agent reviews tests to find assertions on mocks, methods added only for tests and mocks that were not properly understood. You get tests that check the code’s real behavior.

Mostly picked by

Updated November 2, 2026

Card for the “Avoiding test and mock anti-patterns” skill

Details

Generates with
Your agent's model
Licence
MIT

Similar resources

View all

What you get

  • SKILL.md: five anti-patterns, each with its check rule
  • SKILL.md: safeguards to apply before every mock

Good fit for

  • Your tests pass but catch nothing
  • Your production classes contain methods only tests use

Not for

    Tags

    • tests
    • mocks
    • anti-patterns
    • quality

    About

    You say

    “Review my cart page tests and delete the ones that only check mocks.”

    Card for the “Avoiding test and mock anti-patterns” skill

    Skill published by practicalswan under the MIT license, delivered in its original version.

    Show more

    How to use it

    1. Install the skill in your agent's skills folder
    2. Ask your agent to spot and fix testing and mocking anti-patterns
    3. Review and adjust the result

    Content preview

    Files

    • CHANGELOG.md4.3 KB
    • LICENSE1 KB
    • NOTICE-PALATEKIT.md0.5 KB
    • SKILL.md10.9 KB

    Origin and licence

    Listed unmodified

    Author
    practicalswan
    Source
    github.com/practicalswan/agent-skills/tree/6cf63517700aa9ba0b80e711a93837e3bea13d0a/testing-anti-patterns
    Licence
    MIT

    Notice

    « testing-anti-patterns » (practicalswan, MIT) livré dans sa version d'origine : fiche en français et en anglais par PalateKit.

    User reviews

    –

    No ratings yet

    Loading reviews…

    Delete your review?

    Your rating and comment will be removed from the page.