Agent SkillsUsefulSoftwareCo/executor › wrdn-package-boundaries

wrdn-package-boundaries

GitHub

用于修复工作区中跨包相对导入问题。将交叉包的相对路径替换为包名导出,若缺失则补充最小公开导出,确保仅在同包内使用相对路径,防止访问其他包的私有源码。

.agents/skills/wrdn-package-boundaries/SKILL.md UsefulSoftwareCo/executor

Trigger Scenarios

lint 报告跨包根目录的相对导入错误 代码中存在指向其他包私有源码树的相对路径引用

Install

npx skills add UsefulSoftwareCo/executor --skill wrdn-package-boundaries -g -y
More Options

Non-standard path

npx skills add https://github.com/UsefulSoftwareCo/executor/tree/main/.agents/skills/wrdn-package-boundaries -g -y

Use without installing

npx skills use UsefulSoftwareCo/executor@wrdn-package-boundaries

指定 Agent (Claude Code)

npx skills add UsefulSoftwareCo/executor --skill wrdn-package-boundaries -a claude-code -g -y

安装 repo 全部 skill

npx skills add UsefulSoftwareCo/executor --all -g -y

预览 repo 内 skill

npx skills add UsefulSoftwareCo/executor --list

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

Same Skill Collection

.agents/skills/stack/SKILL.md
.agents/skills/wrdn-effect-atom-optimistic/SKILL.md
.agents/skills/wrdn-effect-atom-reactivity-keys/SKILL.md
.agents/skills/wrdn-effect-promise-exit/SKILL.md
.agents/skills/wrdn-effect-raw-fetch-boundary/SKILL.md
.agents/skills/wrdn-effect-schema-boundaries/SKILL.md
.agents/skills/wrdn-effect-schema-inferred-types/SKILL.md
.agents/skills/wrdn-effect-typed-errors/SKILL.md
.agents/skills/wrdn-effect-value-inferred-types/SKILL.md
.agents/skills/wrdn-effect-vitest-tests/SKILL.md
.agents/skills/wrdn-typescript-type-safety/SKILL.md
.claude/skills/emulate/SKILL.md
.claude/skills/prod-telemetry/SKILL.md
.claude/skills/self-contained-modals/SKILL.md
.skills/cli-release/SKILL.md
.skills/effect-atom-optimistic-updates/SKILL.md
.skills/effect-http-testing/SKILL.md
.skills/effect-use-pattern/SKILL.md
.skills/graphite/SKILL.md
.skills/warden-security-review/SKILL.md

Metadata

Files
0
Version
8bc037d
Hash
a8bace6d
Indexed
2026-07-05 10:55

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-07-17 06:33
浙ICP备14020137号-1 $Carte des visiteurs$