Agent SkillsUsefulSoftwareCo/executor › wrdn-package-boundaries

wrdn-package-boundaries

GitHub

修复工作区中跨包相对导入问题,将其替换为通过包导出路径引用。若模块未导出,则补充最小化公共导出,确保仅在同包内使用相对导入,维护清晰的包边界与依赖结构。

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

Trigger Scenarios

代码扫描发现跨包的相对导入路径 重构时需要规范包间依赖关系

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
837e404
Hash
a8bace6d
Indexed
2026-07-05 10:55

trang chủ - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-03 03:32
浙ICP备14020137号-1 $bản đồ khách truy cập$