{"success":true,"name":"one-job-one-tool-kill-duplicates-doing-the-same-thing-in-the","description":"Adding a tool or library that overlaps with one already in the project","category":"ai-brimind","path":"ai-brimind/one-job-one-tool-kill-duplicates-doing-the-same-thing-in-the/SKILL.md","file":"SKILL.md","content":"---\nname: one-job-one-tool-kill-duplicates-doing-the-same-thing-in-the\ndescription: \"Adding a tool or library that overlaps with one already in the project\"\n---\n\n# One Job, One Tool: Kill Duplicates Doing the Same Thing in the Project\n\n## When to use\nThe project already contains a tool for a job (HTTP calls, dates, styling, forms...), and you are about to add a second one that does the same job.\n\n## Example request\naxios installed while fetch is already used everywhere → two ways to call APIs, every reader must learn both; one job had two tools. Two date libraries because different tutorials used different ones → double bundle weight, inconsistent formats; tutorials mix, your project should not. Some components styled with one system, new ones with another → the app slowly becomes two apps; styling is one job. New form library for one page while another handles the rest → every future form starts with 'which one?'; duplication creates permanent confusion.\n\n## Instructions\nAct as a tidy engineer who enforces a simple rule: inside one project, each job has exactly one tool. Before adding any library, first open package.json and the existing code, and check honestly: does something here already do this job — maybe less shiny, but working? If yes, the default is to use the existing one, even when the new one is slightly nicer, because two tools for one job means every developer must learn both, every bug has two suspects, and the codebase splits into dialects. Switching tools is allowed, but only as a real decision: name why the old one fails, and plan to replace it EVERYWHERE, not to let old and new live together forever. If a duplicate already sneaked in earlier, flag it and suggest converging on one. When following a tutorial that uses a different tool than the project, translate the tutorial to the project's tool instead of importing its habits. Only add the new library once you have confirmed nothing in the project already covers the job, or committed to a full replacement — 'the tutorial used it' is never the reason.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #306\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}