sentry

sentry is a skill for Claude Code, Codex from znlgis/opengis-skills. It costs 100 tokens per session (2,545 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 100 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,545 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.00100 $0.02545
Opus 5.5 $0.00040 $0.01018
Sonnet 5.5 $0.00020 $0.00509
Haiku 4.5 $0.00010 $0.00254

Measured today against content hash 81ecaa160fd7, 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 today.

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 · 287 lines

How it starts

The opening of the file, as written. The whole thing — 287 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

最新版本: Sentry / Sentry.AspNetCore 6.12.1(截至 2026-10,NuGet 实测)

许可证: 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 6 集成(EF Core 查询经内置 DiagnosticSource 自动采集)
Sentry.DiagnosticSource DiagnosticSource 事件采集
Sentry.OpenTelemetry OpenTelemetry 集成
Sentry.Profiling 代码级性能剖析

环境准备

安装

方式一:dotnet CLI
# ASP.NET Core 项目
dotnet add package Sentry.AspNetCore

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

# 可选集成
dotnet add package Sentry.EntityFramework     # EF6(EF Core 无需此包)
dotnet add package Sentry.DiagnosticSource    # HTTP / ADO.NET 自动 Span
dotnet add package Sentry.OpenTelemetry       # OTel 桥接
dotnet add package Sentry.Profiling           # 性能剖析
方式二:PackageReference
<ItemGroup>
  <PackageReference Include="Sentry.AspNetCore" Version="6.12.1" />
</ItemGroup>
方式三:包管理器控制台
Install-Package Sentry.AspNetCore -Version 6.12.1
验证安装
dotnet list package | grep -i sentry

初始化

// 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% 采样
});

Read the full file on GitHub · 287 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. today Changed · +23 lines · +40 tokens per session 81ecaa160fd7
  2. 12d ago Changed · +1 lines bce174d61433
  3. 13d ago Changed 09ec3b14bc75
  4. 1mo ago Changed · +4 lines 8dd1f1f6cfd4
  5. 1mo ago Changed 8b94bdd54b55
  6. 1mo ago Changed 5dc2261a061d
  7. 1mo 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 (75 stars, last pushed today), licensed MIT. It adds 100 tokens to every session and 2,545 once invoked, about $0.0004 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-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

regenerate-api

Regenerate the AppointMe frontend API client (orval/TanStack Query hooks + TypeScript schemas) after the backend OpenAPI surface changes. Use this whenever backend endpoints, request/response DTOs, or other contract-affecting types are added, removed, or modified — e.g. after editing files under src/AppointMe.Api…

bravodev-hub/appointme · 132 tokens

git-workflow

Follow this team's Git conventions for branching, commit messages, and pull requests.

modelcontextprotocol/csharp-sdk · 19 tokens

verify

Build, launch, and drive the AppointMe stack to verify a change end-to-end at its runtime surface.

bravodev-hub/appointme · 25 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