前端测试 是做什么的?
为 Dify 前端组件、钩子和工具函数生成 Vitest + React Testing Library 测试。触发条件包括:测试、spec 文件、覆盖率、Vitest、RTL、单元测试、集成测试或编写/审查测试请求。
为 Dify 前端组件、钩子和工具函数生成 Vitest + React Testing Library 测试。触发条件包括:测试、spec 文件、覆盖率、Vitest、RTL、单元测试、集成测试或编写/审查测试请求。
该技能专为 Dify 前端代码库设计,能够自动生成基于 Vitest 和 React Testing Library 的测试用例。它涵盖了组件、自定义钩子及工具函数的单元测试与集成测试编写,帮助开发者快速建立可靠的前端测试体系。支持通过测试关键词、spec 文件、覆盖率报告、Vitest 相关术语、RTL、单元/集成测试或直接请求编写/审查测试来触发。此技能能显著提升开发效率,确保代码质量,并降低回归错误风险。与 Claude Code、Cursor 等主流 AI 代码助手兼容,通过解析代码上下文生成符合最佳实践的测试用例。对于维护 Dify 前端的团队而言,该工具是保障项目健康度的关键。
npx skills add https://github.com/langgenius/dify/tree/main/skills/frontend-testingInstalled? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →
为 Dify 前端组件、钩子和工具函数生成 Vitest + React Testing Library 测试。触发条件包括:测试、spec 文件、覆盖率、Vitest、RTL、单元测试、集成测试或编写/审查测试请求。
This repo contains 3 individual skills — each has its own dedicated page.
Review backend code for quality, security, maintainability, and best practices based on established checklist rules. Use when the user requests a review, analysis, or improvement of backend files (e.g., `.py`) under the `api/` directory. Do NOT use for frontend files (e.g., `.tsx`, `.ts`, `.js`). Supports pending-change review, code snippets review, and file-focused review.
Refactor high-complexity React components in Dify frontend. Use when `pnpm analyze-component --json` shows complexity > 50 or lineCount > 300, when the user asks for code splitting, hook extraction, or complexity reduction, or when `pnpm analyze-component` warns to refactor before testing; avoid for simple/well-structured components, third-party wrappers, or when the user explicitly wants testing without refactoring.
Trigger when the user requests a review of frontend files (e.g., `.tsx`, `.ts`, `.js`). Support both pending-change reviews and focused file reviews while applying the checklist rules.
Send and manage iMessages via BlueBubbles, including attachments, tapbacks, edits, replies, and groups.
Control Eight Sleep pods (status, temperature, alarms, schedules).
BluOS CLI (blu) for discovery, playback, grouping, and volume.
Create, search, and manage Bear notes via grizzly CLI.
Capture frames or clips from RTSP/ONVIF cameras.
Search GIF providers with CLI/TUI, download results, and extract stills/sheets.