react-coding-standards

Enforce React coding conventions for TypeScript-based projects.

Updated Apr 13, 2026
One-click install
npx skills add https://github.com/kleon6436/GitHubCopilotSettings --skill react-coding-standards-kleon6436
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-coding-standards
Source: https://github.com/kleon6436/GitHubCopilotSettings/tree/main/skills/react-coding-standards
Command: npx skills add https://github.com/kleon6436/GitHubCopilotSettings --skill react-coding-standards-kleon6436

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

このスキルは React コードのコーディング規約を定義します。TypeScript との併用を前提としています。コードレビュー・新規実装の際はこの規約に従ってください。

Core Features & Use Cases

  • コンポーネント設計原則: 単一責任、1コンポーネント1責務。関数コンポーネントのみを推奨し、UI ロジックとビジネスロジックを分離する設計を促します。副作用は useEffect に限定します。
  • 命名規則、Props 型定義、イベントハンドラ、カスタムフックの推奨を含みます。
  • Propsの型定義・設計: TypeScript の interface を活用し、デフォルト値・children の取り扱い・コールバック型の具体化を推奨します。
  • テスト指針: ユーザーの操作と見た目の観点からテストすることを重視します。

Quick Start

この規約を適用するために、既存の React コンポーネントを規約に沿ってリファクタしてください。

Frequently Asked Questions about react-coding-standards

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

FAQPage Schema
What are the best React coding standards for TypeScript projects?

React coding standards for TypeScript projects enforce consistent component design, naming conventions, props typing, and hooks usage. They ensure single responsibility per component and separate UI logic from business logic.

How do I structure React component props using TypeScript interfaces?

Define React component props using TypeScript interfaces to specify default values, children handling, and concrete callback types. This approach enforces strict typing and predictable component design across your codebase.

How should custom React hooks be named and used according to coding conventions?

Custom React hooks should follow established naming conventions and usage guidelines to manage state and side effects. Coding standards restrict side effects specifically to useEffect to maintain predictable component behavior.

Does this React coding standard guide cover testing practices?

Yes, this React coding standard guide covers testing practices by emphasizing tests from the perspective of user interactions and visual appearance. It ensures components meet real-world testing requirements.

Can I use these React coding guidelines to refactor existing components?

Yes, you can use these React coding guidelines to refactor existing components. The standards apply to both code reviews and new implementations, guiding you to align your codebase with consistent conventions.

What is the recommended approach for separating UI and business logic in React?

The recommended approach for separating UI and business logic in React is using function components exclusively. This design principle enforces single responsibility per component and isolates side effects within useEffect.