error-tracking

Capture runtime errors in catch blocks and report to Sentry with contextual metadata.

1|3|Updated Feb 28, 2026
One-click install
npx skills add https://github.com/vobbilis/aigile --skill error-tracking-vobbilis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: error-tracking
Source: https://github.com/vobbilis/aigile/tree/main/.github/skills/error-tracking
Command: npx skills add https://github.com/vobbilis/aigile --skill error-tracking-vobbilis

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Error-prone code paths, silent failures, and poorly contextualized exceptions hamper reliability. This Skill defines mandatory patterns for capturing errors and enriching telemetry so issues are visible and actionable.

Core Features & Use Cases

  • Enforces using Sentry.captureException in every catch block, preventing silent failures.
  • Promotes contextual error reporting with service, operation, and extra context.
  • Covers controllers, services, and cron jobs to ensure consistent failure visibility and recovery.

Quick Start

Instrument your codebase to capture errors with Sentry in all catch blocks and attach contextual metadata.

Frequently Asked Questions about error-tracking

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

FAQPage Schema
How do I capture all runtime errors with Sentry and prevent silent failures in my application?

To capture runtime errors and prevent silent failures, enforce Sentry.captureException in every catch block across controllers, services, and cron jobs. Attach contextual metadata like service and operation tags to ensure all exceptions are visible and actionable for debugging.

What is the best way to add contextual metadata to exception capture for asynchronous flows?

Contextual metadata for exception capture in asynchronous flows is added by tagging Sentry reports with service, operation, and extra context. This consistent tagging ensures failure visibility and prioritizes actionable diagnostics across all asynchronous code paths.

How do I enforce consistent error handling patterns across controllers, services, and cron jobs?

Consistent error handling patterns are enforced by applying mandatory Sentry.captureException usage with tagged context to all controllers, services, and cron jobs. This ensures uniform failure visibility and proper rethrow or handling behavior across the codebase.

Why do silent catch blocks hamper code reliability and how can Sentry captureException fix this?

Silent catch blocks hamper reliability by hiding runtime errors and poorly contextualized exceptions. Implementing mandatory Sentry.captureException usage with extra context fixes this by making all error paths report failures with actionable diagnostics.

Does this error tracking approach work for cron jobs and asynchronous code flows?

Yes, this error tracking approach explicitly covers cron jobs and asynchronous flows. It ensures that every catch path in these asynchronous contexts reports to Sentry with contextual metadata, enforcing consistent tagging and proper rethrow behavior.

What are the limitations of relying on basic Sentry captureException without contextual logging?

Basic Sentry captureException without contextual logging limits actionable diagnostics and results in poorly contextualized exceptions. Enriching telemetry with service, operation, and extra context is mandatory to ensure issues are visible and actionable for debugging.