Skip to content
←INDEX / Prompt library
TUTORIAL/Gemini 2.5 Pro/Intermediate

Reverse-Engineer a UI Bug from a Screenshot with Gemini

Paste 1-3 screenshots (browser / Figma / app) and Gemini pinpoints the visual problem + the fix

SakuyaPromptCraft editor · Updated 2026-05-14
TutorialGemini 2.5 ProIntermediate
01PROMPT
You are a senior frontend engineer. I'm attaching {{n_screenshots}} screenshot(s) showing a UI issue: {{symptom}}.

Produce:

## 1. Visual diagnosis (2-3 sentences)
What exactly is wrong visually? Be specific about which element and what property is off (alignment / spacing / color / typography / responsiveness / z-index / overflow).

## 2. Most likely root cause (top 3, ranked)
For each:
- **Hypothesis**: 1 sentence
- **CSS / layout property to check**: specific property name + likely current value
- **Fix**: concrete CSS or Tailwind class change
- **Confidence**: low / medium / high

## 3. What I'd need to confirm
If you can't be sure from screenshots alone, list 2-3 things you'd need to see (DevTools panel / source code / different viewport).

Rules: don't guess at properties you can't verify from the image. "It looks like the container has overflow: hidden — confirm in DevTools" beats "set overflow: visible". Be honest about confidence.

Swap the variables inside the [ ] brackets for your own content, then paste into Gemini 2.5 Pro.

◆ Open in toolGemini (paste it)
RUNTRY IT
▶ TRY IT ON-SITE

See what this prompt actually produces without leaving the site (live AI run, 1 credit).

02CONTEXT / Why it works

Front-end engineers spend half an hour on Stack Overflow debugging visual bugs. Gemini takes the screenshot directly → visual diagnosis + 3 candidate fixes (ranked by confidence).

03SAMPLE / Expected result

3 段:visual diagnosis / 3 個候選修法(含信心度)/ 還需要看什麼確認

A description of the intended result. Check this entry's testing notes and try the prompt with your own inputs.

04VARIABLES
01[symptom]

看到的問題(如:button overlapping text / element disappears on mobile / text bleeds out of container)

02[n_screenshots]

截圖數量(1-3)

05RESOLVER · 變數代入器0 / 2

填下面的欄位,上方 prompt 會即時替換 [方括號] 內容。填好後按「複製組好的 prompt」直接丟進工具。

修飾
Assembled · 填剩餘變數…
You are a senior frontend engineer. I'm attaching {{n_screenshots}} screenshot(s) showing a UI issue: {{symptom}}.

Produce:

## 1. Visual diagnosis (2-3 sentences)
What exactly is wrong visually? Be specific about which element and what property is off (alignment / spacing / color / typography / responsiveness / z-index / overflow).

## 2. Most likely root cause (top 3, ranked)
For each:
- **Hypothesis**: 1 sentence
- **CSS / layout property to check**: specific property name + likely current value
- **Fix**: concrete CSS or Tailwind class change
- **Confidence**: low / medium / high

## 3. What I'd need to confirm
If you can't be sure from screenshots alone, list 2-3 things you'd need to see (DevTools panel / source code / different viewport).

Rules: don't guess at properties you can't verify from the image. "It looks like the container has overflow: hidden — confirm in DevTools" beats "set overflow: visible". Be honest about confidence.
RELATED
PRO01
TUTORIALSuno v5.5FEATURED
r/SunoAI (anonymous studio engineer)2026-06-12

Suno Engineer's Mindset: 4 Steps to a Song That Doesn't Sound Like AI

5.0(1)

A studio engineer's breakdown of Suno's fatal weaknesses (fried vocals, high-frequency artifacts), plus a 4-step DAW workflow and a Suno Studio cleanup prompt.

Advanced
Read

Free02
TUTORIALClaude 4.5 SonnetFEATURED
r/ClaudeAI2026-05-14

5 Claude Weekly Workflows That Stuck After 6 Months

Proposal generator / meeting processor / content repurposer / Friday review / shutdown reset — out of 40 I tried, only these 5 survived, each saving 30+ minutes per run.

Intermediate
Read

PRO03
TUTORIALClaude 4.5 SonnetFEATURED
r/PromptEngineering2026-05-14

7 Cross-Model A/B-Tested Prompt Techniques (Not Vibes)

Written after six months of A/B testing 200+ prompts on Claude, GPT-4, and Gemini with human raters. Covers persona + constraint stacking, anti-examples, role-reversal QA, cognitive scaffolds, emotional priming, uncertainty CoT, and steelman-first.

Advanced
Read

Free04
TUTORIALChatGPTFEATURED
r/ChatGPTPromptGenius2026-05-14

5 trust-checking one-liner prompts (no role-play)

After a year of role-play system prompts and 14-step frameworks, here's the takeaway: the thing that actually moved the needle on quality was 5 one-line prompts. No roles, no markdown, no "you are an expert."

Beginner
Read

COMMENTS · 討論區0 則
登入 後可留言。還沒帳號?註冊
目前沒有留言。第一個說說你的經驗。