reference-ui-debugging

Use when the user provides one or more reference webpage URLs and wants the frontend to match their layout, spacing, motion, drag-and-drop, hover, pointer feel, or other interaction details. ALWAYS use this skill for reference-driven frontend work such as "参考这个网站实现", "对齐 Google Drive 的交互", "效果不符合预期", "请按这个网页调样式/行为", or whenever a URL is given as the visual or interaction target. This skill requires using

Namereference-ui-debugging
Pathreference-ui-debugging
Version1.0.0
Originlocal
SourceSkillHub
Authorseekthought
Projectcitado
Tagsui-debugging reference chrome-devtools citado
LicenseMIT

Install

skillctl install -r skillhub reference-ui-debugging

Reference-Driven Frontend Debugging

Use this skill when a frontend task is anchored to a real webpage reference and the goal is not just "implement something similar", but to get the actual runtime behavior closer to that reference.

The central rule is simple: when the user provides a reference webpage URL, do not rely on static code inspection alone. Open the reference page and the local project at the same time with #io.github.chromedevtools/chrome-devtools-mcp, compare them live, and debug the interaction in the browser until the real behavior matches the intended outcome closely enough.

What This Skill Is For

Use this skill for tasks like:

Required Working Mode

When this skill triggers, ALWAYS do the following:

  1. Open the reference webpage in one browser page.
  2. Open the local project in a separate browser page.
  3. Keep both pages available throughout the task instead of replacing one with the other.
  4. Reproduce the target interaction in the local page, not just the reference page.
  5. Use Chrome DevTools MCP browser tooling to inspect real runtime state before and after edits.

If the reference site requires authentication and an authenticated page already exists, reuse that page instead of trying to rebuild the login flow unless the task requires it.

Workflow

1. Establish the comparison baseline

Do not start editing until the target behavior is expressed as specific observable runtime facts.

2. Reproduce the real interaction

Run the actual interaction in the local project before changing code.

Examples:

The point is to observe what the browser is really doing, not what the code suggests it should do.

3. Use browser evidence to locate the mismatch

When the behavior is wrong, inspect runtime evidence with #io.github.chromedevtools/chrome-devtools-mcp. Prefer direct evidence like:

This is especially important for interaction bugs where static reasoning is often misleading.

Debugging Checklist By Interaction Type

Drag-and-drop

Always verify all of these in the browser:

For drag-and-drop, do not stop after seeing "dropped". Confirm what it was dropped over and whether data actually changed.

Navigation handoff

For breadcrumbs, tree nodes, or row double-click navigation, verify:

Visual alignment

For spacing, chip layout, icon size, or header rhythm, compare both pages directly. If the reference page uses larger interaction hit areas than the local implementation, copy the interactive footprint, not just the text content.

Editing Loop

After each meaningful code change:

  1. Reload the local page.
  2. Re-run the specific interaction that was previously wrong.
  3. Re-check the same runtime evidence.
  4. Compare again against the reference page.

Do not assume a code fix worked just because it compiles or the DOM structure changed.

Preferred Tool Usage

Prefer #io.github.chromedevtools/chrome-devtools-mcp browser tools for this workflow:

Use terminal and code search tools only to support the browser findings, not to replace them.

Output Expectations

When finishing the task, the result should include:

Guardrails

Example Triggers

Back to all skills