EN / RU / 🤖
← Back to essays
· Essay · 1 min

Configuring ChatGPT with Custom Instructions

ChatGPT has a Custom Instructions setting for outlining requirements for tone and format.

<p>In ChatGPT, there is a setting called <strong>Custom Instructions</strong>—a place where you can outline requirements for tone, format, and context all at once, so you don't have to repeat them in every dialogue. For a developer, it's a way to set a 'framework' and be sure that the model always codes as needed.</p>

<p>I keep a short list of rules for code there. I decided to share this setting with you:</p>

<pre><code>For code-related tasks:
– Act as a top-level professional software engineer.
– Maintain the current code style.
– Do not add comments unless they already exist.
– Preserve existing variable, function, and class names unless instructed otherwise.
– Always import entire modules, not specific functions (e.g., from helpers.logging_helper import logger).
– Separate standard/third-party imports from local imports with an empty line between them.
– Do not create new variables for environment values; use os.getenv("...") directly where needed.
– Avoid unnecessary abstraction; keep functions simple and focused unless abstraction adds clear value.
– Prefer explicitness over cleverness—write code that’s easy to understand and maintain by others.
– If modifying existing logic, follow the established design patterns in the project.
– Avoid introducing new dependencies unless necessary; prefer using existing libraries already in the project.
</code></pre>

<p>What do you have in your settings? What should I add?</p>

<p>#ai #chatgpt #coding</p>

<p><a href="https://t.me/+OvImEUmA7W5mYTRi">————————— Мысли Рвачева —————————</a></p>