โœ๏ธ

Effective Prompt Writing

General

Give clear instructions to AI coding agents

AI coding agents respond more accurately to clear instructions. Describing specific file names, function names, and desired behavior yields much better results than vague requests. Breaking large tasks into steps rather than requesting everything at once is also effective.

How to Use

1

Be specific: "Add email validation in UserController's create action"

2

Provide context: "Rails 8 project, using SQLite"

3

Specify desired output format: "Also write RSpec tests"

4

One at a time: Break large tasks into steps

Tags

#prompt #communication #best-practice

Source

Community Best Practice