2.7 Working with Images
Course: Claude Code - Essentials Section: Core Workflows Video Length: 2-5 minutes Presenter: Daniel Treasure
Opening Hook
Sometimes a picture is worth a thousand words. A screenshot of a bug, a mockup of a design, or a diagram of your system architecture—Claude Code can understand and work with images. In this video, we'll show how to use screenshots, mockups, and diagrams to guide development.
Key Talking Points
- Sharing Screenshots of Bugs
- Paste a screenshot of an error message, UI glitch, or unexpected behavior
- Claude sees the visual issue and can help diagnose it
- Much faster than describing a UI problem in text
-
Show on screen: Take a screenshot of something broken; share it with Claude; see Claude understand it
-
Using Mockups to Guide Implementation
- Share a design mockup or wireframe
- Ask Claude: "Implement this UI based on this mockup"
- Claude translates visual design into code
-
Show: A mockup image; Claude generates the HTML or React code
-
Interpreting Diagrams
- Share an architecture diagram or data flow diagram
- Claude can explain what it shows and suggest improvements
- Or ask Claude to generate code based on the diagram
-
Show: A simple diagram; Claude interprets it
-
Attaching Images to Prompts
- Drag and drop images into Claude Code
- Reference them in your prompt: "Fix this bug from the screenshot"
- Images become part of the session context
-
Show: Demonstrate drag-and-drop; ask a question about the image
-
Generating Diagrams from Code
- Ask: "Create a diagram showing the architecture"
- Claude generates ASCII or Markdown diagrams
- Or suggests tools for creating diagrams
- Show: Claude generates a simple ASCII diagram explaining the project structure
Demo Plan
Demo Project: Continue with the same project from 2.1-2.6
Setup: - Have 1-2 screenshots or images prepared (or create them during the video) - A simple mockup or diagram to share (can be hand-drawn, simple, or ASCII art) - Terminal with Claude Code session ready
On-Camera Sequence (2-3 minutes):
- Share a Screenshot of an Issue
- Take a screenshot of a browser error or terminal output showing an issue
- Or use a prepared screenshot
- Ask Claude: "What's wrong in this screenshot?"
- Claude analyzes the visual and explains the issue
-
~40 seconds
-
Use a Mockup to Guide Code
Here's a mockup of a form. Can you create the HTML/React component for it? - Drag-and-drop a mockup image (or simple sketch)
- Claude generates code matching the design
- Show the code generated
-
~40 seconds
-
Ask Claude About a Diagram
Explain the data flow in this diagram - Share a simple architecture or flow diagram
- Claude describes what it shows
- Optional: ask Claude to suggest improvements
-
~30 seconds
-
(Optional) Generate a Diagram
Create an ASCII diagram showing how the authentication flow works - Claude generates a text-based diagram
- Show the result
- ~20 seconds
Code Examples & Commands
Asking Claude about images:
What's wrong in this screenshot?
Implement this UI design from the mockup
Explain the architecture shown in this diagram
Generate code based on this mockup
What does this diagram represent?
Create a diagram showing the data flow
In prompts with images:
Fix the bug shown in this screenshot
Based on this design, create the React component
The error in this image. How do I fix it?
Sharing images: - Drag and drop into Claude Code prompt - Or reference: "Here's a screenshot: [image]" - Claude includes the image in its analysis
Gotchas & Tips
-
File Formats Matter – PNG, JPG, SVG work well. Very large files may take longer to process.
-
Crop to the Relevant Area – If you're sharing a screenshot, crop to just the problem area. Easier for Claude to focus.
-
Add Context with Text – "Here's a screenshot of the error" + the screenshot is better than just the screenshot alone.
-
Mockups Don't Need to Be Perfect – A sketch or simple wireframe is enough. Claude understands intent even from rough mockups.
-
Describe Complex Diagrams – If a diagram is very complex, add a text description: "This diagram shows the flow of user data from login to dashboard."
-
OCR Limitations – If your image has text, Claude usually reads it well. But very small or blurry text might not be recognized perfectly.
Lead-out
You can now share visual context with Claude to guide development. But what if you want to explore without making changes? What if you want to plan before diving in? That's where Plan Mode comes in. In our final Core Workflows video, we'll show how Plan Mode lets you think through changes before committing to them.
Reference Material
- Common Workflows - Working with Images: https://code.claude.com/docs/en/common-workflows
- Quickstart - Use Images: https://code.claude.com/docs/en/quickstart
- VS Code Integration (Images): https://code.claude.com/docs/en/vs-code
Relevant Articles & Posts
- Workflow Patterns: Joe Njenga's "17 Best Claude Code Workflows" (Medium)
- Best Practices: Lukasz Fryc's "15 Tips from Running 6 Projects" (DEV Community)
- Official Resource: Common Workflows - Claude Code Docs (https://code.claude.com/docs/en/common-workflows)
Additional Notes
- Emphasize: visual context speeds up communication
- Show real, practical examples (bug screenshots, simple mockups)
- If time, demo drag-and-drop to show how easy it is to add images
- Note: Claude's image understanding is powerful for UI issues, diagrams, and design mockups
- Mention that in VS Code, you can right-click and attach images easily