一键导入
debug
Guide systematic debugging through hypothesis generation, evidence collection, and verification. Uses scientific method for root cause analysis.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Guide systematic debugging through hypothesis generation, evidence collection, and verification. Uses scientific method for root cause analysis.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Consult the whizz-mind knowledge base for documentation and answers. Use when the user asks questions that might be answered by stored documentation or when explicitly asked to check whizz-mind.
Run accessibility and visual design review
Interact with Figma design files via the web browser using the Figma Plugin API. Can create shapes, modify properties, extract information from design files.
Research-driven content writing with citations, iterative outlines, and real-time feedback. Transforms writing from solo effort to collaborative partnership.
Full implementation mode - end-to-end feature implementation with phased execution, parallel work streams, verification gates, and atomic commits per phase
Deep analysis mode - thorough multi-phase investigation with expert consultation for complex problems requiring careful examination
| name | debug |
| description | Guide systematic debugging through hypothesis generation, evidence collection, and verification. Uses scientific method for root cause analysis. |
| license | MIT |
| compatibility | ["runtime:any"] |
| allowed-tools | ["Read","Glob","Grep","Bash(git:log)","Bash(git:diff)","Bash(git:blame)","Bash(git:show)"] |
| metadata | {"author":"thoreinstein","version":"1.0.0"} |
Systematic debugging through hypothesis generation, evidence collection, and verification.
Provide as much of the following as available:
Problem Statement
Context
Initial Hypotheses (if any)
Clearly define:
Generate ranked hypotheses:
For each hypothesis, plan:
Investigate systematically:
Synthesize findings:
Run these investigation tracks in parallel where possible:
| Track | Focus |
|---|---|
| Codebase | Explore structure, find related code |
| History | Recent changes, blame, related commits |
| Patterns | Search for similar code, error handling |
| External | Documentation, known issues, similar reports |
Produce a debug session report following the template in references/debug-session-template.md.
The report should include:
Problem: /api/users endpoint times out ~10% of requests
Hypotheses:
H1: Database query is slow (70% likely)
Evidence for: Timeout correlates with high DB load
Evidence against: None yet
Test: Check query execution time
H2: Connection pool exhaustion (20% likely)
Evidence for: Happens under load
Evidence against: Pool metrics look normal
Test: Monitor pool during timeout
H3: External service dependency (10% likely)
Evidence for: None
Evidence against: No external calls in this endpoint
Test: Trace request path
Investigation:
10:15 - Checked slow query log → found users query taking 2-5s
10:22 - git blame on users.go → query changed 3 days ago
10:28 - Compared old vs new query → missing index on new column
10:35 - Confirmed: new filter column not indexed
Root Cause: Query added filter on last_login column which lacks an index. Under load, full table scan causes timeouts.
Fix: Add index on users.last_login
Prevention: Add query plan review to PR checklist for database changes.
Begin by clearly defining the problem and generating hypotheses before investigating.