KS
Killer-Skills

react-component — how to use react-component how to use react-component, react-component setup guide, react-component vs Create React App, react-component install, what is react-component, react-component alternative, react-component tutorial, react-component best practices, react-component documentation

v1.0.0
GitHub

About this Skill

Ideal for Frontend Agents requiring high-quality, reusable React UI components with Next.js integration. react-component is a skill that enables the creation of high-quality React components using Atomic Design hierarchy and Next.js

Features

Determines the appropriate hierarchy for component placement using Atomic Design
Supports the creation of atoms, molecules, organisms, templates, and app components
Enforces a strict import hierarchy to maintain component organization
Utilizes React 19.2.4 and Next.js 16.1.5 for component creation
Follows a step-by-step process for component implementation

# Core Topics

toshi-hm toshi-hm
[0]
[0]
Updated: 3/6/2026

Quality Score

Top 5%
33
Excellent
Based on code quality & docs
Installation
SYS Universal Install (Auto-Detect)
Cursor IDE Windsurf IDE VS Code IDE
> npx killer-skills add toshi-hm/dialy/react-component

Agent Capability Analysis

The react-component MCP Server by toshi-hm is an open-source Categories.community integration for Claude and other AI agents, enabling seamless task automation and capability expansion. Optimized for how to use react-component, react-component setup guide, react-component vs Create React App.

Ideal Agent Persona

Ideal for Frontend Agents requiring high-quality, reusable React UI components with Next.js integration.

Core Value

Empowers agents to create modular, scalable React components using Next.js 16.1.5 and React 19.2.4, with support for Atomic Design principles and hierarchical component organization, including atoms, molecules, organisms, templates, and app-level components.

Capabilities Granted for react-component MCP Server

Building reusable UI elements for web applications
Implementing Atomic Design principles for modular component development
Creating complex, nested components using Next.js and React

! Prerequisites & Limits

  • Requires Next.js 16.1.5 and React 19.2.4
  • Adherence to Atomic Design hierarchy for component organization
Project
SKILL.md
3.1 KB
.cursorrules
1.2 KB
package.json
240 B
Ready
UTF-8

# Tags

[No tags]
SKILL.md
Readonly

React/Next.js Component Creation

React 19.2.4 と Next.js 16.1.5 を使用した高品質なコンポーネントを作成します。

作成手順

1. Atomic Design階層の決定

コンポーネントを配置する適切な階層を決定:

  • atoms/: 基本的なUI要素(Button, Input, Labelなど)。他のコンポーネントに依存しない
  • molecules/: atomsの組み合わせ(SearchBar, FormFieldなど)
  • organisms/: molecules/atomsを組み合わせた複雑なコンポーネント(Header, DiaryCardなど)
  • templates/: ページレベルのレイアウト
  • app/: Next.js App Routerのページ(テンプレートの具体的なインスタンス)

重要: 上位階層のコンポーネントは下位階層のコンポーネントのみをインポートできます。

2. コンポーネントの実装

typescript
1// src/components/[階層]/ComponentName/ComponentName.tsx 2import type { FC } from 'react'; 3 4export type ComponentNameProps = { 5 // Props定義(必須/オプションを明確に) 6 title: string; 7 description?: string; 8 onClick?: () => void; 9 className?: string; 10 children?: React.ReactNode; 11}; 12 13export const ComponentName: FC<ComponentNameProps> = ({ 14 title, 15 description, 16 onClick, 17 className = '', 18 children, 19}) => { 20 return ( 21 <div className={`基本スタイル ${className}`}> 22 {/* コンポーネントの実装 */} 23 </div> 24 ); 25};

3. 実装ガイドライン

TypeScript:

  • すべてのpropsに型定義を提供
  • FC<Props> を使用
  • エクスポートされるpropsは export type で定義

Styling (Tailwind CSS v4.1):

  • ユーティリティクラスを直接使用
  • className propでカスタマイズ可能にする
  • レスポンシブデザインには sm:, md:, lg:, xl: プレフィックスを使用

アクセシビリティ:

  • セマンティックなHTML要素を使用
  • 適切なARIA属性を追加
  • キーボードナビゲーションをサポート
  • 十分なカラーコントラスト比を確保

パフォーマンス:

  • 必要に応じて React.memo を使用
  • イベントハンドラーは適切にメモ化
  • 重い計算は useMemo でキャッシュ

4. パスエイリアス

すべてのインポートに @/ エイリアスを使用:

typescript
1import { Button } from '@/components/atoms/Button'; 2import { validateDiary } from '@/lib/validations/diary';

5. ファイル構成

コンポーネントディレクトリには以下を含める:

ComponentName/
├── ComponentName.tsx          # メインコンポーネント
├── ComponentName.stories.tsx  # Storybook stories(別スキルで作成)
├── ComponentName.test.tsx     # Vitest tests(別スキルで作成)
└── index.ts                   # 再エクスポート(オプション)

出力

  1. コンポーネントファイルを作成
  2. 実装した機能とアクセシビリティ対応を説明
  3. 使用例を提供
  4. 次のステップ(Storybook story作成、テスト作成)を提案

Related Skills

Looking for an alternative to react-component or building a Categories.community AI Agent? Explore these related open-source MCP Servers.

View All

widget-generator

Logo of f
f

widget-generator is an open-source AI agent skill for creating widget plugins that are injected into prompt feeds on prompts.chat. It supports two rendering modes: standard prompt widgets using default PromptCard styling and custom render widgets built as full React components.

149.6k
0
Design

chat-sdk

Logo of lobehub
lobehub

chat-sdk is a unified TypeScript SDK for building chat bots across multiple platforms, providing a single interface for deploying bot logic.

73.0k
0
Communication

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
Communication

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
Communication