ifirestone/ia-tools/log-analyzer-dotnet
Claude Code and agent skill by ifirestone/ia-tools
- community
Checking that the SKILL.md file is still in the repository.
Analiza logs de .NET / C# (ASP.NET Core, Worker Services, EF Core, Serilog, NLog, MEL) y produce un diagnóstico estructurado. Úsalo cuando el log contenga System.*Exception, Microsoft.AspNetCore, formato info:/fail: de MEL, [ERR] de Serilog o |ERROR| de NLog.
Install
npx vskill@latest install ifirestone/ia-tools/log-analyzer-dotnetSKILL.md
The same SKILL.md was published earlier as ifirestone/ia-tools/log-analyzer-dotnet.
Log Reader — .NET / C#
Señales de detección
System.NullReferenceException y demás System.*Exception, Microsoft.AspNetCore, formato info:/warn:/fail: (MEL), [ERR] (Serilog), |ERROR| (NLog), log4net.
Preguntar antes de analizar
| Situación | Pregunta | |
|---|---|---|
| Versión de .NET no clara | ¿.NET 6/7/8, Framework 4.x? | |
| Framework de logging no evidente | ¿Serilog, NLog, MEL nativo u otro? | |
| Entorno no declarado | ¿DEV, QA, STAGING o PROD? | |
| Stack trace truncado | ¿Puedes dar el stack trace completo con inner exceptions? | |
| EF sin contexto de query | ¿Tienes la query EF o el modelo de datos involucrado? | |
| Config externa mencionada | ¿Puedes compartir la sección relevante de appsettings.json (sin secretos)? |
Datos sensibles a marcar en rojo
Connection strings (Server=...;User Id=...;Password=...), JWT/Bearer tokens, SQL queries con datos reales (EnableSensitiveDataLogging() activo), PII (nombres, emails, documentos), datos de tarjetas/cuentas, IPs privadas/hostnames internos, cualquier valor junto a claves Password/Secret/Key/Token/ConnectionString.
Riesgo de configuración: EnableSensitiveDataLogging() activo en QA/PROD expone parámetros de queries EF Core.
Patrones de error frecuentes
System.NullReferenceException→ objeto no inicializado, revisar línea en código propio.InvalidOperationException: Unable to resolve service for type→ falta registro DI.Cannot consume scoped service from singleton→ captive dependency, revisar lifecycles.DbUpdateException(EF) → ver inner exception para el error SQL específico.SqlException/NpgsqlException→ timeout, deadlock, sintaxis (SQL Server 1205 = deadlock).TimeoutException/TaskCanceledException→ timeout de HttpClient/DB/CancellationToken.HttpRequestException→ fallo de cliente HTTP externo, revisar URL+status.Polly.CircuitBreakerRejectedException→ circuit breaker abierto.OutOfMemoryException→ memory leak, LOH, IDisposable no implementado.UnauthorizedAccessException/401/403 → claims, políticas, token expirado.
Señales adicionales
- EF Core:
Executed DbCommand (NNNN ms)>1000ms = query lenta; N+1 con lazy loading. - ASP.NET Core: duración elevada en
Hosting.Diagnostics= endpoint lento;OperationCanceledExceptionen middleware = cancelado por cliente o timeout.
Guía de análisis
- Identificar el primer
fail:/ERROR/CRITICAL, no el cascade. - Trazar la cadena de excepciones (
---> Inner Exception,--- End of inner exception stack trace ---). - Identificar el namespace/clase de código propio (no del framework).
- Correlacionar por
RequestId/TraceId. - Detectar patrones de repetición.
Formato de reporte estándar
Referencias
- https://learn.microsoft.com/en-us/dotnet/
- https://learn.microsoft.com/en-us/aspnet/core/fundamentals/logging
- https://learn.microsoft.com/en-us/ef/core/logging-events-diagnostics/
- https://learn.microsoft.com/en-us/dotnet/core/diagnostics/
- https://github.com/App-vNext/Polly
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/log-analyzer-dotnet/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ifirestone/ia-tools/log-analyzer-dotnet)