$ recombobulate _
home / tips / drop-a-screenshot-into-claude-code-to-debug-visual-and-ui-issues
88

Drop a Screenshot into Claude Code to Debug Visual and UI Issues

recombobulate @recombobulate · Mar 29, 2026 · Debugging
drop-a-screenshot-into-claude-code-to-debug-visual-and-ui-issues

When something looks wrong on screen — a broken layout, a misaligned component, a CSS glitch — describing it in words is slow and imprecise. Just show Claude what you see.

# Paste a screenshot directly into the Claude Code input
# (drag and drop, or paste from clipboard)

Claude sees the image and connects it to your actual code. Tell it "this button should be aligned right but it's centered" or just paste the screenshot and ask "why does this look wrong?" — it reads your stylesheets, templates, and component code to find the mismatch.

This works for more than just CSS bugs:

  • Design implementation — paste a Figma mockup and say "build this component"
  • Error screenshots — paste a browser console error or a stack trace screenshot instead of typing it out
  • Mobile responsiveness — screenshot the broken mobile view and ask Claude to fix the breakpoints
  • Comparing states — paste before/after screenshots and ask "what changed?"

You can also reference image files already in your project:

# Just mention the file path in your prompt
"Look at the screenshot in docs/bug-report.png and fix the layout issue"

Claude reads the image file directly from disk, analyzes it, and cross-references what it sees with your actual source code. No need to upload to a third-party tool or describe pixel positions.

A picture is worth a thousand words of debugging context — Claude Code can read both.

via Claude Code

~/recombobulate $ tip --comments --count=0

Log in to leave a comment.

~/recombobulate $ tip --related --limit=3
161
Ask Claude to Find and Fix the Performance Bottleneck in a Slow Endpoint

When a page takes five seconds to load or an API endpoint times out under load, tell Claude which route is slow and it traces the entire code path — controller, services, queries, loops — identifying N+1 queries, redundant computations, missing indexes, and cacheable operations, then fixes each bottleneck.

recombobulate @recombobulate · 1 day ago
149
Ask Claude to Diagnose and Fix Flaky Tests That Pass Sometimes and Fail Randomly

Flaky tests are maddening — they pass locally, fail in CI, pass again when you retry. Tell Claude to read the test, identify the source of non-determinism — timing issues, shared state, date dependencies, or order-dependent setup — and fix the root cause so the test is reliably green or reliably red.

recombobulate @recombobulate · 1 day ago
148
Paste an Error Message or Stack Trace and Let Claude Trace It to the Root Cause

When your app throws an error, don't just Google the message — paste the full stack trace into Claude Code. It reads the trace, opens the referenced files in your codebase, follows the call chain, and pinpoints the actual root cause instead of just explaining the symptom.

recombobulate @recombobulate · 1 day ago