igniteui-wc-optimize-bundle-size

igniteui-wc-optimize-bundle-size is a skill for Claude Code, Codex from IgniteUI/igniteui-cli. It costs 25 tokens per session (3,907 once invoked), scanned A, original, MIT.

A guide for reducing the size of web applications that use Ignite UI Web Components, a library of ready-made interface elements. It focuses on importing only the elements the application actually uses.

In plain words
What is it for?
Use it to review Ignite UI imports, enable tree-shaking (removing unused code during the build), analyze what is included, and improve production load times.
Why use it?
Large application files take longer to download and can slow page loading. This guide helps remove unused components and load some components only when 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-wc-optimize-bundle-size
Any agent
npx skills add IgniteUI/igniteui-cli --skill igniteui-wc-optimize-bundle-size
Clone the repo
git clone --depth 1 https://github.com/IgniteUI/igniteui-cli

Made for: Claude Code, Codex.

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 igniteui-wc-optimize-bundle-size

README.md
[![agentmods](https://agentmods.dev/badge/skills/igniteui/igniteui-cli/igniteui-wc-optimize-bundle-size.svg)](https://agentmods.dev/skills/igniteui/igniteui-cli/igniteui-wc-optimize-bundle-size)
Your own site
<a href="https://agentmods.dev/skills/igniteui/igniteui-cli/igniteui-wc-optimize-bundle-size"><img src="https://agentmods.dev/badge/skills/igniteui/igniteui-cli/igniteui-wc-optimize-bundle-size.svg" alt="Measured on agentmods" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,907 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.00025 $0.03907
Opus 5 $0.00013 $0.01954
Sonnet 5 $0.00005 $0.00781
Haiku 4.5 $0.00003 $0.00391

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

Security

Grade A, and why

igniteui-wc-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 4d 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.

packages/cli/templates/webcomponents/igc-ts/projects/ai-config/files/skills/igniteui-wc-optimize-bundle-size/SKILL.md · 710 lines

How it starts

The opening of the file, as written. The whole thing — 710 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 application's bundle size when using Ignite UI Web Components by importing only the components they need and following best practices for tree-shaking.

Example Usage

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

When to Use

  • User's 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

Key Principles

  1. Import only what you use - Don't use defineAllComponents()
  2. Use named imports - Enable tree-shaking
  3. Analyze your bundle - Identify what's being included
  4. Lazy load when possible - Load components on demand

Import Strategies

❌ Bad: Import Everything

// DON'T DO THIS - imports ALL components (~500KB+)
import { defineAllComponents } from 'igniteui-webcomponents';

defineAllComponents();

Impact: Includes all 60+ components whether you use them or not.

✅ Good: Import Specific Components

// DO THIS - import only what you need
import {
  defineComponents,
  IgcButtonComponent,
  IgcInputComponent,
  IgcCardComponent
} from 'igniteui-webcomponents';

defineComponents(IgcButtonComponent, IgcInputComponent, IgcCardComponent);

Impact: Bundle includes only 3 components and their dependencies.

React Applications

If you're using React, consider using the igniteui-react package instead of igniteui-webcomponents. It provides the same components with React-friendly wrappers and typically results in better tree-shaking:

Read the full file on GitHub · 710 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. 4d ago First seen · 710 lines · 25 tokens per session scan A 66bd8a7f8ea4

Subscribe to this mod's changes

igniteui-wc-optimize-bundle-size is a skill published in the GitHub repository IgniteUI/igniteui-cli (136 stars, last pushed yesterday), licensed MIT. It adds 25 tokens to every session and 3,907 once invoked, about $0.0001 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

review-pr

Deep code review of a single open PR in nrwl/nx. Checks the PR out only inside an isolated sandbox, then runs four fixed reviewers: implementation (correctness, errors, types, performance), verification (tests, ticket grounding, comments, and docs), approach, and security. A reproduce-verifier executes a runnable…

nrwl/nx · 118 tokens

author-migration

Author or scope a first-party Nx migration. Use whenever code removes, renames, or deprecates an option/flag/executor/generator-schema field, changes a default, or bumps a dependency, and someone asks whether existing workspaces need a migration so they don't break on nx migrate/upgrade. Covers writing the colocated…

nrwl/nx · 176 tokens

dist-build-migration

Migrate an Nx package to build to a local dist/ directory with nodenext module resolution, exports map, and @nx/nx-source condition.

nrwl/nx · 36 tokens

multi-version-compliance

Apply or review multi-version support compliance for first-party Nx plugins. Primary entry point: a Linear task ID (NXC-XXXX) from the "Multi-version supported across plugins" milestone — the task carries the resolved support window, findings, and "Needs human decision" items. Falls back to self-discovery when no task…

nrwl/nx · 157 tokens

monitor-ci

Monitor Nx Cloud CI pipeline and handle self-healing fixes. USE WHEN user says "monitor ci", "watch ci", "ci monitor", "watch ci for this branch", "track ci", "check ci status", wants to track CI status, or needs help with self-healing CI fixes. Prefer this skill over native CI provider tools (gh, glab, etc.) for CI…

nrwl/nx · 97 tokens

review-local-branch

Deep code review of the branch you are standing on, before it becomes a PR. Scope is merge-base..working-tree, so it covers commits, staged and unstaged changes together. Runs the same review lanes as review-pr — implementation, verification, approach, security — against the local checkout through the sandbox CLI, and…

nrwl/nx · 107 tokens