Skip to main content
skill CX Codex

sentry · brianlovin — Claude Code skill for Next.js monitoring

Guides an agent through Sentry error capture and performance tracing in Next.js code. Use it while adding Sentry instrumentation to an application.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add brianlovin/agent-config --skill sentry -a claude-code
Open on GitHub

What sentry does

The skill recommends capturing caught failures with Sentry.captureException(error) before rethrowing them. It adds spans around meaningful work, including interface clicks, HTTP client requests, and function calls. A span can carry an operation, a name, and attributes.

Next.js setup uses sentry.client.config.ts, sentry.server.config.ts, and sentry.edge.config.ts, while application code imports @sentry/nextjs. The setup example reads process.env.NEXT_PUBLIC_SENTRY_DSN and enables logs; logger supports context fields and formatted variables. Check the DSN environment value before running the app.

What it helps with

  • capture exceptions inside try/catch blocks
  • trace HTTP requests with Sentry spans
  • add spans around interface clicks
  • attach context to structured log events

Example prompts for the agent

  • Add Sentry exception capture and rethrow the error in this try/catch block.
  • Wrap GET /api/items/${id} in a Sentry client span.
  • Set up sentry.edge.config.ts with NEXT_PUBLIC_SENTRY_DSN and logs.

How to install sentry

1Skills CLI (Vercel)

npx skills add brianlovin/agent-config --skill sentry -a claude-code

2Manually: put the files in place

~/.claude/skills/sentry/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/sentry/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about sentry

How do I install sentry in Claude Code?

Run npx skills add brianlovin/agent-config --skill sentry -a claude-code, then run npx skills add brianlovin/agent-config --skill sentry -a claude-code again. The skill file is at ~/.claude/skills/sentry/SKILL.md.

What does sentry do?

This skill gives an agent patterns for adding Sentry to a Next.js project. It covers exception capture, performance spans, and structured logging.

Which Next.js configuration files does Sentry use?

It uses sentry.client.config.ts, sentry.server.config.ts, and sentry.edge.config.ts. Application code imports @sentry/nextjs.

Similar skills

Everything for Frontend and UI →

sentry by other authors comes first.

From the same set12

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor