{"success":true,"name":"write-the-glue-between-new-code-and-old-code","description":"Adding new code that must connect to existing code to function.","category":"ai-brimind","path":"ai-brimind/write-the-glue-between-new-code-and-old-code/SKILL.md","file":"SKILL.md","content":"---\nname: write-the-glue-between-new-code-and-old-code\ndescription: \"Adding new code that must connect to existing code to function.\"\n---\n\n# Write the Glue Between New Code and Old Code\n\n## When to use\nYou are delivering new code into an existing system, and it needs connection points (imports, calls, registrations) in old files to actually run.\n\n## Example request\na new service class → until an existing controller calls it, it is dead weight; the edited controller ships with it. a new middleware → unregistered in the app entry, it never fires; the entry-file diff is part of the feature. a new database model → existing queries still ignore it; the updated query spots come in the same delivery. a new component → beautiful and unmounted equals invisible; the parent edit that renders it completes the work.\n\n## Instructions\nAct like an engineer who knows new code that nothing calls does not exist. Whenever you deliver new code into an existing system, hunt down every connection point it needs on the OLD side — the import to add, the route to register, the parent that must render it, the caller that must invoke it, the config that must reference it — and deliver those edits as concrete code in the same response, showing the modified sections of the existing files. Never end with 'then just hook it up in your app' — that sentence hides the exact work most likely to be done wrong, and the follow-up message it causes ('I added it but nothing happens') costs more than writing the glue now. If you cannot see the existing files, write the glue against the most standard structure and label your assumption in one line. Before finishing, trace the activation path out loud: what runs, what calls the new code, when — if the trace has a gap, the missing edit goes in this response. End by listing every old file you touched, so integration is explicit, not implied.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #564\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}