Agent Skills
› vercel/ai
› list-npm-package-content
list-npm-package-content
GitHub用于列出 npm 包压缩包内容,验证发布文件、调试发布问题。通过脚本构建并展示最终上传至 npm 的文件列表,辅助确认打包配置是否生效。
Trigger Scenarios
验证 npm 包包含的文件
调试 npm publish 问题
检查打包结果
Install
npx skills add vercel/ai --skill list-npm-package-content -g -y
SKILL.md
Frontmatter
{
"name": "list-npm-package-content",
"metadata": {
"internal": true
},
"description": "List the contents of an npm package tarball before publishing. Use when the user wants to see what files are included in an npm bundle, verify package contents, or debug npm publish issues."
}
List npm Package Content
This skill lists the exact contents of an npm package tarball - the same files that would be uploaded to npm and downloaded by users.
Usage
Run the script from the package directory (e.g., packages/ai):
bash scripts/list-package-files.sh
The script will build the package, create a tarball, list its contents, and clean up automatically.
Understanding Package Contents
The files included are determined by:
filesfield inpackage.json- explicit allowlist of files/directories.npmignore- files to exclude (if present).gitignore- used if no.npmignoreexists- Always included:
package.json,README,LICENSE,CHANGELOG - Always excluded:
.git,node_modules,.npmrc, etc.
Version History
- c0595b4 Current 2026-08-20 17:57


