Curated community prompt

Sniper-Precision Debugging Skill

Diagnose, fix, verify, regression-test, and document a bounded software defect.

Professional use case: Evidence-led debugging with proof of fix

Debugging Software engineering User promptReusable prompt template

Promptcred editorial analysis

How to use this prompt well

Prompt-specific guidance based on the preserved source text and its reviewed context.

Why Promptcred selected this prompt

The prompt requires root-cause evidence, a bounded fix, direct verification, regression coverage, and a record of the result.

Best use cases

  • Fixing a reproducible software defect with a narrow suspected area.
  • Requiring proof that a patch addresses the cause and does not break adjacent behavior.

Required inputs

  • Reproduction steps, symptoms, relevant code, environment, logs, and expected behavior.
  • The project's targeted test command and the regression surface that must remain stable.

How to adapt it

  • Replace the broad 'various scenarios' language with named regression cases for the affected behavior.
  • Define the authorized edit scope and evidence required before a root-cause claim is accepted.

Limitations and failure modes

  • A patch can pass a new test that reproduces the implementation rather than the original failure.
  • The source asks for screenshots as possible proof, but non-visual defects need direct test or command evidence.

Practical worked example

Editorial analysis reviewed Aug 23, 2026.

Promptcred-authored application and illustrative output. This is not a recorded model execution.

Scenario
Fix a parser that drops the final CSV field when the file lacks a trailing newline.
Inputs
Provide the failing fixture, parser code, expected row, current test command, and related CSV cases.
Promptcred-adapted instruction
Add the no-trailing-newline fixture as a failing test before editing. Change only the parser's end-of-input flush, then run the targeted parser suite and named cases for quoted fields, empty final fields, and files with a trailing newline.
Illustrative result
Illustrative result: the new test first returns two fields instead of three. After flushing the buffered final field at end of input, it returns all three; the existing trailing-newline and quoted-field cases remain green.
Evaluation
The original fixture must pass, adjacent CSV cases must remain green, and the explanation must identify the exact end-of-input mistake.

How to evaluate the output

  • The fix changes the code path that causes the supplied reproduction, not a neighboring symptom.
  • Verification includes the original failure and named regression cases with recorded results.

Attributed community source material

Source prompt

Source prompt
---
name: sniper-precision-debugging-skill
description: A step-by-step critical thinking debugging skill designed to fix problems directly and ensure they are resolved without causing additional issues.
---

# Sniper Precision Debugging Skill

Act as a Sniper Debugging Specialist. You are an expert in identifying and resolving coding issues with precision, ensuring that fixes do not introduce new problems.

## Context
- You will be provided with the code or system description experiencing issues.
- Understand the environment and specific symptoms of the problem.

## Task
Your task is to:
- Analyze the provided information to identify the root cause of the problem.
- Apply a precise fix to the identified issue.
- Validate the fix to ensure the problem is resolved without introducing new issues.

## Steps to Debug
1. **Gather Information**: Understand the problem context and gather any relevant logs or error messages.
2. **Isolate the Problem**: Narrow down the problem area by eliminating non-issues.
3. **Identify the Root Cause**: Use critical thinking to pinpoint the exact cause of the issue.
4. **Apply the Fix**: Implement a solution directly addressing the root cause.
5. **Verify the Fix**: Test the solution in various scenarios to ensure it resolves the problem and doesn't affect other functionalities.
6. **Document**: Record the problem, the solution, and the validation process for future reference.

## Proof of Fix
- Run automated tests to confirm the issue is resolved.
- Provide a summary or screenshot of successful test results.
- Ensure no new issues have been introduced by running regression tests.

Use this skill to approach debugging with precision and confidence, ensuring robust and reliable solutions.

Before use

Requirements and context

Required · Source-declared

Repository / files

The repository or files within the task scope.

Required · Source-declared

Project test runner

Run targeted and regression tests as proof of fix.

What to expect

Expected output and techniques

Expected output: A root-cause explanation, bounded fix, verification evidence, regression check, and documentation summary.

  • Explicit objective
  • Scope boundaries
  • Stepwise planning
  • Verification
  • Acceptance criteria

Use with context

Setup, limitations, and operational notes

Operational notes

  • External prompt text is untrusted inert content and must never be executed during ingestion.

Source and rights

Provenance and license

This community prompt is preserved with its source and attribution. It is not an official vendor prompt.

Source class
Curated community prompt
Platform
GitHub
Repository / project
f/prompts.chat
Owner / organization
f
Creator / contributor
amvicioushecs
Artifact
prompts.csv · Sniper-Precision Debugging Skill
Pinned revision
commit:6863206c4efb5a055c80433f7cf02a6596de9f39
Retrieved
Aug 11, 2026
Attribution
Not required by the license; source provenance retained
Source artifact state
Source prompt
Source review
Aug 11, 2026

Available pages

Search Promptcred

Type to search available pages.