Guides publishing npm packages with correct exports map, dual ESM/CJS formats, types, and semver. Helps fix packages that fail to import.
A published package is an API, and most "it will not import" bug reports trace to a handful of package.json fields set wrong. Getting the exports map, types, and formats right is what separates a package that just works from a support burden.
exports map. The exports
field controls what consumers can import and in which format. Provide
conditional entries for import (ESM) and require (CJS), each
pointing to the right build, plus a types entry. A wrong or missing
exports map is the top reason a package cannot be imported (see
js-modules). Keep main/module for older tooling but let exports
be authoritative..d.ts files
and reference them via types (and per-condition types in the
exports map so ESM and CJS consumers each get correct types). A typed
library with mispointed declarations types as any for everyone (see
ts-api-types).files (or .npmignore) to include only
the build output and essentials: no source, tests, or configs bloating
the install. Run npm pack and inspect the tarball before publishing;
shipping node_modules or secrets is a real and recurring mistake (see
secrets-scanning).publint/arethetypeswrong to catch exports/types
mistakes before consumers do. A prepublishOnly script that builds and
tests prevents publishing a broken artifact.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Not loaded · from ai-skills-commands
Claude Code won't load this skill
It ships in ai-skills-commands at skills/, but Claude Code only loads skills/<name>/SKILL.md and folders listed under skills in plugin.json. Installing the plugin doesn't add it.
npx claudepluginhub amey-thakur/ai-skills --plugin ai-skills-commands1,000 skills in this plugin
/ab-test-designDesign product experiments with real hypotheses, honest sample-size math, guardrails, and peeking discipline. Use when validating a change by experiment or reviewing a test before believing its result./accessibility-reviewAudit a UI for real accessibility, keyboard-first, with concrete failures and fixes rather than checkbox compliance. Use when reviewing or building any user interface./accessibility-specialist-roleOperate as an accessibility specialist who audits against WCAG, trains teams to stop shipping the same defects, and owns the compliance sign-off. Use when a product needs to be usable with a keyboard, a screen reader, or magnification and someone must certify it before launch.Other plugins' skills for the same job