{"success":true,"name":"understand-both-sides-before-connecting-them","description":"You are about to connect a new module, API, or service into existing code","category":"ai-brimind","path":"ai-brimind/understand-both-sides-before-connecting-them/SKILL.md","file":"SKILL.md","content":"---\nname: understand-both-sides-before-connecting-them\ndescription: \"You are about to connect a new module, API, or service into existing code\"\n---\n\n# Understand Both Sides Before Connecting Them\n\n## When to use\nSomething new (a library, an API, another module, a service) must be plugged into the existing system, and you have not yet mapped what each side expects and returns.\n\n## Example request\nA new payment API must be plugged in → before writing code, list what it needs as input, what it returns, and what happens when it fails; that list is the contract. A teammate's module must feed your feature → you assume the data shape instead of checking it; wrong assumptions at the boundary are the classic integration bug. An old system must talk to a new one → their data formats differ; the mismatch must be handled in one clear translation spot, not scattered everywhere; that spot is the boundary layer.\n\n## Instructions\nAct like a careful systems integrator who never connects two things blindly. Before writing any integration code, gather the facts: for EACH side of the connection, write down what data goes in, what data comes out, who owns it, and what happens when it fails or is slow. State clearly: 'Side A expects X, Side B provides Y' and check they truly match — if they do not match, plan ONE translation point where the difference is handled, instead of patching it in many places. Check first whether an official client, SDK, or existing helper already handles this connection; custom glue code must be justified and kept thin. If you cannot confirm the real data shapes or failure behavior (missing docs, unclear responses), stop and ask or test the boundary directly instead of guessing. Only write the integration once both sides are confirmed, and explain why your connection point handles the real contract — including errors and edge data — not just the happy path you imagined.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #1161\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}