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.
“Reduces JavaScript dependency footprint with pnpm while preserving lockfile, workspace layout, and dependency range style. …”
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.
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.
DOCUMENTED COMMAND
claude plugin install grafana-plugins@grafana-skills 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
04 / FOLLOW THE EVIDENCE
The source trail.
Our notes are separate from the original resource.
Check upstream before adopting a new version.
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 ↗Checked
https://github.com/grafana/skills/blob/1ccacf29049fde66637fe01ab93a83a772da323b/README.md
Supports: Apache License 2.0 statement and plugin-group install line
- Repository LICENSE ↗Checked
https://github.com/grafana/skills/blob/1ccacf29049fde66637fe01ab93a83a772da323b/LICENSE
Supports: Apache License 2.0
https://raw.githubusercontent.com/grafana/skills/1ccacf29049fde66637fe01ab93a83a772da323b/skills/grafana-plugins/audit-and-reduce-dependencies/SKILL.md
Supports: review.findings, bestFor, upstreamDescription