FR

frontend-testing

Automates the generation of Vitest and React Testing Library tests for the Dify project.

Install

mkdir -p .claude/skills/frontend-testing && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/692" && unzip -o skill.zip -d .claude/skills/frontend-testing && rm skill.zip

Installs to .claude/skills/frontend-testing

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Generate Vitest + React Testing Library tests for Dify frontend components, hooks, and utilities. Triggers on testing, spec files, coverage, Vitest, RTL, unit tests, integration tests, or write/review test requests.
215 charsno explicit “when” trigger
Intermediate

Key capabilities

  • Generate Vitest unit tests
  • Create React Testing Library specs
  • Analyze test coverage
  • Review existing test files
  • Validate frontend component behavior

How it works

It follows established Dify frontend testing conventions to generate and review tests using Vitest and React Testing Library within the project workspace.

Inputs & outputs

You give it
Frontend component or hook code
You get back
Vitest/RTL test specifications

When to use frontend-testing

  • Write unit tests for components
  • Generate tests for React hooks
  • Review existing spec files
  • Analyze test coverage

About this skill

Frontend Testing

web/docs/test.md is the single policy owner. Read it before changing frontend tests; this skill adds no separate requirements.

  1. Identify the observable contract and regression risk.
  2. Choose the smallest boundary that includes the behavior owner.
  3. Establish the failing case first when practical, then implement one coherent scenario.
  4. Run the focused spec before the affected suite and relevant static checks.
  5. Report the behavior verified and any remaining browser, visual, or end-to-end risk.

Recommend deleting low-value tests as readily as adding missing behavior coverage. Use web/docs/test.md for policy and Web commands; use the packages/dify-ui/README.md Development section for Dify UI commands.

When not to use it

  • Backend API testing
  • End-to-end testing with Playwright

Prerequisites

Dify frontend environment

Limitations

  • Restricted to Dify frontend workspace
  • Requires adherence to project test documentation

How it compares

It is specifically tuned for the Dify frontend architecture and testing standards.

Compared to similar skills

frontend-testing side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
frontend-testing (this skill)113moReviewIntermediate
feature-flags66moReviewIntermediate
react-web14moReviewIntermediate
expect04moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry