npm Package Audit
ultrathink
Output path directive (canonical — overrides in-body references).
All file outputs from this skill MUST be written under .anthril/audits/.
Run mkdir -p .anthril/audits before the first Write call.
Primary artefact: .anthril/audits/npm-package-audit.md.
Do NOT write to the project root or to bare filenames at cwd.
Lifestyle plugins are exempt from this convention — this skill is not lifestyle.
Dependencies
External tools required at runtime:
node (>= 18) — runs package.json introspection one-liners
npm — executes npm run build, npm pack --dry-run, audit commands
jq — parses JSON in scripts under scripts/
git (optional) — used for repository metadata checks
Scripts under scripts/ assume a POSIX shell (bash). All run from the package root.
Before You Start
- Locate the package. Find
package.json in the target directory. If a path was not provided, look in the current working directory. If no package.json is found, ask the user for the package path.
- Run the build. Execute
npm run build (or the project's build command) so dist/ artefacts are available for inspection. If the build fails, report it as a Phase 4 critical finding but continue with remaining phases.
- Map the project structure. Run a directory listing excluding
node_modules/, .git/, and dist/ to understand the codebase layout.
User Context
$ARGUMENTS
Package state:
- Version: !
node -p "require('./package.json').version" 2>/dev/null || echo "No package.json found"
- Build output: !
ls dist/ 2>/dev/null | head -10 || echo "No dist/ directory"
Audit Phases
Execute every phase in order. For each phase, score using the rubric in reference.md and report findings with file paths and line numbers. Do not skip phases — mark as N/A if genuinely not applicable.
Phase 1: Package Discovery & Context
Objective: Identify the package, tech stack, and configuration.
- Read
package.json — extract: name, version, description, type, main, module, types, exports, files, bin, engines, scripts, publishConfig, repository, homepage, bugs, license, keywords, author
- Detect build tool: look for
tsup.config.ts, rollup.config.js, rollup.config.mjs, esbuild references in scripts, vite.config.ts
- Detect test framework:
vitest.config.ts, jest.config.js, jest.config.ts, .mocharc.yml, package.json jest config
- Detect CI/CD:
.github/workflows/, .gitlab-ci.yml, .circleci/config.yml
- Read
tsconfig.json if present
- Read
.npmrc, .npmignore if present
- Run
npm pack --dry-run 2>&1 to see what would be published
- Establish project structure with a directory listing
This phase is context-only — no score.
Phase 2: package.json Quality (15 points)
Objective: Verify all critical package.json fields are present, correct, and complete.
Refer to the field reference in ${CLAUDE_PLUGIN_ROOT}/skills/npm-package-audit/reference.md for validation rules.
Run the automated check:
bash "${CLAUDE_PLUGIN_ROOT}/skills/npm-package-audit/scripts/validate-package-json.sh" .
Check three tiers:
Required (fail if missing):
name — follows npm naming rules (lowercase, no spaces, valid scope)
version — valid semver
description — present and under 280 chars, not default npm init text
main or exports — at least one entry point defined
license — valid SPDX identifier
files — array set (not relying on .npmignore alone), includes dist/
Recommended (warning if missing):
types — points to .d.ts file
module — points to ESM entry
engines — specifies minimum Node version
repository, homepage, bugs — URLs present
keywords — 3+ relevant terms
author — name and optionally email/url
Optional (suggestion if missing):
publishConfig — access and registry set for scoped packages
bin — entries point to files with proper shebangs
sideEffects — set for library packages to enable tree-shaking
funding — for open-source packages
Phase 3: Exports Map & Entry Points (15 points)
Objective: Verify the exports map is correct and all entry points resolve.
Run the automated check:
bash "${CLAUDE_PLUGIN_ROOT}/skills/npm-package-audit/scripts/check-exports.sh" .
- If
"exports" is defined, for every path entry verify:
"types" condition comes first (TypeScript resolution order)
"import" points to .js or .mjs file
"require" points to .cjs file
- All referenced files exist in the build output
- If subpath exports exist (e.g.,
"./hooks/runner"), verify each resolves to a real file
- Check
"main", "module", "types" are consistent with "exports" (no conflicts)
- Verify
"type": "module" is set if ESM is the primary format
- Check for
"sideEffects" field if the package is a library
Phase 4: Build Configuration (15 points)
Objective: Verify build tooling produces correct dual CJS/ESM output with types and source maps.
- Build tool config — read tsup/rollup/esbuild config and verify:
- Both
esm and cjs formats configured
dts (type declaration generation) enabled
sourcemap enabled
target matches engines.node
clean set to avoid stale artefacts
- TypeScript config — verify
tsconfig.json:
"declaration": true (if types not handled by build tool)
"strict": true
"moduleResolution" matches the package's module system
- Build output — run
npm run build then verify:
- ESM entry exists (
.js or .mjs)
- CJS entry exists (
.cjs)
- Type declarations exist (
.d.ts)
- Source maps exist (
.js.map, .cjs.map)
- No unexpected files in dist/
- Build script hygiene — flag overly long shell one-liners in
"build" script
Phase 5: Type Declarations (10 points)
Objective: Verify type declarations are correct, complete, and usable.
- Run
npx tsc --noEmit — zero errors required
- Verify every exported function/class/type from the entry point has a corresponding declaration in the
.d.ts output
- Check for
any types in the public API surface: grep ": any" dist/*.d.ts
- Verify declaration maps (
.d.ts.map) exist if declarationMap: true in tsconfig
- Verify subpath export declarations resolve (e.g.,
dist/hooks/runner.d.ts exists if "./hooks/runner" is exported)
- Check for excessive
// @ts-ignore or // @ts-expect-error in source
Phase 6: Testing & Coverage (10 points)
Objective: Verify tests exist, pass, and meet coverage thresholds.
- Test framework configured (vitest, jest, mocha, etc.)
- Run
npm test — all tests must pass
- Run coverage:
npm run test:coverage or equivalent
- Check coverage thresholds (recommended minimums):
- Lines: >= 80%
- Branches: >= 70%
- Functions: >= 75%
- Statements: >= 80%
- Coverage thresholds enforced in config (not just CLI flags)
- Critical paths have test coverage: main exports, CLI entry point, error handling
- Coverage excludes configured:
node_modules/, dist/, tests/, config files
- Test commands present in
package.json scripts
Phase 7: Cross-OS Compatibility (10 points)
Objective: Verify the package works on Linux, macOS, and Windows.
Run the automated check:
bash "${CLAUDE_PLUGIN_ROOT}/skills/npm-package-audit/scripts/cross-os-lint.sh" .
- Path separators — grep for hardcoded
/ or \\ in path construction; must use path.join(), path.resolve(), or path.sep
- Line endings —
.gitattributes exists with * text=auto or similar
- Shell scripts — any
.sh files have #!/usr/bin/env bash shebang, not #!/bin/bash
- Bin shebangs —
bin entries use #!/usr/bin/env node
- Environment variables —
process.env access accounts for cross-OS differences (HOME vs USERPROFILE)
- File system case sensitivity — no two files in same directory differ only by case
- npm scripts — use cross-platform syntax:
&& not ; for chaining
- Avoid
rm -rf (use rimraf or del-cli)
- Use
cross-env for env var setting if needed
- CI matrix — tests run on ubuntu, macos, and windows
- Node version matrix — CI tests on minimum
engines.node version and latest LTS
Phase 8: Security & Supply Chain (10 points)
Objective: Identify security vulnerabilities and supply chain risks.
- Run
npm audit 2>&1 — report critical/high/moderate/low counts
.npmrc does not contain tokens or credentials
npm pack --dry-run output reviewed — no unexpected files published:
.env, .env.* must be excluded
tests/, coverage/, .github/ excluded
- Source files excluded if only distributing compiled output
- No
postinstall scripts that download binaries or run arbitrary code
- Dependencies pinned or range-locked appropriately (no
"*" ranges)
package-lock.json is committed for reproducible installs
- No dependency confusion risk: scoped package name,
publishConfig.registry set
- If using GitHub Actions for publish:
NPM_TOKEN in secrets, --provenance flag used
Phase 9: Publishing Configuration & CI/CD (10 points)
Objective: Verify the publish pipeline is correct and automated.
"publishConfig.access" set ("public" for scoped packages)
"prepublishOnly" or "prepack" script runs build + test
- GitHub Actions publish workflow (if present):
- Triggers on correct event (tag push, release, or merge to main)
- Runs install, build, test before publish
- Uses
npm publish --provenance for supply chain security
- Creates git tag and GitHub Release
- Handles prerelease dist-tags correctly
- Package follows semver; prerelease tags (alpha, beta, rc) handled
- CHANGELOG exists and follows Keep a Changelog or Conventional Changelog format
- README exists with: description, install instructions, basic usage, license
- LICENSE file exists and matches
"license" field
Phase 10: Documentation & Conventions (5 points)
Objective: Verify community conventions and documentation quality.
- README.md — has title, install instructions, usage example (code block), API docs or link, license section, badges (npm version, CI, coverage, license)
- CONTRIBUTING.md — setup, development, and PR instructions
- LICENSE — matches package.json, recognised SPDX identifier
- CHANGELOG.md — follows semver, latest version documented
- .editorconfig — present for consistent formatting
- Husky + commitlint (if configured) — hooks installed, config valid
- Prettier + ESLint — both configured,
format:check and lint scripts exist
- SECURITY.md — vulnerability reporting instructions (recommended for public packages)
Scoring
Calculate scores per phase using the rubric in ${CLAUDE_PLUGIN_ROOT}/skills/npm-package-audit/reference.md.
Verdict thresholds:
- 90-100: PASS — production-ready
- 70-89: PASS WITH WARNINGS — publishable but improvements needed
- 50-69: CONDITIONAL — significant issues to address before publishing
- 0-49: FAIL — not ready for publishing
Reporting
After all phases, produce a structured report. Use the template from ${CLAUDE_PLUGIN_ROOT}/skills/npm-package-audit/templates/output-template.md.
The report must include:
- A clear PASS / FAIL / PASS WITH WARNINGS verdict per phase
- Every finding must include a file path and line number (or config field name)
- Severity ratings: CRITICAL (must fix before publish), WARNING (should fix), SUGGESTION (nice to have)
- A prioritised action list at the end
- Mermaid charts for visual summary
Important Principles
- Be thorough. Read actual config files and run actual commands. Don't guess from file names.
- Be specific. Every finding needs a file path + line number or config field reference. "Consider improving exports" is useless — say exactly what's wrong and where.
- Don't fix during the audit. This is a report. List findings and let the user decide.
- Run commands when possible.
npm pack --dry-run, npm audit, tsc --noEmit, npm test — real output beats eyeballing.
- Test the consumer experience. Think about what happens when someone
npm installs the package — do types resolve? Do imports work? Does the CLI start?
Edge Cases
- No build step — package publishes source directly (e.g., pure JS). Skip Phase 4 build verification but still check entry points.
- Monorepo package — the package may be nested inside a workspace. Adjust paths to find the correct package.json and build output.
- CJS-only package — no ESM output. Flag as a warning but don't fail — some packages legitimately target CJS only.
- Private package —
"private": true in package.json. Skip publishing checks (Phase 9) but still audit quality.
- CLI-only package — no library exports, only
bin. Adjust Phase 3 to focus on bin entry rather than exports map.
- Pre-1.0 package — semver allows breaking changes in 0.x. Note this but don't penalise.
1---
2name: npm-package-audit
3description: Audit npm packages for publishing quality, cross-OS compatibility, type declarations, build config, security, and CI/CD — produces a scored report with actionable fixes
4argument-hint: [package-path-or-name]
5allowed-tools: Read, Grep, Glob, Write, Edit, Bash(npm:*), Bash(node:*), Bash(jq:*), Bash(git:*), Bash(./scripts/*:*),
6effort: high
7paths: "**/package.json"
8metadata:
9 source: https://skillmd.com/skills/aibot88/npm-package-audit
10---
11
12# npm Package Audit
13
14ultrathink
15
16<!-- anthril-output-directive -->
17> **Output path directive (canonical — overrides in-body references).**
18> All file outputs from this skill MUST be written under `.anthril/audits/`.
19> Run `mkdir -p .anthril/audits` before the first `Write` call.
20> Primary artefact: `.anthril/audits/npm-package-audit.md`.
21> Do NOT write to the project root or to bare filenames at cwd.
22> Lifestyle plugins are exempt from this convention — this skill is not lifestyle.
23
24## Dependencies
25
26External tools required at runtime:
27
28- **`node`** (>= 18) — runs `package.json` introspection one-liners
29- **`npm`** — executes `npm run build`, `npm pack --dry-run`, audit commands
30- **`jq`** — parses JSON in scripts under `scripts/`
31- **`git`** (optional) — used for repository metadata checks
32
33Scripts under `scripts/` assume a POSIX shell (`bash`). All run from the package root.
34
35## Before You Start
36
371. **Locate the package.** Find `package.json` in the target directory. If a path was not provided, look in the current working directory. If no `package.json` is found, ask the user for the package path.
382. **Run the build.** Execute `npm run build` (or the project's build command) so `dist/` artefacts are available for inspection. If the build fails, report it as a Phase 4 critical finding but continue with remaining phases.
393. **Map the project structure.** Run a directory listing excluding `node_modules/`, `.git/`, and `dist/` to understand the codebase layout.
40
41## User Context
42
43$ARGUMENTS
44
45Package state:
46- Version: !`node -p "require('./package.json').version" 2>/dev/null || echo "No package.json found"`
47- Build output: !`ls dist/ 2>/dev/null | head -10 || echo "No dist/ directory"`
48
49---
50
51## Audit Phases
52
53Execute every phase in order. For each phase, score using the rubric in `reference.md` and report findings with file paths and line numbers. Do not skip phases — mark as N/A if genuinely not applicable.
54
55---
56
57### Phase 1: Package Discovery & Context
58
59**Objective:** Identify the package, tech stack, and configuration.
60
611. Read `package.json` — extract: name, version, description, type, main, module, types, exports, files, bin, engines, scripts, publishConfig, repository, homepage, bugs, license, keywords, author
622. Detect build tool: look for `tsup.config.ts`, `rollup.config.js`, `rollup.config.mjs`, `esbuild` references in scripts, `vite.config.ts`
633. Detect test framework: `vitest.config.ts`, `jest.config.js`, `jest.config.ts`, `.mocharc.yml`, `package.json` jest config
644. Detect CI/CD: `.github/workflows/`, `.gitlab-ci.yml`, `.circleci/config.yml`
655. Read `tsconfig.json` if present
666. Read `.npmrc`, `.npmignore` if present
677. Run `npm pack --dry-run 2>&1` to see what would be published
688. Establish project structure with a directory listing
69
70This phase is context-only — no score.
71
72---
73
74### Phase 2: package.json Quality (15 points)
75
76**Objective:** Verify all critical package.json fields are present, correct, and complete.
77
78Refer to the field reference in `${CLAUDE_PLUGIN_ROOT}/skills/npm-package-audit/reference.md` for validation rules.
79
80Run the automated check:
81```bash
82bash "${CLAUDE_PLUGIN_ROOT}/skills/npm-package-audit/scripts/validate-package-json.sh" .
83```
84
85Check three tiers:
86
87**Required** (fail if missing):
88- `name` — follows npm naming rules (lowercase, no spaces, valid scope)
89- `version` — valid semver
90- `description` — present and under 280 chars, not default npm init text
91- `main` or `exports` — at least one entry point defined
92- `license` — valid SPDX identifier
93- `files` — array set (not relying on .npmignore alone), includes dist/
94
95**Recommended** (warning if missing):
96- `types` — points to `.d.ts` file
97- `module` — points to ESM entry
98- `engines` — specifies minimum Node version
99- `repository`, `homepage`, `bugs` — URLs present
100- `keywords` — 3+ relevant terms
101- `author` — name and optionally email/url
102
103**Optional** (suggestion if missing):
104- `publishConfig` — access and registry set for scoped packages
105- `bin` — entries point to files with proper shebangs
106- `sideEffects` — set for library packages to enable tree-shaking
107- `funding` — for open-source packages
108
109---
110
111### Phase 3: Exports Map & Entry Points (15 points)
112
113**Objective:** Verify the exports map is correct and all entry points resolve.
114
115Run the automated check:
116```bash
117bash "${CLAUDE_PLUGIN_ROOT}/skills/npm-package-audit/scripts/check-exports.sh" .
118```
119
1201. If `"exports"` is defined, for every path entry verify:
121 - `"types"` condition comes **first** (TypeScript resolution order)
122 - `"import"` points to `.js` or `.mjs` file
123 - `"require"` points to `.cjs` file
124 - All referenced files exist in the build output
1252. If subpath exports exist (e.g., `"./hooks/runner"`), verify each resolves to a real file
1263. Check `"main"`, `"module"`, `"types"` are consistent with `"exports"` (no conflicts)
1274. Verify `"type": "module"` is set if ESM is the primary format
1285. Check for `"sideEffects"` field if the package is a library
129
130---
131
132### Phase 4: Build Configuration (15 points)
133
134**Objective:** Verify build tooling produces correct dual CJS/ESM output with types and source maps.
135
1361. **Build tool config** — read tsup/rollup/esbuild config and verify:
137 - Both `esm` and `cjs` formats configured
138 - `dts` (type declaration generation) enabled
139 - `sourcemap` enabled
140 - `target` matches `engines.node`
141 - `clean` set to avoid stale artefacts
1422. **TypeScript config** — verify `tsconfig.json`:
143 - `"declaration": true` (if types not handled by build tool)
144 - `"strict": true`
145 - `"moduleResolution"` matches the package's module system
1463. **Build output** — run `npm run build` then verify:
147 - ESM entry exists (`.js` or `.mjs`)
148 - CJS entry exists (`.cjs`)
149 - Type declarations exist (`.d.ts`)
150 - Source maps exist (`.js.map`, `.cjs.map`)
151 - No unexpected files in dist/
1524. **Build script hygiene** — flag overly long shell one-liners in `"build"` script
153
154---
155
156### Phase 5: Type Declarations (10 points)
157
158**Objective:** Verify type declarations are correct, complete, and usable.
159
1601. Run `npx tsc --noEmit` — zero errors required
1612. Verify every exported function/class/type from the entry point has a corresponding declaration in the `.d.ts` output
1623. Check for `any` types in the public API surface: `grep ": any" dist/*.d.ts`
1634. Verify declaration maps (`.d.ts.map`) exist if `declarationMap: true` in tsconfig
1645. Verify subpath export declarations resolve (e.g., `dist/hooks/runner.d.ts` exists if `"./hooks/runner"` is exported)
1656. Check for excessive `// @ts-ignore` or `// @ts-expect-error` in source
166
167---
168
169### Phase 6: Testing & Coverage (10 points)
170
171**Objective:** Verify tests exist, pass, and meet coverage thresholds.
172
1731. Test framework configured (vitest, jest, mocha, etc.)
1742. Run `npm test` — all tests must pass
1753. Run coverage: `npm run test:coverage` or equivalent
1764. Check coverage thresholds (recommended minimums):
177 - Lines: >= 80%
178 - Branches: >= 70%
179 - Functions: >= 75%
180 - Statements: >= 80%
1815. Coverage thresholds enforced in config (not just CLI flags)
1826. Critical paths have test coverage: main exports, CLI entry point, error handling
1837. Coverage excludes configured: `node_modules/`, `dist/`, `tests/`, config files
1848. Test commands present in `package.json` scripts
185
186---
187
188### Phase 7: Cross-OS Compatibility (10 points)
189
190**Objective:** Verify the package works on Linux, macOS, and Windows.
191
192Run the automated check:
193```bash
194bash "${CLAUDE_PLUGIN_ROOT}/skills/npm-package-audit/scripts/cross-os-lint.sh" .
195```
196
1971. **Path separators** — grep for hardcoded `/` or `\\` in path construction; must use `path.join()`, `path.resolve()`, or `path.sep`
1982. **Line endings** — `.gitattributes` exists with `* text=auto` or similar
1993. **Shell scripts** — any `.sh` files have `#!/usr/bin/env bash` shebang, not `#!/bin/bash`
2004. **Bin shebangs** — `bin` entries use `#!/usr/bin/env node`
2015. **Environment variables** — `process.env` access accounts for cross-OS differences (`HOME` vs `USERPROFILE`)
2026. **File system case sensitivity** — no two files in same directory differ only by case
2037. **npm scripts** — use cross-platform syntax:
204 - `&&` not `;` for chaining
205 - Avoid `rm -rf` (use `rimraf` or `del-cli`)
206 - Use `cross-env` for env var setting if needed
2078. **CI matrix** — tests run on ubuntu, macos, and windows
2089. **Node version matrix** — CI tests on minimum `engines.node` version and latest LTS
209
210---
211
212### Phase 8: Security & Supply Chain (10 points)
213
214**Objective:** Identify security vulnerabilities and supply chain risks.
215
2161. Run `npm audit 2>&1` — report critical/high/moderate/low counts
2172. `.npmrc` does not contain tokens or credentials
2183. `npm pack --dry-run` output reviewed — no unexpected files published:
219 - `.env`, `.env.*` must be excluded
220 - `tests/`, `coverage/`, `.github/` excluded
221 - Source files excluded if only distributing compiled output
2224. No `postinstall` scripts that download binaries or run arbitrary code
2235. Dependencies pinned or range-locked appropriately (no `"*"` ranges)
2246. `package-lock.json` is committed for reproducible installs
2257. No dependency confusion risk: scoped package name, `publishConfig.registry` set
2268. If using GitHub Actions for publish: `NPM_TOKEN` in secrets, `--provenance` flag used
227
228---
229
230### Phase 9: Publishing Configuration & CI/CD (10 points)
231
232**Objective:** Verify the publish pipeline is correct and automated.
233
2341. `"publishConfig.access"` set (`"public"` for scoped packages)
2352. `"prepublishOnly"` or `"prepack"` script runs build + test
2363. GitHub Actions publish workflow (if present):
237 - Triggers on correct event (tag push, release, or merge to main)
238 - Runs install, build, test before publish
239 - Uses `npm publish --provenance` for supply chain security
240 - Creates git tag and GitHub Release
241 - Handles prerelease dist-tags correctly
2424. Package follows semver; prerelease tags (alpha, beta, rc) handled
2435. CHANGELOG exists and follows Keep a Changelog or Conventional Changelog format
2446. README exists with: description, install instructions, basic usage, license
2457. LICENSE file exists and matches `"license"` field
246
247---
248
249### Phase 10: Documentation & Conventions (5 points)
250
251**Objective:** Verify community conventions and documentation quality.
252
2531. **README.md** — has title, install instructions, usage example (code block), API docs or link, license section, badges (npm version, CI, coverage, license)
2542. **CONTRIBUTING.md** — setup, development, and PR instructions
2553. **LICENSE** — matches package.json, recognised SPDX identifier
2564. **CHANGELOG.md** — follows semver, latest version documented
2575. **.editorconfig** — present for consistent formatting
2586. **Husky + commitlint** (if configured) — hooks installed, config valid
2597. **Prettier + ESLint** — both configured, `format:check` and `lint` scripts exist
2608. **SECURITY.md** — vulnerability reporting instructions (recommended for public packages)
261
262---
263
264## Scoring
265
266Calculate scores per phase using the rubric in `${CLAUDE_PLUGIN_ROOT}/skills/npm-package-audit/reference.md`.
267
268**Verdict thresholds:**
269- **90-100**: PASS — production-ready
270- **70-89**: PASS WITH WARNINGS — publishable but improvements needed
271- **50-69**: CONDITIONAL — significant issues to address before publishing
272- **0-49**: FAIL — not ready for publishing
273
274---
275
276## Reporting
277
278After all phases, produce a structured report. Use the template from `${CLAUDE_PLUGIN_ROOT}/skills/npm-package-audit/templates/output-template.md`.
279
280The report must include:
281- A clear PASS / FAIL / PASS WITH WARNINGS verdict per phase
282- Every finding must include a **file path and line number** (or config field name)
283- Severity ratings: **CRITICAL** (must fix before publish), **WARNING** (should fix), **SUGGESTION** (nice to have)
284- A prioritised action list at the end
285- Mermaid charts for visual summary
286
287---
288
289## Important Principles
290
291- **Be thorough.** Read actual config files and run actual commands. Don't guess from file names.
292- **Be specific.** Every finding needs a file path + line number or config field reference. "Consider improving exports" is useless — say exactly what's wrong and where.
293- **Don't fix during the audit.** This is a report. List findings and let the user decide.
294- **Run commands when possible.** `npm pack --dry-run`, `npm audit`, `tsc --noEmit`, `npm test` — real output beats eyeballing.
295- **Test the consumer experience.** Think about what happens when someone `npm install`s the package — do types resolve? Do imports work? Does the CLI start?
296
297## Edge Cases
298
2991. **No build step** — package publishes source directly (e.g., pure JS). Skip Phase 4 build verification but still check entry points.
3002. **Monorepo package** — the package may be nested inside a workspace. Adjust paths to find the correct package.json and build output.
3013. **CJS-only package** — no ESM output. Flag as a warning but don't fail — some packages legitimately target CJS only.
3024. **Private package** — `"private": true` in package.json. Skip publishing checks (Phase 9) but still audit quality.
3035. **CLI-only package** — no library exports, only `bin`. Adjust Phase 3 to focus on bin entry rather than exports map.
3046. **Pre-1.0 package** — semver allows breaking changes in 0.x. Note this but don't penalise.