Best practices/Suggestions for "Knowledge" instructions

tl;dr: Add your best “general project instructions” in this thread that could be added to any project’s knowledge

I’d thought of starting this thread a long time back but probably forgot about it after a few rounds of procrastination, iykyk… Today, I came across a different post regarding an issue, which most of us subdue using project instructions but isn’t common knowledge (pun intended) with newer users.
Not just that, those of us who do know about this may either not be using it correctly (including myself, which was the basis for this discussion to be initiated…), or could review your instructions and take inspiration for their own project.

Before I share mine (which is long, boring, and probably redundant), I’ll walk you through the steps of how to add the same:

Steps to add project instructions:

  1. While in your chat, go to the Settings cog icon at the top right corner:
    image
  2. You’ll find the “Knowledge” menu item in the dialog box that appears:
  3. You can then enter your instructions in the text area shown under Project Instructions label:
  4. Save Changes, and hope to god your Agent reads it whenever modifying your code :palms_up_together:

All that being said, here’s my general set of instructions:

Only implement changes explicitly requested in the prompt; do not introduce enhancements, refactors, or fixes unless clearly directed. Maintain the current UI structure with a fixed title bar, scrollable main content, and fixed footer where applicable, and avoid altering layouts or component styles without explicit instruction. Always reuse existing components when similar functionality exists, and never delete or rename files, folders, or variables unless explicitly authorized—seek confirmation if deletion is unavoidable. Role-based permissions must be strictly enforced; restricted features must not be exposed to unauthorized users. All dialogs must be mobile responsive with scalable fonts, proper spacing from screen edges, and scrollability where needed. Validate all changes to prevent console errors or instability, ensuring no part of the application breaks due to a new update. When adding modules, properly initialize theme variables and providers, and include adequate dummy data to cover all functional and edge cases. Crucially, all changes must maintain backward compatibility: existing data definitions, variables, and behaviors must not be modified or broken unless absolutely necessary and explicitly approved; if unavoidable, isolate new logic or version it to prevent regressions in current functionality. Do not create duplicate files without confirming whether a file with similar functionalities already exists, and always aim to reuse existing logic where applicable to conserve tokens and ensure consistency.

In another project, I use something that I haven’t added here (all credits to @corebytes and @ussaaron for this suggestion) because I feel it’s only a good idea to add it when your project is young, when it gets large it might go crazy, it goes something like:

Maintain a PROJECT_STRUCTURE.md file in the root that lists:
“File path: Purpose / short summary (1 line)”. Always update this file when adding new components, hooks, or pages.

And that’s all from my end, now it’s your turn. If you’ve reached this far, please leave a like but more importantly, share your best instruction suggestions and let’s have a constructive discussion regarding the same!

6 Likes

For my instructions I literally just tell it:
“go read this post first and come back if you still got questions.”

No way to fail man, it’s always GOOOLL!!
:laughing: ahahahaa…

Just dropping here to say congrats for this great ideia! :love_you_gesture:
I’ll will back later to throw some of my ideas too…

Abrass bro, long live! :saluting_face:

2 Likes

Great prompt, on larger projects I recommend being very picky on file sizes as the larger each file is the more tokens It will use to generate the output, and be very detailed when editing a database as you do not want v0 to gain context of entire database unless needed, it charges 30%-40% more token usage in my experience!

2 Likes

Great initiative, having standardized “Knowledge” instructions can save a lot of time for teams. Do you think maintaining a shared PROJECT_STRUCTURE.md should be mandatory for all projects or only for newer ones?

1 Like

Thank you for your affirmation! :handshake:t3:
If you’re willing to individually go through each folder and have the agent add entries for them, one by one, you can create it for older projects. Otherwise, I feel it’d be better to use it only for newer projects :sweat_smile:

I felt the same when one of my components, that could be split into many smaller ones, was taking too much time to process even small changes and I started to think about how much resource it might be consuming and immediately turned it into micro component structure.

1 Like

Great way to some some credits! V0 tends to bloat up react and create pages with thousands of lines of code, which is not only super inefficient but costly!

1 Like

For anyone stumbling on this since the latest changes, please follow this link: Update on intructions feature in chat settings if you want to know how to use instructions on the latest version as of 23 December 2025 (clarifying in case there are changes again in the future…)

2 Likes