Search

PythonReactSEOPDF
OpenClaw

ui-debug-methodology

UI/前端问题调试方法论。当遇到 CSS、布局、组件行为等 UI 问题时,强制执行"先观察后动手"的调试流程,避免盲目尝试。

chrsh44e0 source installs☆ 0 Repository stars

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

SkillHub CLI

skillhub install chrsh44e/ui-debug-methodology

Inspect the source and compatibility requirements, then follow its installation steps.

Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.

View source ↗Guides

Skill instructions

UI 问题调试方法论

核心原则:先理解机制,后动手修改。

当 UI 行为不符合预期时,禁止立即修改代码。必须先完成以下调试流程。


触发条件

当遇到以下情况时,必须激活本 skill 的调试流程:

  1. UI 行为不符合预期
  2. CSS/样式不生效
  3. 组件交互有问题(拖拽、点击、hover 等)
  4. 布局错乱
  5. 第一次尝试修复失败后

强制流程

┌─────────────────────────────────────────────────────────────┐
│                    UI 问题调试流程                           │
├─────────────────────────────────────────────────────────────┤
│                                                             │
│  1. 观察现象        用 DevTools 检查实际 DOM 和样式          │
│       │                                                     │
│       ▼                                                     │
│  2. 理解机制        搞清楚组件/CSS 的工作原理                │
│       │                                                     │
│       ▼                                                     │
│  3. 定位根因        找到真正控制行为的代码/配置              │
│       │                                                     │
│       ▼                                                     │
│  4. 最小修复        只改必要的部分                          │
│       │                                                     │
│       ▼                                                     │
│  5. 验证            测试所有场景                            │
│       │                                                     │
│       └──── 失败 ────▶ 回到步骤 1,不要继续打补丁           │
│                                                             │
└─────────────────────────────────────────────────────────────┘

Step 1: 观察现象

必须使用 DevTools 或 Playwright,而不是猜测。

检查清单
检查项 方法
实际的 DOM 结构 Elements 面板
Computed styles 查看 width/height/min-width/max-width 等
样式来源 看是哪个 CSS 规则在生效
是否有覆盖 查看被划掉的样式
布...

Source information

Source
github
Repository
openclaw/skills
Path
skills/chrsh44e/ui-debug-methodology
Version
—
Commit
fd07087c3b6b2672e0b45be65cec812690208e7e
Classification source
rules
Status
active
Visibility
public

These signals come from indexed source analysis and may lag behind changes. Check the current source files.

Extracted content

SKILL.md
# UI 问题调试方法论

**核心原则:先理解机制,后动手修改。**

当 UI 行为不符合预期时,**禁止**立即修改代码。必须先完成以下调试流程。

---

## 触发条件

当遇到以下情况时,**必须**激活本 skill 的调试流程:

1. UI 行为不符合预期
2. CSS/样式不生效
3. 组件交互有问题(拖拽、点击、hover 等)
4. 布局错乱
5. 第一次尝试修复失败后

---

## 强制流程

```
┌─────────────────────────────────────────────────────────────┐
│                    UI 问题调试流程                           │
├─────────────────────────────────────────────────────────────┤
│                                                             │
│  1. 观察现象        用 DevTools 检查实际 DOM 和样式          │
│       │                                                     │
│       ▼                                                     │
│  2. 理解机制        搞清楚组件/CSS 的工作原理                │
│       │                                                     │
│       ▼                                                     │
│  3. 定位根因        找到真正控制行为的代码/配置              │
│       │                                                     │
│       ▼                                                     │
│  4. 最小修复        只改必要的部分                          │
│       │                                                     │
│       ▼                                                     │
│  5. 验证            测试所有场景                            │
│       │                                                     │
│       └──── 失败 ────▶ 回到步骤 1,不要继续打补丁           │
│                                                             │
└─────────────────────────────────────────────────────────────┘
```

---

## Step 1: 观察现象

**必须使用 DevTools 或 Playwright**,而不是猜测。

### 检查清单

| 检查项 | 方法 |
|--------|------|
| 实际的 DOM 结构 | Elements 面板 |
| Computed styles | 查看 width/height/min-width/max-width 等 |
| 样式来源 | 看是哪个 CSS 规则在生效 |
| 是否有覆盖 | 查看被划掉的样式 |
| 布...

Related skills

OpenClaw

13-Day Sprint Method

galizki

Productivity system based on Maya calendar with 13 natural tones for project management and personal development

OpenClaw

1password

daggerkun007

Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.