sentry-svelte-sdk

Automate Sentry SDK integration and configuration in Svelte and SvelteKit applications.

Updated Jun 4, 2026
One-click install
npx skills add https://github.com/achmf/KostaHub --skill sentry-svelte-sdk-achmf
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sentry-svelte-sdk
Source: https://github.com/achmf/KostaHub/tree/main/.agents/skills/sentry-svelte-sdk
Command: npx skills add https://github.com/achmf/KostaHub --skill sentry-svelte-sdk-achmf

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill solves the complexity of manually configuring error monitoring, performance tracing, and session replay in Svelte and SvelteKit applications, ensuring you don't miss critical production issues.

Core Features & Use Cases

  • Automated SDK Setup: Guides you through the correct installation and initialization for both SvelteKit (modern and legacy) and plain Svelte.
  • Observability Suite: Configures Error Monitoring, Tracing, Session Replay, and structured Logging with a single workflow.
  • Use Case: Use this when you need to add Sentry to a new SvelteKit project or upgrade an existing implementation to support modern features like instrumentation.server.ts and session replay.

Quick Start

Invoke the sentry-svelte-sdk skill to scan your current project and guide you through the recommended Sentry installation and configuration steps.

Frequently Asked Questions about sentry-svelte-sdk

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up Sentry error monitoring in a SvelteKit application?

Yes, Sentry distributed tracing works in Svelte by initializing the SDK with tracing features enabled. This skill configures tracing across both client and server environments to track performance issues automatically.

What is the best way to add session replay to an existing SvelteKit project?

Yes, this skill supports plain Svelte applications alongside modern and legacy SvelteKit projects. It detects the specific framework version and applies the appropriate SDK installation and initialization steps.

How do I configure structured logging with Sentry in Svelte?

Configuring structured logging with Sentry in Svelte involves initializing the SDK with logging parameters enabled. This skill sets up structured logging alongside error monitoring and tracing within a single automated workflow.

Does Sentry SDK work with both client and server environments in SvelteKit?

Yes, Sentry SDK works with both client and server environments in SvelteKit. This skill ensures correct configuration across your entire application by detecting existing hook files and applying the proper setup paths.