<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: hoosber neo</title>
    <description>The latest articles on DEV Community by hoosber neo (@hoosber_neo_a01c7e4da0e7c).</description>
    <link>https://dev.to/hoosber_neo_a01c7e4da0e7c</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3886338%2F16f57160-fbb6-42ce-91c4-b0f2bebb4511.png</url>
      <title>DEV Community: hoosber neo</title>
      <link>https://dev.to/hoosber_neo_a01c7e4da0e7c</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hoosber_neo_a01c7e4da0e7c"/>
    <language>en</language>
    <item>
      <title>DOMPrompter: The hardest part of AI UI coding is pointing at the right element</title>
      <dc:creator>hoosber neo</dc:creator>
      <pubDate>Sat, 18 Apr 2026 17:26:00 +0000</pubDate>
      <link>https://dev.to/hoosber_neo_a01c7e4da0e7c/domprompter-the-hardest-part-of-ai-ui-coding-is-pointing-at-the-right-element-1k7g</link>
      <guid>https://dev.to/hoosber_neo_a01c7e4da0e7c/domprompter-the-hardest-part-of-ai-ui-coding-is-pointing-at-the-right-element-1k7g</guid>
      <description>&lt;p&gt;When people talk about AI coding, they usually talk about generating whole components, pages, or features.&lt;/p&gt;

&lt;p&gt;But in real front-end work, the painful part is often much smaller.&lt;/p&gt;

&lt;p&gt;It is the last 10%:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;move this button a little to the right&lt;/li&gt;
&lt;li&gt;increase the gap between these two cards&lt;/li&gt;
&lt;li&gt;make this tag less cramped&lt;/li&gt;
&lt;li&gt;tighten the spacing between a heading and the supporting copy&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That sounds simple, but the communication overhead is brutal. You know what you want to change. The AI does not know exactly which element you mean, what context matters, or what "a little" means in this layout.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why screenshots and vague prompts still fail
&lt;/h2&gt;

&lt;p&gt;Screenshots help, but they are still missing structure.&lt;/p&gt;

&lt;p&gt;A screenshot does not tell the model:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;which DOM node you are referring to&lt;/li&gt;
&lt;li&gt;what the surrounding hierarchy looks like&lt;/li&gt;
&lt;li&gt;whether the spacing problem is margin, padding, gap, or alignment&lt;/li&gt;
&lt;li&gt;how the target element relates to its siblings and container&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Natural language alone is even worse.&lt;/p&gt;

&lt;p&gt;"Move the tag down a bit" quickly turns into a guessing game. And once the AI guesses wrong, you burn both time and tokens correcting the correction.&lt;/p&gt;

&lt;h2&gt;
  
  
  The part I wanted to improve
&lt;/h2&gt;

&lt;p&gt;So I built &lt;strong&gt;DOMPrompter&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;It is a macOS tool specifically for interface micro-tuning in DOM-based UIs.&lt;/p&gt;

&lt;p&gt;Instead of trying to describe the target from memory, I can:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;click the exact element I want to change&lt;/li&gt;
&lt;li&gt;inspect the DOM context around it&lt;/li&gt;
&lt;li&gt;see the tag, spacing, position, and hierarchy information that actually matters&lt;/li&gt;
&lt;li&gt;write the specific change I want&lt;/li&gt;
&lt;li&gt;generate a more structured prompt for Cursor, Claude Code, Copilot, or any other AI coding tool&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;That shift matters because the workflow stops being "describe and hope" and becomes much closer to "point, explain, generate."&lt;/p&gt;

&lt;h2&gt;
  
  
  Not just for browser pages
&lt;/h2&gt;

&lt;p&gt;One thing I wanted to get right is that this workflow should not be limited to a normal website.&lt;/p&gt;

&lt;p&gt;If the interface is DOM-based, the same micro-tuning problem shows up in:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;localhost front-end projects&lt;/li&gt;
&lt;li&gt;static HTML prototypes&lt;/li&gt;
&lt;li&gt;desktop apps built with web technology&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So the product is a macOS app, but the adjustment workflow is useful anywhere the UI itself is DOM-driven.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why I still think this is worth building
&lt;/h2&gt;

&lt;p&gt;This week I noticed that tools like Codex and Claude Code are also adding pieces of this experience.&lt;/p&gt;

&lt;p&gt;That makes sense. The problem is real.&lt;/p&gt;

&lt;p&gt;But my own feeling is that UI micro-adjustments still deserve a more complete workflow than "the model kind of knows what you clicked."&lt;/p&gt;

&lt;p&gt;What helps in practice is not just selecting an element. It is carrying over the context around that element:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;tags&lt;/li&gt;
&lt;li&gt;gap&lt;/li&gt;
&lt;li&gt;spacing&lt;/li&gt;
&lt;li&gt;position&lt;/li&gt;
&lt;li&gt;hierarchy&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Then turning that into a prompt that is tailored to the exact edit you want.&lt;/p&gt;

&lt;p&gt;That is the core idea behind DOMPrompter.&lt;/p&gt;

&lt;h2&gt;
  
  
  The principle
&lt;/h2&gt;

&lt;p&gt;The principle I keep coming back to is simple:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;click the element, stop guessing&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;If AI is going to be part of front-end iteration, the handoff between "what I see" and "what the model edits" has to get more precise.&lt;/p&gt;

&lt;h2&gt;
  
  
  Links
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;GitHub: &lt;a href="https://github.com/hooosberg/DOMPrompter" rel="noopener noreferrer"&gt;https://github.com/hooosberg/DOMPrompter&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Mac App Store: &lt;a href="https://apps.apple.com/us/app/domprompter-ai-coding-prompt/id6761685716?mt=12" rel="noopener noreferrer"&gt;https://apps.apple.com/us/app/domprompter-ai-coding-prompt/id6761685716?mt=12&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you use AI for front-end work, I would genuinely love to know: how are you handling the last-mile UI tweaks today?&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>ai</category>
      <category>frontend</category>
      <category>devtools</category>
    </item>
  </channel>
</rss>
