add-cdn-bundle

作者: sentry

为浏览器包创建具有指定功能的新CDN捆绑包

npx skills add https://github.com/getsentry/sentry-javascript --skill add-cdn-bundle

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: tracing → replay → feedback → logs → metrics

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:

pnpm run lint
cd packages/browser && pnpm run build:dev
cd packages/browser && pnpm run test

来自 sentry 的更多技能

add-ai-integration
sentry
向Sentry JavaScript SDK添加新的AI提供商集成。在贡献新的AI工具(OpenAI、Anthropic、Vercel AI、LangChain等)时使用…
agent-prompt
sentry
编写有效代理提示和技能的参考指南。用于创建新技能、审查提示质量或理解Warden的提示……
agents-md
sentry
当用户要求“创建AGENTS.md”、“更新AGENTS.md”、“维护代理文档”、“设置CLAUDE.md”或需要保持代理…时,应使用此技能。
agents-md
sentry
创建和维护不超过60行的精简、高信号代理文档。强制执行基于研究的最佳实践,确保面向代理的文档质量;指令质量随长度下降。需要三个核心部分:包管理器、文件级命令(每个文件的测试/代码检查/类型检查)以及带有代理身份的提交归属。分析项目结构(锁定文件、代码检查配置、CI命令、单仓库指示器)以确定文件中应包含的内容。仅使用标题和项目符号;引用...
agents-md
sentry
当用户要求“创建AGENTS.md”、“更新AGENTS.md”、“维护代理文档”、“设置CLAUDE.md”或需要保持代理…时,应使用此技能。
ai-sdk
sentry
ai-sdk — 一个可安装的AI代理技能,由getsentry/webvitals.com发布。
analytics
sentry
在Sentry的前端UI中检测并发现分析事件。用于为按钮、页面、弹窗或自定义交互添加追踪,以及定义新的…
architecture-review
sentry
员工级代码库健康审查。发现单体模块、静默失败、类型安全漏洞、测试覆盖缺口以及LLM友好性问题。