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.

Test-driven development: red, green, refactor v1.0.0

Use this resource to build a feature or fix a bug by writing the tests first

New

  • 373 downloads
  • 109 likes
  • 226 saves

Free

Install with the CLI

In a terminal, from the folder you want:

npx --yes palatekit@latest install test-driven-development-red-green

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 follows the red, green, refactor cycle: a test fails first, the minimal code makes it pass, then the code is cleaned up. It picks mock boundaries and designs modules to be testable. You get code covered by tests that describe the expected behavior.

Mostly picked by

Updated November 2, 2026

Card for the “Test-driven development: red, green, refactor” skill

Details

Generates with
Your agent's model
Licence
MIT

Similar resources

View all

What you get

  • SKILL.md: TDD cycle, principles and common mistakes
  • references/mocking-boundaries.md: mock boundaries
  • references/test-quality.md: test quality
  • references/design-for-testability.md: testable design

Good fit for

  • You fix a bug and want it not to come back
  • You refactor a module without enough tests

Not for

    Tags

    • tdd
    • testing
    • refactoring
    • mocks
    • design

    About

    You say

    “Fix the VAT calculation by first writing a failing test for rounded amounts.”

    Card for the “Test-driven development: red, green, refactor” skill

    Skill published by oakoss 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 build a feature or fix a bug by writing the tests first
    3. Review and adjust the result

    Content preview

    Files

    • LICENSE1.3 KB
    • NOTICE-PALATEKIT.md0.5 KB
    • references/design-for-testability.md8.4 KB
    • references/mocking-boundaries.md6 KB
    • references/test-quality.md6.7 KB
    • SKILL.md5.6 KB

    Origin and licence

    Listed unmodified

    Author
    oakoss
    Source
    github.com/oakoss/agent-skills/tree/85e3a3919d9e0ec7f7302a5143ec4b3e66f5f6ad/skills/test-driven-development
    Licence
    MIT

    Notice

    « test-driven-development » (oakoss, 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.