Skip to main content

unused-exports

Find exported symbols that are never imported by another file. Use when the user says "check exports", "unused exports" or asks to clean up exports.

来源信息

仓库
openshift/lightspeed-console
最近来源活动
2026年5月15日 05:55
检测到的 SKILL.md 语言
英语
星标
10
分支
37

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
unused-exports
description
Find exported symbols that are never imported by another file. Use when the user says "check exports", "unused exports" or asks to clean up exports.
# unused-exports ## Step 1: Run ts-unused-exports Version is pinned to guard against supply chain attacks: ```sh npx ts-unused-exports@11.0.1 unit-tests/tsconfig.json \ --findCompletelyUnusedFiles \ --showLineNumber \ --searchNamespaces ``` ## Step 2: Filter out entry points Some exports are consumed externally by the OpenShift console framework, not by imports within this repo. Read `package.json` → `consolePlugin.exposedModules` and `console-extensions.json` → `$codeRef` values to identify them. Exclude any finding that is a default export of an exposed module or is named in a `$codeRef`. ## Step 3: Report findings Group into **unused exports** and **completely unused files**. If nothing remains, report that all exports are accounted for. Do not modify any files.
在 GitHub 查看