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.

TDD: test first, then code, then refactor v1.0.0

Use this resource to implement a feature or fix a bug with tests written first

New

  • 517 downloads
  • 167 likes
  • 215 saves

Free

Install with the CLI

In a terminal, from the folder you want:

npx --yes palatekit@latest install tdd-red-green-loop

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 a step-by-step procedure: sets a baseline, names the increment, writes a failing test and checks that it fails before coding. For legacy code, it starts with characterisation tests. You get small increments that are tested and refactored.

Mostly picked by

Updated November 2, 2026

Card for the “TDD: test first, then code, then refactor” skill

Details

Generates with
Your agent's model
Licence
Apache-2.0

Similar resources

View all

What you get

  • SKILL.md: step-by-step red-green-refactor procedure
  • references/LEGACY_CODE.md: characterisation tests for code without tests
  • references/EXAMPLES.md: TDD cycle examples

Good fit for

  • A bug is reported and you want a regression test before fixing it
  • You must change an old module that has no test suite

Not for

    Tags

    • tdd
    • testing
    • refactoring
    • legacy

    About

    You say

    “Apply TDD to fix the VAT calculation: write the failing test first.”

    Card for the “TDD: test first, then code, then refactor” skill

    Skill published by personamanagmentlayer under the Apache-2.0 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 implement a feature or fix a bug with tests written first
    3. Review and adjust the result

    Content preview

    Files

    • LICENSE10.9 KB
    • NOTICE-PALATEKIT.md0.5 KB
    • references/EXAMPLES.md7.3 KB
    • references/LEGACY_CODE.md6.6 KB
    • SKILL.md8.6 KB

    Origin and licence

    Listed unmodified

    Author
    personamanagmentlayer
    Source
    github.com/personamanagmentlayer/pcl/tree/79ccaa9820486121fa33aaa696ec16fa1607bf02/stdlib/workflows/tdd-workflow
    Licence
    Apache-2.0

    Notice

    « tdd-workflow » (personamanagmentlayer, Apache-2.0) 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.