بنقرة واحدة
debug
Start a systematic debugging session with structured diagnostic protocol
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Start a systematic debugging session with structured diagnostic protocol
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Dynamic agent composition and management system. USE WHEN you need specialized agents, parallel work, or custom expertise combinations.
Create detailed implementation plans through interactive research and iteration
Universal execution engine using scientific method to achieve ideal state. USE WHEN complex tasks, multi-step work, "run the algorithm", "use the algorithm", OR any non-trivial request that benefits from structured execution with ISC (Ideal State Criteria) tracking.
| name | debug |
| description | Start a systematic debugging session with structured diagnostic protocol |
| argument-hint | <error or symptom description> |
Start a systematic debugging session following a structured diagnostic protocol.
Let's debug this systematically. Tell me:
1. **What's happening?** (Symptom/error message)
2. **What should happen?** (Expected behavior)
3. **When did it start?** (Recent changes?)
4. **How often?** (Always / Sometimes / Once)
What's the error or symptom you're seeing?
Based on evidence, list likely causes:
For each hypothesis:
# Debugging Session: [Brief Description]
**Started**: [timestamp]
**Status**: Investigating / Root cause found / Resolved
---
## Symptoms
**Error**:
[Exact error message]
**Expected**: [What should happen]
**Actual**: [What happens instead]
**Reproducibility**: Always / Sometimes / Once
**Environment**: [Dev/Staging/Prod, versions]
---
## Recent Changes
| When | What Changed | Relevant? |
|------|--------------|-----------|
| [Date] | [Change] | Yes/No/Maybe |
---
## Hypotheses
### H1: [Most likely cause] - [TESTING/REJECTED/CONFIRMED]
**Why suspect**: [Reasoning]
**Test**: [How to verify]
**Result**: [What we found]
### H2: [Second possibility] - [TESTING/REJECTED/CONFIRMED]
**Why suspect**: [Reasoning]
**Test**: [How to verify]
**Result**: [What we found]
### H3: [Third possibility] - [TESTING/REJECTED/CONFIRMED]
**Why suspect**: [Reasoning]
**Test**: [How to verify]
**Result**: [What we found]
---
## Investigation Log
### [Timestamp] - [Action taken]
**Finding**: [What we learned]
**Next**: [What to try next]
### [Timestamp] - [Action taken]
**Finding**: [What we learned]
**Next**: [What to try next]
---
## Root Cause
**Identified**: [Yes/No/Partial]
[Description of root cause]
**Evidence**:
- [Evidence 1]
- [Evidence 2]
---
## Fix
**Approach**: [How we'll fix it]
**Changes**:
- [File:line] - [Change description]
**Verification**:
- [ ] Fix applied
- [ ] Original error no longer occurs
- [ ] No regressions introduced
- [ ] Tests pass
---
## Learnings
**Root Cause Pattern**: [What caused this]
**Prevention**: [How to prevent in future]
**Detection**: [How to catch earlier next time]
---
## Time Spent
| Phase | Duration |
|-------|----------|
| Gathering evidence | Xm |
| Forming hypotheses | Xm |
| Testing | Xm |
| Fixing | Xm |
| **Total** | **Xm** |
git log --since="yesterday"# Recent changes
git log --oneline -20
# What changed in a file
git diff HEAD~5 -- path/to/file
# Find where something is used
grep -r "functionName" --include="*.py"
# Check running processes
ps aux | grep [process]
# Check ports
lsof -i :8000
After resolving, consider:
/remember the pattern for future