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

推荐订阅源

量子位
Recent Announcements
Recent Announcements
D
Docker
V
V2EX
阮一峰的网络日志
阮一峰的网络日志
Vercel News
Vercel News
Microsoft Security Blog
Microsoft Security Blog
The GitHub Blog
The GitHub Blog
U
Unit 42
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
月光博客
月光博客
腾讯CDC
B
Blog
博客园_首页
罗磊的独立博客
D
DataBreaches.Net
IT之家
IT之家
酷 壳 – CoolShell
酷 壳 – CoolShell
L
LangChain Blog
aimingoo的专栏
aimingoo的专栏
MongoDB | Blog
MongoDB | Blog
GbyAI
GbyAI
Stack Overflow Blog
Stack Overflow Blog
M
MIT News - Artificial intelligence

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
Why your AI coding assistant gives bad output (and it's n...
Siva Teja · 2026-06-28 · via DEV Community

Siva Teja

I've been using Claude and Cursor for about a year. For the first six months, I was convinced the AI was the problem. The code it generated was often wrong, incomplete, or just not what I actually wanted.

Then I looked at my own prompts.

"Fix this bug" — what bug? What behavior am I expecting instead?
"Refactor this" — refactor how? For readability? Performance? Structure?
"Write tests" — what kind? What framework? Which edge cases?

The AI wasn't failing me. I was giving it almost nothing to work with.

The real problem

Writing a genuinely good prompt takes 5–10 minutes if you do it properly: specify the goal, the constraints, the expected output format, add placeholders for the actual code, tell it to handle edge cases.

Most of us don't do that. We type the lazy version, get mediocre output, and re-prompt. Then re-prompt again. The irony is that the "quick" prompt ends up costing more time than writing a careful one would have.

What I did about it

I got tired of the re-prompting loop, so I built a small tool called PromptSmith.

You paste your rough request, pick a mode tuned for the task — Debug, Refactor, Code Review, Write Tests, or Explain — and it turns your vague input into a precise, structured prompt. Then you copy that and paste it into whatever AI tool you use (Claude, ChatGPT, Cursor, Copilot).

For example, this:

fix my useEffect infinite loop

becomes a full debug prompt that asks the AI to identify the root cause (not just the symptom), explain why it's happening, provide the corrected code, and note how to prevent it — with placeholders for the error and the relevant code.

It's free to use here: https://usepromptsmith.com

What I'm trying to figure out

I built this for myself, but I'm genuinely unsure how universal the problem is. So I'd love honest input from other developers:

  • Do you find yourself writing lazy prompts and re-prompting a lot?
  • Or have you already built good prompting habits where this wouldn't add much?
  • If you tried it — did the output actually beat what you'd have written yourself?

One developer friend's first reaction was "are you removing prompt engineers' jobs?" — which I'll take as a sign the output quality isn't bad. But I'd rather hear the brutal version from people who'll actually use it.

The feedback matters more to me than the traffic. If it's not useful, I want to know why.