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.
npx skills add Morningstar202604/awesome-skillkit --skill frontend-testing-debugginggit clone --depth 1 https://github.com/Morningstar202604/awesome-skillkitWrote 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.
[](https://agentmods.dev/skills/morningstar202604/awesome-skillkit/frontend-testing-debugging)<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.
<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>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.
| Model | Per session | Once 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 |
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.
What it actually says
前端测试与调试(E2E / 组件)
本 skill 适配全栈团队的前端质量保障。核心纪律:先稳定复现再修;测试断言用户能看到/能操作的行为,不断言内部 state 或实现细节;E2E 只覆盖关键路径,不追求每像素覆盖。
这是什么
一套前端测试分层与调试方法论。组件测试兜住交互逻辑,E2E 兜住主流程,调试时用 DevTools 从现象反查到根因,避免盲改 CSS 碰运气。
何时使用
- 为新组件/页面补测试。
- 线上/本地出现交互 Bug、样式错位、数据渲染不对。
- 关键流程(登录、下单、支付)需要 E2E 守护。
核心步骤
- 分层选测试:纯逻辑/hook 用单测;组件交互用组件测试;跨页面主流程用 E2E。
- 断言行为:测「点按钮后出现什么文字/发出什么请求」,不测「useState 变成几」。
- 稳定选择器:用 role / test-id / 文本定位,不依赖易变的 CSS 类或位置。
- 先复现 Bug:在浏览器里稳定重现,录下步骤,再动代码。
- 分层定位:是渲染问题(DOM/CSS)、状态问题(store/props)、还是网络问题(请求/响应)。
- 修后回归:修复同时补一个能复现该 Bug 的测试,锁住防复发。
测试清单
- 组件测试覆盖:渲染、交互触发、loading/error 态。
- E2E 覆盖关键用户旅程(登录→核心操作→结果可见),不写细枝末节。
- 选择器稳定(role/test-id/文本),不靠 class 名或坐标。
- 测试不依赖执行顺序,可独立跑、可并行。
- 异步等待用「等待元素出现」而非固定
sleep。 - 每个线上 Bug 修复都带回归测试。
调试流程
- 复现:固定步骤稳定复现,记录预期 vs 实际。
- 看网络:Network 面板确认请求发出、响应对不对、状态码。
- 看状态:组件/DevTools 检查 props、store、上下文是否符合预期。
- 看渲染:Elements 面板查 DOM 结构与计算样式,定位是数据错还是 CSS 错。
- 二分定位:注释/桩掉可疑模块,缩小范围,不一次性大改。
- 验证:修完在复现步骤上确认,并补回归测试。
易错点
- 断言实现细节:测试内部 state 或函数调用次数,重构一次测试全红,脆弱无价值。
- 用 sleep 等异步:固定等待慢且不稳,应等待目标元素/请求完成。
- 选择器脆:靠 CSS 类名或元素位置定位,一改样式测试就挂。
- 不复现就改:凭猜测改 CSS,刷新一下「好像好了」,换环境又复现。
- E2E 写太细:把每个表单字段都写成 E2E,跑几分钟还易 flaky。细粒度交给组件测试。
- 忽略 flaky:测试时好时坏就跳过,实际是异步/隔离问题,必须根治。
- 网络问题当渲染问题:数据没出来就去调样式,其实是接口没返回。
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.
- 2mo ago First seen · 52 lines · 102 tokens per session scan A f40a2bfe7ccd
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.
frontend-testing-debugging compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| frontend-testing-debuggingMorningstar202604/awesome-skillkit | Skill | 0 | 2mo ago | Apache-2.0 | A | 102 | Claude Code, Codex |
| verify-omnigentomnigent-ai/omnigent | Skill | 12k | today | Apache-2.0 | A | 100 | Claude Code, Codex |
| connect-agentlangwatch/langwatch | Skill | 5.1k | today | Apache-2.0 | A | 102 | Claude Code, Codex |
| mfasimlangwatch/langwatch | Skill | 5.1k | today | Apache-2.0 | A | 170 | Claude Code |
| playwright-cliVoltAgent/voltagent | Skill | 11k | 24d ago | MIT | A | 52 | Claude Code |
| mailsimlangwatch/langwatch | Skill | 5.1k | today | Apache-2.0 | A | 87 | Claude Code |
| idpsimlangwatch/langwatch | Skill | 5.1k | today | Apache-2.0 | A | 118 | Claude Code |