Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问clear审计未展示

reactReact 开发

Agent Skill

用于辅助前端页面、组件、样式和交互逻辑的开发与维护。它适合让 Agent 生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码,整理组件结构,或定位布局和性能问题。使用时需要结合项目现有设计系统、路由和构建方式,避免只生成孤立片段;涉及页面改动时,应配合本地预览和构建检查确认视觉效果。

总安装

419

周安装

18

GitHub Stars

公开资料未说明

下载量

147
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:react(React 开发)
来源仓库:https://github.com/mintuz/claude-plugins
仓库路径:skills/react
安装命令:
npx skills add mintuz/claude-plugins --skill "react"
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

AgentSkills.tonpx skills
npx skills add mintuz/claude-plugins --skill "react"

简介

react 用于辅助前端页面、组件和样式开发,适合在 React、Next.js 等项目中生成或审查相关代码。

  • 它能帮助整理组件结构、定位布局问题,但需结合项目现有设计系统和构建方式使用。
  • 通过 npx skills add mintuz/claude-plugins --skill "react" 安装,建议配合本地预览验证视觉效果。
  • 涉及页面改动时应避免生成孤立片段,并确认是否会触发文件读写或命令执行。
  • react 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
react
description
WHEN building React components/pages/apps; enforces scalable architecture, state management, API layer, performance patterns.

React Best Practices

Production-grade React development with feature-based architecture, type-safe state management, and performance optimization.

Core Principles

  1. Easy to get started with - Clear patterns that new team members can follow
  2. Simple to understand and maintain - Readable code with obvious intent
  3. Clean boundaries - Clear separation between features and layers
  4. Early issue detection - Catch problems at build time, not runtime
  5. Consistency - Same patterns throughout the codebase

Quick Reference

TopicGuide
Directory layout and feature modulesproject-structure.md
Component design patternscomponent-patterns.md
Compound components (Card pattern)compound-components.md
State categories and solutionsstate-management.md
API client and request structureapi-layer.md
Code splitting and optimizationperformance.md
useEffect guidance and alternativesuseeffect.md
Testing pyramid and strategytesting-strategy.md
Project tooling standardsproject-standards.md

When to Use Each Guide

Project Structure

Use project-structure.md when you need:

  • Directory organization (app, features, components)
  • Feature module structure
  • Import architecture (unidirectional flow)
  • ESLint boundary enforcement
  • File naming conventions

Component Patterns

Use component-patterns.md when you need:

  • Colocation principles
  • Composition over props patterns
  • Wrapping third-party components
  • Avoiding nested render functions

Compound Components

Use compound-components.md when you need:

  • Multi-part components (Card, Accordion, etc.)
  • Flexible composition patterns
  • Semantic component structure

State Management

Use state-management.md when you need:

  • State category decisions (component, application, server cache)
  • useState vs useReducer guidance
  • Server cache with React Query
  • State placement guidelines

API Layer

Use api-layer.md when you need:

  • API client configuration
  • Request structure (schema, fetcher, hook)
  • Error handling (interceptors, boundaries)
  • Security patterns (auth, sanitization, authorization)

Performance

Use performance.md when you need:

  • Code splitting strategies
  • State optimization
  • Children optimization patterns
  • Styling performance
  • Image optimization

useEffect

Use useeffect.md when you need:

  • When NOT to use useEffect (most cases)
  • When useEffect IS appropriate (external systems)
  • Dependency array rules
  • Alternatives to useEffect

Testing Strategy

Use testing-strategy.md when you need:

  • Testing pyramid (prioritize integration over unit)
  • What to test at each level (unit, integration, E2E)
  • Testing Library principles (query by accessible names)

Project Standards

Use project-standards.md when you need:

  • Required tooling (ESLint, Prettier, TypeScript, Husky)
  • Pre-commit hook configuration

Quick Reference: Decision Trees

Where should this component live?

Is it used by multiple features?
├── Yes → src/components/
└── No → Is it specific to one feature?
    ├── Yes → src/features/[feature]/components/
    └── No → Colocate with the component that uses it

What state solution should I use?

Is this data from an API?
├── Yes → React Query / SWR
└── No → Is it form data?
    ├── Yes → React Hook Form
    └── No → Is it URL state (filters, pagination)?
        ├── Yes → React Router
        └── No → Is it needed globally?
            ├── Yes → Zustand / Jotai / Context
            └── No → useState / useReducer

Should I create a new feature folder?

Does this functionality have:
- Its own routes/pages?
- Its own API endpoints?
- Components not shared elsewhere?
├── Yes to 2+ → Create feature folder
└── Otherwise → Add to existing feature or shared

Do I need useEffect?

Why does this code need to run?

"Because the component was displayed"
├── Is it synchronizing with an external system?
│   ├── Yes → useEffect is appropriate
│   └── No → Probably don't need useEffect
│
"Because the user did something"
└── Put it in the event handler, not useEffect

"Because I need to compute a value"
└── Calculate during render (or useMemo if expensive)

See useeffect.md for detailed guidance.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

29.31%
按下载量换算43

trae

21.87%
按下载量换算32

Antigravity

16.6%
按下载量换算24

Codex

12.68%
按下载量换算19

windsurf

8.72%
按下载量换算13

Gemini CLI

3.19%
按下载量换算5

安全审计

暂无安全审计结果可展示。

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills