Stop Writing Prompts Like This: Better Claude Code Communication
dev.to·15h·
Discuss: DEV
💬Error Message Design
Preview
Report Post

The way you communicate with Claude Code determines the quality of output you get. Most developers write prompts that actively sabotage their results.

What Bad Prompts Look Like

"Fix my code" "Make this faster" "Write a function that does X"

These prompts share a fatal flaw: they assume Claude Code can read your mind.

The Communication Framework That Works

1. Context First

Before asking for anything, provide context. What language? What framework? What constraints exist? What’s the broader goal?

Bad: "Write a sorting function" Better: "I’m working on a Python 3.11 data pipeline processing CSV files up to 500MB. I need a memory-efficient sorting function for timestamp columns."

2. Show, Don’t Tell

Instead of describing what’s wrong, paste the actual…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help