
Security News
When Autonomous Agents Escape: Why Socket Signed the Cyber Defense Open Letter
Socket joins more than 100 technology, cybersecurity, and financial organizations calling for a global surge in cyber defense.
bundle-size-analysis-skill
Advanced tools
Codex skill for Bundlephobia and npm package size analysis.
An open-agent skill for inspecting npm package bundle cost with Bundlephobia and related package-size checks.
This repository provides:
bundle-size-analysis skill (skills/bundle-size-analysis/SKILL.md)Using live package-size services and local package data, you can:
package.json dependency list the same way Bundlephobia's site scan worksnpm pack --json --dry-runskills/
bundle-size-analysis/
SKILL.md
agents/
openai.yaml
assets/
bundle-size-analysis-small.svg
bundle-size-analysis.png
references/
check-selection.md
scripts/
bundle_size_analysis.py
README.md
CONTRIBUTING.md
SECURITY.md
CHANGELOG.md
This is a nested skills/bundle-size-analysis package. npx skills can install it directly from GitHub, and npx skills experimental_sync can discover it from node_modules because the npm package ships the skills/ directory.
Use --agent universal for agents that consume the shared .agents/skills layout. Use --agent "*" only when you intentionally want to install to every supported agent directory.
npx skills add Nick2bad4u/Bundlephobia-Skill -g --agent universal -y
npx skills add Nick2bad4u/Bundlephobia-Skill -g --agent "*" -y
npm install --save-dev bundle-size-analysis-skill
npx skills experimental_sync --agent universal -y
OpenAI-specific display metadata lives in skills/bundle-size-analysis/agents/openai.yaml. The portable skill contract is skills/bundle-size-analysis/SKILL.md plus the referenced assets/, references/, and scripts/ files in that skill directory.
The skill is packaged for GitHub releases and npm as bundle-size-analysis-skill.
Verify the package locally before publishing:
npm run release:verify
npm publish --access public --provenance
GitHub Actions publishes with npm OIDC trusted publishing using npm publish --access public --provenance. Configure the npm package trusted publisher for repository Nick2bad4u/Bundlephobia-Skill and workflow .github/workflows/release-skill.yml. The workflow intentionally does not use npm stage commands.
pack or local package checksFrom repository root:
python "skills/bundle-size-analysis/scripts/bundle_size_analysis.py" package react@18.2.0 lodash@4.17.21
Fetch deeper Bundlephobia data:
python "skills/bundle-size-analysis/scripts/bundle_size_analysis.py" package react@18.2.0 --exports --dependencies --history 10 --similar
Machine-readable output:
python "skills/bundle-size-analysis/scripts/bundle_size_analysis.py" package react@18.2.0 --json
# Scan runtime dependencies from package.json
python "skills/bundle-size-analysis/scripts/bundle_size_analysis.py" scan --package-json package.json
# Include dev and optional dependencies in a package.json scan
python "skills/bundle-size-analysis/scripts/bundle_size_analysis.py" scan --package-json package.json --include-dev --include-optional
# Check npm publish footprint
python "skills/bundle-size-analysis/scripts/bundle_size_analysis.py" pack --repo .
# Measure local build artifacts
python "skills/bundle-size-analysis/scripts/bundle_size_analysis.py" artifacts dist build
# Run the combined audit
python "skills/bundle-size-analysis/scripts/bundle_size_analysis.py" audit --repo .
# Fail when any queried package exceeds a gzip budget
python "skills/bundle-size-analysis/scripts/bundle_size_analysis.py" scan --package-json package.json --max-gzip-kb 50
For the full command surface and workflow guidance, see:
skills/bundle-size-analysis/SKILL.mdskills/bundle-size-analysis/references/check-selection.mdskills/bundle-size-analysis/references/bundlephobia-helper.mdnpm pack --dry-run is read-only, but review output before sharing it publicly for private packages.More details: SECURITY.md
Contributions are welcome. Please read:
This repository includes a release workflow that creates a downloadable zip bundle:
.github/workflows/release-skill.ymlv0.1.0release_type: patch / minor / majorversion: optional explicit x.y.z (overrides release_type)ref: branch to release from (default main)bundlephobia-skill-<tag>.zipExamples:
# Manual patch bump from main
gh workflow run "Release Skill Bundle" -f release_type=patch -f ref=main
# Manual explicit release version
gh workflow run "Release Skill Bundle" -f release_type=patch -f version=0.2.0 -f ref=main
Released under The Unlicense.
FAQs
Codex skill for Bundlephobia and npm package size analysis.
The npm package bundle-size-analysis-skill receives a total of 4 weekly downloads. As such, bundle-size-analysis-skill popularity was classified as not popular.
We found that bundle-size-analysis-skill demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
Socket joins more than 100 technology, cybersecurity, and financial organizations calling for a global surge in cyber defense.

Product
Enterprise security teams can now detect malware, credential theft, suspicious network activity, and risky updates across Microsoft Edge extensions.

Research
/Security News
Socket researchers found 18 Chrome extensions and one Edge extension delivering a wallet drainer, credential theft, and other malicious payloads.