---
title: "pnpm dependency reduction: review, setup & limitations · Undominated.ai"
canonical: https://undominated.ai/skills/grafana-audit-and-reduce-dependencies/
description: "Pins Grafana's pnpm reduction skill, which runs a read-only check first, stops off pnpm, and requires approval before adding a dependency."
---

# pnpm dependency reduction: review, setup & limitations · Undominated.ai

> Pins Grafana's pnpm reduction skill, which runs a read-only check first, stops off pnpm, and requires approval before adding a dependency.

[← Explore all skills](/skills/)

DEPENDENCY REDUCTION / Grafana

# pnpm dependency reduction

Pins Grafana's pnpm reduction skill, which runs a read-only check first, stops off pnpm, and requires approval before adding a dependency.

 [See setup guidance ↓](#setup)[Original source ↗](https://github.com/grafana/skills/tree/1ccacf29049fde66637fe01ab93a83a772da323b/skills/grafana-plugins/audit-and-reduce-dependencies)

SOURCE REVIEW

 Reviewed 2026-10-15
 Evidence 4 linked sources
 Publisher Grafana
 Licence [Apache-2.0 ↗](https://github.com/grafana/skills/blob/1ccacf29049fde66637fe01ab93a83a772da323b/LICENSE)
 Revision 1ccacf29049f
 [Read what was—and wasn’t—checked ↓](#review)

“Reduces JavaScript dependency footprint with pnpm while preserving lockfile, workspace layout, and dependency range style. …”

 [Grafana · upstream description ↗](https://github.com/grafana/skills/blob/1ccacf29049fde66637fe01ab93a83a772da323b/skills/grafana-plugins/audit-and-reduce-dependencies/SKILL.md) Our analysis follows below.

01 / THE REASONING

## Why this made the selection.

 - No selected skills record uses this source path.
- The file runs check-npm before manifest edits, stops when the repo is not on pnpm, and refuses new direct dependencies without explicit approval.

### A good fit for

 - Reducing a pnpm lockfile only after the read-only supply-chain check and only with approval for any new dependency
- Separate shared transitive packages from the exclusive footprint of a proposed dependency removal.

### Weigh up before choosing

 - This review did not execute the resource.
- claude plugin install grafana-plugins@grafana-skills installs a plugin group, not this file. This file is skills/grafana-plugins/audit-and-reduce-dependencies/SKILL.md.
- The root README also shows npx skills add grafana/skills as a repository install. The only single-skill example there is npx skills add grafana/skills --skill frontend-session-rca, which is a different skill.
- The README says Codex discovers skills from .agents-plugin/marketplace.json. That manifest was not fetched, and this review did not confirm which files it selects.
- No plugin README sits above this file in the pinned tree. skills/grafana-k6, skills/grafana-lgtm, and skills/grafana-plugins have no README.md.
- A failing check-npm result is reported and must not be used to weaken age gates or script policy. The file still allows later cleanup that does not weaken those settings.
- Grafana-scoped packages are exempt from this file's freshness stop. ignore-scripts still applies. This review did not query the npm registry.
- The file allows writing scripts to verify dependency accounts, and closure ranking temporarily removes one dependency before restoring the manifest and lockfile. This review did not write or run those steps.
- The e18e example is a dry-run. Swaps still wait for user approval. The e18e docs page was not opened.
- The sibling check-npm skill was reviewed as its own file. This review did not run pnpm.

02 / THE REVIEW RECORD

## What we actually inspected.

Source review has boundaries. A clear record is more useful than a “safe” badge.

### Material inspected

 - skills/grafana-plugins/audit-and-reduce-dependencies/SKILL.md
- README.md
- LICENSE

### Our findings

 - check-npm is required before mutating manifests or lockfiles, and a failure must not weaken workspace, npmrc, CI, or Renovate age gates.
- If the user asked only for hardening, the skill stops after check-npm unless they also want cleanup.
- A repo that is not on pnpm is a stop, and the skill says not to migrate package managers or delete the lockfile as part of cleanup.
- New direct dependencies, including swaps, need explicit user approval.
- A named version published inside the file's freshness window is a stop unless the user writes an override. Install, add, and remove use ignore-scripts unless the user writes allow scripts in the same message.
- The e18e migration command shown is a dry-run, and a replacement still waits for approval.
- The dependency audit distinguishes total transitive closure from the exclusive packages that would disappear after a direct dependency is removed.

### Not established by this review

 - The resource was not executed and its tools were not called.
- pnpm install, pnpm add, pnpm remove, and pnpm dlx were not run.
- No package.json or lockfile was edited.
- The npm registry was not queried and no freshness age was computed.
- Not executed: it was not installed or run.

The review applies to the material and revision named here. A newer upstream release can change its behavior.

03 / PUT IT TO WORK

## Add a skill to your workflow.

[Upstream setup instructions ↗](https://github.com/grafana/skills/blob/1ccacf29049fde66637fe01ab93a83a772da323b/README.md)

DOCUMENTED COMMAND

 claude plugin install grafana-plugins@grafana-skills Copy command ↗

Copying does not execute this command. It may retrieve a newer version than the reviewed source.

 - The root README Claude Code section shows claude plugin marketplace add grafana/skills and then claude plugin install grafana-plugins@grafana-skills.
- That command installs the grafana-plugins plugin group. It does not install this file alone.
- The same README shows npx skills add grafana/skills for the repository. Its single-skill flag is demonstrated only for frontend-session-rca.
- This review did not run either install.

### Before you start

 - Claude Code if the plugin command is used
- pnpm only if the skill's cleanup steps are followed, which this review did not run

### Compatibility

Claude Code · Cursor · Codex · Agent Skills

### Implementation

shell

### Local skill text plus optional pnpm workspace access

 - Read the skill
- Install the grafana-plugins plugin group only if the operator runs the documented command
- Change a lockfile only if the operator runs pnpm after the gates in the skill, which this review did not do

### Cost model

Apache-2.0; no install or pnpm command was run

04 / FOLLOW THE EVIDENCE

## The source trail.

Our notes are separate from the original resource. Check upstream before adopting a new version.

 - [audit-and-reduce-dependencies SKILL.md ↗](https://github.com/grafana/skills/blob/1ccacf29049fde66637fe01ab93a83a772da323b/skills/grafana-plugins/audit-and-reduce-dependencies/SKILL.md) Checked 2026-10-14 https://github.com/grafana/skills/blob/1ccacf29049fde66637fe01ab93a83a772da323b/skills/grafana-plugins/audit-and-reduce-dependencies/SKILL.md Supports: check-npm before mutation, pnpm stop, approval for new dependencies, and dry-run replacement
- [Repository README ↗](https://github.com/grafana/skills/blob/1ccacf29049fde66637fe01ab93a83a772da323b/README.md) Checked 2026-10-14 https://github.com/grafana/skills/blob/1ccacf29049fde66637fe01ab93a83a772da323b/README.md Supports: Apache License 2.0 statement and plugin-group install line
- [Repository LICENSE ↗](https://github.com/grafana/skills/blob/1ccacf29049fde66637fe01ab93a83a772da323b/LICENSE) Checked 2026-10-14 https://github.com/grafana/skills/blob/1ccacf29049fde66637fe01ab93a83a772da323b/LICENSE Supports: Apache License 2.0
- [Pinned continuation review C2-W01 ↗](https://raw.githubusercontent.com/grafana/skills/1ccacf29049fde66637fe01ab93a83a772da323b/skills/grafana-plugins/audit-and-reduce-dependencies/SKILL.md) Checked 2026-10-15 https://raw.githubusercontent.com/grafana/skills/1ccacf29049fde66637fe01ab93a83a772da323b/skills/grafana-plugins/audit-and-reduce-dependencies/SKILL.md Supports: review.findings, bestFor, upstreamDescription

KEEP COMPARING

## Other approaches to consider.

Related by category or shared topics. These are alternatives to inspect, not a measured quality order.

 [### npm supply-chain audit ↗ Pins Grafana's package-manager audit, which is read-only, stops when package.json is missing, and stops again when every check passes.](/skills/grafana-check-npm/)[### AKS known issues ↗ Pins Microsoft's AKS known-issue skill, which refuses a match unless every catalog qualifier is present and requires approval before any mutation.](/skills/microsoft-aks-known-issues/)[### Deno ↗ Deno's own skill for Deno 2.9+ projects that keep package.json, commit deno.lock, and do not run npm lifecycle scripts unless they are approved.](/skills/denoland-deno/)

 [AI Tools ↗](/tools/)[Skills ↗](/skills/)[Agents ↗](/agents/)[MCP Servers ↗](/mcp-servers/)[Workflows ↗](/workflows/)

## Continue your investigation

 - [Choose a toolkit](/tools/)
- [Inspect execution hosts](/agents/)
- [Check tool access](/mcp-servers/)
- [Check project dependencies](/check-repo/)
