Share your favorite prompt rules & guidelines! #234
Replies: 2 comments
-
I'm currently using the following mode specific instructions for the Its a modified variation on this prompt from continue.dev which adds DRY:
|
Beta Was this translation helpful? Give feedback.
-
I do not have data to support my view, but from experimenting system-prompt-to-user-prompt-to-code mostly with Claude Sonnet 3.5 and more recently GPT4.1 (my own agent). Adding such a long context for "writing code" is inefficient and ineffective, on my lay man understanding, it will drive too much attention to all those constrains and correlated patterns, at cost of attention to match the functional requirement "it should do this". What I am experimenting now, and I believe it will provider better results, is to apply such rules post code generation, in a nutshell I am splitting generation/validation, even if that comes with the cost of a longer loop. I am following this approach supported by: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Have any good Clean Architecture, DDD, SOLID, DRY, KISS or any other well defined guidelines. Share them here!
Beta Was this translation helpful? Give feedback.
All reactions