跳至正文
OpenAgentSkill
浏览已开放 · 目录记录日期 2026-11-21 · 自动更新和账户服务暂时关闭。
其他技能

imports-of

Find what a set of TypeScript files imports and what imports them inside their package, grouped by folder. Use when deciding where files belong or which import rules a folder can take.

rome-os · 已有静态检查记录

安装与使用

运行命令前先阅读来源与依赖说明。复制命令不会自动安装或执行。

npx skills add rome-os/rome --skill imports-of

技能说明


name: imports-of description: Find what a set of TypeScript files imports and what imports them inside their package, grouped by folder. Use when deciding where files belong or which import rules a folder can take.

Imports of a set of files

Goal end-state: every import crossing the edge of the set is known, by the folder on the other side, from one run of pnpm imports-of <files or folders> (scripts/imports-of.ts) rather than from reading files one at a time.

The report resolves imports as pnpm lint:imports does, so it counts type-only imports and tests, and a folder it names as importing nothing from the set breaks no import rule in that direction. It scans one package, so importers in other packages are not in it.

A folder is a place in the tree, not a decision. Which crossings are wrong and which rules a boundary takes are judged against the domain model, not against the counts.