ai-docs/docs/ai/crossplatform/prompting-antipatterns.md
Matt Bruce 8533890d2c refactored filesystem
Signed-off-by: Matt Bruce <matt.bruce1@toyota.com>
2026-02-12 16:33:53 -06:00

628 B

Prompting Anti-Patterns (And Fixes)

Common mistakes and better alternatives:

Too broad: Fix everything in this project. Better: Refactor this file to remove duplication. Do not change behavior.

Too vague: Make this code better. Better: Improve naming and add comments only where logic is complex.

Missing inputs: Update the service to handle retries. Better: Update ServiceA in src/service/ServiceA.kt to retry 2 times on 5xx. Keep API the same.

Example: Too Broad vs Scoped

Too broad: Fix everything in this project. Scoped: Refactor this file to remove duplication. Do not change behavior.