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


