
Description
Plugin bundle size is an agent skill for shrinking the JavaScript of a Grafana app plugin. The entry file, module.js, blocks rendering every time Grafana starts, so the skill aims to make it small, ideally under about 200 KB and holding only lazy-loaded wrappers, with the feature code loaded on demand. It uses React.lazy, Suspense and webpack code splitting, and it ranks the opportunities by risk. Module wrappers come first and are the safest, followed by route-level lazy loading, extension lazy loading, and then component registries and tab panels that need careful Suspense placement. It targets roughly 15 to 25 JavaScript chunks, since far more than that suggests over-splitting. It also tells the agent to leave vendor libraries and widely shared utility components alone. The guidance is for plugin developers who want faster startup.…
Highlights
- Lazy-loaded module entry wrappers
- React.lazy and Suspense splitting
- Risk levels for each splitting step
- Target of about 15 to 25 chunks
- Guidance on what not to split
Ratings & Reviews
No ratings yet
Be the first to rate plugin-bundle-size.
People also visit
plugin-bundle-size FAQ
What does the plugin-bundle-size skill change?
It guides code splitting in a Grafana app plugin so the entry file is small and feature code loads on demand.
How do I install it?
Run npx skills add https://github.com/grafana/skills --skill plugin-bundle-size.
What size is the target?
The skill aims for a module.js under about 200 KB that holds nothing but lazy-loaded wrappers, with roughly 15 to 25 chunks in total.
Has the skill been security audited?
Yes. Gen Agent Trust Hub shows Pass, Socket shows Pass and Snyk shows Pass.
What are the best plugin-bundle-size alternatives?
Popular alternatives to plugin-bundle-size include grafana-scenes, assistant-mcp and datasources-provisioning. See all plugin-bundle-size alternatives














