audit-bundle-size

audit-bundle-size is a skill for Claude Code from kensaurus/cursor-kenji. It costs 65 tokens per session (2,691 once invoked), scanned A, original, MIT.

A 4D View Pro command that selects a range of spreadsheet cells and makes its first cell active. The range can include separate groups of cells.

In plain words
What is it for?
Use it to select cells after loading data, moving through a worksheet, or responding to user actions.
Why use it?
It lets code control what the user sees as selected instead of relying on manual mouse or keyboard selection.

Skill for Claude Code

Written for Claude Code: effort in frontmatter.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is const HeavyChart = dynamic(() => import('../components/HeavyChart'), {.

Part of the cursor-kenji plugin — 132 skills, 63 commands, 6 agents, 1 hook, 3 MCP servers shipped together

Good fit Use it to select cells after loading data, moving through a worksheet, or responding to user actions.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/kensaurus/cursor-kenji
agentmods
npx agentmods add skills/kensaurus/cursor-kenji/audit-bundle-size

Made for: Claude Code.

Or install cursor-kenji, the plugin that ships this one along with the rest of its 132 skills, 63 commands, 6 agents, 1 hook, 3 MCP servers.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for audit-bundle-size

README.md
[![agentmods](https://agentmods.dev/badge/skills/kensaurus/cursor-kenji/audit-bundle-size/github.svg)](https://agentmods.dev/skills/kensaurus/cursor-kenji/audit-bundle-size)
Your own site
<a href="https://agentmods.dev/skills/kensaurus/cursor-kenji/audit-bundle-size"><img src="https://agentmods.dev/badge/skills/kensaurus/cursor-kenji/audit-bundle-size/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for audit-bundle-size

Your own site · 80×15
<a href="https://agentmods.dev/skills/kensaurus/cursor-kenji/audit-bundle-size"><img src="https://agentmods.dev/badge/skills/kensaurus/cursor-kenji/audit-bundle-size.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,691 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium MCP Rug Pull · line 106
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 270
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00065 $0.02691
Opus 5.5 $0.00026 $0.01076
Sonnet 5.5 $0.00013 $0.00538
Haiku 4.5 $0.00006 $0.00269

Measured 1mo ago against content hash 6a298a426b9c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

audit-bundle-size scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/audit-bundle-size/SKILL.md · 297 lines

How it starts

The opening of the file, as written. The whole thing — 297 lines — stays where its author put it; the contents beside it link to each section on GitHub.

audit-bundle-size — Find and Eliminate Bundle Bloat

Degree of freedom: MIXED — Offender triage and swap choice [HIGH freedom]; Phase 1 production build + analyser [LOW freedom — run exactly].

Audit-and-fix exception. Measure the payload, then shrink it. Runtime slowness → audit-performance.

Fix only what the measurement named, in the files it named; a repo-wide dependency sweep the report did not list is a different session. Edit surgically — the offending import, dynamic() boundary, or chunk config — rather than rewriting whole files. Pre-existing bugs met on the way go in the report as follow-ups. Add or change tests only where the repo already keeps them for that surface; scratch checks and generated analyser reports (client.html, bundle-report.html) stay out of the commit. An ANALYZE=true-guarded analyser config stays only if the repo already keeps one.

Every kilobyte of JavaScript the browser must download, parse, and compile before showing anything costs real users real time. A large initial bundle is the #1 avoidable cause of slow LCP and poor Core Web Vitals. Find exactly what is bloating it and fix each item.

How to reason — Observe → Interpret → Classify → Severity

  1. Observe — quote First Load JS / chunk gzip and the treemap contributor (file + package)
  2. Interpret — is this unused code on the critical path, a duplicate, or a missing split?
  3. Classify — giant-vendor / full-library import / missing-lazy / unused-dep / dev-in-prod / duplicate
  4. Severity — by gzip on the initial route: >250 KB First Load JS = review; do not delete a feature to save KB

Worked example

Observe: Next.js First Load JS 420 KB gzip. Treemap: default lodash import in lib/utils.ts; moment with all locales in the shared layout. Interpret: two libraries pull unused code onto every route. Classify: full-library import + oversized date lib. Severity: High — over the 250 KB review threshold. Finding: named lodash/debounce + replace moment with dayjs; remesure First Load JS before claiming a save.

Read the full file on GitHub · 297 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +10 lines · -17 tokens per session 6a298a426b9c
  2. 1mo ago First seen · 287 lines · 82 tokens per session scan A 30d2f03516fb

Subscribe to this mod's changes

audit-bundle-size is a skill published in the GitHub repository kensaurus/cursor-kenji (9 stars, last pushed 26d ago), licensed MIT. It adds 65 tokens to every session and 2,691 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.