Agent Skills
› UsefulSoftwareCo/executor
› wrdn-package-boundaries
wrdn-package-boundaries
GitHub修复跨包相对导入,强制使用包名导出访问。当 Lint 检测到违反工作区包边界时触发,替换路径并补充必要导出,维护代码封装性。
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


