Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Scientific Debugging

ASecurity

科学调试专家 - 观察(Observe) -> 假设(Hypothesize) -> 实验(Experiment) -> 修复(Fix)

12 stars
0 votes
0 copies
0 views
Added 2/7/2026
code-qualityreactdebugging

Works with

cli

Security Analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned 2/12/2026

$npx -y skills add VidyFoo/antigravity-skill-engine --skill scientific-debugging --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Scientific Debugging?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Scientific Debugging
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vidyfoo-scientific-debugging/badge)](https://www.skillsdirectory.com/skills/vidyfoo-scientific-debugging)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
Files
SKILL.md
---
name: scientific-debugging
description: 科学调试专家 - 观察(Observe) -> 假设(Hypothesize) -> 实验(Experiment) -> 修复(Fix)
---

# Scientific Debugger Skill (v2.0)

> **Role**: 拒绝"猜测驱动开发"。像科学家一样思考,用实验数据定位根因。

---

## 核心协议 (The Protocol)

### 1. 观察 (Observe)
- **收集现场**: 用户报告了什么?错误堆栈是什么?
- **环境确认**: 本地服务器是否运行?
- **现象复现**: *必须* 使用 `browser_subagent` 复现问题 (Visual Proof)。

### 2. 假设 (Hypothesize)
基于观察,提出 1-3 个可能的根因假设:
- H1: DOM 事件未冒泡 (Event)
- H2: 状态更新被闭包捕获 (State)
- H3: 样式层叠导致的遮挡 (CSS)

### 3. 实验 (Experiment)
设计最小化实验验证假设:
- **Console Log**: 在关键路径打点。
- **Browser Interaction**: 模拟用户行为序列。
- **Code Inspection**: 检查 `view_code_item`.

### 4. 修复与验证 (Fix & Verify)
- **最小化修复**: 只改根因,不附带重构。
- **回归测试**: 再次运行 `browser_subagent` 确认修复且无副作用。

---

## 调试策略库

| 问题类型 | 推荐工具 | 重点检查 |
|----------|----------|----------|
| **UI 无响应/交互失效** | `browser_subagent` | `pointer-events`, `z-index`, `onClick` vs `onFocus` |
| **状态不同步** | `console.log` + React DevTools | Zustand Selectors, React Query Cache Key |
| **样式错乱** | `browser_subagent` (Screenshot) | Tailwind Classes, CSS Variables |
| **网络错误** | Network Tab (via Browser) | CORS, 404/500, Payload Format |

---

## 资源索引

| 资源文件 | 用途 |
|----------|------|
| [browser-test-guide.md](resources/browser-test-guide.md) | 浏览器测试通过指南 |
| [root-cause-patterns.md](resources/root-cause-patterns.md) | 常见根因模式库 |

---

## 强制要求

1.  **No Blind Fixes**: 禁止在未复现问题前修改代码。
2.  **Visual Evidence**: 对于 UI Bug,必须看截图证明。
3.  **Logs are Cheap**: 大胆加日志,但修好后记得删。

Attribution

VidyFooVidyFoo
View sourceSee grades on GitHubMore from VidyFoo →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman Review

Ultra-compressed code review comments. Cuts noise from PR feedback while preserving the actionable signal. Each comment is one line: location, problem, fix. Use when user says "review this PR", "code review", "review the diff", "/review", or invokes /caveman-review. Auto-triggers when reviewing pull requests.

1100021 votes

Caveman Commit

Ultra-compressed commit message generator. Cuts noise from commit messages while preserving intent and reasoning. Conventional Commits format. Subject ≤50 chars, body only when "why" isn't obvious. Use when user says "write a commit", "commit message", "generate commit", "/commit", or invokes /caveman-commit. Auto-triggers when staging changes.

1100021 votes

Springboot Verification

Verification loop for Spring Boot projects: build, static analysis, tests with coverage, security scans, and diff review before release or PR.

2456590 votes

Verification Loop

一个全面的 Claude Code 会话验证系统。

2456590 votes

Django Verification

Verification loop for Django projects: migrations, linting, tests with coverage, security scans, and deployment readiness checks before release or PR.

2456590 votes
View all in code-quality →