Claude Code: give it the element, not a description
A skill tells Claude Code how to work; it cannot tell it which element you mean. Send the source file and line with the request instead.
Claude Code reads your files, not your screen. When you ask it to fix "the spacing on the pricing card", it has to guess which file renders that card — and if the card comes from a shared component, that guess changes every card in the product.
Skills do not close this gap. A skill tells the agent how to work; it cannot tell it where the element lives.
What Claude Code actually sees
The files you point it at, plus whatever you paste into the prompt. It can read an attached screenshot — but a screenshot carries pixels, not paths. Nothing in it says src/components/PricingCard.tsx rather than src/components/Card.tsx.
How to hand it an element
- Open the running project in a browser that can read the source. Curxor's built-in browser resolves React and Vue dev builds.
- Select the element you want changed, and annotate the region with an arrow or a box.
- Send the message. It carries the file, the line, the tag, the class string as the DOM has it, and the annotated screenshot.
The agent still writes the code and you still read the diff. What changes is that it starts from a location instead of a guess.
When this saves the most time
- The element sits inside a shared component — Card, Button, Layout — where one wrong edit propagates.
- The change is a class or spacing tweak that looks identical on several screens.
- The project is past a couple hundred files, so "the card component" matches five of them.
- You are adjusting something visual that is easier to draw than to describe.
What about frontend-design skills?
They do a different job, and a useful one. A frontend-design skill gives Claude Code design judgement — type scale, spacing rhythm, how to avoid the generic gradient-and-shadow look. What it cannot give is your DOM: no skill knows that this particular button came from CtaButton.tsx at line 24.
The two compose. The skill decides what good looks like; the element context decides where to apply it. Where that boundary gets awkward — the skill's defaults against the tokens your product already ships — is its own piece.
Working in Cursor as well? Its own page is here— Cursor asks for a file path up front, so the missing piece is slightly different.
The longer argument — why a screenshot cannot carry a location, and what element-level context adds instead — is in visual context for AI agents.
Try it on one edit
Open your next UI fix, select the element instead of describing it, and compare the diff with what you usually get. Download Curxor for macOS — free for three uses a day, no account needed to try.
Questions this raises
Do I need a browser extension for this?
No. Curxor is a macOS app with its own browser — you open the project you are already running, select an element there, and the source lookup happens locally.
Does it work with agents other than Claude Code?
Cursor is built in alongside Claude Code, any ACP-compatible agent can be added in Settings, and a bundled MCP server exposes the same element contexts to MCP clients.
Which projects can it resolve source in?
React and Vue projects, including Next.js, Vite and Webpack dev builds. Parsing runs on your machine; code is never sent to Curxor's servers.