No slash command · from typescript-plugin
Configures Sentry SDK error monitoring and performance tracking for Bun/Node.js/Next.js apps. Handles error capture, breadcrumbs, spans, cron monitoring, source maps, structured logging, and profiling.
Ships in typescript-plugin. 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.
Read when SKILL.md points to them.
This skill covers the SDK-side work: capture, spans, cron monitors, source maps, profiling, filtering. For project-level Sentry compliance (DSN hygiene, sourcemap-upload wiring in CI) use /configure:sentry; for local step-through debugging use typescript-debugging.
Sentry provides error monitoring and performance tracking:
enableLogs)bun add @sentry/bun
bun add @sentry/node
bun add @sentry/nextjs @sentry/profiling-node
bun add @sentry/react
# or
bun add @sentry/browser
try {
await riskyOperation();
} catch (error) {
Sentry.captureException(error);
throw error; // Re-throw if needed
}
Sentry.captureException(error, {
tags: {
feature: "checkout",
paymentProvider: "stripe",
},
extra: {
orderId: order.id,
userId: user.id,
cartItems: cart.items.length,
},
level: "error", // fatal, error, warning, info, debug
});
// Simple message
Sentry.captureMessage("User completed onboarding");
// With level
Sentry.captureMessage("Rate limit approaching", "warning");
// With context
Sentry.captureMessage("Payment failed", {
level: "error",
tags: { gateway: "stripe" },
extra: { errorCode: "card_declined" },
});
| Context | Command |
|---|---|
| Install Bun | bun add @sentry/bun |
| Install Node | bun add @sentry/node |
| Install Next.js | bun add @sentry/nextjs @sentry/profiling-node |
| Install React | bun add @sentry/react |
| Install CLI | bun add -D @sentry/cli |
| Upload maps | npx sentry-cli sourcemaps inject ./dist && npx sentry-cli sourcemaps upload ./dist |
| Setup wizard | npx @sentry/wizard@latest -i sourcemaps |
| Test capture | Sentry.captureMessage("Test from dev") |
| Method | Purpose |
|---|---|
captureException(error) | Capture error with stack trace |
captureMessage(msg) | Capture text message |
captureCheckIn(opts) | Cron job check-in |
addBreadcrumb(crumb) | Add navigation/action trail |
| Method | Purpose |
|---|---|
setTag(key, value) | Add filterable tag |
setExtra(key, value) | Add debug data |
setUser(user) | Set user context |
withScope(callback) | Scoped context |
| Method | Purpose |
|---|---|
startSpan(opts, callback) | Create performance span |
withMonitor(slug, callback) | Monitor cron job |
| Level | Use Case |
|---|---|
fatal | App crash, unrecoverable |
error | Error requiring attention |
warning | Potential issue |
info | Informational |
debug | Debugging only |
| Option | Description |
|---|---|
dsn | Project data source name |
environment | Environment name (production, staging) |
release | Application version |
tracesSampleRate | Transaction sample rate (0.0-1.0) |
tracesSampler | Dynamic sampling function |
sendDefaultPii | Capture IP/headers |
integrations | SDK integrations array |
enableLogs | Forward structured logs to Sentry |
profileSessionSampleRate | Profiling sample rate (0.0-1.0) |
profileLifecycle | "trace" profiles every traced request |
replaysSessionSampleRate | Session replay sample rate |
replaysOnErrorSampleRate | Replay capture rate on errors |
ignoreErrors | Error patterns to suppress; strings match as substrings (see REFERENCE.md) |
beforeSend | Filter/modify events before sending |
beforeSendTransaction | Filter transactions before sending |
beforeSendLog | Filter structured logs before sending |
For detailed examples, advanced patterns, and best practices, see REFERENCE.md.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Sentry, Node, Next.js, TypeScript, Bun
18 skills in this plugin
/biome-toolingBiome all-in-one JS/TS formatter and linter, 15-20x faster than ESLint/Prettier. Use when setting up formatting/linting or migrating from ESLint+Prettier./bun-addBun add: install a package, add dev dependency, pin exact version, or target a workspace. Use when the user wants to add/install a specific package with bun./bun-buildBun build: bundle or compile JS/TS to production bundle or standalone binary. Use when the user wants to bundle, compile, or build for browser/bun/node target./bun-debugBun debugger via --inspect. Use when the user wants to debug a TS/JS file interactively, break at first line, wait for attach, or debug tests with --inspect-brk./bun-developmentBun runtime workflows for running scripts, testing, building, and initializing projects with agent-optimized flags. Use when running a TS file, watch/hot reload, configuring `bun test`, bundling/compiling, or scaffolding a Bun project./bun-installBun install: install all deps from package.json. Use when bootstrapping a checkout, running a reproducible CI install (--frozen-lockfile), or deploying (--production).npx claudepluginhub laurigates/claude-plugins --plugin typescript-pluginOther plugins' skills for the same job