rvachev.orgEN / 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.

In ChatGPT, there is a setting called Custom Instructions—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.

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

```
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.
```

What do you have in your settings? What should I add?

Newsletter

Get new posts by email

A weekly digest of what I write about AI, software and products. Unsubscribe anytime.