Fix Cyclic Deps

Detect and resolve cyclic module dependencies introduced during UI5 modernization. Trigger when user mentions: "cyclic dependency", "circular import", "undefined module at runtime", "lazy require", "sap.ui.require sync", "import cycle", or when a module returns undefined despite a correct import path. Classic symptom: a module is `undefined` at runtime despite a correct sap.ui.define import path. Auto-fixes 2-node cycles (A↔B) by converting the lesser-used edge to lazy sap.ui.require(). Auto-fixes longer chains (3+ nodes) via hub-based approach. Reports unfixable chains to MODERNIZATION-ISSUES.md. Runs as Phase 3, Step 3.3 (final step) after all other Phase 3 steps.

williamcorrea23 0b686dc 6 files · 95.3 KB Updated

File contents

williamcorrea23/sap-router-skill/tree/main/.agents/skills/fix-cyclic-deps commit 0b686dc3a9

Frequently asked questions

npx skillmds@latest add williamcorrea23/fix-cyclic-deps