browser-debugging — Claude Code skill: debug in the browser
A skill for chasing client-side bugs: JavaScript errors, broken layouts, slow pages. Useful when something misbehaves and the cause isn't obvious.
npx skills add aj-geddes/useful-ai-prompts --skill browser-debugging -a claude-codeWhat browser-debugging does
The skill covers browser developer tools. It walks through the DevTools tabs: Elements for HTML structure and computed styles, Console for errors and logs, Sources for breakpoints and variable watches, Network for requests. Performance gets its own section.
Four reference files sit in references/: DevTools fundamentals, debugging techniques, common issues and fixes, and performance debugging. The skill doesn't drive a browser on its own — it tells the agent what to inspect and in what order, so it pays off when you already have DevTools open next to your editor.
Install runs through npx skills add for Claude, Codex, Cursor, Gemini CLI and OpenCode; GitHub Copilot uses gh skill install instead. MIT licensed, so editing the reference files is fair game.
What it helps with
- trace where a JavaScript error on the page comes from
- figure out why a layout block shifted
- catch a slow request in the Network tab
- set a breakpoint and step through the call stack
- find what makes an animation stutter
Example prompts for the agent
- Help me debug: a script throws on this page, check the Console and explain the cause
- The button drifts right on mobile widths — dig into Elements and computed styles
- This page loads slowly, go through Network and Performance and tell me what's blocking
How to install browser-debugging
1Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill browser-debugging -a claude-code2Manually: put the files in place
~/.claude/skills/browser-debugging/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/browser-debugging/
1Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill browser-debugging -a codex2Manually: put the files in place
.agents/skills/browser-debugging/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill browser-debugging -a cursor2Manually: put the files in place
.cursor/skills/browser-debugging/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install aj-geddes/useful-ai-prompts browser-debugging2Manually: put the files in place
.github/skills/browser-debugging/SKILL.md1Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill browser-debugging -a gemini-cli2Platform CLI
gemini skills install https://github.com/aj-geddes/useful-ai-prompts --path skills/browser-debuggingManually: put the files in place
.devin/skills/browser-debugging/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill browser-debugging -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about browser-debugging
How do I install browser-debugging in Claude?
Run npx skills add aj-geddes/useful-ai-prompts --skill browser-debugging -a claude-code. The skill file lands at ~/.claude/skills/browser-debugging/SKILL.md.
What does browser-debugging do?
It guides the agent through browser developer tools to track down client-side problems: JavaScript errors, styling issues, failing requests and performance drops.
Which platforms support the skill?
Claude, Codex, Cursor, GitHub Copilot, Gemini CLI and OpenCode. Copilot takes a different command: gh skill install aj-geddes/useful-ai-prompts browser-debugging.
Source text
SKILL.md · MIT
--- name: browser-debugging description: > Debug client-side issues using browser developer tools. Identify JavaScript errors, styling issues, and performance problems in the browser. --- # Browser Debugging ## Table of Contents - [Overview](#overview) - [When to Use](#when-to-use) - [Quick Start](#quick-start) - [Reference Guides](#reference-guides) - [Best Practices](#best-practices) ## Overview Browser debugging tools help identify and fix client-side issues including JavaScript errors, layout problems, and performance issues. ## When to Use - JavaScript errors - Layout/styling issues - Performance problems - User interaction issues - Network request failures - Animation glitches ## Quick Start Minimal working example: ```yaml Chrome DevTools Tabs: Elements/Inspector: - Inspect HTML structure - Edit HTML/CSS in real-time - View computed styles - Check accessibility tree - Modify DOM Console: - View JavaScript errors - Execute JavaScript - View console logs - Monitor messages - Clear errors Sources/Debugger: - Set breakpoints - Step through code - Watch variables - Call stack view - Conditional breakpoints Network: - View all requests // ... (see reference guides for full implementation) ``` ## Reference Guides Detailed implementations in the `references/` directory: | Guide | Contents | |---|---| | [Browser DevTools Fundamentals](references/browser-devtools-fundamentals.md) | Browser DevTools Fundamentals | | [Debugging Techniques](references/debugging-techniques.md) | Debugging Techniques | | [Common Issues & Solutions](references/common-issues-solutions.md) | Common Issues & Solutions | | [Performance Debugging](references/performance-debugging.md) | Performance Debugging | ## Best Practices ### ✅ DO - Follow established patterns and conventions - Write clean, maintainable code - Add appropriate documentation - Test thoroughly before deploying ### ❌ DON'T - Skip testing or validation - Ignore error handling - Hard-code configuration values
© aj-geddes · MIT · aj-geddes/useful-ai-prompts