Agent Skills
› UsefulSoftwareCo/executor
› wrdn-package-boundaries
wrdn-package-boundaries
GitHub修复工作区中跨包相对导入问题,将其替换为通过包导出路径引用。若模块未导出,则补充最小化公共导出,确保仅在同包内使用相对导入,维护清晰的包边界与依赖结构。
Trigger Scenarios
代码扫描发现跨包的相对导入路径
重构时需要规范包间依赖关系
Install
npx skills add UsefulSoftwareCo/executor --skill wrdn-package-boundaries -g -y
SKILL.md
Frontmatter
{
"name": "wrdn-package-boundaries",
"description": "Preserve workspace package boundaries. Use when lint flags relative imports that cross package roots.",
"allowed-tools": "Read Grep Glob Bash"
}
Workspace packages should import each other through package exports, not relative paths.
Fix Shape
- Replace cross-package relative imports with the target package name.
- If the needed module is not exported, add the smallest package export that matches the package's public surface.
- Keep relative imports only within the same package root.
- Do not reach into another package's private source tree from an app or package.
Good
import { createExecutor } from "@executor-js/sdk";
Bad
import { createExecutor } from "../../../core/sdk/src";
Version History
- fd4fb02 Current 2026-07-05 10:55


