getsentry avatar

Sentry Svelte Sdk

This is the setup wizard you want when adding Sentry to a Svelte or SvelteKit project. It detects your framework version, scans your package.json and file structure, then walks you through the full installation with error monitoring, tracing, session replay, and optional logging. The skill handles both modern SvelteKit setups (with instrumentation.server.ts) and legacy versions, configures client and server hooks correctly, and sets up source map uploads via Vite. It even checks for adjacent backend directories to suggest cross-service tracing. The phase-based approach (detect, recommend, guide) means you get concrete next steps instead of vague questions, and it knows when to skip install if Sentry is already present.

skills.sh installs
319
GitHub stars
25
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

Files

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

# Check SvelteKit version (determines which setup pattern to use)
cat package.json | grep '"@sveltejs/kit"'

Sponsors

Details

Repository
github.com/getsentry/sentry-agent-skills
Categories
Frontend Development, DevOps & CI/CD, AI & Agent Building, Debugging
First seen
Jun 3, 2026

More from getsentry/sentry-agent-skills

All 20
1sickn33 avatarvercel-react-best-practicessickn33/antigravity-awesome-skillsvercel react best practices287skills.sh installs
2alinaqi avatarui-webalinaqi/claude-bootstrapui web285skills.sh installs
3sickn33 avatarangular-migrationsickn33/antigravity-awesome-skillsangular migration284skills.sh installs
4gentleman-programming avatarreact-nativegentleman-programming/gentleman-skillsReact Native patterns for mobile app development with Expo and bare workflow. Trigger: When building mobile apps, working with React Native components, using Ex263skills.sh installs
5pluginagentmarketplace avatarangular-materialpluginagentmarketplace/custom-plugin-angularAngular Material UI components, theming, and accessible interface design262skills.sh installs
6patricio0312rev avatarzustand-state-builderpatricio0312rev/skillsImplements lightweight state management using Zustand with TypeScript, persistence, devtools, and modular store patterns. Use when users request "zustand store"261skills.sh installs