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

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.

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)114moReviewIntermediate
feature-flags68moReviewIntermediate
react-web15moReviewIntermediate
expect05moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry