This content originally appeared on DEV Community and was authored by Andy
Create a PROMPT.md in your project root directory. Use it to store all the context necessary about your project for your agent to save yourself time from re-explaining what your project is or what your preferences and project level decisions are.
Context is one of the hardest things currently when using LLMs. You're either telling the LLM what your project is in each chat, or the LLM gets lost in the sauce and forgets what it is your project is trying to accomplish, or how you're trying to accomplish it. Create a file in your project root that tells the LLM what it should know every time (you should even let the LLM write/update it also).
There is a great talk by Elixir Phoenix create Chris McCord about how they are actively trying to make Elixir (and Phoenix) the best language to code with an LLM. They are mostly ensuring that it generates valid Elixir code like Enum.at(my_list, 0) instead of my_list[0] by defining Elixir syntax in a PROMPT.md file. He recommends to use that file as a base and expand on it. There's a good quote during the talk where Chris says something like:
You can spend your time arguing about the morals of AI, or you can be 2-3 times more productive.
You can be Michelangelo painting the Sistine Chapel, telling the assistants what broad strokes to make and do the stuff you don't want to do while you focus on the big picture and ensure the small details are right. Or you're a mangaka with assistants filling in cells, whatever. The skill of reviewing code and making sure your vision is followed becomes more important at all levels.
Just because you are not hand typing every line of css, html, javascript, ruby, c++, whatever doesn't mean you aren't doing the thinking and solving the problems.
This content originally appeared on DEV Community and was authored by Andy
Andy | Sciencx (2025-10-23T03:40:56+00:00) Create a PROMPT.md. Retrieved from https://www.scien.cx/2025/10/23/create-a-prompt-md/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.