ワンクリックで
debugging-strategies
Systematic debugging approaches for complex problems
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Systematic debugging approaches for complex problems
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Pull request lifecycle domain knowledge — branch strategy detection, PR size classification, confidence-scored review, git-aware context, PR analytics, dependency management, and split/merge/describe operations.
Production readiness audit domains, weighted scoring criteria, and check specifications for the /preflight workflow.
Application scaffolding orchestrator. Creates full-stack applications from requirements, selects tech stack, coordinates agents.
Production deployment workflows, rollback strategies, and CI/CD best practices.
Internationalization and localization patterns for multi-language applications
Mobile UI/UX patterns for iOS and Android. Touch-first, platform-respectful design with React Native/Expo focus.
| name | debugging-strategies |
| description | Systematic debugging approaches for complex problems |
| triggers | ["context","debug","error","bug","fix"] |
Purpose: Apply systematic debugging approaches
This skill provides structured methodologies for identifying and resolving bugs efficiently.
// Binary search approach
// Comment out half the code, see if issue persists
// Narrow down to smallest failing unit
// Basic
console.log("value:", value);
// Better - with labels
console.log("[UserService.create]", { email, userId });
// Table format
console.table(users);
// Timing
console.time("api-call");
await fetchData();
console.timeEnd("api-call");
// VS Code / Chrome DevTools
debugger; // Programmatic breakpoint
// Conditional breakpoint in IDE:
// Right-click → Add Conditional Breakpoint
// user.email === 'test@example.com'
// ❌ Missing await
const user = getUserById(id); // Returns Promise, not User
console.log(user.name); // undefined
// ✅ Fixed
const user = await getUserById(id);
console.log(user.name);
// ❌ Mutating original
const sorted = items.sort(); // Modifies items!
// ✅ Copy first
const sorted = [...items].sort();
// ❌ Classic loop closure bug
for (var i = 0; i < 3; i++) {
setTimeout(() => console.log(i), 100); // 3, 3, 3
}
// ✅ Use let or closure
for (let i = 0; i < 3; i++) {
setTimeout(() => console.log(i), 100); // 0, 1, 2
}
Error: Cannot read property 'name' of undefined
at UserService.getUser (user.service.ts:45:23) ← Start here
at UserController.show (user.controller.ts:28:15)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
git log --oneline -10
git diff HEAD~5..HEAD -- src/
git blame src/services/user.service.ts
| Symptom | Likely Cause |
|---|---|
| undefined is not an object | Null reference |
| Maximum call stack | Infinite recursion |
| Cannot read property | Missing null check |
| CORS error | Backend config |
| 401 Unauthorized | Token expired |
| 500 Internal Error | Unhandled exception |