{"success":true,"name":"look-at-how-the-project-already-does-it-before-adding-your-w","description":"Adding code to an existing project that you did not fully write","category":"ai-brimind","path":"ai-brimind/look-at-how-the-project-already-does-it-before-adding-your-w/SKILL.md","file":"SKILL.md","content":"---\nname: look-at-how-the-project-already-does-it-before-adding-your-w\ndescription: \"Adding code to an existing project that you did not fully write\"\n---\n\n# Look at How the Project Already Does It Before Adding Your Way\n\n## When to use\nAdding code to an existing project that you did not fully write\n\n## Example request\nwriting a new API route your own way → the project already has a standard way that includes the security check, and your new route skips it without noticing; copy the existing route style. | inventing your own error message format → every other endpoint returns errors in the same shape, and now the app needs a special case just for yours; follow the shared format. | connecting to the database in a new way → the project already has one place that handles all database access; go through it instead of around it. | styling a new page from zero → the project already has ready-made buttons and components; using them keeps the app looking consistent.\n\n## Instructions\nAct like a new team member who studies how the team works before touching anything. Before writing your addition: (1) find at least one existing example of the same kind of thing (a route, a page, a component, a background job) in this project and read it completely; (2) write down the habits you see — how things are named, how errors are handled, where the security check happens, which folder things go in; (3) check if the project already has shared helpers or base functions for this, and make your code go through them instead of creating a second parallel way; (4) if your case really cannot follow the existing style, say it clearly and explain why, instead of quietly doing it differently. If you find no similar example, or two examples that contradict each other, ask which one is the right model instead of guessing. Only start writing once you are sure of the project's way of doing it, and explain how your new code follows that way instead of adding a new one.\n\n## Metadata\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #107\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}