Tag: react
SPA Route and Feature Management
Provides architectural guidelines for managing SPA routes and feature separation within the LobeHub codebase. It enforces consistent route registration by requiring parity between desktop router configuration files and promotes a clean sepa…
LobeHub React Component Development Guide
This skill provides comprehensive guidelines for developing React components within the LobeHub ecosystem. It details optimal styling approaches using createStaticStyles, component priority, and architectural rules for routing and desktop f…
Imperative Modal API for LobeHub UI
This guide details the recommended imperative API for managing modals and dialogs within LobeHub components. It advises developers to adopt headless primitives from @lobehub/ui/base-ui over legacy declarative patterns, ensuring proper Modal…
Internationalization Key Management for React Applications
This skill guides the implementation of internationalization using react-i18next, enforcing a structured flat-key naming convention (e.g., {feature}.{context}.{action}). It details the required workflow for adding keys to specific namespace…
Building MCP Servers with mcp-use
A comprehensive guide for developing production-ready MCP servers using the mcp-use framework. It covers project scaffolding, authentication integration, backend primitives, and building interactive React-based widgets.
Production-Grade Frontend Design and UI Generation
This skill generates distinctive, production-grade frontend interfaces by first establishing a bold aesthetic direction and conceptual purpose. It outputs meticulously refined, functional code (React, HTML/CSS, etc.) that avoids generic AI …
Advanced skill for robust frontend testing
This skill provides advanced methodologies and best practices for writing robust unit and integration tests for React applications. It guides developers through covering edge cases, boundary conditions, and complex asynchronous flows using …
Comprehensive Frontend Code Quality Review
This skill performs comprehensive code reviews on frontend files (.tsx, .ts, .js), checking for adherence to established conventions, performance anti-patterns, and security vulnerabilities. It supports both file-targeted and pending-change…
Refactoring Complex React Components in TypeScript
Guides the systematic refactoring of high-complexity React components by extracting custom hooks, simplifying conditional logic, and decomposing monolithic JSX into smaller, manageable sub-components. This process is essential for improving…
Web Frontend Implementation and Validation
Provides guidance for implementing, debugging, and deploying web frontends using React, Vue, and Vite. It focuses on engineering execution, including browser-based validation and CloudBase Web integration.
Web Frontend Engineering and Validation
Facilitates the implementation, debugging, and deployment of web frontends using React, Vue, and Vite, including CloudBase Web integration. It emphasises engineering execution and rigorous browser-based validation.
Vercel React and Next.js Performance Guidelines
A comprehensive set of performance optimisation guidelines for React and Next.js applications, covering 45 rules across categories such as bundle size, server-side performance, and re-render optimisation.
Vercel React and Next.js Performance Guidelines
This skill provides comprehensive, Vercel-maintained guidelines for optimizing React and Next.js applications. It covers critical patterns across server-side fetching, bundle size reduction, and component re-rendering to ensure optimal perf…
React and Next.js Performance Optimization Guide
This skill provides comprehensive, Vercel-maintained guidelines for optimising React and Next.js applications. It guides developers through best practices covering everything from eliminating waterfalls and optimizing bundle size to advance…
React and Next.js Performance Optimization Guide
This skill provides comprehensive, Vercel-maintained guidelines for optimising React and Next.js applications. It guides developers through best practices for data fetching, bundle size reduction, and component rendering to ensure optimal w…
Optimising React Components by Avoiding Effects
Guides best practices for writing React components by identifying when effects are truly necessary. It advises developers to derive state during rendering rather than using useEffect for simple data transformations or calculations.
React Form Writing and Validation Best Practices
This skill guides the creation and refactoring of complex React forms using react-hook-form, enforcing best practices like Zod validation, controlled component handling via useController, and managing state updates using field.onChange vers…
React Component Development Best Practices Guide
This guide outlines architectural patterns for developing React components, focusing on optimal styling using createStaticStyles and component hierarchy management. It details preferred usage of @lobehub/ui primitives, routing with react-ro…
Imperative API for managing UI modals and dialogs
This guide details the imperative API for managing modals and dialogs using headless primitives from @lobehub/ui/base-ui. It recommends migrating away from declarative patterns to ensure robust, context-aware, and internationalised UI compo…
Build interactive ChatGPT apps with widgets
This skill facilitates the construction of advanced ChatGPT applications by enabling interactive widgets. It allows for zero-config widget development, creating a shared surface where human input and LLM state can collaborate seamlessly.
React Component Refactoring Skill
Provides patterns and workflows for refactoring high-complexity React components in the Dify frontend. It enables developers to reduce complexity by extracting custom hooks, sub-components, and simplifying conditional logic.
React/TypeScript Component Architecture Guide
This guide provides architectural best practices for developing robust React/TypeScript components. It covers state management, data fetching contracts, prop typing, and component ownership to ensure highly maintainable and scalable codebas…
Frontend Testing Skill
Provides a structured methodology for implementing unit and integration tests for React applications using Jest and React Testing Library. It details configuration, testing patterns, and strategies for handling complex asynchronous scenario…
Comprehensive Frontend Code Quality Review
This skill performs deep code analysis on frontend files, supporting both file-targeted and pending-change reviews. It rigorously checks for security flaws, performance anti-patterns, and adherence to established component and architectural…