
Dep size
Checks what a dependency costs before adding it and finds bundle bloat in code
Dep size is an open-source agent skill for developer tools. It is available on Claude Code.
- Scripts
- None
- Platforms
- Claude Code
- GitHub stars
- 7
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Dep size
This skill gives the agent a read-only review routine for npm dependencies and browser bundle weight. Before a package is added, it walks through a fixed sequence of questions: whether the platform already provides the behavior, whether the repository already has a suitable library, the minified and gzipped size and transitive dependency count, maintenance and audit status, and how much code the package would replace. It ends with a verdict such as take it, write it inline, use an existing library, or keep it server-only.
When no target is given, the skill audits the files changed on the current branch against the default base and reports findings without editing anything. It looks for inefficient import shapes, server-only modules reaching client code, heavy libraries loaded eagerly instead of dynamically, duplicated package versions and unnecessary polyfills. Size figures are meant to be looked up rather than guessed, and the skill notes when a number is an estimate.
The skill runs in a forked agent context with the Explore agent type and expects a JavaScript or TypeScript project using npm or yarn, with bundlephobia and npm commands available from the shell.
When your agent uses it
Check what a dependency or import actually costs before adding it, and find bundle bloat in existing code. Invoke when adding a package, when the user asks whether a dependency is worth it, when a bundle-size check fails in CI, or when reviewing imports in browser-shipped code.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 1 file (4 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the ai-essentials plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add tonyghiani/ai-essentials
/plugin install ai-essentials@ai-essentialsOr copy only this skill to ~/.claude/skills/dep-size:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/tonyghiani/ai-essentials.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/dep-size &&
cp -R "$tmp/skills/dep-size" ~/.claude/skills/dep-size &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/dep-size inside it instead.
Copy the skill folder to ~/.agents/skills/dep-size to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/tonyghiani/ai-essentials.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/dep-size &&
cp -R "$tmp/skills/dep-size" ~/.agents/skills/dep-size &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/dep-size inside it instead.
Copy the skill folder to ~/.cursor/skills/dep-size to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/tonyghiani/ai-essentials.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/dep-size &&
cp -R "$tmp/skills/dep-size" ~/.cursor/skills/dep-size &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/dep-size inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/tonyghiani/ai-essentials.git --path skills/dep-sizeOr copy the folder to ~/.gemini/skills/dep-size yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/dep-size:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/tonyghiani/ai-essentials.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/dep-size &&
cp -R "$tmp/skills/dep-size" ~/.copilot/skills/dep-size &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/dep-size inside it instead.
Get the folder:
git clone --depth 1 https://github.com/tonyghiani/ai-essentials.gitThen copy ai-essentials/skills/dep-size into your agent's skills folder as dep-size. Agents that support SKILL.md read one folder per skill.
What it does
- Pre-install dependency verdict
- Walks through platform, repository, size, maintenance and replacement-cost checks before a package is added.
- Bundle size measurement
- Reports minified and gzipped size, transitive dependency count and tree-shaking support for a package.
- Import shape review
- Spots default imports, namespace imports and barrel imports that pull in more code than needed.
- Server code in client bundles
- Flags Node-only modules that could reach files shipped to the browser.
- Eager loading detection
- Identifies heavy libraries loaded statically that could be deferred with dynamic import.
- Duplicate version check
- Looks for multiple copies of the same library at different major versions.
Good for
- Check whether a date library is worth adding to the project
- Find heavy imports slowing down the client bundle
- Review a branch's changes for bundle bloat before merging
- Decide if a small utility should be written inline instead of installed
- Investigate why a CI bundle-size check failed
Dep size FAQ
When does Dep size trigger?
It is meant to run when adding a package, when asked whether a dependency is worth it, when a bundle-size check fails in CI, or when reviewing imports in browser-shipped code.
Does Dep size change any files?
No. It runs as a read-only agent and reports findings only.
What does Dep size need to work?
It uses the shell to run npx bundlephobia and npm commands, and it reads package.json and the changed files in the repository.
Can Dep size be used without a specific target?
Yes. With no target, it audits the files changed on the current branch relative to the base branch.
How do I install Dep size in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/dep-size to use it in all your projects, or to .claude/skills/dep-size in one project. Or install the ai-essentials plugin, which includes it: /plugin marketplace add tonyghiani/ai-essentials, then /plugin install ai-essentials@ai-essentials.
Does Dep size run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Dep size?
Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.
What are the best alternatives to Dep size?
The closest alternatives to Dep size are Dependency audit, Upgrade js deps, Code review and quality, Library review and Dependency health loop.
Where this comes from
- Description: from the skill's own SKILL.md.
More from tonyghiani/ai-essentials

Lets an agent read your GitHub queue at day's end and draft a morning triage report
- Open source
- 7 GitHub stars
- Developer tools

Finds untranslated UI strings and i18n patterns that break translation in code
- Open source
- 7 GitHub stars
- Developer tools

Writes pull request descriptions from a fixed summary, screenshots and testing template
- Open source
- 7 GitHub stars
- Developer tools

Guides an agent through resolving merge conflicts by intent, then verifying and pushing
- Open source
- 7 GitHub stars
- Developer tools

Triages PR review comments, then implements, replies to and resolves them
- Open source
- 7 GitHub stars
- Developer tools

Guides the agent through a test-first loop: failing test, then minimal implementation
- Open source
- 7 GitHub stars
- Developer tools





