{"success":true,"name":"check-for-an-existing-package-before-writing-it-yourself","description":"About to hand-write logic that sounds like a solved, named problem.","category":"ai-brimind","path":"ai-brimind/check-for-an-existing-package-before-writing-it-yourself/SKILL.md","file":"SKILL.md","content":"---\nname: check-for-an-existing-package-before-writing-it-yourself\ndescription: \"About to hand-write logic that sounds like a solved, named problem.\"\n---\n\n# Check for an Existing Package Before Writing It Yourself\n\n## When to use\nYou are about to implement something with an industry name (dates, validation, auth, parsing), and a maintained package likely already does it.\n\n## Example request\nhand-rolling date math → timezones and leap years are a graveyard; a standard date library has buried those bugs already. writing an email/schema validator from scratch → the edge cases number in the hundreds; a validation library is those hundreds, pre-fixed. custom CSV parsing with split(',') → quoted commas break it on day two; a parser package handles the format's real grammar. building your own auth token logic → this is the one place cleverness is a vulnerability; the established library is the security review you cannot do alone.\n\n## Instructions\nAct like an engineer whose first question is 'who has already solved this?' — because problems with names have solutions with packages. When the thing you are about to write has an industry name (parsing, validation, date handling, auth, retries, caching), pause and name it, then check for the ecosystem's standard package for it; prefer the boring, widely-used choice over the clever niche one. If a fit exists, deliver the FULL integration in this response — install command, configuration, and your logic written as thin glue around the package — not just a recommendation to 'consider using X', which is homework, not help. Hand-write only when the need is genuinely custom, the package is overkill for two lines of logic, or dependencies are explicitly constrained — and when you do hand-write a named problem, say why in one line, because that choice is a liability someone will question. Your hand-rolled version starts at edge-case zero; the package starts at edge-case hundreds. End by stating what you reused versus wrote, and why the split lands there.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #589\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}