sentry

sentry is a skill for Claude Code, Codex from artivilla/agents-config. It costs 16 tokens per session (528 once invoked), scanned A, original, MIT.

Guidance for adding Sentry error monitoring and performance tracing to Next.js applications. Sentry is a service that records application errors and measures how long important operations take.

In plain words
What is it for?
Use it when adding `@sentry/nextjs` code to client, server, and edge runtimes, capturing exceptions, or tracing UI actions and API requests.
Why use it?
It shows where to initialise Sentry and how to record caught errors, user actions, API calls, and other meaningful operations.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when adding @sentry/nextjs code to client, server, and edge runtimes, capturing exceptions, or tracing UI actions and API requests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/artivilla/agents-config/sentry
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add artivilla/agents-config --skill sentry
Clone the repo
git clone --depth 1 https://github.com/artivilla/agents-config

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for sentry

README.md
[![agentmods](https://agentmods.dev/badge/skills/artivilla/agents-config/sentry/github.svg)](https://agentmods.dev/skills/artivilla/agents-config/sentry)
Your own site
<a href="https://agentmods.dev/skills/artivilla/agents-config/sentry"><img src="https://agentmods.dev/badge/skills/artivilla/agents-config/sentry/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for sentry

Your own site · 80×15
<a href="https://agentmods.dev/skills/artivilla/agents-config/sentry"><img src="https://agentmods.dev/badge/skills/artivilla/agents-config/sentry.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 528 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00016 $0.00528
Opus 5.5 $0.00006 $0.00211
Sonnet 5.5 $0.00003 $0.00106
Haiku 4.5 $0.00002 $0.00053

Measured 3mo ago against content hash 77c0731472f5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

sentry scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/sentry/SKILL.md · 100 lines

How it starts

The opening of the file, as written. The whole thing — 100 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Sentry Integration

Guidelines for using Sentry for error monitoring and performance tracing.

Exception Catching

Use Sentry.captureException(error) in try/catch blocks:

try {
  await riskyOperation();
} catch (error) {
  Sentry.captureException(error);
  throw error;
}

Performance Tracing

Create spans for meaningful actions like button clicks, API calls, and function calls.

UI Actions

function handleClick() {
  Sentry.startSpan(
    { op: "ui.click", name: "Submit Form" },
    (span) => {
      span.setAttribute("formId", formId);
      submitForm();
    }
  );
}

API Calls

async function fetchData(id) {
  return Sentry.startSpan(
    { op: "http.client", name: `GET /api/items/${id}` },
    async () => {
      const response = await fetch(`/api/items/${id}`);
      return response.json();
    }
  );
}

Configuration (Next.js)

Sentry initialization files:

  • sentry.client.config.ts - Client-side
  • sentry.server.config.ts - Server-side
  • sentry.edge.config.ts - Edge runtime

Import with import * as Sentry from "@sentry/nextjs" - no need to initialize in other files.

Basic Setup

import * as Sentry from "@sentry/nextjs";

Sentry.init({
  dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
  enableLogs: true,
});

With Console Logging

Sentry.init({
  dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
  integrations: [
    Sentry.consoleLoggingIntegration({ levels: ["log", "warn", "error"] }),
  ],
});

Structured Logging

Use logger.fmt for template literals with variables:

const { logger } = Sentry;

logger.trace("Starting connection", { database: "users" });
logger.debug(logger.fmt`Cache miss for: ${userId}`);
logger.info("Updated profile", { profileId: 345 });
logger.warn("Rate limit reached", { endpoint: "/api/data" });
logger.error("Payment failed", { orderId: "order_123" });
logger.fatal("Connection pool exhausted", { activeConnections: 100 });

Read the full file on GitHub · 100 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 100 lines · 16 tokens per session scan A 77c0731472f5

Subscribe to this mod's changes

sentry is a skill published in the GitHub repository artivilla/agents-config (0 stars, last pushed 5mo ago), licensed MIT. It adds 16 tokens to every session and 528 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

sentry compared with skills from other repositories

sentry next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
sentryartivilla/agents-configSkill05mo agoMITA16Claude Code, Codex
workers-developmentcloudflare/skillsSkill3.6k2d agoApache-2.0A68Claude Code
workers-profilingcloudflare/skillsSkill3.6k2d agoApache-2.0A31Claude Code
testing-dagsastronomer/agentsSkill4662d agoApache-2.0A77Claude Code
debugging-dagsastronomer/agentsSkill4662d agoApache-2.0A111Claude Code
observability-debuggingnavikt/copilotSkill65todayMITA38Claude Code, Codex
nav-troubleshootnavikt/copilotSkill65todayMITA38Claude Code, Codex