error-tracking

Analyze Node.js and browser codebases to propose error-tracking improvements.

2|Updated Nov 15, 2025
One-click install
npx skills add https://github.com/grandinh/claude-chaos-express --skill error-tracking-grandinh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: error-tracking
Source: https://github.com/grandinh/claude-chaos-express/tree/main/.claude/skills/error-tracking
Command: npx skills add https://github.com/grandinh/claude-chaos-express --skill error-tracking-grandinh

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Implementing robust error handling and integrating monitoring tools like Sentry can be complex, leading to missed errors or poor debugging experiences. This Skill provides expert guidance on error management, saving you time and improving system reliability.

Core Features & Use Cases

  • Error Handling Analysis: Reviews try-catch patterns, identifies missing error boundaries, and suggests effective error recovery strategies.
  • Sentry Integration Guidance: Recommends Sentry SDK setup, appropriate captureException() placements, context enrichment, and filtering strategies.
  • Monitoring Strategy: Helps design comprehensive error monitoring, categorization, and alerting dashboards tailored to your project's needs.
  • Use Case: If you're struggling with uncaught promise rejections in your Express routes, this Skill can analyze your code, identify the issues, and provide specific code examples for implementing asyncHandler wrappers with Sentry integration.

Quick Start

Analyze the error handling in src/api/auth.js and suggest improvements for Sentry integration.

Frequently Asked Questions about error-tracking

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I identify and fix uncaught errors in Express routes and async/await code?

Error handling in Express requires wrapping async route handlers to catch promise rejections and pass them to error middleware. Review your try-catch patterns, add missing error boundaries around async operations, and implement recovery strategies like asyncHandler wrappers to ensure all exceptions are properly caught and logged rather than crashing the process.

What's the best way to integrate Sentry for error monitoring in Node.js applications?

Sentry integration involves initializing the SDK at application startup, configuring captureException() calls in error handlers, and enriching error context with user, request, and environment data. Proper placement in Express middleware, route handlers, and promise rejection handlers ensures comprehensive error visibility and filtering reduces noise from expected errors.

How do I set up error monitoring and alerting dashboards for my project?

Design monitoring strategy by categorizing errors by severity and source, configuring Sentry dashboards to track patterns, and establishing alerting thresholds. Tailor dashboards to your project's needs by defining which error types require immediate attention, grouping related issues, and routing notifications to appropriate teams.

Can I use error tracking and Sentry with browser-based applications?

Yes, Sentry supports both Node.js backends and browser applications. Browser integration captures client-side exceptions, promise rejections, and network errors through the same SDK, enabling unified error monitoring across your full stack with consistent context enrichment and filtering strategies.

What are common error handling patterns I should implement in Node.js backends?

Effective patterns include try-catch blocks in async functions, error middleware in Express, asyncHandler wrappers for route handlers, and global rejection handlers for unhandled promise rejections. These patterns ensure errors are caught consistently, logged to Sentry, and handled gracefully without crashing your application.