Show HN: DOMPrompter - 点击 DOM 元素,获取结构化的 AI 编程提示

4作者: witnote4 个月前
构建这个工具是因为,AI UI 编码中最难的部分不是生成整个页面,而是在最后微调阶段,准确地告诉模型要修改哪个元素。<p>DOMPrompter 是一款 macOS 工具,适用于基于 DOM 的 UI。你只需点击确切的元素,检查相关的标签、间距、位置上下文,描述你想要做的更改,然后为 Cursor、Claude Code、Copilot 等生成更结构化的提示。<p>它适用于本地项目、静态 HTML 以及使用 Web 技术构建的桌面应用程序。<p>GitHub: <a href="https:&#x2F;&#x2F;github.com&#x2F;hooosberg&#x2F;DOMPrompter" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;hooosberg&#x2F;DOMPrompter</a> Mac App Store: <a href="https:&#x2F;&#x2F;apps.apple.com&#x2F;us&#x2F;app&#x2F;domprompter-ai-coding-prompt&#x2F;id6761685716?mt=12">https:&#x2F;&#x2F;apps.apple.com&#x2F;us&#x2F;app&#x2F;domprompter-ai-coding-prompt&#x2F;i...</a><p>欢迎从事前端/氛围编码风格工作流程的人提供反馈。
查看原文
Built this because the hardest part of AI UI coding is not generating a whole page - it is telling the model exactly which element you want to change in the last-mile micro-tuning pass.<p>DOMPrompter is a macOS tool for DOM-based UIs. You click the exact element, inspect the relevant tag &#x2F; spacing &#x2F; position context, describe the change, and generate a more structured prompt for Cursor, Claude Code, Copilot, etc.<p>It works with localhost projects, static HTML, and desktop apps built with web technology.<p>GitHub: <a href="https:&#x2F;&#x2F;github.com&#x2F;hooosberg&#x2F;DOMPrompter" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;hooosberg&#x2F;DOMPrompter</a> Mac App Store: <a href="https:&#x2F;&#x2F;apps.apple.com&#x2F;us&#x2F;app&#x2F;domprompter-ai-coding-prompt&#x2F;id6761685716?mt=12">https:&#x2F;&#x2F;apps.apple.com&#x2F;us&#x2F;app&#x2F;domprompter-ai-coding-prompt&#x2F;i...</a><p>Would love feedback from people doing front-end &#x2F; vibe-coding style workflows.