Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Enforce import boundaries inside the devtools scope.
23% 95%+73 ptsof test cases passed
Passed 21 of 22 test cases with the skill, and 5 of 22 without it.
This test ran on v1. v3 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Not used yet
Every @devtools/* package is self-contained. A @devtools/* package may import another one only where tools/nx-plugins/enforce-boundaries/constraints.js allows it, and pnpm lint:boundaries enforces it:
DEVTOOLS_ALLOWED_IMPORTS lists the imports each package may make.DEVTOOLS_TYPE_ONLY_IMPORTS lists the packages each one may reach under DEVTOOLS_TYPE_ONLY_RULE.DEVTOOLS_LAZY_IMPORTS lists the packages each one may reach only lazily, under DEVTOOLS_LAZY_RULE.DEVTOOLS_HOST_APPS lists the apps that host DevTools, the one folder of each that may import @devtools/*, and the files of that folder product code may import.To change what a package may import, edit those tables.
DEVTOOLS_LAZY_RULE). The shell loads @devtools/registry eagerly, so the registry may reach a tool only through import type, export type … from, typeof import("…") or loader: () => import("@devtools/<tool>"). A value import or require() bundles the tool with the shell.@devtools/* (DEVTOOLS_HOST_APP_RULE). In each app of DEVTOOLS_HOST_APPS, only files under allowedUnder (src/mvvm/features/DevTools/) may import @devtools/*, type imports included. A product hook calling a bindings hook, or a product type derived from DevToolsConfig or a bindings port type, belongs in that folder.DEVTOOLS_HOST_FOLDER_RULE). A file outside allowedUnder may reach only the files listed in entries, through a static import, import() or lazy(() => import(...)) alike. A lazy import of any other file would still make product code depend on a tool module at runtime. To lazy-load a new screen of the folder, add it to entries. The rule resolves relative paths and the aliases of the app's tsconfig.json (LLD/*, LLM/*, ~/*). Test files (*.test.*, __tests__/, __integrations__/) are exempt.@devtools/* passes. Keep it under the DevTools folder by review.setOverride and similar controls are used by many legitimate debug screens, so lint does not flag them. Whether product code drives them for debugging is a review question.The devtools architecture decouples tools from the shell through the registry. The shell lazy-loads tools via metadata.loader; tools never know the shell exists. If a tool imports the shell or another tool directly:
bindings builds each tool's props, so it needs a tool's props types without loading the tool. That is what DEVTOOLS_TYPE_ONLY_IMPORTS grants it.
If bindings or shell import a tool package's values directly (instead of through the registry):
DevToolsConfig.import() split point disappears, defeating code-splitting.Next to this one in the catalogue, plus more from the same author.