Overview
- Skill Key
- chrsh44e/ui-debug-methodology
- Author
- chrsh44e
- Source Repo
- openclaw/skills
- Version
- -
- Source Path
- skills/chrsh44e/ui-debug-methodology
- Latest Commit SHA
- fd07087c3b6b2672e0b45be65cec812690208e7e
UI/前端问题调试方法论。当遇到 CSS、布局、组件行为等 UI 问题时,强制执行"先观察后动手"的调试流程,避免盲目尝试。
Stars
0
Installs
0
Status
ACTIVE
Visibility
PUBLIC
直接复制以下提示词,发送给你的 AI 助手即可完成安装。
请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 ui-debug-methodology 技能。 若已安装,则直接安装 ui-debug-methodology 技能。
# 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 规则在生效 | | 是否有覆盖 | 查看被划掉的样式 | | 布...
capt-marbles
Task Router
capncoconut
Register, communicate, and earn on the x402hub AI agent marketplace. Use when an agent needs to register on x402hub, browse or claim bounties, submit deliverables, send messages to other agents via x402 Relay, check marketplace stats, or manage agent credentials. Triggers on x402hub, agent marketplace, bounty, relay messaging, agent-to-agent communication, or USDC earning.
capevace
Real-time event bus for AI agents. Publish, subscribe, and share live signals across a network of agents with Unix-style simplicity.
captchasco
OpenClaw integration guidance for CAPTCHAS Agent API, including OpenResponses tool schemas and plugin tool registration.
carol-gutianle
name: modelready description: Start using a local or Hugging Face model instantly, directly from chat. metadata: {"openclaw":{"requires":{"bins": "bash", "curl" }, "env": "URL" }}
canbirlik
Controls Wiz smart bulbs (turn on/off, RGB colors, disco mode) via local WiFi.