惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Martin Fowler
Martin Fowler
有赞技术团队
有赞技术团队
博客园_首页
H
Help Net Security
GbyAI
GbyAI
aimingoo的专栏
aimingoo的专栏
V
Visual Studio Blog
The Cloudflare Blog
腾讯CDC
Jina AI
Jina AI
Last Week in AI
Last Week in AI
月光博客
月光博客
博客园 - 叶小钗
Google DeepMind News
Google DeepMind News
B
Blog RSS Feed
Blog — PlanetScale
Blog — PlanetScale
人人都是产品经理
人人都是产品经理
Engineering at Meta
Engineering at Meta
Y
Y Combinator Blog
Hugging Face - Blog
Hugging Face - Blog
博客园 - 聂微东
爱范儿
爱范儿
N
Netflix TechBlog - Medium
F
Fortinet All Blogs

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Stop writing lazy AI prompts: a hotkey that structures th...
reven · 2026-05-31 · via DEV Community

reven

Most "bad AI answers" aren't a model problem. They're a prompt problem.

You type something like:

fix the auth bug

…and the model fires back three clarifying questions, or confidently fixes the wrong thing. So you rephrase, retry, and lose ten minutes per task. The gap between what you mean and what the model can act on is structure.

Anthropic's own prompt-engineering docs are clear about what good structure looks like: give the model a role, context, the task, and an explicit output format — ideally with XML-style tags. The problem is doing that by hand, every time, in every app. Nobody does.

So I built a hotkey for it

It's a small desktop app called Prompt Enhancer. The flow is:

  1. Select any rough draft in any app (editor, chat box, browser field)
  2. Press a hotkey — Ctrl+Alt+P (or Control-Option-Cmd-P on macOS)
  3. Your text is replaced in place with a structured prompt

No copy-paste, no second tab, a few seconds.

Before / after

Before:

help me with a python parser for nested json

After:

<role>experienced Python developer</role>
<task>parse a nested JSON structure</task>
<instructions>
  - use json + jsonpath-ng
  - handle missing keys gracefully
  - include example usage
</instructions>
<output_format>working code + 3 examples</output_format>

Same intent in, far more useful answer out.

How it works under the hood

  • Calls Claude Haiku to do the restructuring (fast + cheap)
  • Bring your own API key — your text goes straight to Anthropic, not through anyone's server. The key lives in your OS keychain.
  • macOS build is native Swift; Windows is Tauri/Rust
  • Works in any text field (Accessibility API on macOS, UI Automation on Windows, clipboard fallback for Electron/web apps)
  • Presets for different styles: Default, Concise, Verbose, and Code

It's free to try (a handful of demo calls on a shared key), then free forever with your own key.

Try it / tell me it's wrong

Link: https://promptenhancer.online/

I'd genuinely like feedback on two things: (1) whether the restructured output actually helps in your workflow or gets in the way, and (2) which presets you'd want that don't exist yet. If you try it, drop a comment — happy to iterate.