Official agent skill

Optimize Bundle Size

by elastic in elastic/kibana

Reduce plugin page load bundle size and avoid unnecessary increases in packages/kbn-rspack-optimizer/limits.yml.

OfficialCustom licenceAuto-check passedFrontend & Design

Install Optimize Bundle Size

skills CLI
$ npx skills add elastic/kibana --skill optimize-bundle-size -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install elastic/kibana optimize-bundle-size --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/elastic/kibana.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/optimize-bundle-size .claude/skills/optimize-bundle-size && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
optimize-bundle-size
GitHub stars
21k
Token cost
~794 tokens
SKILL.md length
269 words
Files
2
Skills in repo
40
Repo updated
First seen
Licence
Custom licence

At a glance

Reduce plugin page load bundle size and avoid unnecessary increases in packages/kbn-rspack-optimizer/limits.yml.

  • Works in 5 steps: Set a baseline → Identify entry-chunk drivers → Apply high-impact fixes → …
  • Proactively optimizing bundles
  • SKILL.md covers 1) Set a baseline, 2) Identify entry-chunk drivers, 3) Apply high-impact fixes and 4) Re-measure and decide limits, plus 1 more section
  • Calls node, jq and rg

What it does

Optimize Bundle Size is an agent skill from elastic/kibana, published by the product's own GitHub organization. Reduce plugin page load bundle size and avoid unnecessary increases in packages/kbn-rspack-optimizer/limits.yml. Use when proactively optimizing bundles, investigating CI page-load overages, or reviewing PRs that change bundle limits.

Its SKILL.md is about 790 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `agents/openai.yaml`).

It sits in Frontend & Design, covering Web performance. The repository describes itself as: Your window into all of your data.

When your agent uses it

  • Proactively optimizing bundles
  • Investigating CI page-load overages
  • Reviewing PRs that change bundle limits

Example prompts

  • “/optimize-bundle-size”

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Set a baseline
  2. Identify entry-chunk drivers
  3. Apply high-impact fixes
  4. Re-measure and decide limits
  5. Validate changes

What it can do on your machine

Read from SKILL.md and the folder at commit 452e025. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • node
    • jq
    • rg
    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Optimize Bundle Size loads about 794 tokens when it runs. Until then it costs about 65 tokens; SKILL.md has 269 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~65
When it runs · the whole SKILL.md, loaded when a task matches
~794

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 269 words (~794 tokens).

“Use this workflow to keep limits stable by moving non-critical code out of the entry bundle.”

— opening of SKILL.md by elastic, Custom licence
name
optimize-bundle-size
disable-model-invocation
true

Read the full SKILL.md on GitHub

Files

SKILL.md and 1 other file in .agents/skills/optimize-bundle-size of elastic/kibana.

  • SKILL.md
  • agents/openai.yaml

Open the folder on GitHubat commit 452e025

Compare with similar skills

Optimize Bundle Size next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Optimize Bundle Size compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Optimize Bundle Size this skillelastic/kibana21k—~794Automated safety check: PassCustom licence
React Doctormakeplane/plane61k12 repos~657Automated safety check: PassAGPL-3.0
Fixing Motion Performanceibelick/ui-skills9.5k5 repos~1.4kAutomated safety check: PassMIT
GSAP Performance Tuninggreensock/gsap-skills16k4 repos~1kAutomated safety check: PassMIT
React Frontend Development Guidelinesdiet103/claude-code-infrastructure-showcase10k2 repos~2.9kAutomated safety check: PassMIT
Web Quality Auditaddyosmani/web-quality-skills2.9k—~2.6kAutomated safety check: PassMIT

Similar skills

  • React Doctor

    makeplane/plane

    Scans React code for lint, accessibility, bundle size and architecture issues, reports a health score and checks that changes do not lower it.

    61k GitHub starsUsed in 12 repos~657 tokens
    Frontend & DesignAuto-check passed
  • Fixing Motion Performance

    ibelick/ui-skills

    Audits and fixes web animation performance: layout thrashing, work that belongs on the compositor, scroll-linked motion and costly blur effects.

    9.5k GitHub starsUsed in 5 repos~1.4k tokens
    Frontend & DesignAuto-check passed
  • GSAP Performance Tuning

    greensock/gsap-skills

    Guides the agent to keep GSAP animations smooth by animating transforms and opacity, batching DOM reads and writes, and avoiding layout-heavy properties.

    16k GitHub starsUsed in 4 repos~1k tokens
    Frontend & DesignAuto-check passed
  • React Frontend Development Guidelines

    diet103/claude-code-infrastructure-showcase

    Guidelines for React 18 and TypeScript apps covering Suspense data fetching, lazy loading, feature folders, MUI v7 styling, TanStack Router and performance.

    10k GitHub starsUsed in 2 repos~2.9k tokens
    Frontend & DesignAuto-check passed
  • Web Quality Audit

    addyosmani/web-quality-skills

    Run an evidence-led web quality audit covering performance, accessibility, SEO, best practices, and agentic browsing.

    2.9k GitHub stars~2.6k tokensUpdated 1 mo ago
    Frontend & DesignAuto-check passed
  • SEO Google

    AgriciDaniel/codex-seo

    Google SEO APIs: Search Console (Search Analytics, URL Inspection, Sitemaps), PageSpeed Insights v5, CrUX field data with 25-week history, Indexing API v3, and GA4 organic traffic.

    797 GitHub starsUsed in 2 repos~3.4k tokens
    Frontend & DesignAuto-check passed

More from elastic/kibana

All 40 skills in this repo
  • Official

    Migrate Kibana Cypress E2E tests (.cy.ts) to Scout (Playwright).

    21k GitHub stars~3.8k tokensUpdated today
    Auto-check passed
  • Activate Connector

    elastic/kibana

    Official

    Creates a connector instance in a running Kibana. An agent skill from elastic/kibana.

    21k GitHub stars~1.9k tokensUpdated today
    Auto-check: notes
  • Codeql

    elastic/kibana

    Official

    Work with CodeQL in Kibana — write, test, and debug custom queries locally, fetch scan results from GitHub, and validate inline suppression comments.

    21k GitHub stars~1.7k tokensUpdated today
    Auto-check passed
  • Debug Oas

    elastic/kibana

    Official

    A skill your agent uses when debugging OpenAPI (OAS) issues for a specific API area in Kibana by scoping validation output with one or more --path filters, then separating structural invalid-OAS…

    21k GitHub stars~1.4k tokensUpdated today
    Auto-check passed
  • Evals Write Spec

    elastic/kibana

    Official

    Write LLM evaluation spec files with datasets, tasks, and evaluators using the @kbn/evals Playwright fixture.

    21k GitHub stars~2.3k tokensUpdated today
    Auto-check passed
  • Kbn GitHub

    elastic/kibana

    Official

    GitHub interactions via gh CLI for the Kibana repo. An agent skill from elastic/kibana.

    21k GitHub stars~1.3k tokensUpdated today
    Auto-check passed

Questions about Optimize Bundle Size

What does Optimize Bundle Size do?

Reduce plugin page load bundle size and avoid unnecessary increases in packages/kbn-rspack-optimizer/limits.yml. Optimize Bundle Size is an agent skill from elastic/kibana, published by the product's own GitHub organization.yml.

When should I use Optimize Bundle Size?

Optimize Bundle Size fits situations like: proactively optimizing bundles; investigating CI page-load overages; reviewing PRs that change bundle limits.

How do I install Optimize Bundle Size in Claude Code?

Run `npx skills add elastic/kibana --skill optimize-bundle-size -a claude-code`. Or copy the skill folder (.agents/skills/optimize-bundle-size in elastic/kibana) into .claude/skills/optimize-bundle-size in your project. Claude Code loads it when a task matches its description.

How do I install Optimize Bundle Size in Codex?

Run `npx skills add elastic/kibana --skill optimize-bundle-size -a codex`. Or copy the skill folder (.agents/skills/optimize-bundle-size in elastic/kibana) into .agents/skills/optimize-bundle-size in your project. Codex loads it when a task matches its description.

Can I use Optimize Bundle Size in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add elastic/kibana --skill optimize-bundle-size -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/optimize-bundle-size, .gemini/skills/optimize-bundle-size, .github/skills/optimize-bundle-size and .opencode/skills/optimize-bundle-size in your project.

What does Optimize Bundle Size need to run?

Going by SKILL.md and its folder, Optimize Bundle Size needs the command-line tools its instructions call (node, jq, rg and git).

Does Optimize Bundle Size access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Optimize Bundle Size safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Optimize Bundle Size use?

Optimize Bundle Size has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Optimize Bundle Size use?

About 794 tokens (SKILL.md is roughly 3.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Optimize Bundle Size?

Skills that share tags, products or a category with Optimize Bundle Size: React Doctor (makeplane/plane, 61k stars), Fixing Motion Performance (ibelick/ui-skills, 9.5k stars), GSAP Performance Tuning (greensock/gsap-skills, 16k stars) and React Frontend Development Guidelines (diet103/claude-code-infrastructure-showcase, 10k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Optimize Bundle Size?

elastic (a GitHub organization, an official publisher) maintains it in elastic/kibana, which has 21,307 GitHub stars. The repository holds 40 skills in this directory. The repository was last updated on October 9, 2026.

Source: elastic/kibana on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.