getsentry avatar

Sentry Svelte Sdk

This walks Claude through installing and configuring Sentry's error monitoring, tracing, session replay, and logging in Svelte and SvelteKit projects. It detects your framework version (SvelteKit 2.31+ uses the modern instrumentation.server.ts pattern, older versions init in hooks.server.ts), checks existing setup, then offers either the interactive wizard or manual file-by-file instructions across five to six files including hooks, Vite config, and source map upload. The wizard is faster but requires you to run it yourself since it opens a browser. Manual setup gives you full control over sample rates and PII settings. It also checks for backend directories and suggests cross-SDK setup if you're running Go, Python, or Ruby services alongside your frontend.

skills.sh installs
2.2K
GitHub stars
277
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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

Sponsors

Details

Repository
github.com/getsentry/sentry-for-ai
Categories
Frontend Development, DevOps & CI/CD, Debugging
First seen
May 16, 2026

More from getsentry/sentry-for-ai

All 31
1patternsdev avatarreact-2026patternsdev/skillsProvides a comprehensive guide to the modern React 2026 stack. Use when starting a new React project or modernizing an existing one with current frameworks, bui2.1Kskills.sh installs
2aradotso avatarui-ux-pro-max-skillaradotso/trending-skillsui ux pro max skill1.9Kskills.sh installs
3nexu-io avatardesign-taste-frontend-v1nexu-io/open-designThe original v1 taste-skill, preserved for projects depending on its exact behavior. The current default is `design-taste-frontend` (v2 experimental), which is 1.8Kskills.sh installs
4botpress avataradk-frontendbotpress/skillsGuidelines for building frontend applications that integrate with Botpress ADK bots - covering authentication, type generation, client setup, and calling bot ac1.7Kskills.sh installs
5forcedotcom avatarbuilding-ui-bundle-appforcedotcom/afv-librarybuilding ui bundle app1.5Kskills.sh installs
6forcedotcom avatarimplementing-ui-bundle-agentforce-conversation-clientforcedotcom/afv-libraryimplementing ui bundle agentforce conversation client1.5Kskills.sh installs