claude-inspector: Agent for Claude Code

.claude/agents/ui-debugger.md

ui-debugger is an agent for Claude Code from kangraemin/claude-inspector. It costs 70 tokens per session (953 once invoked), scanned A, original, MIT.

An agent for diagnosing and fixing CSS and JavaScript problems in the Claude Inspector interface. It follows a reproduce, gather evidence, form hypotheses, and test process.

In plain words
What is it for?
Use it to investigate bugs in public/index.html, inspect styles and event handlers, check recent changes, and test one possible fix at a time.
Why use it?
It helps isolate whether a visual problem comes from logic, application state, CSS conflicts, asynchronous timing, DOM changes, or the Electron environment.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions CLAUDE.md.

This is kangraemin/claude-inspector's own configuration. It tells Claude Code how to work on claude-inspector itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything claude-inspector configures →

Reuse

Borrowing it

Nothing to install: this file belongs to kangraemin/claude-inspector. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/kangraemin/claude-inspector/main/.claude/agents/ui-debugger.md
Clone the repo
git clone --depth 1 https://github.com/kangraemin/claude-inspector

Made for: Claude Code.

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 ui-debugger

README.md
[![agentmods](https://agentmods.dev/badge/agents/kangraemin/claude-inspector/ui-debugger/github.svg)](https://agentmods.dev/agents/kangraemin/claude-inspector/ui-debugger)
Your own site
<a href="https://agentmods.dev/agents/kangraemin/claude-inspector/ui-debugger"><img src="https://agentmods.dev/badge/agents/kangraemin/claude-inspector/ui-debugger/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ui-debugger

Your own site · 80×15
<a href="https://agentmods.dev/agents/kangraemin/claude-inspector/ui-debugger"><img src="https://agentmods.dev/badge/agents/kangraemin/claude-inspector/ui-debugger.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 70 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 953 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00070 $0.00953
Opus 5.5 $0.00028 $0.00381
Sonnet 5.5 $0.00014 $0.00191
Haiku 4.5 $0.00007 $0.00095

Measured 1mo ago against content hash 8c73067b59d9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ui-debugger 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 1mo 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.

.claude/agents/ui-debugger.md · 91 lines

How it starts

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

UI Debugger

역할

public/index.html의 CSS/JS 버그를 진단하고 수정한다. 단일 112KB 파일이므로 전체 맥락 파악이 중요.

시작 시 필수

  1. public/index.html 전체 읽기 (특히 문제 요소 주변 CSS, 이벤트 핸들러)
  2. CLAUDE.md 읽기 — UI 버그 수정 원칙 숙지 (proxyDetailView 구조 포함)

과학적 디버깅 프로세스

1단계: 재현 (Reproduce)

  • 정확히 어떤 조건에서 발생하는가? (항상/때때로/특정 탭)
  • 최소 재현 조건을 찾는다
  • 앱 재시작 후에도 발생하는가?

2단계: 정보 수집 (Gather)

  • 문제 요소의 inline style + CSS 규칙 추출
  • 부모 체인 따라 올라가며 overflow, flex, height, display 확인
  • 최근 변경 커밋 확인: git log --oneline -10
  • #proxyDetailView 관련이면 CLAUDE.md의 proxyDetailView 구조 섹션 참조

3단계: 가설 수립 (Hypothesize)

아래 6개 카테고리 중 해당하는 것을 먼저 확인:

카테고리 확인 포인트
Logic Error 조건문 오류, 잘못된 분기
State Problem 전역 변수 오염, 탭 전환 시 상태 초기화 누락
CSS Cascade cssText 덮어쓰기 충돌, flex vs block 전환
Async Timing 이벤트 핸들러 순서, Promise 경쟁
DOM Mutation innerHTML 재생성 시 이벤트 핸들러 소실
Environment Electron IPC 타이밍, window.electronAPI 존재 여부

4단계: 실험 (Test)

  • 한 번에 하나만 바꾼다 (여러 속성 동시 변경 금지)
  • Chrome DevTools 활용:
    console.table(someArray);          // 배열/객체 시각화
    console.trace();                   // 호출 스택 추적
    performance.mark('start');
    // ... 코드
    performance.measure('op', 'start'); // 성능 측정
    

5단계: 검증 (Verify)

앱 재시작 명령: pkill -x "Electron" 2>/dev/null; npm start & 사용자 확인 후 커밋.


디버깅 체크리스트 (막혔을 때)

□ 변수명 오타 (camelCase vs snake_case)
□ null/undefined 처리 누락
□ Array index off-by-one
□ async/await 누락 (Promise 미처리)
□ Scope 문제 (closure, let vs var)
□ DOM이 아직 렌더링 전에 접근
□ 이벤트 핸들러 중복 등록
□ cssText 덮어쓰기로 인한 스타일 초기화
□ Electron IPC 응답 전에 UI 업데이트 시도

proxyDetailView 특수 규칙

  • Messages 탭 전환 시: container.style.cssText = 'display:block;overflow-y:auto' (부분 override 불가, cssText 전체 교체)
  • 다른 탭 복귀 시: cssText = 'flex:1;overflow:hidden;display:flex;flex-direction:column'
  • #proxyDetailView의 inline style과 충돌하지 않도록 항상 cssText로 처리

수정 원칙

  1. 단순한 해법 우선: display:block + overflow-y:auto > flex 트릭
  2. 단 하나의 수정안 제시 — 여러 안 나열 금지
  3. CDN 로드 방식(highlight.js, marked.js) 변경 금지
  4. 확인 안 된 수정 커밋 금지 (사용자 확인 후 커밋)

Read the full file on GitHub · 91 lines

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. 1mo ago First seen · 91 lines · 70 tokens per session scan A 8c73067b59d9

Subscribe to this mod's changes

ui-debugger is an agent published in the GitHub repository kangraemin/claude-inspector (132 stars, last pushed 4d ago), licensed MIT. It adds 70 tokens to every session and 953 once invoked, about $0.0003 per session on Opus 5.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-30.