Agent Skillsvercel/ai › list-npm-package-content

list-npm-package-content

GitHub

用于列出 npm 包压缩包内容,验证发布文件、调试发布问题。通过脚本构建并展示最终上传至 npm 的文件列表,辅助确认打包配置是否生效。

skills/list-npm-package-content/SKILL.md vercel/ai

Trigger Scenarios

验证 npm 包包含的文件 调试 npm publish 问题 检查打包结果

Install

npx skills add vercel/ai --skill list-npm-package-content -g -y
More Options

Use without installing

npx skills use vercel/ai@list-npm-package-content

指定 Agent (Claude Code)

npx skills add vercel/ai --skill list-npm-package-content -a claude-code -g -y

安装 repo 全部 skill

npx skills add vercel/ai --all -g -y

预览 repo 内 skill

npx skills add vercel/ai --list

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:

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

Version History

  • c0595b4 Current 2026-08-20 17:57

Same Skill Collection

skills/add-function-examples/SKILL.md
skills/add-harness-package/SKILL.md
skills/add-provider-package/SKILL.md
skills/adr-skill/SKILL.md
skills/develop-ai-functions-example/SKILL.md
skills/major-version-mode/SKILL.md
skills/migrate-ai-sdk-v6-to-v7/SKILL.md
skills/update-harness-dependencies/SKILL.md
skills/update-provider-models/SKILL.md
skills/capture-api-response-test-fixture/SKILL.md
skills/use-ai-sdk/SKILL.md
examples/ai-e2e-next/data/island-rescue/SKILL.md
examples/ai-functions/data/island-rescue/SKILL.md

Metadata

Files
0
Version
1d9b13b
Hash
77d8cd66
Indexed
2026-08-20 17:57

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-31 03:24
浙ICP备14020137号-1 $Carte des visiteurs$