بنقرة واحدة
root-cause-tracing
Trace issues backward through the call stack to find the true root cause, not just symptoms
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Trace issues backward through the call stack to find the true root cause, not just symptoms
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Debug frontend vanilla JS issues - console errors, rendering bugs, SPA navigation, WebSocket
Automates the process of setting up the first admin user or adding new admins via the bootstrap endpoint. Includes a Python script for easy execution.
Push to remote and wait for CI to pass. If CI fails, read logs, fix bugs, and re-push. Repeat until green.
Use when building or debugging LangGraph multi-agent systems - eval-first execution, task decomposition, model routing by complexity, and cost discipline
Use when AI agent modifies API routes or backend logic - catch systematic blind spots where the same model writes and reviews code
Use when making or recording significant architectural decisions - capture context, alternatives, and rationale as structured ADRs
| name | root-cause-tracing |
| description | Trace issues backward through the call stack to find the true root cause, not just symptoms |
# Search for error message
rg "error message" --type py
# Search for the function/endpoint
rg "def endpoint_name" --type py
For each layer, ask: "What feeds into this?"
UI Error → API Response → Router Handler → Service/DB function → Raw Query → Schema
Trace ONE path at a time. Don't branch until current path is dead.
# Add temporary logging at boundaries
logger.info(f"TRACE: variable={value}, type={type(value)}")
| Symptom | Likely Root Cause | Where to Check |
|---|---|---|
| 500 on endpoint | DB query failure | core/database/ functions |
| Wrong user data | Client-side user_id still passed | api/routers/ params |
| Rate limit miss | Missing Request param | Router function signature |
| XSS in output | Unescaped user content | web/js/ render functions |
| Connection timeout | Pool exhaustion | core/database/connection.py |
| ORM session closed | Missing using_session() | api/routers/ using repos |
| Asyncpg error | Sync call in async context | core/orm/ or core/database/ |