frontend-testing-debugging

frontend-testing-debugging is a skill for Claude Code, Codex from Morningstar202604/awesome-skillkit. It costs 102 tokens per session (995 once invoked), scanned A, original, Apache-2.0.

A method for testing and debugging web interfaces. It combines component tests for individual interface parts, end-to-end tests for complete user journeys, and browser tools for finding rendering, state, network, and interaction problems.

In plain words
What is it for?
Use it to test pages and components, protect flows such as login or checkout, or investigate incorrect rendering, styles, data, and interactions in a browser.
Why use it?
It helps reproduce a problem before changing code and avoids fragile tests that depend on internal implementation details. It also adds a regression test so a fixed bug is less likely to return.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to test pages and components, protect flows such as login or checkout, or investigate incorrect rendering, styles, data, and interactions in a browser.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/morningstar202604/awesome-skillkit/frontend-testing-debugging
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Morningstar202604/awesome-skillkit --skill frontend-testing-debugging
Clone the repo
git clone --depth 1 https://github.com/Morningstar202604/awesome-skillkit

Made for: Claude Code, Codex.

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 frontend-testing-debugging

README.md
[![agentmods](https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/frontend-testing-debugging/github.svg)](https://agentmods.dev/skills/morningstar202604/awesome-skillkit/frontend-testing-debugging)
Your own site
<a href="https://agentmods.dev/skills/morningstar202604/awesome-skillkit/frontend-testing-debugging"><img src="https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/frontend-testing-debugging/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 frontend-testing-debugging

Your own site · 80×15
<a href="https://agentmods.dev/skills/morningstar202604/awesome-skillkit/frontend-testing-debugging"><img src="https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/frontend-testing-debugging.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 102 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 995 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.00102 $0.00995
Opus 5.5 $0.00041 $0.00398
Sonnet 5.5 $0.00020 $0.00199
Haiku 4.5 $0.00010 $0.00100

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

Security

Grade A, and why

frontend-testing-debugging 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 2mo 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.

expert-teams/skills/frontend-testing-debugging/SKILL.md · 52 lines

What it actually says

前端测试与调试(E2E / 组件)

本 skill 适配全栈团队的前端质量保障。核心纪律:先稳定复现再修;测试断言用户能看到/能操作的行为,不断言内部 state 或实现细节;E2E 只覆盖关键路径,不追求每像素覆盖。

这是什么

一套前端测试分层与调试方法论。组件测试兜住交互逻辑,E2E 兜住主流程,调试时用 DevTools 从现象反查到根因,避免盲改 CSS 碰运气。

何时使用

  • 为新组件/页面补测试。
  • 线上/本地出现交互 Bug、样式错位、数据渲染不对。
  • 关键流程(登录、下单、支付)需要 E2E 守护。

核心步骤

  1. 分层选测试:纯逻辑/hook 用单测;组件交互用组件测试;跨页面主流程用 E2E。
  2. 断言行为:测「点按钮后出现什么文字/发出什么请求」,不测「useState 变成几」。
  3. 稳定选择器:用 role / test-id / 文本定位,不依赖易变的 CSS 类或位置。
  4. 先复现 Bug:在浏览器里稳定重现,录下步骤,再动代码。
  5. 分层定位:是渲染问题(DOM/CSS)、状态问题(store/props)、还是网络问题(请求/响应)。
  6. 修后回归:修复同时补一个能复现该 Bug 的测试,锁住防复发。

测试清单

  • 组件测试覆盖:渲染、交互触发、loading/error 态。
  • E2E 覆盖关键用户旅程(登录→核心操作→结果可见),不写细枝末节。
  • 选择器稳定(role/test-id/文本),不靠 class 名或坐标。
  • 测试不依赖执行顺序,可独立跑、可并行。
  • 异步等待用「等待元素出现」而非固定 sleep。
  • 每个线上 Bug 修复都带回归测试。

调试流程

  1. 复现:固定步骤稳定复现,记录预期 vs 实际。
  2. 看网络:Network 面板确认请求发出、响应对不对、状态码。
  3. 看状态:组件/DevTools 检查 props、store、上下文是否符合预期。
  4. 看渲染:Elements 面板查 DOM 结构与计算样式,定位是数据错还是 CSS 错。
  5. 二分定位:注释/桩掉可疑模块,缩小范围,不一次性大改。
  6. 验证:修完在复现步骤上确认,并补回归测试。

易错点

  • 断言实现细节:测试内部 state 或函数调用次数,重构一次测试全红,脆弱无价值。
  • 用 sleep 等异步:固定等待慢且不稳,应等待目标元素/请求完成。
  • 选择器脆:靠 CSS 类名或元素位置定位,一改样式测试就挂。
  • 不复现就改:凭猜测改 CSS,刷新一下「好像好了」,换环境又复现。
  • E2E 写太细:把每个表单字段都写成 E2E,跑几分钟还易 flaky。细粒度交给组件测试。
  • 忽略 flaky:测试时好时坏就跳过,实际是异步/隔离问题,必须根治。
  • 网络问题当渲染问题:数据没出来就去调样式,其实是接口没返回。
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. 2mo ago First seen · 52 lines · 102 tokens per session scan A f40a2bfe7ccd

Subscribe to this mod's changes

frontend-testing-debugging is a skill published in the GitHub repository Morningstar202604/awesome-skillkit (0 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 102 tokens to every session and 995 once invoked, about $0.0004 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-09-27.

Related

frontend-testing-debugging compared with skills from other repositories

frontend-testing-debugging next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
frontend-testing-debuggingMorningstar202604/awesome-skillkitSkill02mo agoApache-2.0A102Claude Code, Codex
verify-omnigentomnigent-ai/omnigentSkill12ktodayApache-2.0A100Claude Code, Codex
connect-agentlangwatch/langwatchSkill5.1ktodayApache-2.0A102Claude Code, Codex
mfasimlangwatch/langwatchSkill5.1ktodayApache-2.0A170Claude Code
playwright-cliVoltAgent/voltagentSkill11k24d agoMITA52Claude Code
mailsimlangwatch/langwatchSkill5.1ktodayApache-2.0A87Claude Code
idpsimlangwatch/langwatchSkill5.1ktodayApache-2.0A118Claude Code