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-first bug fixing workflow v1.0.0

Use this resource to fix a bug by writing a reproducing test first

New

  • 374 downloads
  • 244 likes
  • 32 saves

Free

Install with the CLI

In a terminal, from the folder you want:

npx --yes palatekit@latest install test-first-bug-fix

First time: connect the CLI with

npx --yes palatekit@latest login

The prompt guides the agent through eight steps: reading the code and tests, a failing test, a minimal fix, a full test run, a search for similar code paths and a summary. You get a fix with its tests and the assumptions made.

Mostly picked by

Updated November 2, 2026

Card for the “Test-first bug fixing workflow” prompt

Details

Generates with
Your agent's model
Licence
CC0-1.0

Similar resources

View all

What you get

  • The full prompt, ready to paste
  • A failing test, a minimal fix and the list of changes
  • To replace: ${bug} with your bug description

Good fit for

  • Fixing a reported regression in a project
  • Teaching a junior developer the test-first method

Not for

    Tags

    • bug
    • tests
    • fix
    • development

    About

    You say

    “I have a bug: the cart total does not update after removing an item.”

    Card for the “Test-first bug fixing workflow” prompt

    Prompt published by ilkerulusoy under the CC0-1.0 license, delivered in its original version.

    Show more

    How to use it

    1. Paste the prompt into your assistant or agent
    2. Ask it to fix a bug by writing a reproducing test first
    3. Review and adjust the result

    Content preview

    Files

    • LICENSE0.6 KB
    • NOTICE-PALATEKIT.md0.5 KB
    • test-first-bug-fix.md0.6 KB

    Origin and licence

    Listed unmodified

    Author
    ilkerulusoy
    Source
    github.com/f/prompts.chat/blob/cecef6fc73c2c389770695a56252d331981727de/prompts.csv
    Licence
    CC0-1.0

    Notice

    « Test-First Bug Fixing Approach » (ilkerulusoy, CC0-1.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.