Skip to main content
skill CX Codex

sentry-best-practices — Claude Code skill for Sentry

The sentry-best-practices Claude Code skill guides Sentry error capture, context, tracing, and logging in application code. It activates during work on error handling or performance instrumentation.

no license 106 installs ★ 23 updated 2026-06-08

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

What sentry-best-practices does

The skill shows how to send caught exceptions to Sentry and associate them with user and error details. It also covers tracing operations with spans, recording custom breadcrumbs, and writing structured logs through Sentry Logger.

Its examples use @sentry/nextjs. The Sentry Setup recipe comes first. Clear the session user on sign-out, or that user's details can remain attached to the session.

What it helps with

  • send caught exceptions to Sentry
  • attach user and error details to an exception
  • trace API calls and UI actions with spans
  • record structured Sentry logs

Example prompts for the agent

  • Add Sentry reporting for caught application errors.
  • Attach the current user and order details to this exception.
  • Trace the API request and the button click with spans.

How to install sentry-best-practices

1Skills CLI (Vercel)

npx skills add andrelandgraf/fullstackrecipes --skill sentry-best-practices -a claude-code

2Manually: put the files in place

~/.claude/skills/sentry-best-practices/SKILL.md

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

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

Questions about sentry-best-practices

How do I install sentry-best-practices in Claude Code?

Run npx skills add andrelandgraf/fullstackrecipes --skill sentry-best-practices -a claude-code. The skill file is placed at ~/.claude/skills/sentry-best-practices/SKILL.md.

What does sentry-best-practices do?

It explains how to capture exceptions, attach user and error context, trace operations, add breadcrumbs, and write structured Sentry logs.

What does sentry-best-practices need to work?

Complete the Sentry Setup recipe first. The examples use the @sentry/nextjs package.

Similar skills

All skills for Backend and APIs →

From the same set9

ralph-loop-workflow The ralph-loop-workflow skill runs an agent through a coding loop that turns a broad goal into tasks, changes code, and checks the result. Use it for work that needs repeated agent-led iterations. CX Codex +1 684installs use-fullstackrecipes use-fullstackrecipes — a skill for discovering and applying fullstackrecipes: setup guides for tools and day-to-day patterns for databases and APIs. The agent fetches the needed .md from the site and follows its instructions. CX Codex +1 240installs testing-best-practices testing-best-practices — a skill that teaches the agent to pick the right test type (Playwright, integration, or unit) and run it against an isolated Neon branch that auto-deletes after an hour. CX Codex +1 113installs logging-best-practices logging-best-practices teaches the agent to write structured Pino logs: context-first signature, levels for different scenarios, workflow-safe wrapper. CX Codex +1 111installs url-state-patterns The url-state-patterns Claude Code skill keeps React state in sync with URL query parameters using nuqs. It activates for shareable filters, search, and dialogs opened through a link. CX Codex +1 110installs authentication-best-practices The authentication-best-practices Claude Code skill covers Better Auth sessions, route protection, and sign-in flows. It activates when a task involves access control for pages or APIs. CX Codex +1 106installs workflow-best-practices The workflow-best-practices Claude Code skill covers durable workflows with steps, streaming, and agent runs. It applies when creating, starting, resuming, or saving a workflow. CX Codex +1 104installs drizzle-queries The drizzle-queries Claude Code skill guides type-safe Postgres queries with Drizzle ORM. It activates for database reads, mutations, and new table work. CX Codex +1 103installs

More in the catalog

Project sponsors

Companies that keep this analytics open