Install any skill in seconds. Free to start, no credit card required.
Get Started Free →bluelovers/nodejs-module-path
取得 node_modules 中已安裝的 Node.js 模組路徑。當需要 (1) 查找已安裝模組的位置,(2) 取得 package.json 路徑,(3) 解析模組入口點,(4) 在 pnpm Yarn 環境下搜尋套件時使用此技能。此技能支援 PowerShell、cmd、Node.js 和 bash 等多種方法來搜尋 node_modules 中的套件路徑。/ Get installed Node.js module paths in node_modules.
Passed 22 of 22 test cases with the skill, and 18 of 22 without it.
and 1 more in the full report
4 fixed18 passed either way0 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 4 test cases the skill fixed. Same model, same prompt, with and without the skill.
I need to resolve the exact entry point file path of the installed package `react` using Node.js CLI without opening a script file. What command should I execute?
| Checked | Without skill | With skill |
|---|---|---|
| The command executes node with the inline evaluation flag -e. | Missed | Passed |
| The command calls require.resolve('react'). | Passed | Passed |
The instructions your model reads when the skill loads.
取得 node_modules 中已安裝模組的路徑 / Get installed module paths in node_modules
本技能提供多種方法來取得 Node.js 專案中已安裝模組的路徑,適用於不同環境(npm、pnpm、Yarn)和不同工具需求。
pnpm 使用獨特的目錄結構:
.pnpm/ 目錄下node_modules/ 中的套件是符號連結(symbolic link)node_modules/
├── env-bool → .pnpm/[email protected]/node_modules/env-bool
└── .pnpm/
└── [email protected]/
└── node_modules/
└── env-bool/
當 OpenCode Glob 工具無法找到 pnpm 的符號連結時:
require.resolve().pnpm/ 目錄test cases passed, vs 18 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.