ncc
Skill by openai
Guides developers on using @vercel/ncc, a CLI that compiles Node.js modules into a single file with all dependencies included. It suits serverless functions, CLI tools, and self-contained Node.js builds.
Install ncc
Built from the published package, never by AI.
git clone --depth 1 https://github.com/openai/plugins /tmp/plugins && mkdir -p ~/.claude/skills && cp -r /tmp/plugins/plugins/vercel/skills/ncc ~/.claude/skills/nccRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/openai/plugins /tmp/plugins && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/plugins/plugins/vercel/skills/ncc ~/.gemini/antigravity-cli/skills/nccAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill provides guidance on @vercel/ncc, a simple CLI for compiling a Node.js module into a single file together with all its dependencies. According to the source, ncc bundles an application and its node_modules into one output file. The skill covers the CLI flags, such as minify, source maps, watch mode, and externals, along with package.json integration and TypeScript support.
The source says ncc compiles TypeScript directly using the project's tsconfig.json and copies non-JS assets such as .json, .node, and binary files to the output directory. It lists use cases including serverless functions, CLI tools, Docker images, and GitHub Actions. It is aimed at developers who want a self-contained file for deployment or distribution.
Written from the project's SKILL.md and checked against it.
What it can do
- Single-file bundlingCompiles an app and its node_modules into one output file.
- TypeScript compilationCompiles .ts files directly using the project's tsconfig.json.
- ExternalsKeeps specified modules out of the bundle with the -e flag.
- Static asset copyingCopies non-JS files such as .json and .node files to the output directory.
- Watch modeRebuilds the bundle on changes with the -w flag.
- Source mapsGenerates .js.map files with the -s flag for debugging.
- MinificationMinifies the output with the -m flag.
What you need
- Node.js
- npm, pnpm, yarn, or bun to install the package
Try asking
- Bundle src/index.ts into a single minified file in dist/
- Set up a package.json build script that uses ncc with watch mode
- Mark sharp as an external module in my ncc build command
Good to know
- Configuration is done through CLI flags only, with no config file.
- Native .node modules often need to be marked as external.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: plugins/vercel/skills/ncc/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md4 KB -
agents/openai.yaml169 B
Alternatives to ncc
All alternatives →Runs the full Next.js deployment test suite for an internal vercel/next.js pull request. It validates the commit's preview package, then dispatches the test_e2e_deploy_release.yml workflow. Meant for maintainers who explicitly ask for the entire suite.
Instruments Python AI applications with DeepEval's native tracing so their execution appears span by span in Confident AI's Observatory. It is for developers building LLM apps, agents, RAG pipelines and chatbots.
Manages Azure Container Registry through the az acr Azure CLI command group. It covers registries, images, cloud builds, ACR Tasks, tokens, geo-replication and networking. Built for developers and operators who work with ACR in Azure.
Opens, runs, and shows apps on a temporary Crabbox machine, including native desktops and web previews. It is for OpenClaw users who want an app running and visible in their chat side panel.
Runs batch and HPC workloads on GKE using job queues and parallel processing. Aimed at teams running batch pipelines, HPC simulations, or ML training jobs on Google Kubernetes Engine.
Answers questions about GKE cluster and workload costs using BigQuery billing exports and live cluster metrics. Built for platform engineers and cloud teams who need to analyze and diagnose GKE spend.
Compare with deploy-release-test, deepeval-tracing or azure-container-registry-cli
ncc: common questions
Does ncc need a config file?
No. The source says ncc has no config file and is driven entirely by CLI flags.
How do I keep a native module out of the bundle?
Use the -e or --external flag, for example ncc build input.js -e sharp. The source says binary .node modules often need to be external.
Does ncc check TypeScript types?
Yes, by default. The -t or --transpile-only flag skips TypeScript type checking for faster builds.
How do I install ncc?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is ncc free?
The code is public, but no licence file was found, so check the repository before commercial use.
Is ncc safe to use?
It scores 87 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to ncc?
Similar skills: deploy-release-test, deepeval-tracing, azure-container-registry-cli, crabbox-apps.
