sentry-svelte-sdk
Full Sentry SDK setup for Svelte and SvelteKit
Developer Setup
Setup & Installation
npx skills add https://github.com/getsentry/sentry-for-ai --skill sentry-svelte-sdknpx skills add https://github.com/getsentry/sentry-for-ai --skill sentry-svelte-sdkOverview
What This Skill Does
Full Sentry SDK setup for Svelte and SvelteKit. Use when asked to add Sentry to Svelte, add Sentry to SvelteKit, install @sentry/sveltekit, or configure error monitoring, tracing, session replay, or logging for Svelte or SvelteKit applications.
Application
When to use this Skill
- Configuring integration settings for custom agent workflows.
- Optimizing query execution and response latency in production.
- Developing clean, standard-compliant implementations for enterprise services.
- Troubleshooting connection timeouts and authentication handshakes.
- Monitoring API rate limits and execution pipelines programmatically.
Documentation
Show Skills.md file
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
# Check SvelteKit version (determines which setup pattern to use)
cat package.json | grep '"@sveltejs/kit"'
# Check if Sentry is already installed
cat package.json | grep '"@sentry/'
# Check existing hook files
ls src/hooks.client.ts src/hooks.client.js src/hooks.server.ts src/hooks.server.js \
src/instrumentation.server.ts 2>/dev/null
# Detect logging libraries (Node side)
cat package.json | grep -E '"pino"|"winston"|"consola"'
# Detect if there's a backend (Go, Python, Ruby, etc.) in adjacent directories
ls ../backend ../server ../api 2>/dev/null
cat ../go.mod ../requirements.txt ../Gemfile 2>/dev/null | head -3
Recommendations
Explore other random skills
query-address-info
Retrieve all token holdings and portfolio positions for any wallet address on BSC, Base, or Solana
query-token-audit
Audit token security to detect scams, honeypots, and malicious contracts across BSC, Base, Solana, and Ethereum
query-token-info
Search tokens and fetch metadata, real-time market data, and K-Line candlestick charts by keyword or contract address