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 write the test before the code for a feature or bug fix

New

  • 411 downloads
  • 229 likes
  • 194 saves

Free

Install with the CLI

In a terminal, from the folder you want:

npx --yes palatekit@latest install red-green-refactor-tdd-3

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 first writes a test that fails for the right reason, adds the minimum code to make it pass, then refactors without changing behaviour. It refuses shortcuts that skip the test step. You get code covered by tests from the start.

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: red, green, refactor cycle
  • SKILL.md: test quality criteria and rejected rationalisations

Good fit for

  • You fix a bug and want it not to come back
  • You add a feature to a well-tested module

Not for

    Tags

    • tdd
    • tests
    • red green
    • refactoring
    • bug

    About

    You say

    “Fix the VAT calculation: first write the failing test for the reduced rate.”

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

    Skill published by bbeierle12 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 write the test before the code for a feature or bug fix
    3. Review and adjust the result

    Content preview

    Files

    • _meta.json0.5 KB
    • LICENSE1 KB
    • NOTICE-PALATEKIT.md0.5 KB
    • SKILL.md2.8 KB

    Origin and licence

    Listed unmodified

    Author
    bbeierle12
    Source
    github.com/bbeierle12/skill-mcp-claude/tree/1ac5e47e1996f17c4a81ced43fb2a9eec7794a60/skills/test-driven-development
    Licence
    MIT

    Notice

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