react-validation

Run build, lint, type-check, and test checks on React frontend changes.

5|1|Updated Dec 10, 2025
One-click install
npx skills add https://github.com/Pravin-surawase/structural_engineering_lib --skill react-validation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-validation
Source: https://github.com/Pravin-surawase/structural_engineering_lib/tree/main/.github/skills/react-validation
Command: npx skills add https://github.com/Pravin-surawase/structural_engineering_lib --skill react-validation

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you verify that React frontend changes are safe, buildable, and ready to merge by catching compilation errors, lint issues, and failing tests early.

Core Features & Use Cases

  • Production Build Validation: Confirms the app can compile and bundle successfully.
  • Static Quality Checks: Runs linting and TypeScript checks to surface import, syntax, and typing problems.
  • Test Verification: Executes the frontend test suite to detect regressions after component, hook, or configuration changes.
  • Use Case: After editing a React component or hook, use this Skill to validate the frontend before committing or opening a pull request.

Quick Start

Use the react-validation skill to run the full React frontend validation workflow after modifying application code.

Frequently Asked Questions about react-validation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I validate React frontend changes before shipping?

You can validate React frontend changes by running ESLint, TypeScript compilation, Vitest execution, and production build checks together. This workflow surfaces import, syntax, and typing problems to confirm your modifications are safe and ready to merge.

What checks should I run after modifying React hooks and components?

After modifying React hooks and components, run TypeScript type-checks, ESLint static analysis, Vitest test execution, and production build validation. These checks detect regressions, typing problems, and bundle failures to ensure your code is ready to merge.

Can I use this validation workflow for TypeScript and Vitest projects?

Yes, this validation workflow is specifically designed for React frontend projects using TypeScript and Vitest. It requires successful TypeScript compilation, ESLint compliance, Vitest test execution, and production build output to confirm your application's readiness.

What is the best way to catch React compilation errors before a pull request?

The best way to catch React compilation errors before a pull request is running a combined validation workflow that executes TypeScript checks, ESLint, Vitest, and production builds. This surfaces syntax, import, and typing problems early before merging.

Why does my React production build fail when lint and tests pass?

A React production build can fail when lint and tests pass because build validation checks separate compilation and bundling logic. Running TypeScript type-checks alongside ESLint and Vitest helps surface hidden import or typing problems that break the bundle.

Do I need to run TypeScript checks separately from ESLint for React validation?

For complete React validation, you need to run TypeScript type-checks separately from ESLint because they catch different issues. TypeScript compilation finds typing problems while ESLint surfaces syntax and import issues, and both must pass alongside Vitest and build checks.