click-to-fix

click-to-fix is a skill for Claude Code from johnkozaris/web-interact-plugin. It costs 117 tokens per session (863 once invoked), scanned A, original, MIT.

A browser inspection tool that lets a developer click an on-screen element and receive its component name, source file, and line number. It is intended for apps running in development mode, where this source information is available.

In plain words
What is it for?
Use it to locate the code behind a page element before fixing or changing it, especially in React, Vue, or Svelte development builds.
Why use it?
It removes the guesswork of finding which code creates a visible button, form, or other interface element. This makes it easier to jump from a browser problem to the relevant source code.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the web-interact plugin — 4 skills shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/johnkozaris/web-interact-plugin/click-to-fix
Any agent
npx skills add johnkozaris/web-interact-plugin --skill click-to-fix
Clone the repo
git clone --depth 1 https://github.com/johnkozaris/web-interact-plugin

Made for: Claude Code.

Or install web-interact, the plugin that ships this one along with the rest of its 4 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for click-to-fix

README.md
[![agentmods](https://agentmods.dev/badge/skills/johnkozaris/web-interact-plugin/click-to-fix.svg)](https://agentmods.dev/skills/johnkozaris/web-interact-plugin/click-to-fix)
Your own site
<a href="https://agentmods.dev/skills/johnkozaris/web-interact-plugin/click-to-fix"><img src="https://agentmods.dev/badge/skills/johnkozaris/web-interact-plugin/click-to-fix.svg" alt="Measured on agentmods" height="20"></a>
Per session 117 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 863 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00117 $0.00863
Opus 5 $0.00059 $0.00432
Sonnet 5 $0.00023 $0.00173
Haiku 4.5 $0.00012 $0.00086

Measured 5d ago against content hash 6059701040d1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

click-to-fix scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/click-to-fix/SKILL.md · 96 lines

How it starts

The opening of the file, as written. The whole thing — 96 lines — stays where its author put it; the contents beside it link to each section on GitHub.

click-to-fix

Let the user click any element in their browser to trace it back to its source code.

This is a user-interactive command. You run it, then the USER physically clicks an element in their browser. The command blocks until they click (up to 2 minutes). Do NOT poll or retry — just run the command and wait for the result.

Workflow

Step 1 — Make sure a page is open

The user's app must be running in a browser. If not already open:

web-interact open "http://localhost:3000"
# Or connect to the user's running browser:
web-interact --own-browser discover

For best results, the app should be running in development mode (React/Vue/Svelte dev builds include source metadata that gives exact file + line number).

Step 2 — Run click-to-fix

web-interact click-to-fix

Tell the user:

Inspect mode is active. A purple overlay is now visible in the browser. Hover over elements to see their component name and source file. Click the element you want to fix.

The command blocks until the user clicks. Do NOT interrupt it — wait for the JSON result.

Step 3 — Parse the result

The command outputs JSON like:

{
  "tag": "button",
  "id": "submit-btn",
  "classes": ["btn", "btn-primary"],
  "text": "Submit Order",
  "attributes": { "data-testid": "checkout-submit" },
  "source": { "file": "src/components/Checkout/SubmitButton.tsx", "line": 42, "column": 8 },
  "component": "SubmitButton",
  "outerSnippet": "<button class=\"btn btn-primary\">Submit Order</button>"
}

Step 4 — Locate and open the source

If source.file exists (framework dev metadata found):

  1. Read the file at the reported line number (±15 lines for context)
  2. Show the user the component and ask what they'd like to change

If source is null (production build or unsupported framework):

  1. Use component name to search: grep -r "function ComponentName\|const ComponentName" src/
  2. Use data-testid or unique CSS classes to search: grep -r "data-testid=\"value\"" src/
  3. Use text content: grep -r "Submit Order" src/
  4. See references/source-resolver.md for detailed fallback strategies

Read the full file on GitHub · 96 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 96 lines · 117 tokens per session scan A 6059701040d1

Subscribe to this mod's changes

click-to-fix is a skill published in the GitHub repository johnkozaris/web-interact-plugin (2 stars, last pushed 5mo ago), licensed MIT. It adds 117 tokens to every session and 863 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

chrome-control

Use when debugging web applications, diagnosing page errors, inspecting console output, or capturing screenshots via Chrome DevTools Protocol (CDP).

vre/flow-state · 29 tokens

opencli-autofix

Automatically fix broken OpenCLI adapters when commands fail. Load this skill when an opencli command fails — it guides you through collecting a trace artifact, patching the adapter, retrying, and filing an upstream GitHub issue after a verified fix. Works with any AI agent.

jackwener/OpenCLI · 61 tokens

axiom-sre

Expert SRE investigator for incidents and debugging. Uses hypothesis-driven methodology and systematic triage. Can query Axiom observability when available. Use for incident response, root cause analysis, production debugging, or log investigation.

openclaw/clawhub · 48 tokens

rubber-duck

Adversarial "rubber duck" review that turns explaining-out-loud into a hallucination check. The main session is the PRESENTER (it did the work — a design doc, investigation, or analysis — and holds the real reasoning) and reconstructs the topic to a LISTENER — a spawned subagent pinned to a DIFFERENT-vendor model that…

kirodotdev/KiroCrew · 161 tokens

convex-performance-audit

Audits Convex performance for reads, subscriptions, write contention, and function limits. Use for slow features, insights findings, OCC conflicts, or read amplification.

openclaw/clawhub · 38 tokens

convex-self-heal

Production error → triaged, root-caused, repaired, and certified (tsc + rehearsal + reproduce-then-gone) fix PR for a human to merge — then confirm the error stops recurring. Never auto-merges.

openclaw/clawhub · 52 tokens