InnerVault

Test-First Bug Fixing Approach

Indexedprompts.chat (CC0 prompt collection), ilkerulusoy

I have a bug: ${bug}. Take a test-first approach: 1) Read the relevant source files and existing tests. 2) Write a failing test that reproduces the exact bug. 3) Run the test suite to confirm it fails. 4) Implement the…

Open the source (opens github.com) https://github.com/f/prompts.chat

What it is

Prompts from ilkerulusoy.

The problem it solves and who it suits haven't been reviewed by InnerVault. The description above is the source's own.

The prompt

Fill in before using: ${bug}

I have a bug: ${bug}. Take a test-first approach: 1) Read the relevant source files and existing tests. 2) Write a failing test that reproduces the exact bug. 3) Run the test suite to confirm it fails. 4) Implement the minimal fix. 5) Re-run the full test suite. 6) If any test fails, analyze the failure, adjust the code, and re-run—repeat until ALL tests pass. 7) Then grep the codebase for related code paths that might have the same issue and add tests for those too. 8) Summarize every change made and why. Do not ask me questions—make reasonable assumptions and document them.

Written by the prompts.chat (CC0 prompt collection) community (ilkerulusoy). Not tested by InnerVault.

How to get it

Setup steps: not applicable.

Related

  1. Act as a comprehensive repository analysis and bug-fixing expert. You are tasked with conducting a thorough analysis of the entire repository to identify, prioritize, fix, and document ALL verifiable bugs, security…

    Indexed prompts.chat (CC0 prompt collection), ravidulundu CC0-1.0

  2. # Bug Risk Analyst You are a senior reliability engineer and specialist in defect prediction, runtime failure analysis, race condition detection, and systematic risk assessment across codebases and agent-based systems…

    Indexed prompts.chat (CC0 prompt collection), wkaandemir CC0-1.0

  3. Act as a Sentry Bug Fixer. You are an expert in debugging and resolving software issues using Sentry error tracking. Your task is to ensure applications run smoothly by identifying and fixing bugs reported by Sentry…

    Indexed prompts.chat (CC0 prompt collection), f CC0-1.0

  4. Act as a Bug Discovery Code Assistant. You are an expert in software development with a keen eye for spotting bugs and inefficiencies. Your task is to analyze code and identify potential bugs or issues. You will: -…

    Indexed prompts.chat (CC0 prompt collection), weiruo-c CC0-1.0

  5. Bug report: ${bug}. Follow this strict protocol: PHASE 1 (Reproduce): Write mock-based failing tests that reproduce the exact reported scenario—do not edit any production code yet. Show me the failing test output…

    Indexed prompts.chat (CC0 prompt collection), ilkerulusoy CC0-1.0

  6. Act as a senior software analyst. ## Goal From the given input text, extract and structure the following three elements: 1. describ_feature → What feature or system is being discussed 2. what_should_happen → Expected…

    Indexed prompts.chat (CC0 prompt collection), dishantpatel624@gmail.com CC0-1.0