New: Earn 20% as an AgentAlley affiliate. Share your link and earn on every sale you refer. Join now New: Earn 20% as an affiliate. Join now

Guide to fixing bugs using a test-first approach

Test first bug fixing approach

by Ilker Ulusoy · CC0-1.0 license · updated Sep 9

Test first bug fixing approach cover

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

Overview

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

The prompt

1 line · 582 characters · paste it into ChatGPT, Claude or Gemini
1I 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.

Connects with Agent Alley MCP · agentalley.io/mcp

Details

Updated
Sep 9, 2026
License
CC0-1.0
Source
prompts.chat ↗
Creator
Ilker Ulusoy · 6 listings
View creator ↗

Similar prompts

See all →
Skill29 production-ready scripts for iOS app testing, buildingIos simulator skillconorluddy/ios-simulator-skill · by conorluddy29 production-ready scripts for iOS app testing, building, and automation. Provides semantic UI navigation, build automation, accessibility testing, and simulator lifecycle management. Optimized for AI agents with minimal token output.★ 1.3k GitHub starsSkillMoAI unified orchestrator for autonomous developmentmodu-ai/moai-adk · by modu-aiMoAI unified orchestrator for autonomous development. Routes natural language or subcommands (plan, run, sync, project, fix, loop, mx, feedback, review, clean, codemaps, gate, e2e, harness, goal, gtd, todo) to specialized agents.★ 1.2k GitHub starsSkillWrite Android unit, Compose UI, and Hilt-integrated testsAndroid Testing StandardsHoangNguyen0403/agent-skills-standard · by HoangNguyen0403Write Android unit, Compose UI, and Hilt-integrated tests. Use when designing test behavior with MockK or coroutine test utilities; defer database/WorkManager-specific recipes to the owning feature skill.★ 569 GitHub starsSkillImplementing any feature or bugfixTest-Driven Development (TDD)obra/superpowers · by obraUse when implementing any feature or bugfix, before writing implementation code★ 290k GitHub starsSkillToolkit for interacting with and testing local webWebapp testinganthropics/skills · by anthropicsToolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.★ 178k GitHub starsPromptToolkit for interacting with and testing local webWeb application testing skillf/prompts.chat · by Fatih Kadir AkınToolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.New listing

More from Ilker Ulusoy

PromptThis prompt assists users in creating a comprehensiveCreate STYLE_GUIDE.mdf/prompts.chat · by Ilker UlusoyThis prompt assists users in creating a comprehensive STYLE_GUIDE.md for their projects. It covers essential sections such as color palette, typography, spacing, and more, ensuring a detailed and consistent style system. Users can also include example component design references.New listingPromptThis prompt is designed for an elite frontend developmentFrontend developer skillf/prompts.chat · by Ilker UlusoyThis prompt is designed for an elite frontend development specialist. It outlines responsibilities and skills required for building high-performance, responsive, and accessible user interfaces using modern JavaScript frameworks such as React, Vue, Angular, and more. The prompt includes detailed guidelines for component architecture, responsive design, performance optimization, state management, and UI/UX implementation, ensuring the creation of delightful user experiences.New listingPromptAnalyze UI screenshots with cognitive science rulesPredictive eye tracking heatmap generatorf/prompts.chat · by Ilker UlusoyAnalyze UI screenshots with cognitive science rules. Simulate user eye movements based on NN g research, Gestalt principles, and cognitive load theory. Generate a visual heatmap overlay showing attention intensity. Red zones mark instant focus areas like faces and primary actions. Warm zones show secondary scanning paths. Cold zones reveal ignored regions. Output focuses only on a scientifically grounded heatmap image. (PS: This prompt works on Gemini)New listingPromptSecond Opinion from Codex and Gemini CLI for Claude Codef/prompts.chat · by Ilker UlusoySecond Opinion from Codex and Gemini CLI for Claude CodeNew listingPromptGuidelines for efficient Xcode MCP tool usagef/prompts.chat · by Ilker UlusoyGuidelines for efficient Xcode MCP tool usage. This skill should be used to understand when to use Xcode MCP tools vs standard tools. Xcode MCP consumes many tokens - use only for build, test, simulator, preview, and SourceKit diagnostics. Never use for file read/write/grep operations.New listing