igniteui-react-optimize-bundle-size

A guide for reducing the size of React applications that use Ignite UI, a library of ready-made interface components. It covers importing only needed components and loading heavy parts such as grids or charts later.

In plain words
What is it for?
Use it to choose smaller Ignite UI packages, set up tree-shaking (removing unused code during the build), analyze the bundle, and split or lazy-load grids and charts.
Why use it?
A large JavaScript bundle can make a React application download and start slowly. This guide helps exclude unused code and delay large components until they are needed.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/igniteui/igniteui-cli/igniteui-react-optimize-bundle-size
Any agent
npx skills add IgniteUI/igniteui-cli --skill igniteui-react-optimize-bundle-size
Clone the repo
git clone --depth 1 https://github.com/IgniteUI/igniteui-cli

Made for: Claude Code, Codex.

Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,928 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00050 $0.02928
Opus 5 $0.00025 $0.01464
Sonnet 5 $0.00010 $0.00586
Haiku 4.5 $0.00005 $0.00293

Measured 3d ago against content hash cd0be380fbcf, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

igniteui-react-optimize-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 3d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

packages/cli/templates/react/igr-ts/projects/ai-config/files/skills/igniteui-react-optimize-bundle-size/SKILL.md · 440 lines

How it starts

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

Optimize Bundle Size

This skill helps users minimize their React application's bundle size when using Ignite UI for React by importing only the components they need, leveraging tree-shaking, and applying lazy loading strategies.

Example Usage

  • "My bundle size is too large"
  • "How do I reduce the size of igniteui-react?"
  • "Import only the components I need"
  • "Tree-shake unused components"
  • "Optimize imports for production"
  • "How do I lazy load the data grid?"

When to Use

  • Application bundle size is too large
  • User wants to optimize for production
  • User is importing more components than needed
  • User asks about tree-shaking or optimization
  • User wants to improve load times
  • User wants to code-split heavy components like grids or charts

Key Principles

  1. Install only the packages you need — don't install igniteui-react-grids if you only use core UI components
  2. Use named imports — enable tree-shaking by importing specific components
  3. Lazy load heavy components — use React.lazy + Suspense for grids, charts, and other large components
  4. Analyze your bundle — use tools to identify what's being included

Granular Package Imports

Only install the packages you actually use:

Package Contains Install only if you need…
igniteui-react Buttons, inputs, dialogs, calendars, lists, etc. Core UI components
igniteui-react + igniteui-grid-lite Lightweight grid (IgrGridLite from igniteui-react/grid-lite) Simple tabular data (MIT, requires both packages)
igniteui-react-grids DataGrid, TreeGrid, PivotGrid, HierarchicalGrid Advanced data grids (commercial)
igniteui-react-charts Category, Pie, Financial, Scatter charts Charts and data visualization (commercial)
igniteui-react-maps Geographic maps Map visualizations (commercial)
igniteui-react-gauges Radial and linear gauges Gauge indicators (commercial)

Read the full file on GitHub · 440 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. 3d ago First seen · 440 lines · 50 tokens per session scan A cd0be380fbcf

Subscribe to this mod's changes

igniteui-react-optimize-bundle-size is a skill published in the GitHub repository IgniteUI/igniteui-cli (136 stars, last pushed 5d ago), licensed MIT. It adds 50 tokens to every session and 2,928 once invoked, about $0.0003 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-08-30.

Related

Other skills, from other repositories

logic-state-layer

Decision tree for whether logic belongs in the component class, a service, or an NgRx store, including service scope and where API calls go. Invoked by logic-placement and logic-review, not directly.

AmadeusITGroup/otter · 48 tokens

design

Use this skill to build user interfaces with Arena, a token-driven design system with React and Angular component libraries on a shared Tailwind layer, for production screens or for throwaway prototypes and mocks. Covers design tokens, colour, type, spacing, motion, iconography, and the accessibility pattern each…

dravensoft-dev/arena · 110 tokens

vercel-ai-sdk-streaming

Build streaming AI features in Next.js with Vercel AI SDK, tool calling, RSC/UI hooks, and edge-safe API routes. Use for TypeScript fullstack AI UX with React Server Components.

vaquarkhan/Fullstack-development-agent-skills · 48 tokens

react-nextjs-frontend

Apply frontend guidance for React and Next.js stacks, including routing, rendering strategy, state boundaries, and performance defaults. Use when a project uses React, Next.js, TypeScript, and component-driven UI delivery.

vaquarkhan/Fullstack-development-agent-skills · 48 tokens

frontend-review

Frontend Code Review (Angular & React): Expert review of frontend code focusing on Angular, React, component architecture, state management, performance, accessibility, and UI patterns. Use whenever the user wants a review of frontend code, component design, state management, or mentions Angular, React, TypeScript…

camilooscargbaptista/cto-toolkit · 100 tokens

vercel-react-best-practices

React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance…

robiparvez/claude-code-guidelines · 67 tokens