New advertisers: 50% off your first month with code FIRSTMONTHSee slots
getsentry avatar

Sentry Svelte Sdk

Full Sentry setup for Svelte and SvelteKit covering errors, tracing, session replay, and logging.

skills.sh installs
2.3K
GitHub stars
280
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers error monitoring, tracing, session replay, and structured logging for SvelteKit (client and server) and plain Svelte
  • Includes a detect, recommend, and guide workflow with a wizard option (npx @sentry/wizard@latest -i sveltekit) and manual file-by-file setup
  • Splits setup by SvelteKit version, with instrumentation.server.ts for 2.31.0 and later and a legacy hooks-based path for older versions
  • Designed for developers adding production error monitoring to Svelte or SvelteKit apps, including source map upload through the Vite plugin

Install

$ npx -y skills add getsentry/sentry-for-ai --skill sentry-svelte-sdk -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

All Skills > SDK Setup > Svelte SDK

Sentry Svelte SDK

Opinionated wizard that scans your project and guides you through complete Sentry setup for Svelte and SvelteKit.

Invoke This Skill When

  • User asks to "add Sentry to Svelte" or "set up Sentry" in a Svelte/SvelteKit app
  • User wants error monitoring, tracing, session replay, or logging in Svelte or SvelteKit
  • User mentions @sentry/svelte, @sentry/sveltekit, or Sentry SDK for Svelte

Note: SDK versions and APIs below reflect current Sentry docs at time of writing (@sentry/sveltekit ≥10.8.0, SvelteKit ≥2.31.0). Always verify against docs.sentry.io/platforms/javascript/guides/sveltekit/ before implementing.


Phase 1: Detect

Run these commands to understand the project before making any recommendations:

# Detect framework type
cat package.json | grep -E '"svelte"|"@sveltejs/kit"|"@sentry/svelte"|"@sentry/sveltekit"'

# Check for SvelteKit indicators
ls svelte.config.js svelte.config.ts vite.config.ts vite.config.js 2>/dev/null

Details

Repository
github.com/getsentry/sentry-for-ai
Categories
Debugging, Frontend & UI Code
First seen
May 16, 2026

More from getsentry/sentry-for-ai

All 27

Similar to Sentry Svelte Sdk

More Debugging