AD

add-cdn-bundle

Bundles your browser packages for CDN distribution.

Install

mkdir -p .claude/skills/add-cdn-bundle && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/4159" && unzip -o skill.zip -d .claude/skills/add-cdn-bundle && rm skill.zip

Installs to .claude/skills/add-cdn-bundle

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Create a new CDN bundle for the browser package with specified features
71 charsno explicit “when” trigger
Intermediate

Key capabilities

  • Generate browser package CDN bundle source files
  • Configure Rollup build settings for new bundles
  • Define size-limit constraints for bundle variants
  • Integrate new bundles into CI/CD workflows
  • Update browser integration test configurations

How it works

The process involves creating specific TypeScript source and test files, updating Rollup and size-limit configurations, and registering the new bundle in the CI/CD pipeline.

Inputs & outputs

You give it
Feature combination string (e.g., tracing.replay.logs)
You get back
New bundle source files and updated build configuration

When to use add-cdn-bundle

  • Creating CDN bundles for libraries
  • Packaging browser-based SDKs
  • Updating CDN distribution assets

About this skill

Add CDN Bundle Skill

This skill creates a new CDN bundle for the browser package that includes a specific combination of features.

Input

The user provides a feature combination using dot notation:

  • logs.metrics - Bundle with logs and metrics
  • replay.logs.metrics - Bundle with replay, logs, and metrics
  • tracing.replay.logs - Bundle with tracing, replay, and logs
  • tracing.replay.feedback.logs.metrics - Full featured bundle

Feature order in bundle names: tracingreplayfeedbacklogsmetrics

Instructions

Follow the detailed guide at docs/adding-cdn-bundle.md to create the bundle.

Quick Reference - Naming Conventions

Given a feature combination, derive these variants:

PlaceholderExample (replay.logs.metrics)
{FEATURE_COMBO}replay.logs.metrics
{feature_combo}replay_logs_metrics
{featureCombo}replayLogsMetrics
{Human Readable Features}Replay, Logs, Metrics
{Human Readable Feature List}Replay, Logs, and Metrics

Quick Reference - Files to Create/Modify

  1. Create packages/browser/src/index.bundle.{FEATURE_COMBO}.ts
  2. Create packages/browser/test/index.bundle.{FEATURE_COMBO}.test.ts
  3. Modify packages/browser/rollup.bundle.config.mjs
  4. Modify .size-limit.js
  5. Modify dev-packages/browser-integration-tests/package.json
  6. Modify dev-packages/browser-integration-tests/utils/generatePlugin.ts
  7. Modify .github/workflows/build.yml

Verification Steps

After making changes:

yarn lint
cd packages/browser && yarn build:dev
cd packages/browser && yarn test

When not to use it

  • When adding features to an existing bundle
  • When modifying non-browser SDK packages

Prerequisites

yarn

Limitations

  • Requires manual adherence to specific feature naming and ordering conventions
  • Requires manual verification steps via linting and testing

How it compares

This automates the manual creation of boilerplate files and configuration updates required to support new CDN bundle feature combinations.

Compared to similar skills

add-cdn-bundle side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
add-cdn-bundle (this skill)15moReviewIntermediate
pwa-development94moCautionIntermediate
oly-apps04moNo flagsBeginner
vite-patterns02moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry