360 Secure SkillHub
360 安全技能中心

frontend-testing

该 Skill 用于编写或修改 web/ 与 packages/dify-ui/ 下的 Vitest 或 React Testing Library 测试,或评估现有前端测试策略;它不新增独立检查流程,而是要求遵循对应包的测试边界、环境与验证命令,并报告已验证契约及验证缺口。

langgenius
热度 43.74
最近更新 2026-10-19 02:34:25
分类:开发依赖:纯提示词应用场景:代码生成 / 报告撰写 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add langgenius/dify/frontend-testing
Metadata
name
frontend-testing
description
Use when writing or changing Vitest or React Testing Library tests under `web/` or `packages/dify-ui/`, or when the user explicitly requests frontend test strategy, including evaluation of an existing strategy. Do not use for frontend code-review-only requests, general testability discussion, Python tests, or Cucumber/Playwright E2E.

Frontend Testing

Read the testing policy for the package that owns the changed tests:

  • web/: web/docs/test.md owns Web test boundaries, environments, and commands.
  • packages/dify-ui/: packages/dify-ui/docs/testing.md owns primitive test boundaries, environments, Storybook, and commands.

This skill adds no parallel policy or check sequence. Follow the selected owner's requirements, including its validation commands. Recommend deleting low-value tests as readily as adding missing behavior coverage, and report the contract verified and any material verification gap.