sentry

sentry is a skill for Claude Code, Codex from znlgis/opengis-skills. It costs 60 tokens per session (2,156 once invoked), scanned A, original, MIT.

A .NET SDK for sending application errors, crashes, timing data, and surrounding activity to Sentry, an error-tracking and monitoring service. It supports ASP.NET Core, MAUI, WPF, Blazor, console apps, and related integrations.

In plain words
What is it for?
Use it to capture exceptions, monitor HTTP and database performance, inspect user actions before an error, restore readable stack traces for released builds, and connect .NET apps to Sentry.
Why use it?
It makes failures and slow operations easier to investigate by collecting error details and the events around them. It can also notify a team about issues and show whether releases remain healthy.

Skill for Claude CodeCodex

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

Good fit Use it to capture exceptions, monitor HTTP and database performance, inspect user actions before an error, restore readable stack traces for released builds, and connect .NET apps to Sentry.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/znlgis/opengis-skills/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 znlgis/opengis-skills --skill sentry
Clone the repo
git clone --depth 1 https://github.com/znlgis/opengis-skills

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/znlgis/opengis-skills/sentry/github.svg)](https://agentmods.dev/skills/znlgis/opengis-skills/sentry)
Your own site
<a href="https://agentmods.dev/skills/znlgis/opengis-skills/sentry"><img src="https://agentmods.dev/badge/skills/znlgis/opengis-skills/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/znlgis/opengis-skills/sentry"><img src="https://agentmods.dev/badge/skills/znlgis/opengis-skills/sentry.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,156 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00060 $0.02156
Opus 5 $0.00030 $0.01078
Sonnet 5 $0.00012 $0.00431
Haiku 4.5 $0.00006 $0.00216

Measured yesterday against content hash bae69a1ef42a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, 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 yesterday.

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.

csharp/sentry/SKILL.md · 259 lines

How it starts

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

项目地址: https://github.com/getsentry/sentry-dotnet

官方文档: https://docs.sentry.io/platforms/dotnet/

NuGet: https://www.nuget.org/packages/Sentry

许可证: MIT

概述

Sentry 是一个开源的 错误追踪与性能监控平台,.NET SDK 支持将异常、崩溃、性能指标统一上报到 Sentry 服务端(SaaS 或自托管)。

核心特性

特性 说明
自动异常捕获 集成 ASP.NET Core / MAUI / WPF / Blazor / Console
性能监控 Transaction + Span 模型,自动采集 HTTP/DB/EF Core 耗时
源码映射 Release + Debug Files 支持,还原压缩/混淆后的堆栈
Breadcrumb 自动记录用户操作、HTTP 请求、日志等上下文
Session Replay 用户会话回放(Web 前端支持)
Alerting 基于 Issue / Metric 的告警规则
自托管 完整的自托管部署方案(Docker/Kubernetes)

支持的平台

包名 用途
Sentry 核心 SDK(控制台/Worker)
Sentry.AspNetCore ASP.NET Core Web API / MVC
Sentry.Maui .NET MAUI 移动应用
Sentry.AspNetCore.Blazor.WebAssembly Blazor WASM
Sentry.EntityFramework Entity Framework Core 集成
Sentry.DiagnosticSource DiagnosticSource 事件采集
Sentry.OpenTelemetry OpenTelemetry 集成
Sentry.Profiling 代码级性能剖析

环境准备

安装

# ASP.NET Core 项目
dotnet add package Sentry.AspNetCore

# 控制台 / Worker 项目
dotnet add package Sentry

# 可选集成
dotnet add package Sentry.EntityFramework     # EF Core
dotnet add package Sentry.DiagnosticSource    # HTTP / EF Core 自动 Span
dotnet add package Sentry.OpenTelemetry       # OTel 桥接
dotnet add package Sentry.Profiling           # 性能剖析

初始化

// ASP.NET Core (Program.cs)
builder.WebHost.UseSentry(o =>
{
    o.Dsn = "https://[email protected]/0";
    o.TracesSampleRate = 1.0;  // 100% 性能追踪采样
    o.Environment = builder.Environment.EnvironmentName;
    o.Release = "[email protected]";
});

// 控制台应用
SentrySdk.Init(o =>
{
    o.Dsn = "https://[email protected]/0";
    o.TracesSampleRate = 0.2;  // 20% 采样
});

核心 API

手动上报异常

try
{
    DoSomething();
}
catch (Exception ex)
{
    // 添加额外上下文
    SentrySdk.ConfigureScope(scope =>
    {
        scope.SetTag("feature", "payment");
        scope.SetExtra("request_body", requestBody);
        scope.User = new SentryUser { Id = "12345", Email = "[email protected]" };
    });
    
    SentrySdk.CaptureException(ex);
}

Read the full file on GitHub · 259 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. 7d ago Changed 5dc2261a061d
  2. 11d ago First seen · 259 lines · 60 tokens per session scan A bae69a1ef42a

Subscribe to this mod's changes

sentry is a skill published in the GitHub repository znlgis/opengis-skills (60 stars, last pushed yesterday), licensed MIT. It adds 60 tokens to every session and 2,156 once invoked, about $0.0003 per session on Opus 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-30.

Related

Other skills, from other repositories

opentelemetry-net-instrumentation

Provides guidance for implementing OpenTelemetry instrumentation in .NET codebases, covering tracing (Activities/Spans), metrics, logs, naming conventions, error handling, performance, SDK setup, resources, context propagation, and API design best practices.

Aaronontheweb/dotnet-skills · 56 tokens

safe-github-push

A workflow for safely pushing Git repositories that contain large assets or binary files to GitHub. It checks repository changes and file sizes before planning commits and pushes.

moorestech/moorestech · 114 tokens

improve-test-coverage

Iteratively write .NET unit tests to improve code coverage toward 80% line and branch targets. USE FOR: autonomously running tests, finding gaps, writing targeted tests, and repeating until 80% coverage or plateau. Calls all 7 dotnet-coverage-mcp MCP tools: GetSourceFiles, RunTestsWithCoverage, GetCoverageSummary…

Hyeonu-Cha/dotnet-coverage-mcp · 139 tokens

analyze-coverage-gaps

Identify uncovered branches and coverage changes for a specific .NET method. USE FOR: finding exactly which branch conditions are untested in a method, comparing current coverage against the previous baseline to see what improved. Calls GetUncoveredBranches and GetCoverageDiff via dotnet-coverage-mcp MCP tools. DO NOT…

Hyeonu-Cha/dotnet-coverage-mcp · 90 tokens

run-coverage

Run .NET tests with code coverage and display a summary. USE FOR: generating a coverage report for a test project, getting baseline line/branch coverage per class and method, checking current coverage percentages. Calls RunTestsWithCoverage then GetCoverageSummary via dotnet-coverage-mcp MCP tools. Requires…

Hyeonu-Cha/dotnet-coverage-mcp · 100 tokens

maintain-discatsharp

Review, modify, test, document, or release the DisCatSharp repository. Use for DisCatSharp source changes, API additions and migrations, Discord payload models, serialization, command synchronization, Gateway dispatch, REST behavior, analyzer work, multi-target testing, DocFX generation, release notes, and repository…

Aiko-IT-Systems/DisCatSharp · 69 tokens