Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

frontend-reactfrontend React 搜索

Agent Skill

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

总安装

240

周安装

10

GitHub Stars

3

下载量

80
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/projanvil/mindforge --skill frontend-react

简介

专门服务 React 生态的技术资料检索通道。

  • 覆盖 Hooks 原理、并发特性与性能优化技巧。
  • 链接官方文档与社区权威资源。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。
  • 建议优先查阅最新稳定版文档而非历史版本。
  • frontend-react 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

React Development Skill

Comprehensive skill for modern React development, focusing on Next.js, TypeScript, Tailwind CSS, and the wider React ecosystem.

Technology Stack

Core Framework: React + Next.js

React Fundamentals

  • Component-Based: Declarative UI building blocks
  • Hooks: Functional state and side-effect management (useState, useEffect, useContext)
  • Virtual DOM: Efficient reconciliation and rendering
  • React Server Components (RSC): Server-side rendering with zero client-side bundle size for static content

Next.js Features (App Router)

  • App Router: File-system based routing in app/ directory
  • Server Actions: Direct server-side mutations from client components
  • Streaming SSR: Progressive rendering with Suspense
  • Metadata API: SEO and social share optimization
  • Route Handlers: API endpoints (GET, POST, etc.) in route.ts files
  • Middleware: Request interception and processing

UI Framework: Tailwind CSS + shadcn/ui

Tailwind CSS

  • Utility-first CSS framework
  • Responsive design with prefixes (md:, lg:)
  • Custom configuration via tailwind.config.ts
  • Dark mode support

shadcn/ui

  • Reusable components built with Radix UI and Tailwind CSS
  • Accessible and customizable
  • "Own your code" philosophy (components copied to your project)
  • Key Components: Button, Dialog, Form, Dropdown, Card, Sheet

State Management

  • Local State: useState, useReducer
  • Global State: React Context, Zustand (for lightweight global state)
  • Server State: TanStack Query (React Query) for async data fetching and caching

Project Architecture

Recommended Directory Structure (Next.js App Router)

src/
├── app/
│   ├── layout.tsx         # Root layout
│   ├── page.tsx           # Home page
│   ├── globals.css        # Global styles
│   ├── (auth)/            # Route group (doesn't affect URL path)
│   │   ├── login/
│   │   │   └── page.tsx
│   │   └── register/
│   │       └── page.tsx
│   └── api/               # API routes
├── components/
│   ├── ui/                # shadcn/ui components
│   │   ├── button.tsx
│   │   └── ...
│   ├── Navbar.tsx
│   └── Footer.tsx
├── lib/
│   ├── utils.ts           # Utility functions (cn, etc.)
│   └── db.ts              # Database connection
└── hooks/                 # Custom React hooks
    └── use-toast.ts

Best Practices

Component Design

  • Server by Default: Use Server Components for everything that doesn't need interactivity.
  • Client Boundary: Add 'use client' directive only when using hooks or event listeners.
  • Composition: Use children prop to avoid prop drilling.
  • Micro-Components: Break down complex UIs into smaller, single-responsibility components.

Performance

  • Image Optimization: Use next/image for automatic optimization.
  • Font Optimization: Use next/font to prevent layout shift.
  • Lazy Loading: Use next/dynamic or React.lazy for heavy components.
  • Code Splitting: Automatic in Next.js, but be mindful of large dependencies.

Accessibility (a11y)

  • Use semantic HTML tags (<main>, <article>, <nav>).
  • Ensure all interactive elements have keyboard support.
  • Use valid ARIA attributes when semantic HTML isn't enough.
  • Radix UI primitives (used in shadcn/ui) handle many a11y concerns automatically.

Common Code Patterns

Next.js Page (Server Component)

import { db } from "@/lib/db"

export default async function DashboardPage() {
  const data = await db.user.findMany()

  return (
    <main className="p-6">
      <h1 className="text-2xl font-bold">Dashboard</h1>
      <ul>
        {data.map(user => (
          <li key={user.id}>{user.name}</li>
        ))}
      </ul>
    </main>
  )
}

Client Component with State

"use client"

import { useState } from "react"
import { Button } from "@/components/ui/button"

export function Counter() {
  const [count, setCount] = useState(0)

  return (
    <div className="flex gap-4 items-center">
      <span>Count: {count}</span>
      <Button onClick={() => setCount(c => c + 1)}>Increment</Button>
    </div>
  )
}

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

展示第三方安全扫描或审计结果

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

平台分布

Codex

35.91%
按下载量换算29

Claude

30.37%
按下载量换算24

Cursor

16.75%
按下载量换算13

Gemini CLI

8.82%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills