I
intermittent-issue-debugging
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
- 01Guidance for capturing intermittent issues
- 02Systematic investigation process
- 03Common issue reference guides
- 04Monitoring and prevention guidance
Use cases
- 01Investigate sporadic errors in logs
- 02Troubleshoot flaky tests
- 03Examine suspected race conditions
- 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-debuggingAfter 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.mdcommon-intermittent-issues.mdmonitoring-prevention.mdsystematic-investigation-process.mdscripts/scaffold-tests.shtemplates/test-template.jsDetails
From the project READMEIntermittent 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
Comments
Markdown supported