跳到正文
cccskills
免费在 GitHub 公开中文介绍

debug-frontend-with-browser

用于诊断偶发界面故障、陈旧状态、顺序错误和页面跳转问题。沿渲染、客户端状态及服务端边界追踪同一数据,定位结果最早出错的位置。

原文查看原文说明

Use for intermittent UI, stale state, ordering, navigation or browser-only bugs. Extends acceptance with boundary tracing and regression diagnosis.

lobehub/lobehub星标 83,502(GitHub 83,502 + cccskills 0)

实测评分 未实测

查看安装方法

适用场景

  • 复现偶发的界面故障
  • 追查跳转后的陈旧状态
  • 定位显示顺序出错的边界
  • 将回归问题与父版本对比

中文介绍

功能

本诊断指南用于排查界面闪烁、状态陈旧、显示顺序异常,以及只在页面跳转后出现的问题。首先明确预期状态与实际差异,再在获准的隔离环境中复现问题。随后沿着可见界面、渲染输入、派生状态、客户端状态、网络响应和转换处理等边界追踪同一数据,找出正确值首次变成错误值的位置。复现数据应控制在必要的最小范围内。如需修复,应改正最早产生错误的边界,并回到上级 acceptance 流程进行验证。

适用场景

排查偶发的界面故障,或刷新、切换标签页、页面跳转后表现发生变化的问题时,可以使用本指南。如果仅凭界面无法判断原因,需要进一步检查客户端状态或服务端响应,也适用。

使用示例

  • “请沿各数据边界追踪,调查列表顺序为何错乱。”
  • “请找出跳转到其他页面后仍显示旧状态的原因。”

注意事项

开始前先阅读 acceptance 技能和项目的 PROCESS.md,并仅在获准的隔离环境中调查。对生产环境的调查按只读操作处理。

本介绍由 AI(OpenAI Codex)根据公开的 SKILL.md 撰写。准确的规格请查看下方原文。

文档检查

AI 根据 SKILL.md 的内容检查了需要注意的操作和使用前提。评分只依据实际运行的结果(实测对比)。

安全性发送数据、删除文件、执行命令等是否有说明
A良好要求使用获准的隔离环境,生产调查只读,并禁止读取秘密信息。
安装难易度所需工具和 API 密钥是否少且有说明
B部分不足依赖 `acceptance`、`PROCESS.md`、项目适配器和获准环境,但没有安装步骤。

不计入评分。 由 AI(OpenAI Codex)于 2026年10月26日 评估。仅供参考,安装前请同时查看原文。

如果您认为评估有误,请申请复核

请写明哪一项有误以及原因。无需登录。我们会对照 SKILL.md 重新评估,并在此处更新结果。

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

包含的文件(3)

  • SKILL.md6.5 KB
  • agents/openai.yaml254 B
  • references/pitfalls.md3.9 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Debug Frontend with Browser

Find the first boundary where correct data becomes incorrect. This skill extends acceptance; it does not define a separate test workflow.

Mandatory foundation

Before any browser, Electron, network, cache, or application interaction:

  1. Read ../acceptance/SKILL.md and the project's PROCESS.md in full.
  2. Follow its target grounding, living logs, project adapter, environment and auth checks, approval gate, evidence rules, publication, and teardown.
  3. Enter this diagnostic workflow only after acceptance has established the approved execution surface. If its environment or auth gate is blocked, stop there instead of inventing another execution path.
  4. Use the isolated environment and fixture strategy selected by the project adapter. Never use the user's signed-in production browser or Electron client as a fixture container or test sandbox.
  5. Treat an explicit production investigation as read-only unless the user separately authorizes an exact live mutation and the project adapter permits it. This skill never grants production-mutation authority.
  6. Never read secret files or print credentials, tokens, private content, or full live objects. Return structural projections only.

If acceptance is unavailable, say so and stop before touching a live surface.

Responsibility boundary

acceptance ownsThis skill adds
Environment isolation and service lifecycleFalsifiable symptom and event timeline
Authentication and fixture seedingBoundary-by-boundary state comparison
Browser/Electron driver setupSafe minimal fixture extraction
Approval and mutation authorityPure-function replay and commit A/B
Evidence, report, publication, teardownEarliest-boundary fix guidance

Do not duplicate or weaken acceptance rules here. When the two skills appear to conflict, acceptance and the project layer control execution.

Diagnostic workflow

1. Make the symptom falsifiable

Write one expected invariant and one observed violation. Record:

  • the triggering action;
  • state before, during, and after it;
  • whether navigation, remount, refresh, tab switching, or waiting changes it;
  • stable identifiers required to follow the same entity across layers.

For timing or ordering defects, define the expected and observed event timelines before reading implementation code.

2. Reproduce on the approved isolated surface

  • Reproduce once without recording to prove the path.
  • For an intermittent defect, repeat the same controlled action and record the hit rate.
  • Verify the intended action through a new ID, request, or state transition.
  • Use a GIF or video for flicker and other time-based behavior.
  • Re-snapshot after navigation or a major render because element references expire.

Use the surface and capture method chosen by acceptance; do not relaunch or reattach to the user's resident application.

3. Find the first broken boundary

Compare the same entity IDs at each layer and mark each boundary correct or incorrect.

BoundaryInspectWhat it distinguishes
DOM / visible rowText, order, recordingSymptom only
Renderer inputComponent props, virtual-list dataRenderer vs upstream input
Derived stateSelectors, parsed/display itemsDerivation vs raw state
Raw client stateStore records, SWR state, persisted cacheCache vs transformation
Network / serverStructural response and persisted rowClient vs server
Pure transformationExact parser/normalizer inputRuntime vs deterministic logic

Important:

  • DOM absence is not state absence in a virtualized list.
  • Retained tabs can own multiple React roots and stores; qualify them by stable IDs and the visible route.
  • For cache defects, distinguish in-memory fetch cache, Zustand state, persisted cache, and server state instead of calling all of them "the cache."
  • Stop expanding the search when a pure local function reproduces the exact invalid output.

4. Build the smallest safe fixture

Create the fixture through the isolated environment's supported seed path. Keep only fields required by the suspected boundary, such as:

  • id, type or role, parent linkage, and timestamps;
  • cache key and lifecycle state;
  • branch or group metadata;
  • entity identifiers that affect selection or grouping.

Store reusable inputs through the project's fixture layout. Do not copy private production content into fixtures or tracked files.

5. Attribute with the same fixture

Do not infer causality from PR timing or filenames.

  1. Run the same fixture against the suspected revision and its real parent.
  2. Compare the same observable boundary, not two different screenshots.
  3. Verify the commit parent, PR file list, merge time, and deployment timing.
  4. Separate the revision that introduced the latent bug from the data event that first exposed it.

6. Fix the earliest incorrect boundary

  • Change the layer that first produces invalid state.
  • Preserve unrelated branch, optimistic-update, and cache semantics.
  • Add a behavior-level regression test with the sanitized minimal fixture.
  • Add a JSDoc comment when the fix protects a non-obvious invariant.
  • Do not substitute timeouts, refreshes, DOM sorting, or downstream filters for a source-state fix.

7. Return to the acceptance workflow for verification

After diagnosis or a fix, resume the parent acceptance workflow. It owns the focused checks, isolated visual replay, evidence inspection, structured report, publication, and cleanup. Do not publish a separate browser-debugging verdict.

Diagnostic supplements

Read references/pitfalls.md when the suspected boundary involves retained React roots, virtualized data, optimistic reconciliation, stale client caches, pure replay, or regression attribution.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

acceptance

免费有简介

通过实际操作产品验证交付内容,记录用户可查看的证据,并发布验收报告。可检查已有验证计划或创建检查项,选择合适的操作界面,并使用 `lh` CLI 发布结果。

  • 实际检查更改后的产品行为
  • 收集截图或其他验证证据
  • 编写验证计划和报告
lobehub/lobehub8.4万2026年10月26日 更新

add-model-provider

免费有简介

本技能指导在 LobeHub 中接入 AI 模型提供商,涵盖运行时、模型信息、设置、品牌展示、文档和验收,并帮助判断新增模型是否需要新的提供商集成。

  • 为 LobeHub 接入新的 AI 模型提供商
  • 更新提供商设置说明或介绍
  • 判断添加模型是否需要新的提供商集成
lobehub/lobehub8.4万2026年10月26日 更新

add-setting-env

免费有简介

本技能指导如何用服务器端环境变量设置用户偏好默认值,涵盖变量校验、服务器配置、写入用户状态,以及更新 `.env.example` 和自托管文档。

  • 通过环境变量设置用户偏好默认值
  • 将设置接入服务器配置和用户状态
  • 更新环境变量示例及文档
lobehub/lobehub8.4万2026年10月26日 更新

agent-runtime-hooks

免费有简介

说明如何在智能体执行步骤、工具调用、人工审批、上下文压缩和子智能体调用时注册钩子。钩子可观察事件、模拟本地工具结果,也可通过 Webhook 按配置策略允许或拒绝工具调用。

  • 记录智能体步骤和错误
  • 测试时模拟工具结果
  • 通过 Webhook 允许或拒绝工具调用
lobehub/lobehub8.4万2026年10月26日 更新

agent-signal

免费有简介

此技能用于为智能体设计事件驱动的后台工作流,划分来源、信号、动作和策略的职责,并处理异步交接、去重、执行范围、完成记录与运行观测。

  • 添加事件触发的后台任务
  • 将工作移出对话请求
  • 防止动作重复执行
lobehub/lobehub8.4万2026年10月26日 更新

agent-testing-bot

免费有简介

本技能在 macOS 桌面聊天应用中测试机器人频道:打开应用、进入频道或联系人、发送消息、等待回复并截图。支持 Discord、Slack、Telegram、微信、飞书和 QQ;iMessage 使用 BlueBubbles 桥接。

  • 检查真实 Discord 频道中的机器人回复
  • 测试 Slack 或 Telegram 的对话流程
  • 记录 macOS 应用中的操作结果
lobehub/lobehub8.4万2026年10月26日 更新

查看 lobehub 的全部技能

报告此技能的问题