AI Slop Code Risk Monitor

npm/cli

SlopCodeMonitor badge for npm/cli Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

the package manager for JavaScript

1.1 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for npm/cli, a JavaScript project with 10,236 GitHub stars. SynthScan examined 198,379 lines of code across 729 source files, recording 152 pattern matches distributed across 8 syntactic categories. The legacy adjusted pattern signal is 1.1 (Low pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

1.1
Adjusted Signal
1.1
Raw Pattern Score
100%
Time Factor
2026-10-30
Last Push
10.2K
Stars
JavaScript
Language
198.4K
Lines of Code
729
Files
152
Pattern Hits
2026-10-31
Scan Date
0.00
HC Hit Rate

Risk Review · Payload v1

Use each vector to guide manual verification of the underlying findings.

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 4.6/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 130 finding(s).

Hallucinated Dependency & Supply Chain Risk 0.8/100 · LOW

Are imports declared and package/API names verified? 22 finding(s).

Agent Over-Engineering Ratio 0.1/100 · LOW

Are wrappers, guards, and repeated structures necessary? 4 finding(s).

PR Review Velocity Impact 5.3/100 · LOW

Which changes need focused human review? 152 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 1HIGH 0MEDIUM 27LOW 124

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 152 distinct pattern matches across 8 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Over-Commented Block91 hits · 91 pts
SeverityFileLineSnippetContext
LOWtest/lib/commands/ci.js501// Root cause: an optional peerDependency at an exact version causes buildIdealTree() to resolve a different version thaCOMMENT
LOWtest/lib/commands/install.js1181})COMMENT
LOWworkspaces/config/lib/definitions/definitions.js101 flatOptions[camel] = obj[key]COMMENT
LOWworkspaces/config/lib/definitions/definitions.js121// instead do `npm.config.set('foo', 'bar')` prior to passing theCOMMENT
LOWworkspaces/arborist/README.md61})COMMENT
LOWworkspaces/arborist/README.md81 // add: Array of package specifiers to add at the top level. Each ofCOMMENT
LOWworkspaces/arborist/README.md101 // preferDedupe: prefer to deduplicate packages if possible, rather thanCOMMENT
LOWworkspaces/arborist/test/place-dep.js401 t.equal(zy.location, y.location, 'y bundled under z is removed')COMMENT
LOWworkspaces/arborist/test/place-dep.js581 nodeLoc: 'node_modules/b/node_modules/c',COMMENT
LOWworkspaces/arborist/test/place-dep.js1021 })COMMENT
LOWworkspaces/arborist/test/place-dep.js1061 explicitRequest: true,COMMENT
LOWworkspaces/arborist/test/place-dep.js1121 // rootCOMMENT
LOWworkspaces/arborist/test/place-dep.js1441 // b@2 -> PEER(c@2)COMMENT
LOWworkspaces/arborist/test/place-dep.js1481 { pkg: { name: 'c', version: '1.0.0', peerDependencies: { d: '1' } } },COMMENT
LOWworkspaces/arborist/test/place-dep.js1541 // v@4 -> PEER(a@1||2)COMMENT
LOWworkspaces/arborist/test/place-dep.js1581 { pkg: { name: 'a', version: '1.0.0', peerDependencies: { b: '1' } } },COMMENT
LOWworkspaces/arborist/test/place-dep.js1661 peerSet: [COMMENT
LOWworkspaces/arborist/test/node.js1341 // y@2 -> x@1COMMENT
LOWworkspaces/arborist/test/can-place-dep.js481 ],COMMENT
LOWworkspaces/arborist/test/can-place-dep.js761 // b@1.0.1 -> PEER(c@1)COMMENT
LOWworkspaces/arborist/test/can-place-dep.js961 // dd@1.0.1 -> PEER(c@1)COMMENT
LOWworkspaces/arborist/test/can-place-dep.js1061 // root -> (a)COMMENT
LOWworkspaces/arborist/test/can-place-dep.js1121COMMENT
LOWworkspaces/arborist/test/can-place-dep.js1201 //COMMENT
LOWworkspaces/arborist/test/can-place-dep.js1241 // b@1 -> PEER(c@1)COMMENT
LOWworkspaces/arborist/test/can-place-dep.js1301 // a@2 -> PEER(b@2)COMMENT
LOWworkspaces/arborist/test/can-place-dep.js1341 { pkg: { name: 'c', version: '1.0.0', peerDependencies: { e: '1' } } },COMMENT
LOWworkspaces/arborist/test/can-place-dep.js1401 // partly overlapping peer sets that divergeCOMMENT
LOWworkspaces/arborist/lib/optional-set.js1// when an optional dep fails to install, we need to remove the branch of theCOMMENT
LOWworkspaces/arborist/lib/release-age-exclude.js1// Determine whether a package name is exempt from the `min-release-age` /COMMENT
LOWworkspaces/arborist/lib/signals.js1// copied from signal-exitCOMMENT
LOWworkspaces/arborist/lib/place-dep.js61 }COMMENT
LOWworkspaces/arborist/lib/place-dep.js101 this.checks.set(target, cpd)COMMENT
LOWworkspaces/arborist/lib/place-dep.js201 if (placementType === KEEP) {COMMENT
LOWworkspaces/arborist/lib/place-dep.js341COMMENT
LOWworkspaces/arborist/lib/place-dep.js361 // gather all peer edgesIn which are at this level, and will not beCOMMENT
LOWworkspaces/arborist/lib/unreviewed-scripts.js1const isScriptAllowed = require('./script-allowed.js')COMMENT
LOWworkspaces/arborist/lib/install-scripts.js1const { isNodeGypPackage } = require('@npmcli/node-gyp')COMMENT
LOWworkspaces/arborist/lib/install-scripts.js21// purpose:COMMENT
LOWworkspaces/arborist/lib/edge.js121 // There's some override. If the target node satisfies the overriding specCOMMENT
LOWworkspaces/arborist/lib/peer-entry-sets.js1// Given a node in a tree, return all of the peer dependency sets thatCOMMENT
LOWworkspaces/arborist/lib/peer-entry-sets.js41 for (const edge of peer.edgesOut.values()) {COMMENT
LOWworkspaces/arborist/lib/shrinkwrap.js1// a module that manages a lockfile (package-lock.json).COMMENT
LOWworkspaces/arborist/lib/shrinkwrap.js21const mismatch = (a, b) => a && b && a !== bCOMMENT
LOWworkspaces/arborist/lib/shrinkwrap.js761 // Symlinks were already handled above, so that leaves git.COMMENT
LOWworkspaces/arborist/lib/vuln.js1// An object representing a vulnerability either as the result of anCOMMENT
LOWworkspaces/arborist/lib/node.js1// inventory, path, realpath, root, and parentCOMMENT
LOWworkspaces/arborist/lib/node.js161 // since _location is just where the module ended up in the tree,COMMENT
LOWworkspaces/arborist/lib/node.js241 // its various deps, then we're going to _first_ create all theCOMMENT
LOWworkspaces/arborist/lib/node.js1261COMMENT
LOWworkspaces/arborist/lib/calc-dep-flags.js1// Dep flag (dev, peer, etc.) calculation requires default or reset flags.COMMENT
LOWworkspaces/arborist/lib/yarn-lock.js1// parse a yarn lock fileCOMMENT
LOWworkspaces/arborist/lib/yarn-lock.js221COMMENT
LOWworkspaces/arborist/lib/yarn-lock.js241 // | +-- z@2COMMENT
LOWworkspaces/arborist/lib/script-allowed.js1const { resolve, sep } = require('node:path')COMMENT
LOWworkspaces/arborist/lib/script-allowed.js21// attacker-controlled. A package can publish a tarball claiming anyCOMMENT
LOWworkspaces/arborist/lib/script-allowed.js221// Preferred source: the lockfile's resolved URL parsed viaCOMMENT
LOWworkspaces/arborist/lib/script-allowed.js401 return falseCOMMENT
LOWworkspaces/arborist/lib/can-place-dep.js1// Internal methods used by buildIdealTree.COMMENT
LOWworkspaces/arborist/lib/can-place-dep.js21// - if satisfying and preferDedupe? KEEPCOMMENT
31 more matches not shown…
Self-Referential Comments27 hits · 81 pts
SeverityFileLineSnippetContext
MEDIUM.github/workflows/release.yml1# This file is automatically added by @npmcli/template-oss. Do not edit.COMMENT
MEDIUM.github/workflows/create-node-pr.yml1# This file is automatically added by @npmcli/template-oss. Do not edit.COMMENT
MEDIUM.github/workflows/ci-libnpmteam.yml1# This file is automatically added by @npmcli/template-oss. Do not edit.COMMENT
MEDIUM.github/workflows/codeql-analysis.yml1# This file is automatically added by @npmcli/template-oss. Do not edit.COMMENT
MEDIUM.github/workflows/ci-npmcli-mock-registry.yml1# This file is automatically added by @npmcli/template-oss. Do not edit.COMMENT
MEDIUM.github/workflows/ci-release.yml1# This file is automatically added by @npmcli/template-oss. Do not edit.COMMENT
MEDIUM.github/workflows/ci-libnpmdiff.yml1# This file is automatically added by @npmcli/template-oss. Do not edit.COMMENT
MEDIUM.github/workflows/ci-libnpmorg.yml1# This file is automatically added by @npmcli/template-oss. Do not edit.COMMENT
MEDIUM.github/workflows/ci-npmcli-config.yml1# This file is automatically added by @npmcli/template-oss. Do not edit.COMMENT
MEDIUM.github/workflows/ci-npmcli-mock-globals.yml1# This file is automatically added by @npmcli/template-oss. Do not edit.COMMENT
MEDIUM.github/workflows/ci-npmcli-arborist.yml1# This file is automatically added by @npmcli/template-oss. Do not edit.COMMENT
MEDIUM.github/workflows/ci-npmcli-smoke-tests.yml1# This file is automatically added by @npmcli/template-oss. Do not edit.COMMENT
MEDIUM.github/workflows/ci-libnpmsearch.yml1# This file is automatically added by @npmcli/template-oss. Do not edit.COMMENT
MEDIUM.github/workflows/audit.yml1# This file is automatically added by @npmcli/template-oss. Do not edit.COMMENT
MEDIUM.github/workflows/ci-npmcli-docs.yml1# This file is automatically added by @npmcli/template-oss. Do not edit.COMMENT
MEDIUM.github/workflows/ci-libnpmpublish.yml1# This file is automatically added by @npmcli/template-oss. Do not edit.COMMENT
MEDIUM.github/workflows/ci-libnpmpack.yml1# This file is automatically added by @npmcli/template-oss. Do not edit.COMMENT
MEDIUM.github/workflows/pull-request.yml1# This file is automatically added by @npmcli/template-oss. Do not edit.COMMENT
MEDIUM.github/workflows/ci-libnpmexec.yml1# This file is automatically added by @npmcli/template-oss. Do not edit.COMMENT
MEDIUM.github/workflows/ci-libnpmversion.yml1# This file is automatically added by @npmcli/template-oss. Do not edit.COMMENT
MEDIUM.github/workflows/ci-libnpmfund.yml1# This file is automatically added by @npmcli/template-oss. Do not edit.COMMENT
MEDIUM.github/workflows/ci.yml1# This file is automatically added by @npmcli/template-oss. Do not edit.COMMENT
MEDIUM.github/workflows/node-integration.yml1# This file is automatically added by @npmcli/template-oss. Do not edit.COMMENT
MEDIUM.github/workflows/ci-libnpmaccess.yml1# This file is automatically added by @npmcli/template-oss. Do not edit.COMMENT
MEDIUM.github/workflows/release-integration.yml1# This file is automatically added by @npmcli/template-oss. Do not edit.COMMENT
MEDIUM.github/actions/install-latest-npm/action.yml1# This file is automatically added by @npmcli/template-oss. Do not edit.COMMENT
MEDIUM.github/actions/create-check/action.yml1# This file is automatically added by @npmcli/template-oss. Do not edit.COMMENT
Fake / Example Data21 hits · 21 pts
SeverityFileLineSnippetContext
LOWtest/schemas/cyclonedx/bom-1.5.schema.json439 "examples": ["Acme Inc"]CODE
LOWtest/schemas/cyclonedx/bom-1.5.schema.json445 "examples": ["Acme Inc"]CODE
LOWtest/schemas/cyclonedx/bom-1.5.schema.json494 "examples": ["Acme Inc"]CODE
LOWtest/lib/utils/queryable.js213 q.set('foo[lorem.ipsum]', 'LOREM IPSUM')CODE
LOWtest/lib/utils/queryable.js220 'lorem.ipsum': 'LOREM IPSUM',CODE
LOWtest/lib/utils/queryable.js232 'lorem.ipsum': 'LOREM IPSUM',CODE
LOWtest/lib/utils/queryable.js249 'lorem.ipsum': 'LOREM IPSUM',CODE
LOWtest/lib/utils/queryable.js271 'lorem.ipsum': 'LOREM IPSUM',CODE
LOWtest/lib/utils/queryable.js298 'lorem.ipsum': 'LOREM IPSUM',CODE
LOWtest/lib/utils/queryable.js326 'lorem.ipsum': 'LOREM IPSUM',CODE
LOWtest/lib/utils/queryable.js375 'lorem.ipsum': 'LOREM IPSUM',CODE
LOWtest/lib/commands/profile.js290 fullname: 'Lorem Ipsum',CODE
LOWtest/lib/commands/profile.js309 await profile.exec(['set', 'fullname', 'Lorem Ipsum'])CODE
LOWtest/lib/commands/profile.js310 t.equal(result(), 'Set fullname to Lorem Ipsum', 'should output set key success msg')CODE
LOWtest/lib/commands/profile.js323 await profile.exec(['set', 'fullname', 'Lorem Ipsum'])CODE
LOWtest/lib/commands/profile.js328 fullname: 'Lorem Ipsum',CODE
LOWtest/lib/commands/profile.js343 await profile.exec(['set', 'fullname', 'Lorem Ipsum'])CODE
LOWmock-registry/lib/provenance.js7 email: 'foo@bar.com',CODE
LOWdocs/lib/content/commands/npm-sbom.md45 "author": "John Doe",CODE
LOWworkspaces/libnpmpublish/test/publish.js478 email: 'foo@bar.com',CODE
LOWworkspaces/libnpmpublish/test/publish.js1030 email: 'foo@bar.com',CODE
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALlib/commands/search.js31 exclude: this.npm.flatOptions.search.exclude.split(/\s+/),CODE
Verbosity Indicators4 hits · 6 pts
SeverityFileLineSnippetContext
LOWworkspaces/arborist/test/arborist/reify.js4795 // Step 1: Install abbrev@1.0.4 in my-cool-packageCOMMENT
LOWworkspaces/arborist/test/arborist/reify.js4816 // Step 2: Install abbrev@1.1.1 in another-cool-packageCOMMENT
LOWworkspaces/arborist/test/arborist/reify.js4836 // Step 3: Install abbrev@1.0.4 in another-cool-packageCOMMENT
LOWworkspaces/arborist/lib/override-set.js233 // mean they conflict. We need to check if they have conflicting version requirementsCOMMENT
Structural Annotation Overuse3 hits · 4 pts
SeverityFileLineSnippetContext
LOWworkspaces/arborist/test/arborist/reify.js4795 // Step 1: Install abbrev@1.0.4 in my-cool-packageCOMMENT
LOWworkspaces/arborist/test/arborist/reify.js4816 // Step 2: Install abbrev@1.1.1 in another-cool-packageCOMMENT
LOWworkspaces/arborist/test/arborist/reify.js4836 // Step 3: Install abbrev@1.0.4 in another-cool-packageCOMMENT
Hyper-Verbose Identifiers4 hits · 4 pts
SeverityFileLineSnippetContext
LOWtest/lib/commands/audit.js909 async function manifestWithValidAttestations ({ registry }) {CODE
LOWtest/lib/commands/audit.js925 async function manifestWithMultipleValidAttestations ({ registry }) {CODE
LOWworkspaces/arborist/test/isolated-mode.js2574function withRequireChainRecursive (resolvedGraph, chain, initialDir) {CODE
LOWlib/utils/validate-lockfile.js49function validatePackageExtensions (virtualTree, idealTree) {CODE
AI Slop Vocabulary1 hit · 2 pts
SeverityFileLineSnippetContext
LOWworkspaces/arborist/test/yarn-lock.js58# Note: do not require a \\n at the end of the file, just add it if missingCOMMENT