mcpbeat

List Npm Package Content

vercel/list-npm-package-content

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.

299 tokens
context cost
the whole folder, loaded on every use
2
files
ships runnable scripts
0
copies elsewhere
how many repositories repackaged it
26011
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/vercel/ai --skill list-npm-package-content

What comes with it

142 bytes besides the instruction
scripts/list-package-files.sh

The instruction itself

3 sections, as written by the author

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:

  • files field in package.json - explicit allowlist of files/directories
  • .npmignore - files to exclude (if present)
  • .gitignore - used if no .npmignore exists
  • Always included: package.json, README, LICENSE, CHANGELOG
  • Always excluded: .git, node_modules, .npmrc, etc.

How to use it

Copy the folder

Take vercel/list-npm-package-content from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.