一键导入
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/ |