agentleFS
Nightdreams-batNightdreams-bat/claude-code-kit/skills/web-debug/SKILL.md

web-debug

Skill0 starsChanged 37 days agoMITView on GitHub

Playbook for debugging a frontend / web app with the Chrome browser tools — reproduce a bug, read console errors and network failures, inspect the DOM, and verify a fix in the live page. Use when the user reports something broken on a website or local dev server.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Reproduce: Do the exact steps the user described (computer for clicks/typing/scrolling, form_input for form fields, find to locate an …

    line 21
  2. Very specific:

    If you want the user to see the fix, gif_creator a short before/after.

    line 37
  3. Distinctive:

    Stop and ask the user after 2–3 failed tool attempts, a dialog freeze, or if the page won't load — don't keep retrying or wander to …

    line 41
  4. Distinctive:

    Don't click "Delete" / "Pay" / destructive buttons to reproduce unless the user explicitly said to.

    line 43

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Web debug

Ported in spirit from amosblomqvist/pi-config's web-debug.

Claude Code drives a real Chrome tab through the mcp__claude-in-chrome__* tools. This skill is the order of operations — not new tools.

Setup

  1. tabs_context_mcp — see the user's existing tabs. Never reuse an old tab id.
  2. tabs_create_mcp — open a fresh tab for the debugging work.
  3. navigate to the failing URL (localhost dev server or live site).

The loop

  1. Reproduce. Do the exact steps the user described (computer for clicks/typing/scrolling, form_input for form fields, find to locate an element). Confirm you see the same broken behavior.
  2. Read the evidence — before theorizing:
    • read_console_messages (use pattern: to filter, e.g. the app name or error) — JS exceptions, failed assertions, warnings.
    • read_network_requests — non-2xx responses, CORS failures, wrong payloads, slow calls.
    • read_page / get_page_text — what the DOM actually contains vs expected.
    • javascript_tool — evaluate expressions in page context to check state (component props, global vars, computed styles). Never trigger alert, confirm, or prompt — they freeze the tab.
  3. Form one hypothesis. State it to the user: "X is failing because Y."
  4. Fix in the source (outside the browser).
  5. Verify. Reload the tab, re-run the reproduction, confirm console/network are clean and the behavior is correct.
  6. If you want the user to see the fix, gif_creator a short before/after.

Guardrails

  • Stop and ask the user after 2–3 failed tool attempts, a dialog freeze, or if the page won't load — don't keep retrying or wander to unrelated pages.
  • Don't click "Delete" / "Pay" / destructive buttons to reproduce unless the user explicitly said to; warn first.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.