intermittent-issue-debugging

aj-geddes/useful-ai-prompts · updated Apr 8, 2026

$npx skills add https://github.com/aj-geddes/useful-ai-prompts --skill intermittent-issue-debugging
0 commentsdiscussion
summary

Intermittent issues are the most difficult to debug because they don't occur consistently. Systematic approach and comprehensive monitoring are essential.

skill.md

Intermittent Issue Debugging

Table of Contents

Overview

Intermittent issues are the most difficult to debug because they don't occur consistently. Systematic approach and comprehensive monitoring are essential.

When to Use

  • Sporadic errors in logs
  • Users report occasional issues
  • Flaky tests
  • Race conditions suspected
  • Timing-dependent bugs
  • Resource exhaustion issues

Quick Start

Minimal working example:

// Strategy 1: Comprehensive Logging
// Add detailed logging around suspected code

function processPayment(orderId) {
  const startTime = Date.now();
  console.log(`[${startTime}] Payment start: order=${orderId}`);

  try {
    const result = chargeCard(orderId);
    console.log(`[${Date.now()}] Payment success: ${orderId}`);
    return result;
  } catch (error) {
    const duration = Date.now() - startTime;
    console.error(`[${Date.now()}] Payment FAILED:`, {
      order: orderId,
      error: error.message,
      duration_ms: duration,
      error_type: error.constructor.name,
      stack: error.stack,
    });
    throw error;
  }
}

// Strategy 2: Correlation IDs
// ... (see reference guides for full implementation)

Reference Guides

Detailed implementations in the references/ directory:

Guide Contents
Capturing Intermittent Issues Capturing Intermittent Issues
Common Intermittent Issues Common Intermittent Issues
Systematic Investigation Process Systematic Investigation Process
Monitoring & Prevention Monitoring & Prevention

Best Practices

✅ DO

  • Follow established patterns and conventions
  • Write clean, maintainable code
  • Add appropriate documentation
  • Test thoroughly before deploying

❌ DON'T

  • Skip testing or validation
  • Ignore error handling
  • Hard-code configuration values

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
general reviews

Ratings

4.730 reviews
  • Valentina Singh· Dec 24, 2024

    I recommend intermittent-issue-debugging for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Sofia Khan· Nov 15, 2024

    Solid pick for teams standardizing on skills: intermittent-issue-debugging is focused, and the summary matches what you get after install.

  • Harper Verma· Nov 3, 2024

    Registry listing for intermittent-issue-debugging matched our evaluation — installs cleanly and behaves as described in the markdown.

  • William Mehta· Oct 22, 2024

    intermittent-issue-debugging reduced setup friction for our internal harness; good balance of opinion and flexibility.

  • Mateo Torres· Oct 6, 2024

    intermittent-issue-debugging has been reliable in day-to-day use. Documentation quality is above average for community skills.

  • Sakshi Patil· Sep 21, 2024

    I recommend intermittent-issue-debugging for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Mei Huang· Sep 17, 2024

    I recommend intermittent-issue-debugging for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Chaitanya Patil· Aug 12, 2024

    Useful defaults in intermittent-issue-debugging — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Mei Harris· Aug 8, 2024

    Useful defaults in intermittent-issue-debugging — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Mei Gonzalez· Jul 27, 2024

    intermittent-issue-debugging has been reliable in day-to-day use. Documentation quality is above average for community skills.

showing 1-10 of 30

1 / 3