VidyFoo/antigravity-skill-engine / .agent/skills/2-audit/scientific-debugging
scientific-debugging
Verified科学调试专家 - 观察(Observe) -> 假设(Hypothesize) -> 实验(Experiment) -> 修复(Fix)
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 2.0 KB |
| resources/browser-test-guide.md | markdown | 658 B |
| resources/root-cause-patterns.md | markdown | 732 B |
resources/root-cause-patterns.md
View on GitHub# Root Cause Patterns
> Common reasons for bugs in this project.
## 1. DOM & Events
- **Non-interactive Elements**: Adding `onClick` to a `div` without `role="button"` or `tabindex`.
- **Focus Traps**: Modals not trapping focus or not restoring it.
- **Overlay Blocking**: Higher `z-index` transparent layers blocking clicks.
## 2. React & State
- **Stale Closures**: `useEffect` or `useCallback` missing dependencies.
- **Race Conditions**: Two async operations updating state out of order.
- **Zustand Destructuring**: Causing re-renders on unrelated state changes.
## 3. Network
- **N+1 Requests**: Fetching list items individually instead of batching.
- **Optimistic UI failures**: Sync failure rolling back state abruptly.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 193k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 193k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 193k | Updated | Claude CodeCodex | Verified | Install |