Adds Temps error tracking to apps using the Sentry-compatible SDK. Supports React, Next.js, Vue, Svelte, Angular, Node.js, Python, Go, Rust, Ruby, Java, PHP, .NET, React Native, Flutter. Configures exception capture, session replay, source maps, releases, and custom errors.
Ships in Temps. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Integrate Temps error tracking (Sentry-compatible) into an application. The Temps DSN is a drop-in replacement for a Sentry DSN — use the official Sentry SDK for the user's platform and point it at the Temps DSN via an environment variable.
Temps is Sentry wire-compatible, so every skill Sentry publishes for their SDKs works against a Temps DSN. If the user's CLI already has one of these installed, route them to it and only substitute the DSN:
| User's platform | Sentry skill | Source |
|---|---|---|
| Next.js | /sentry-nextjs-sdk | getsentry/sentry-for-ai |
| React (Vite, Remix, etc.) | /sentry-react-sdk | getsentry/sentry-for-ai |
| Vanilla browser JS | /sentry-browser-sdk | getsentry/sentry-for-ai |
| Node.js | /sentry-node-sdk | getsentry/sentry-for-ai |
| React Native | /sentry-react-native-sdk | getsentry/sentry-for-ai |
| Generic (language-agnostic) | /sentry-sdk-setup | getsentry/sentry-for-ai |
For platforms Sentry has no dedicated skill for (Vue, Svelte, Angular, Python, Go, Rust, Ruby, Java, PHP, .NET, Flutter, etc.), follow the setup in this file directly.
Always set the DSN from an environment variable — never hardcode it. The user will point the env var at their Temps DSN instead of a Sentry DSN.
Infer the platform from the codebase:
package.json with "next" → Next.js → @sentry/nextjspackage.json with "react" and Vite/Remix/CRA → React → @sentry/reactpackage.json with "vue" or "nuxt" → Vue → @sentry/vuepackage.json with "svelte" or "@sveltejs/kit" → Svelte → @sentry/sveltekitpackage.json with "@angular/core" → Angular → @sentry/angularpackage.json with "express", "fastify", "@nestjs/core" → Node.js → @sentry/nodepackage.json with "react-native" or "expo" → React Native → @sentry/react-nativerequirements.txt/pyproject.toml with Flask, Django, FastAPI → Python → sentry-sdkgo.mod → Go → github.com/getsentry/sentry-goCargo.toml → Rust → sentryGemfile with rails → Ruby → sentry-ruby + sentry-railspom.xml/build.gradle with Spring → Java → sentry-spring-boot-starter-jakartacomposer.json with laravel/framework or symfony/* → PHP → sentry/sentry.csproj with Microsoft.AspNetCore.* → .NET → Sentry.AspNetCorepubspec.yaml with flutter → Flutter → sentry_flutterThe user's Temps project exposes a DSN at Error Tracking → DSN & Setup. It looks like:
https://<public_key>@<temps-host>/<project_id>
If the user has not provided a DSN, tell them to:
Always store the DSN in an environment variable. The exact variable name depends on the platform (browser bundlers often require a prefix to expose vars to the client):
| Platform | Env var name |
|---|---|
| Next.js | NEXT_PUBLIC_SENTRY_DSN |
| Vite / React / Vue | VITE_SENTRY_DSN |
| SvelteKit | PUBLIC_SENTRY_DSN |
| Angular | SENTRY_DSN (injected via environment.ts) |
| Everything else (Node, Python, Go, Rust, Ruby, Java, PHP, .NET, Flutter) | SENTRY_DSN |
# .env
SENTRY_DSN=https://<public_key>@<temps-host>/<project_id>
tunnelFor every browser platform (Next.js client config, React, Vue, Svelte,
vanilla JS — not server-side SDKs, not React Native/Flutter), also pass
tunnel in the same Sentry.init call:
Sentry.init({
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
tunnel: process.env.NEXT_PUBLIC_SENTRY_TUNNEL,
});
Why: without tunnel, the SDK POSTs straight to the DSN's host (the Temps
console), which is a third-party, cross-origin request from the app's own
domain — ad blockers commonly block it, and it costs a CORS preflight on
every event. With tunnel set to a same-origin path, the browser posts to
the app's own domain instead; Temps' proxy forwards anything under
/api/_temps to the console regardless of which project domain it arrived
on, so this works unmodified on custom domains and preview URLs.
The value is a fixed path, not a secret — Temps injects it automatically as an env var alongside the DSN, under the same bundler-specific public prefix (so if the DSN reaches the client bundle, the tunnel path does too):
| Platform | DSN env var | Tunnel env var |
|---|---|---|
| Next.js | NEXT_PUBLIC_SENTRY_DSN | NEXT_PUBLIC_SENTRY_TUNNEL |
| Vite / React / Vue | VITE_SENTRY_DSN | VITE_SENTRY_TUNNEL |
| SvelteKit | PUBLIC_SENTRY_DSN | PUBLIC_SENTRY_TUNNEL |
| Angular | SENTRY_DSN (via environment.ts) | (none — no public-prefix convention; skip tunnel) |
If deploying outside Temps (or the tunnel var isn't set for some other
reason), you have two options. Omit tunnel — the SDK falls back to posting
straight to the DSN host, which still works, just cross-origin. Or point
tunnel at the absolute tunnel URL of the Temps instance, e.g.
tunnel: "https://your-temps-instance.example.com/api/_temps/sentry/envelope":
the endpoint resolves the project from the DSN the SDK embeds in the envelope,
so it does not need the app to be served by Temps. That keeps the tunnel's
ad-blocker resistance for an app Temps does not host, at the cost of the
cross-origin request the same-origin variant avoids.
Leave out Sentry.replayIntegration() and tracesSampleRate for browser
projects unless you specifically want them — Temps doesn't yet ingest Sentry
session replay or performance transactions, so that traffic would be
uploaded (through the tunnel, using the visitor's bandwidth) and discarded
server-side. Use Temps' own session replay and analytics SDKs for those
instead (see the add-session-recording and add-react-analytics skills).
Every snippet below reads the DSN from an env var — do not hardcode it.
npx @sentry/wizard@latest -i nextjs
Or manually:
npm install @sentry/nextjs
// sentry.client.config.ts (or instrumentation-client.ts on newer @sentry/nextjs)
import * as Sentry from '@sentry/nextjs';
Sentry.init({
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
tunnel: process.env.NEXT_PUBLIC_SENTRY_TUNNEL,
});
Mirror the dsn (no tunnel, no replay) in sentry.server.config.ts and
sentry.edge.config.ts — those run server-side and post directly to the
console.
Do not set tunnelRoute in withSentryConfig — it's a different
mechanism (forwards through a Next.js server route) and its own docs state
it doesn't work with self-hosted Sentry, which is what Temps' DSN
compatibility layer is. Use the tunnel option shown above instead.
npm install @sentry/react
// src/sentry.ts — import this first in main.tsx / root.tsx
import * as Sentry from '@sentry/react';
Sentry.init({
dsn: import.meta.env.VITE_SENTRY_DSN,
tunnel: import.meta.env.VITE_SENTRY_TUNNEL,
environment: import.meta.env.MODE,
});
Wrap the app root with <Sentry.ErrorBoundary> for React render errors.
npm install @sentry/vue
// src/main.ts
import { createApp } from 'vue';
import * as Sentry from '@sentry/vue';
import App from './App.vue';
const app = createApp(App);
Sentry.init({
app,
dsn: import.meta.env.VITE_SENTRY_DSN,
tunnel: import.meta.env.VITE_SENTRY_TUNNEL,
});
app.mount('#app');
npx @sentry/wizard@latest -i sveltekit
// src/hooks.client.ts
import * as Sentry from '@sentry/sveltekit';
import { PUBLIC_SENTRY_DSN, PUBLIC_SENTRY_TUNNEL } from '$env/static/public';
Sentry.init({
dsn: PUBLIC_SENTRY_DSN,
tunnel: PUBLIC_SENTRY_TUNNEL,
});
export const handleError = Sentry.handleErrorWithSentry();
Mirror in src/hooks.server.ts using $env/dynamic/private for the server DSN.
npm install @sentry/angular
// src/main.ts
import * as Sentry from '@sentry/angular';
import { environment } from './environments/environment';
Sentry.init({
dsn: environment.sentryDsn,
tracesSampleRate: 1.0,
});
Populate environment.sentryDsn from process.env.SENTRY_DSN at build time.
No public-prefix tunnel var is injected for Angular (no bundler convention to
mirror) — skip tunnel here; the SDK posts directly to the DSN host.
npm install @sentry/browser
import * as Sentry from '@sentry/browser';
Sentry.init({
dsn: import.meta.env.VITE_SENTRY_DSN,
tunnel: import.meta.env.VITE_SENTRY_TUNNEL,
});
npm install @sentry/node
// Must be the first import in your entrypoint.
import * as Sentry from '@sentry/node';
Sentry.init({
dsn: process.env.SENTRY_DSN,
environment: process.env.NODE_ENV,
tracesSampleRate: 1.0,
});
For Express:
import express from 'express';
import * as Sentry from '@sentry/node';
const app = express();
Sentry.setupExpressErrorHandler(app);
npx @sentry/wizard@latest -s -i reactNative
import * as Sentry from '@sentry/react-native';
Sentry.init({
dsn: process.env.SENTRY_DSN,
tracesSampleRate: 1.0,
replaysSessionSampleRate: 0.1,
replaysOnErrorSampleRate: 1.0,
});
export default Sentry.wrap(App);
pip install sentry-sdk
import os
import sentry_sdk
sentry_sdk.init(
dsn=os.environ["SENTRY_DSN"],
environment=os.environ.get("ENV", "development"),
traces_sample_rate=1.0,
profiles_sample_rate=1.0,
)
Framework integrations:
# Flask
from sentry_sdk.integrations.flask import FlaskIntegration
sentry_sdk.init(dsn=os.environ["SENTRY_DSN"], integrations=[FlaskIntegration()])
# Django
from sentry_sdk.integrations.django import DjangoIntegration
sentry_sdk.init(dsn=os.environ["SENTRY_DSN"], integrations=[DjangoIntegration()])
# FastAPI
from sentry_sdk.integrations.starlette import StarletteIntegration
from sentry_sdk.integrations.fastapi import FastApiIntegration
sentry_sdk.init(
dsn=os.environ["SENTRY_DSN"],
integrations=[StarletteIntegration(), FastApiIntegration()],
)
go get github.com/getsentry/sentry-go
package main
import (
"log"
"os"
"time"
"github.com/getsentry/sentry-go"
)
func main() {
err := sentry.Init(sentry.ClientOptions{
Dsn: os.Getenv("SENTRY_DSN"),
TracesSampleRate: 1.0,
Environment: os.Getenv("ENV"),
})
if err != nil {
log.Fatalf("sentry.Init: %s", err)
}
defer sentry.Flush(2 * time.Second)
}
cargo add sentry sentry-tracing
use std::env;
fn main() {
let _guard = sentry::init((
env::var("SENTRY_DSN").expect("SENTRY_DSN must be set"),
sentry::ClientOptions {
release: sentry::release_name!(),
traces_sample_rate: 1.0,
environment: env::var("ENV").ok().map(Into::into),
..Default::default()
},
));
// Your app entrypoint
}
bundle add sentry-ruby sentry-rails
# config/initializers/sentry.rb
require "sentry-ruby"
require "sentry-rails"
Sentry.init do |config|
config.dsn = ENV["SENTRY_DSN"]
config.environment = ENV.fetch("RAILS_ENV", "development")
config.traces_sample_rate = 1.0
end
<!-- pom.xml -->
<dependency>
<groupId>io.sentry</groupId>
<artifactId>sentry-spring-boot-starter-jakarta</artifactId>
<version>7.14.0</version>
</dependency>
# application.properties — Spring reads ${SENTRY_DSN} from the environment
sentry.dsn=${SENTRY_DSN}
sentry.environment=${ENV:development}
sentry.traces-sample-rate=1.0
composer require sentry/sentry
<?php
\Sentry\init([
'dsn' => $_ENV['SENTRY_DSN'],
'environment' => $_ENV['APP_ENV'] ?? 'development',
'traces_sample_rate' => 1.0,
]);
For Laravel, use sentry/sentry-laravel and configure via config/sentry.php reading env('SENTRY_DSN').
dotnet add package Sentry.AspNetCore
// Program.cs
builder.WebHost.UseSentry(options =>
{
options.Dsn = Environment.GetEnvironmentVariable("SENTRY_DSN");
options.Environment = builder.Environment.EnvironmentName;
options.TracesSampleRate = 1.0;
});
flutter pub add sentry_flutter
import 'package:flutter/widgets.dart';
import 'package:sentry_flutter/sentry_flutter.dart';
Future<void> main() async {
await SentryFlutter.init(
(options) {
options.dsn = const String.fromEnvironment('SENTRY_DSN');
options.tracesSampleRate = 1.0;
},
appRunner: () => runApp(const MyApp()),
);
}
Pass the DSN at build time: flutter run --dart-define=SENTRY_DSN=$SENTRY_DSN.
import * as Sentry from '@sentry/react'; // or /browser, /node, /nextjs, etc.
try {
doRiskyThing();
} catch (err) {
Sentry.captureException(err);
}
Sentry.captureMessage('Something notable happened', 'warning');
try:
do_risky_thing()
except Exception as exc:
sentry_sdk.capture_exception(exc)
sentry_sdk.capture_message("Something notable happened", level="warning")
sentry.CaptureException(err)
sentry.CaptureMessage("Something notable happened")
sentry::capture_error(&err);
sentry::capture_message("Something notable happened", sentry::Level::Warning);
Upload source maps during CI so the Temps dashboard shows original source in stack traces.
npm install --save-dev @sentry/cli
sentry-cli sourcemaps inject ./dist
sentry-cli sourcemaps upload \
--url-prefix '~/' \
--release "$GIT_SHA" \
./dist
The Temps dashboard also accepts source map uploads via Error Tracking → Source Maps in the UI.
After wiring up:
throw new Error('Temps error tracking test');raise Exception('Temps error tracking test')sentry.CaptureException(errors.New("Temps test"))panic!("Temps test") (inside a handler caught by the Sentry integration)Sentry.init must be the very first import.NEXT_PUBLIC_, VITE_, PUBLIC_) so it reaches the client bundle..env files are not copied automatically.Origin (or Referer) matches the domain it arrived on — this rejects a script sending forged events to someone else's project, but also anything proxying/rewriting the request in a way that drops or rewrites Origin. Confirm nothing between the browser and the app strips that header.Host header via Temps' routing table — this only works for the domain(s) actually deployed on Temps. A tunnel env var used on a domain temps doesn't serve (e.g. testing against a different environment's URL) has nowhere to resolve to.What SKILL.md sets; muted values are Claude Code's defaults
/temps:add-error-trackingfrom Temps
npx claudepluginhub gotempsh/temps --plugin temps11 skills in this plugin
/add-custom-domainAdd a custom domain to a Temps project and provision an automatic SSL/TLS certificate via Let's Encrypt, driven entirely from the `@temps-sdk/cli` CLI. Handles subdomains, apex domains, HTTP-01 and DNS-01 challenges, wildcard domains, and domains served through a Cloudflare Tunnel (no certificate, no open ports). Use when the user wants to: (1) Add a custom domain to their Temps app, (2) Set up HTTPS/SSL for a deployment, (3) Point their own domain at a Temps project, (4) Add a wildcard domain, (5) Configure DNS for Temps, (6) Expose an app on a worker behind NAT through a tunnel. Triggers: "add custom domain", "point my domain at temps", "set up ssl", "https for my app", "wildcard domain", "add domain to project", "cloudflare tunnel", "expose app without open ports".
/add-node-sdkIntegrate the Temps Node.js SDKs for server-side platform access, KV storage, and Blob storage. Use when the user wants to: (1) Call the Temps platform API from Node.js (deployments, projects, analytics, session replay, etc.), (2) Use Temps KV (key-value) storage, (3) Use Temps Blob storage for files, (4) Server-side integration with a Temps project, (5) Backend access to Temps resources. Triggers: "temps node sdk", "temps kv", "temps blob", "backend integration", "node.js temps", "@temps-sdk/node-sdk".
/add-react-analyticsAdd Temps analytics to React applications with comprehensive tracking capabilities including page views, custom events, scroll tracking, engagement monitoring, session recording, and Web Vitals performance metrics. Use when the user wants to: (1) Add analytics to a React app (Next.js App Router, Next.js Pages Router, Vite, Create React App, or Remix), (2) Track user events or interactions, (3) Monitor scroll depth or element visibility, (4) Add session recording/replay, (5) Track Web Vitals or performance metrics, (6) Measure user engagement or time on page, (7) Set up product analytics or telemetry. Triggers: "add analytics", "track events", "session recording", "web vitals", "user tracking", "temps analytics", "react analytics".
/add-session-recordingAdd privacy-aware session recording and replay to React applications using the Temps SDK. Captures user interactions for playback while respecting privacy through input masking, element blocking, and GDPR-compliant consent flows. Use when the user wants to: (1) Add session recording to their app, (2) Implement session replay functionality, (3) Record user sessions for debugging, (4) Add privacy-compliant screen recording, (5) Debug user issues with visual replay, (6) Implement rrweb-based recording, (7) Set up GDPR-compliant session capture. Triggers: "session recording", "session replay", "record sessions", "user replay", "screen recording", "rrweb", "session capture".
/deploy-to-tempsDeploy applications to the Temps platform with automatic framework detection, Dockerfile generation, and container orchestration. Supports Next.js, Vite, React, Node.js, Python, Go, Rust, Java, and C# applications. Use when the user wants to: (1) Deploy their app to Temps, (2) Set up CI/CD with Temps, (3) Configure deployment settings, (4) Create a Dockerfile for Temps, (5) Deploy a containerized application, (6) Set up automatic deployments from Git. Triggers: "deploy to temps", "temps deployment", "push to temps", "containerize for temps", "temps ci/cd".
/estimate-temps-savingsAudit a project's infrastructure and SaaS stack, then produce a cost report showing what the user currently pays and what they would save by consolidating onto Temps (self-hosted or Temps Cloud). Detects hosting platforms (Vercel, Netlify, Railway, Render, Heroku, Fly.io), analytics (PostHog, Plausible, Mixpanel, Amplitude, Fathom), error tracking (Sentry, Bugsnag, Rollbar, Honeybadger), session replay (LogRocket, FullStory, Hotjar, Highlight), uptime monitoring (Pingdom, UptimeRobot, Better Stack, Checkly), managed databases (Supabase, Neon, PlanetScale, MongoDB Atlas, Upstash, RDS), and transactional email (SendGrid, Postmark, Resend, Mailgun) from dependencies, config files, and env var names. Use when the user wants to: (1) Know how much they would save by switching to Temps, (2) Audit their SaaS/infrastructure spend, (3) Compare their current stack's cost against self-hosting, (4) Decide whether Temps is worth it, (5) Build a business case for consolidating tools. Triggers: "how much would I save", "temps savings", "cost comparison", "audit my stack", "am I overpaying", "saas spend", "calculate savings", "is temps cheaper".
Other plugins' skills for the same job