Install the "sentry-dotnet-sdk" agent skill from https://github.com/getsentry/sentry-for-ai/tree/main/skills-legacy/sentry-dotnet-sdk into .claude/skills/sentry-dotnet-sdk/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sentry-dotnet-sdk", then confirm the skill loads.
Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
Type this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
skills CLI
$ npx skills add getsentry/sentry-for-ai --skill sentry-dotnet-sdk -a codex
Project install goes to .agents/skills/; add -g for ~/.codex/skills/.
Install the "sentry-dotnet-sdk" agent skill from https://github.com/getsentry/sentry-for-ai/tree/main/skills-legacy/sentry-dotnet-sdk into .agents/skills/sentry-dotnet-sdk/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sentry-dotnet-sdk", then confirm the skill loads.
Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
skills CLI
$ npx skills add getsentry/sentry-for-ai --skill sentry-dotnet-sdk -a cursor
Project install goes to .agents/skills/; add -g for ~/.cursor/skills/.
Install the "sentry-dotnet-sdk" agent skill from https://github.com/getsentry/sentry-for-ai/tree/main/skills-legacy/sentry-dotnet-sdk into .cursor/skills/sentry-dotnet-sdk/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sentry-dotnet-sdk", then confirm the skill loads.
Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
skills CLI
$ npx skills add getsentry/sentry-for-ai --skill sentry-dotnet-sdk -a gemini-cli
Project install goes to .agents/skills/; add -g for ~/.gemini/skills/.
Install the "sentry-dotnet-sdk" agent skill from https://github.com/getsentry/sentry-for-ai/tree/main/skills-legacy/sentry-dotnet-sdk into .gemini/skills/sentry-dotnet-sdk/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sentry-dotnet-sdk", then confirm the skill loads.
Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
Installs for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
skills CLI
$ npx skills add getsentry/sentry-for-ai --skill sentry-dotnet-sdk -a github-copilot
Project install goes to .agents/skills/; add -g for ~/.copilot/skills/.
Install the "sentry-dotnet-sdk" agent skill from https://github.com/getsentry/sentry-for-ai/tree/main/skills-legacy/sentry-dotnet-sdk into .github/skills/sentry-dotnet-sdk/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sentry-dotnet-sdk", then confirm the skill loads.
GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
skills CLI
$ npx skills add getsentry/sentry-for-ai --skill sentry-dotnet-sdk -a opencode
OpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
Install the "sentry-dotnet-sdk" agent skill from https://github.com/getsentry/sentry-for-ai/tree/main/skills-legacy/sentry-dotnet-sdk into .opencode/skills/sentry-dotnet-sdk/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sentry-dotnet-sdk", then confirm the skill loads.
OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
Facts
Skill name
sentry-dotnet-sdk
GitHub stars
268
Token cost
~5.8k tokens
SKILL.md length
1,492 words
Files
7 (incl. references)
Skills in repo
32
Repo updated
First seen
Licence
Apache-2.0
At a glance
Full Sentry SDK setup for .NET. An agent skill from getsentry/sentry-for-ai.
Works in 4 steps: Detect → Recommend → Guide → …
Asked to add Sentry to .NET
SKILL.md covers Invoke This Skill When, Phase 1: Detect, Phase 2: Recommend and Phase 3: Guide, plus 4 more sections
Sentry Dotnet SDK is an agent skill from getsentry/sentry-for-ai, published by the product's own GitHub organization. Full Sentry SDK setup for .NET. Use when asked to "add Sentry to .NET", "install Sentry for C", or configure error monitoring, tracing, profiling, logging, or crons for ASP.NET Core, MAUI, WPF, WinForms, Blazor, Azure Functions, or any other .NET application.
Its SKILL.md is about 5.8k tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files, including reference files (for example `references/crons.md`, `references/error-monitoring.md` and `references/logging.md`).
It sits in Productivity & Automation, covering Scheduled and recurring tasks and Cross-platform mobile apps. It works with Sentry, .NET, ASP.NET Core and Azure Functions. The repository describes itself as: Teach your AI coding assistant how to use Sentry - setup, debugging, alerts, and more. The licence is Apache-2.0.
When your agent uses it
Asked to add Sentry to .NET
Install Sentry for C
Configure error monitoring
Crons for ASP.NET Core
Example prompts
“add Sentry to .NET”
“install Sentry for C”
“/sentry-dotnet-sdk”
Requirements
Node.js
Workflow steps
4 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit d8fd106. It shows what the files ask for, not the result of running them.
Tool permissions
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Runs code
Shell commands in SKILL.md call:
dotnet
From the folder's file list and the shell code blocks in SKILL.md.
Network
Hosts in commands or code, which the agent is likely to contact:
o0.ingest.sentry.io
Also links to:
docs.sentry.io
sentry.io
From URLs in SKILL.md, links to its own repository left out.
Credentials
Names these keys or tokens, usually read from environment variables:
SENTRY_AUTH_TOKEN
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Context cost
Sentry Dotnet SDK loads about 5.8k tokens when it runs, and up to ~34k if it reads all its reference files. Until then it costs about 70 tokens; SKILL.md has 1,492 words of instructions outside code blocks.
Always· name and description, kept in context so the agent knows when to use it
~70
When it runs· the whole SKILL.md, loaded when a task matches
~5.8k
With references· SKILL.md plus every file in references/, read only if the agent opens them
~34k
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
Safety
Auto-check passed
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
Download SKILL.mdSave it as .claude/skills/sentry-dotnet-sdk/SKILL.md (or your agent's skills folder). This skill also uses 6 other files; get the full folder from GitHub.
name
sentry-dotnet-sdk
description
Full Sentry SDK setup for .NET. Use when asked to "add Sentry to .NET", "install Sentry for C#", or configure error monitoring, tracing, profiling, logging, or crons for ASP.NET Core, MAUI, WPF, WinForms, Blazor, Azure Functions, or any other .NET application.
Opinionated wizard that scans your .NET project and guides you through complete Sentry setup: error monitoring, distributed tracing, profiling, structured logging, and cron monitoring across all major .NET frameworks.
Invoke This Skill When
User asks to "add Sentry to .NET", "set up Sentry in C#", or "install Sentry for ASP.NET Core"
User wants error monitoring, tracing, profiling, logging, or crons for a .NET app
User mentions SentrySdk.Init, UseSentry, Sentry.AspNetCore, or Sentry.Maui
User wants to capture unhandled exceptions in WPF, WinForms, MAUI, or Azure Functions
User asks about SentryOptions, BeforeSend, TracesSampleRate, or symbol upload
Note: SDK version and APIs below reflect Sentry NuGet packages ≥6.1.0 (OTLP export requires ≥6.5.0).
Always verify against docs.sentry.io/platforms/dotnet/ before implementing.
Phase 1: Detect
Run these commands to understand the project before making any recommendations:
bash
# Detect framework type — find all .csproj files
find . -name "*.csproj" | head -20
# Detect framework targets
grep -r "TargetFramework\|Project Sdk" --include="*.csproj" .
# Check for existing Sentry packages
grep -r "Sentry" --include="*.csproj" . | grep "PackageReference"
# Check startup files
ls Program.cs src/Program.cs App.xaml.cs MauiProgram.cs 2>/dev/null
# Check for appsettings
ls appsettings.json src/appsettings.json 2>/dev/null
# Check for logging libraries
grep -r "Serilog\|NLog\|log4net" --include="*.csproj" .
# Check for companion frontend
ls ../frontend ../client ../web 2>/dev/null
cat ../package.json 2>/dev/null | grep -E '"next"|"react"|"vue"' | head -3
App uses Hangfire, Quartz.NET, or scheduled Azure Functions
Propose: "I recommend setting up Error Monitoring + Tracing + Logging. Want me to also add Profiling or Crons?"
Phase 3: Guide
Option 1: Wizard (Recommended)
You need to run this yourself — the wizard opens a browser for login and requires interactive input that the agent can't handle. Copy-paste into your terminal:
npx @sentry/wizard@latest -i dotnet
It handles login, org/project selection, DSN configuration, and MSBuild symbol upload setup for readable stack traces in production.
Once it finishes, come back and skip to Verification.
If the user skips the wizard, proceed with Option 2 (Manual Setup) below.
Without debug symbols, stack traces show only method names — no file names or line numbers. The SDK uploads PDB files (and optionally sources) via MSBuild properties on Release builds:
Upload needs a SENTRY_AUTH_TOKEN set in CI (a secret). For creating the token and the CI wiring, see sentry-source-maps. The SentryCreateRelease / SentrySetCommits properties also create a release with suspect commits — see sentry-releases.
For Each Agreed Feature
Load the corresponding reference file and follow its steps:
Fraction of traced transactions to profile. Requires Sentry.Profiling.
SendDefaultPii
bool
false
—
Include user IP, name, email
AttachStacktrace
bool
true
—
Attach stack trace to all messages
MaxBreadcrumbs
int
100
—
Max breadcrumbs stored per event
IsGlobalModeEnabled
bool
false*
—
*Auto-true for MAUI, Blazor WASM. Must be true for WPF, WinForms, Console.
AutoSessionTracking
bool
false*
—
*Auto-true for MAUI. Enable for Release Health.
CaptureFailedRequests
bool
true
—
Auto-capture HTTP client errors
CacheDirectoryPath
string
—
—
Offline event caching directory
ShutdownTimeout
TimeSpan
—
—
Max wait for event flush on shutdown
HttpProxy
string
—
—
Proxy URL for Sentry requests
EnableBackpressureHandling
bool
true
—
Auto-reduce sample rates on delivery failures
TraceIgnoreStatusCodes
IList<HttpStatusCodeRange>
[]
—
Drop transactions whose HTTP response status matches any range; e.g., [404] or [(500, 599)]
StrictTraceContinuation
bool
false
—
When true, starts a new trace if exactly one side (SDK or incoming sentry-org_id baggage) has an org ID. A full mismatch (both present but different) always starts a new trace regardless of this setting. (requires ≥6.6.0)
OrgId
string
auto
—
Organization ID for trace validation; auto-parsed from DSN subdomain (e.g., o123.ingest.sentry.io → "123"). Recommended to set explicitly for self-hosted Sentry, local Relay, or custom domains (requires ≥6.6.0)
Show full SKILL.md (495 more words)Show less
ASP.NET Core Extended Options (SentryAspNetCoreOptions)
Option
Type
Default
Notes
MaxRequestBodySize
RequestSize
None
None, Small (~4 KB), Medium (~10 KB), Always
MinimumBreadcrumbLevel
LogLevel
Information
Min log level for breadcrumbs
MinimumEventLevel
LogLevel
Error
Min log level to send as Sentry event
CaptureBlockingCalls
bool
false
Detect .Wait() / .Result threadpool starvation
FlushOnCompletedRequest
bool
false
Required for Lambda / serverless
IncludeActivityData
bool
false
Capture System.Diagnostics.Activity values
MAUI Extended Options (SentryMauiOptions)
Option
Type
Default
Notes
IncludeTextInBreadcrumbs
bool
false
Text from Button, Label, Entry elements. ⚠️ PII risk.
IncludeTitleInBreadcrumbs
bool
false
Titles from Window, Page elements. ⚠️ PII risk.
IncludeBackgroundingStateInBreadcrumbs
bool
false
Window.Backgrounding event state. ⚠️ PII risk.
Environment Variables
Variable
Purpose
SENTRY_DSN
Project DSN
SENTRY_RELEASE
App version (e.g. my-app@1.2.3)
SENTRY_ENVIRONMENT
Deployment environment name
SENTRY_AUTH_TOKEN
MSBuild / sentry-cli symbol upload auth token
ASP.NET Core: use double underscore __ as hierarchy separator:
Connecting frontend and backend with the same Sentry project enables distributed tracing — a single trace view spanning browser, .NET server, and any downstream APIs.
Troubleshooting
Issue
Cause
Solution
Events not appearing
DSN misconfigured
Set Debug = true and check console output for SDK diagnostic messages
Stack traces show no file/line
PDB files not uploaded
Add SentryUploadSymbols=true to .csproj; set SENTRY_AUTH_TOKEN in CI
WPF/WinForms exceptions missing
IsGlobalModeEnabled not set
Set options.IsGlobalModeEnabled = true in SentrySdk.Init()
Lambda/serverless events lost
Container freezes before flush
Set options.FlushOnCompletedRequest = true
WPF UI-thread exceptions missing
DispatcherUnhandledException not wired
Register App.DispatcherUnhandledException in constructor (not OnStartup)
Duplicate HTTP spans in Azure Functions
Both Sentry and OTel instrument HTTP
Set options.DisableSentryHttpMessageHandler = true
TracesSampleRate has no effect
Rate is 0.0 (default)
Set TracesSampleRate > 0 to enable tracing
appsettings.json values ignored
Config key format wrong
Use flat key "Sentry:Dsn" or env var Sentry__Dsn (double underscore)
BeforeSend drops all events
Hook returns null unconditionally
Verify your filter logic; return null only for events you want to drop
MAUI native crashes not captured
Wrong package
Confirm Sentry.Maui is installed (not just Sentry)
Sentry Dotnet SDK next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
Sentry Dotnet SDK compared with similar skills
Skill
Stars
Used in
Tokens
Auto-check
Licence
Repo updated
Sentry Dotnet SDK this skillgetsentry/sentry-for-ai
Detects .NET intent for any C, ASP.NET Core, EF Core, Blazor, MAUI, Uno Platform, WPF, WinUI, SignalR, gRPC, xUnit, NuGet, or MSBuild request from prompt keywords and repository signals (.sln…
Guides C# work on .NET 8+: ASP.NET Core APIs, Entity Framework Core data access, Blazor apps and CQRS with MediatR, following a five-step build workflow.
Full Sentry SDK setup for .NET. An agent skill from getsentry/sentry-for-ai. Sentry Dotnet SDK is an agent skill from getsentry/sentry-for-ai, published by the product's own GitHub organization.NET.
When should I use Sentry Dotnet SDK?
Sentry Dotnet SDK fits situations like: asked to add Sentry to .NET; install Sentry for C; configure error monitoring; crons for ASP.NET Core.
How do I install Sentry Dotnet SDK in Claude Code?
Run `npx skills add getsentry/sentry-for-ai --skill sentry-dotnet-sdk -a claude-code`. Or copy the skill folder (skills-legacy/sentry-dotnet-sdk in getsentry/sentry-for-ai) into .claude/skills/sentry-dotnet-sdk in your project. Claude Code loads it when a task matches its description.
How do I install Sentry Dotnet SDK in Codex?
Run `npx skills add getsentry/sentry-for-ai --skill sentry-dotnet-sdk -a codex`. Or copy the skill folder (skills-legacy/sentry-dotnet-sdk in getsentry/sentry-for-ai) into .agents/skills/sentry-dotnet-sdk in your project. Codex loads it when a task matches its description.
Can I use Sentry Dotnet SDK in Cursor, Gemini CLI or GitHub Copilot?
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add getsentry/sentry-for-ai --skill sentry-dotnet-sdk -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/sentry-dotnet-sdk, .gemini/skills/sentry-dotnet-sdk, .github/skills/sentry-dotnet-sdk and .opencode/skills/sentry-dotnet-sdk in your project.
What does Sentry Dotnet SDK need to run?
Going by SKILL.md and its folder, Sentry Dotnet SDK needs the command-line tools its instructions call (dotnet) and credentials named SENTRY_AUTH_TOKEN. Our summary lists: Node.js.
Does Sentry Dotnet SDK access the network?
SKILL.md names 3 domains. In commands or code: o0.ingest.sentry.io; the agent is likely to contact it when it follows the instructions. As links in the text: docs.sentry.io and sentry.io. This is read from the text; nothing was executed.
Is Sentry Dotnet SDK safe to install?
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
What licence does Sentry Dotnet SDK use?
Sentry Dotnet SDK is published under the Apache-2.0 licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
How many tokens does Sentry Dotnet SDK use?
About 5.8k tokens (SKILL.md is roughly 23k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 28k tokens, read only when the agent opens those files.
What are the alternatives to Sentry Dotnet SDK?
Skills that share tags, products or a category with Sentry Dotnet SDK: Using Dotnet (novotnyllc/dotnet-artisan, 233 stars), Maui Hot Reload Diagnostics (davidortinau/maui-skills, 174 stars), Maui Safe Area (dotnet/skills, 5.6k stars) and Wallet Quickstart (Nethereum/Nethereum, 2.3k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
Who maintains Sentry Dotnet SDK?
getsentry (a GitHub organization, an official publisher) maintains it in getsentry/sentry-for-ai, which has 268 GitHub stars. The repository holds 32 skills in this directory. The repository was last updated on October 7, 2026.
Source: getsentry/sentry-for-ai on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.