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.
Pinned to revision 4e8964e24a5a, so it is the text this page describes rather than whatever the author pushed since.
Files
- skills/fix-cyclic-deps/SKILL.md
- skills/fix-cyclic-deps/LICENSE
- skills/fix-cyclic-deps/references/dependency-graph-analysis.md
- skills/fix-cyclic-deps/scripts/detect-cycles.js
- skills/fix-cyclic-deps/scripts/detect-unsafe-lazy.js
- skills/fix-cyclic-deps/scripts/detect-unsafe-lazy.test.js
- skills/fix-cyclic-deps/scripts/lib/graph-utils.js
Every link opens the file at its source, pinned to the revision this page describes.