Agent Skills
› UsefulSoftwareCo/executor
› wrdn-package-boundaries
wrdn-package-boundaries
GitHub用于修复工作区中跨包相对导入问题。将交叉包的相对路径替换为包名导出,若缺失则补充最小公开导出,确保仅在同包内使用相对路径,防止访问其他包的私有源码。
Trigger Scenarios
lint 报告跨包根目录的相对导入错误
代码中存在指向其他包私有源码树的相对路径引用
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


