원클릭으로
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 |