bump-size-limit

tarafından sentry

.size-limit.js dosyasındaki boyut sınırlarını, size-limit CI kontrolü başarısız olduğunda yükseltir. Kullanıcı boyut sınırı hatalarından, paket boyutu kontrollerinin başarısız olmasından, CI boyut…

npx skills add https://github.com/getsentry/sentry-javascript --skill bump-size-limit

Bump Size Limit

When the size-limit GitHub Action fails, it means one or more bundle scenarios exceed their configured byte thresholds in .size-limit.js. This skill walks through building, measuring, and bumping only the limits that need it.

Workflow

Step 1: Build all packages (including CDN bundles)

A full build is required because size-limit measures the actual compiled artifacts.

pnpm run build

This takes a few minutes. CDN bundles in packages/browser/build/bundles/ must be up to date — a dev build is not sufficient.

Step 2: Run the size check in JSON mode

pnpm run test:size-limit

The JSON output is an array of objects. Each object has:

  • name — the scenario label
  • passed — whether it's within the limit
  • size — actual size in bytes
  • sizeLimit — configured limit in bytes

Step 3: Identify failed scenarios

Filter for entries where "passed": false. These are the only ones that need bumping.

Step 4: Calculate new limits

For each failed scenario, round the actual size up to the next full KB (1 KB = 1000 bytes in this context, matching how size-limit interprets the limits in .size-limit.js).

Example: If actual size is 129,127 bytes, the new limit is 130 KB (i.e. 130,000 bytes).

The heuristic is intentionally conservative — it gives just enough headroom without inflating limits unnecessarily.

Step 5: Update .size-limit.js

Open .size-limit.js at the repository root and update the limit field for each failed scenario. Limits are strings like '130 KB'.

Only change limits for scenarios that actually failed. Do not touch passing scenarios.

Step 6: Verify the fix

Re-run size-limit to confirm everything passes:

pnpm run test:size-limit

If any scenario still fails (e.g., due to rounding edge cases), bump that specific limit by another 1 KB and re-run.

sentry tarafından daha fazla skill

add-ai-integration
sentry
Sentry JavaScript SDK'sine yeni bir AI sağlayıcı entegrasyonu ekleyin. Yeni bir AI enstrümantasyonu (OpenAI, Anthropic, Vercel AI, LangChain vb.) eklerken kullanın…
add-cdn-bundle
sentry
Belirtilen özelliklerle tarayıcı paketi için yeni bir CDN paketi oluşturur
agent-prompt
sentry
Etkili ajan komutları ve becerileri yazmak için referans kılavuzu. Yeni beceriler oluştururken, komut kalitesini gözden geçirirken veya Warden'ın komut yapısını anlarken kullanılır.
agents-md
sentry
Bu beceri, kullanıcı "AGENTS.md oluştur", "AGENTS.md güncelle", "ajan dokümanlarını yönet", "CLAUDE.md kur" dediğinde veya ajan…
agents-md
sentry
60 satırın altında, minimal ve yüksek sinyalli ajan dokümantasyonu oluşturur ve sürdürür. Ajan yönelik dokümanlar için araştırma destekli en iyi uygulamaları uygular; talimat kalitesi uzunlukla düşer. Üç temel bölüm gerektirir: Paket Yöneticisi, Dosya Kapsamlı Komutlar (dosya başına test/lint/tip denetimi) ve ajan kimliği ile Taahhüt Atıfları. Dosyaya neyin ait olduğunu belirlemek için proje yapısını (kilit dosyaları, linter yapılandırmaları, CI komutları, monorepo göstergeleri) analiz eder. Yalnızca başlıklar ve maddeler kullanır; referanslar...
agents-md
sentry
Bu beceri, kullanıcı "AGENTS.md oluştur", "AGENTS.md güncelle", "ajan dokümanlarını yönet", "CLAUDE.md kur" dediğinde veya ajan...
ai-sdk
sentry
ai-sdk — getsentry/webvitals.com tarafından yayınlanan, AI ajanları için yüklenebilir bir beceri.
analytics
sentry
Sentry'nin ön uç arayüzünde analitik olaylarını enstrümente edin ve keşfedin. Butonlara, sayfalara, modalara veya özel etkileşimlere izleme eklerken, yeni tanımlarken kullanın…