react

Enforce React 18+ functional components, TypeScript props, Tailwind v4, and pnpm workflows.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/plutowang/term.conf --skill react-plutowang
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react
Source: https://github.com/plutowang/term.conf/tree/main/opencode/skills/inventory/react
Command: npx skills add https://github.com/plutowang/term.conf --skill react-plutowang

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps teams enforce modern React (v18+) practices across codebases, ensuring consistency and maintainability.

Core Features & Use Cases

  • Component Standards: Enforces functional components only, TypeScript props typings, and destructured signatures.
  • Styling & Tooling: Enforces Tailwind CSS v4 usage and pnpm-based workflows for development, build, and lint tasks.
  • Project Detection & Guidance: Detects Next.js, Vite, and Nx environments and provides guidance for layout, structure, and tooling decisions.

Quick Start

Initialize or update a React project with Next.js or Vite, convert components to functional components with TypeScript props interfaces, enable Tailwind v4, and configure pnpm scripts (pnpm dev, pnpm build, pnpm lint).

Frequently Asked Questions about react

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

FAQPage Schema
How do I enforce modern React 18 best practices in my codebase?

To enforce modern React 18 best practices, configure your project to mandate functional components, TypeScript props interfaces, and destructured signatures. This ensures consistency and maintainability across Next.js, Vite, or Nx environments.

What is the best way to structure React components with TypeScript?

The best way to structure React components with TypeScript is using functional components with strictly typed props interfaces and destructured signatures. This pattern enforces type safety and predictable component behavior.

Does this React skill work with Next.js and Vite?

Yes, this React skill works with Next.js and Vite, automatically detecting these environments to provide tailored guidance for layout, structure, and tooling decisions specific to your chosen framework.

How do I set up Tailwind CSS v4 and pnpm in a React project?

To set up Tailwind CSS v4 and pnpm in a React project, configure your workflow to use pnpm for development, build, and lint tasks, while enforcing Tailwind v4 as the primary styling solution.

Why should I use functional components over class components in React 18?

You should use functional components over class components in React 18 to align with modern patterns. Enforcing functional components with TypeScript props interfaces ensures better maintainability and consistency across your codebase.

Can I use this React skill for Nx monorepo projects?

Yes, you can use this React skill for Nx monorepo projects. It detects Nx environments and provides specific guidance for layout, structure, and tooling decisions within your monorepo setup.