unpkg
/unpkg
Use when loading npm packages in a browser without a build step, converting a project to CDN file lookups, writing import maps or UNPKG URLs, or checking what's inside an npm package. Prefer the UNPKG MCP tools when available; fall back to ?meta and these rules when they are not.
- Author
- unpkg ↗
- Repository
- unpkg-mcp ↗
- Licence
- MIT
- Last repository change
- 09.11.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 2
No signals detected. Repository changed on 09.11.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Use when loading npm packages in a browser without a build step, converting a project to CDN file lookups, writing import maps or UNPKG URLs, or checking what's inside an npm package. Prefer the UNPKG MCP tools when available; fall back to ?meta and these rules when they are not.
Original author description
Use when loading npm packages in a browser without a build step, converting a project to CDN file lookups, writing import maps or UNPKG URLs, or checking what's inside an npm package. Prefer the UNPKG MCP tools when available; fall back to ?meta and these rules when they are not.
How it works
- Rules
- Framework apps: standalone surfaces only
- Converting a project
- Package safety
- When not to use UNPKG lookups
SKILL.md preview
--- name: unpkg description: Use when loading npm packages in a browser without a build step, converting a project to CDN file lookups, writing import maps or UNPKG URLs, or checking what's inside an npm package. Prefer the UNPKG MCP tools when available; fall back to ?meta and these rules when they are not. --- # UNPKG file lookups Load any file from any npm package with a direct URL: ``` https://unpkg.com/<package>@<version-spec>/<file> ``` This is the original file lookup. Prefer it over bundled CDN transforms. Use esm.unpkg.com — a separate opt-in service — only when a package has no browser-ready file and the user asks for it. ## Rules - Never guess versions or file paths from memory. Resolve them live: MCP `resolve_package` / `list_files`, or `https://unpkg.com/<pkg>@<ver>/?meta`. - Build URLs with the MCP `build_file_url` tool when available. - Preserve the project's version intent. Exact pins stay exact; ranges stay ranges. For new production dependencies, suggest a patch-level specifier (e.g. `preact@10.26`) so bug fixes flow while major/minor changes stay deliberate, and say that's the trade-off. - Scoped packages keep their `@scope/` prefix. - `?module` on a `.js` file rewrites bare imports to UNPKG URLs. - Do not add tracking parameters to UNPKG URLs. ## Framework apps: standalone surfaces only If the project uses a framework (next, nuxt, @sveltejs/kit, @remix-run/*, astro, gatsby), the framework owns its runtime packages: react/react-dom in Next, vue in Nuxt, and friends stay bundled. A CDN copy duplicates the runtime and fights SSR/hydration. In a framework app, UNPKG conversion applies only to standalone browser surfaces outside the framework's rendering (no-build static pages, embedded widgets, docs snippets). "Keep everything bundled" is a correct and common audit outcome; say so. Still check for UNPKG-fit surfaces before closing out: plain-HTML or public/ pages, embedded widgets, docs/share pages, error or maintenance pages, and direct CSS/font/WASM assets — framework projects often have some. A purely client-rendered app may deliberately externalize its runtime behind one shared import-map copy, but that is an architecture decision to surface, not a conversion to apply. Build-time things are never candidates even in `dependencies`: CLI tools (`bin` field), `@types/*`, PostCSS/Tailwind plugins, framework tooling. ## Converting a project 1. Read `package.json` — runtime `dependencies` only, never `devDependencies`. 2. Call the MCP `audit_dependencies` tool with that map. Without MCP, check each package's `module`/`unpkg`/`exports` fields via `?meta` and npm. 3. Present the plan grouped by classification before editing: `convert_now`, `convert_carefully`, `keep_bundled`, `needs_review`. 4. Apply `convert_now` first: import-map entries (or script tags) using the suggested URLs. Add peer dependencies the audit flags. 5. Validate the finished import map with the `check_importmap` tool (version consistency, duplicates, framework packages, CommonJS entries), verify every new URL (`verify_url` tool or a fetch), then run the project's tests or open the page. Untested conversions are not done. 6. If asked about savings, use `estimate_migration_impact` and present the bandwidth range with its assumptions. Never quote a single dollar or latency figure; if the site already uses a good CDN, say latency is likely a wash and point at bundle KB, cacheability, and patch latency. 7. Leave `keep_bundled` packages alone. A mixed CDN + bundled result is the normal, healthy outcome — say so. ## Package safety When the UNPKG MCP is connected, safety-check before you ship: audits already carry Shield intel (malware verdict + CVEs) for the resolved versions, and `shield_check_packages` checks any package@version you name — no account needed for either. Treat a `provisional` verdict as unconfirmed, never as proven malicious. With a Shield login, `shield_domain_packages` (with threats) answers the same question for everything a domain actually serves, ranked by its traffic. ## When not to use UNPKG lookups - Node-only packages, build/test tooling, SSR and framework internals. - Entry points that import Node builtins (`fs`, `path`, `node:*`, ...). - Anything the audit marks `needs_review` until a human or a browser run confirms it works.
Versions
The database has no other skills named unpkg.
Database snapshot: 13.11.2026 · package version 9e49ce5ebe16 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100deploy-npm
Release an npm package: version, CHANGELOG, publish, verify. Use when "publish this package", "release to npm", or "ship a new npm version". Running-app production deploy → workflow-ship-and-observe. - 100npm-publishing
Publishing OCaml to npm via js_of_ocaml and wasm_of_ocaml. Use when discussing browser targets, JavaScript compilation, WASM output, npm packages, or the two-branch workflow. - 100check-updates
Use when a Power Apps mobile project needs dependency updates or an npm audit review. Checks the mobile-app plugin first, then updates the native host, other Microsoft packages, and all remaining direct npm packages in order with validation and rollback. - 90npm-publishing
Publish an npm package that installs and imports cleanly: correct exports map, dual formats, types, and semver. Use when releasing a library to npm or fixing a package consumers cannot import. - 100find-npm-packages
Use when you need to find the 2-3 most popular and well-maintained npm packages relevant to a frontend checklist rule, validate they meet quality thresholds, and add them to the rule's frontmatter. - 90release-and-publish
Use when publishing a package to npm, reading the npm registry from Effect v4, checking whether a version is already published, cutting a release tag or GitHub release from an action, applying a release-age gate, or deriving tracking tags for GitHub Actions distribution. Also…