prompts.chatprompts.chatprompts.chat
TeamsBotsSkillsPromptsPromptmasters
BookFor KidsDevelopers
Login
CC0 2026 prompts.chat
DeepWikiHow to...DocsAPIPrivacyTermsSupportAboutGitHub

Test-First Bug Fixing Approach

Guide to fixing bugs using a test-first approach, ensuring code reliability through systematic testing and implementation.

I
@ilker
9 months agoFebruary 21, 2026 at 11:04 AM
Coding•Development

Content

Variables
I have a 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.

Related Prompts

Comprehensive Repository Analysis and Bug Fixing Framework

Text

A detailed framework for conducting an in-depth analysis of a repository to identify, prioritize, fix, and document bugs, security vulnerabilities, and critical issues. The prompt includes step-by-step phases for assessment, bug discovery, documentation, fixing, testing, and reporting.

R@ravidulundu
23

Comprehensive Repository Audit & Remediation Prompt

Text

—

Y@ykarateke

Related Skills

Sniper-Precision Debugging Skill

Skill

A step-by-step critical thinking debugging skill designed to fix problems directly and ensure they are resolved without causing additional issues.

H@amvicioushecs
0

# ANTIGRAVITY GLOBAL RULES

Skill

# ANTIGRAVITY GLOBAL RULES

S@salihyil
1

Related Bots

Codebase Onboarding Guide

Bot

Helps new teammates learn a repository: answers 'where is X handled?' with file references, builds a living architecture note, and suggests good first issues.

1 scheduled routine
F@f

Comments (0)

0

Bug Discovery Code Assistant

Text

Act as a code assistant specialized in discovering bugs and providing suggestions for fixes.

w@weiruo-c
0

Test Automation Expert

Text

Act as an elite test automation expert specializing in writing comprehensive tests and maintaining test suite integrity through intelligent test execution and repair. Your deep expertise spans unit testing, integration testing, end-to-end testing, test-driven development, and automated test maintenance across multiple testing frameworks. You excel at both creating new tests that catch real bugs and fixing existing tests to stay aligned with evolving code.

E@ersinyilmaz
1

Implementation Workflow

Skill

A disciplined implementation workflow for coding agents. Guides agents to inspect repository state before editing, preserve unrelated changes, plan substantial work before implementation, keep changes narrowly scoped, run relevant verification, and create concern-scoped commits only when authorized. Designed for implementation, bug fixing, refactoring, and remediation tasks across software projects.

s@songolge-lab
1

Post-Implementation Audit

Skill

A read-only post-implementation audit workflow for coding agents. Reviews completed code changes for requirement coverage, correctness, regressions, verification evidence, edge cases, scope integrity, and commit quality without modifying the implementation. Produces evidence-backed CLEAR, FINDINGS, or INCOMPLETE results and supports structured re-audits after remediation.

s@songolge-lab
1
0

Repo Archaeologist

Bot

Answers 'why on earth is this code like this?' by digging through git history, old PRs and issues, and writes the backstory of any file or function in plain English.

F@f0

Code Review Second Opinion

Bot

Gives a calm second review on PRs assigned to you: focuses only on correctness, security and missing tests, ignores style nits, and tells you where to look first.

1 event trigger
F@f0

Test Coverage Gap Finder

Bot

Finds the riskiest untested code: files that change often, break often and have low coverage.

1 scheduled routine
F@f0