mcpField
I
intermittent-issue-debugging

intermittent-issue-debugging

github.com/aj-geddesDevelopment373427 installsUpdated 34w ago
Repository

About intermittent-issue-debugging

A skill for systematically investigating issues that occur inconsistently. It offers guidance on capturing symptoms, investigating likely causes, and monitoring cases such as flaky tests, race conditions, and timing-dependent bugs.

Key features

  1. 01Guidance for capturing intermittent issues
  2. 02Systematic investigation process
  3. 03Common issue reference guides
  4. 04Monitoring and prevention guidance

Use cases

  1. 01Investigate sporadic errors in logs
  2. 02Troubleshoot flaky tests
  3. 03Examine suspected race conditions
  4. 04Debug timing-dependent bugs

Install

Copy the command and run it in a terminal.

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

After installing, type/intermittent-issue-debuggingin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
capturing-intermittent-issues.md
common-intermittent-issues.md
monitoring-prevention.md
systematic-investigation-process.md
scripts/
scaffold-tests.sh
templates/
test-template.js

Details

From the project README

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:

GuideContents
Capturing Intermittent IssuesCapturing Intermittent Issues
Common Intermittent IssuesCommon Intermittent Issues
Systematic Investigation ProcessSystematic Investigation Process
Monitoring & PreventionMonitoring & 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

Comments

Markdown supported