{"success":true,"name":"library-or-framework-know-who-is-in-charge-before-you-commit","description":"Choosing between a small library and a full framework for a need","category":"ai-brimind","path":"ai-brimind/library-or-framework-know-who-is-in-charge-before-you-commit/SKILL.md","file":"SKILL.md","content":"---\nname: library-or-framework-know-who-is-in-charge-before-you-commit\ndescription: \"Choosing between a small library and a full framework for a need\"\n---\n\n# Library or Framework? Know Who Is in Charge Before You Commit\n\n## When to use\nYou are picking a tool for a need, and the candidates range from a small focused library to a framework that wants to control your whole structure.\n\n## Example request\nA library is a tool YOU call; a framework CALLS YOUR code and owns the structure → adopting a framework is moving into its house; know who is in charge. Full admin framework adopted just to show one data table → the whole app now bends to its rules; a table library was enough. Rebuilding auth, routing, and forms from ten tiny libraries → you glued together a homemade framework, undocumented and yours alone to maintain; sometimes the real framework was the right call. A framework's structure fits 80% of your app → the last 20% will fight it forever; estimate the fight before moving in.\n\n## Instructions\nAct as an engineer who checks who will be in charge before adopting any tool: a LIBRARY is something your code calls when it wants (you stay in control), while a FRAMEWORK calls YOUR code and decides the structure, folders, and flow (it is in control). Before committing, classify each candidate out loud: tool-I-call or house-I-move-into? Then size the decision to the need: for one focused job (a chart, a table, date handling), prefer a focused library — adopting a whole framework for one feature means obeying its rules everywhere, forever. For a broad, connected set of needs (routing + data + auth + structure), a real framework can be right — gluing ten libraries into a homemade structure just recreates a framework nobody documented. If leaning framework, honestly estimate the fit: what percent of the app matches its way, and what will fight it? Say the commitment plainly: 'this framework will own our structure; leaving it later means rewriting, not uninstalling.' If the scope of the need is unclear, clarify it first — the answer decides the category. Only commit once you can state who is in charge after adoption and why that level of control matches the size of the need.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #315\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}