Getting it into your agent
There is no command for this one: it runs only inside a plugin, and the catalogue could not identify which plugin ships it. The source is linked below.
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.
[](https://agentmods.dev/skills/kensaurus/cursor-kenji/audit-bundle-size)<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="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00082 | $0.02568 |
| Opus 5 | $0.00041 | $0.01284 |
| Sonnet 5 | $0.00016 | $0.00514 |
| Haiku 4.5 | $0.00008 | $0.00257 |
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 2d 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.
How it starts
The opening of the file, as written. The whole thing — 287 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.
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
- Observe — quote First Load JS / chunk gzip and the treemap contributor (
file+ package) - Interpret — is this unused code on the critical path, a duplicate, or a missing split?
- Classify — giant-vendor / full-library import / missing-lazy / unused-dep / dev-in-prod / duplicate
- 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
lodashimport inlib/utils.ts;momentwith 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: namedlodash/debounce+ replacemomentwithdayjs; remesure First Load JS before claiming a save.
Phase 0: Detect bundler and existing setup [HIGH freedom]
package.json scripts.build → build command and framework
vite.config.* → Vite + rollupOptions
next.config.* → Next.js (webpack / Turbopack)
webpack.config.* → standalone Webpack
astro.config.* → Astro (islands, Vite underneath)
Identify:
- Bundler: Vite / Webpack / Rollup / esbuild / Turbopack / Next.js built-in
- Analyser available:
rollup-plugin-visualizer,webpack-bundle-analyzer,@next/bundle-analyzer,source-map-explorer - Framework: Next.js (App / Pages), SvelteKit, Astro, Remix, Nuxt, Vite SPA
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.
- 2d ago First seen · 287 lines · 82 tokens per session scan A 30d2f03516fb
audit-bundle-size is a skill published in the GitHub repository kensaurus/cursor-kenji (9 stars, last pushed 8d ago), licensed MIT. It adds 82 tokens to every session and 2,568 once invoked, about $0.0004 per session on Opus 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.
Other skills, from other repositories
work-markitdown
办公文档通用 Inflow 编排:把 DOCX、PDF、PPTX、XLSX、图片、HTML、CSV 等 15+ 格式稳定转换为 Markdown。extends 上游 markitdown 技能,补充本地环境适配和批量转换工作流。用户提到'转成 md''文档转 markdown''解析文档''读取文档内容'时使用。.
markitdown
使用当前环境已安装的 MarkItDown,把 DOCX、PDF、PPTX、XLSX、图片、HTML、CSV 等文件稳定转换为 Markdown。用户提到“转成 md”“markitdown”“文档转 markdown”“把 docx/pdf/pptx/xlsx 变成 markdown”时使用。.
data-export
异步数据导出服务,支持 Excel/CSV/JSON 格式导出、进度追踪、任务管理。当需要大数据量报表导出或后台异步任务处理时使用。.
xlsx
Create, edit, analyze, or convert Excel spreadsheets (.xlsx, .xlsm, .xltx) where the workbook file is the primary deliverable. Use for formulas, formatting, financial models, multi-sheet workbooks, and tabular cleanup exported to Excel. Also applies to .csv/.tsv when the user wants spreadsheet output. Do NOT use for…
weekly-crm-report
Cleans a weekly CRM export and produces a regional sales summary. Activates when the user asks to clean a CRM export, deduplicate sales rows, calculate regional totals, or generate a weekly sales report from a CSV.
liteparse
Parse documents into LLM-ready content entirely on the local machine — PDF / DOCX / XLSX / PPTX / images → Markdown, structured JSON (with bounding boxes), or page screenshots, via the lit CLI. No cloud, no LLM, works offline. Use whenever the user attaches or points to a document that must be read before reasoning…