Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问许可证需确认审计提醒

react-expertReact expert 搜索

Agent Skill

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

总安装

21,224

周安装

867

GitHub Stars

11,726

下载量

6,867
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/reactjs/react.dev --skill react-expert

简介

来自权威来源的详尽 React API 研究,而不是培训知识。

  • 产生六个并行研究代理来系统地搜索 React 的测试文件、源代码、git 历史记录、PR、问题和类型定义
  • 强制执行怀疑态度:将原始材料视为唯一权威,并标记调查结果与共识之间的差异
  • 生成记录的研究,其中包含每个声明、代码示例和警告的确切文件路径、行号和源链接
  • 涵盖使用模式、错误条件、设计原理、常见混淆点以及 Flow/TypeScript 类型签名差异

SKILL.md

React Expert Research Skill

Overview

This skill produces exhaustive documentation research on any React API or concept by searching authoritative sources (tests, source code, PRs, issues) rather than relying on LLM training knowledge.

Red Flags - STOP if you catch yourself thinking:

  • "I know this API does X" → Find source evidence first
  • "Common pattern is Y" → Verify in test files
  • Generating example code → Must have source file reference

Invocation

/react-expert useTransition
/react-expert suspense boundaries
/react-expert startTransition

Sources (Priority Order)

  1. React Repo Tests - Most authoritative for actual behavior
  2. React Source Code - Warnings, errors, implementation details
  3. Git History - Commit messages with context
  4. GitHub PRs & Comments - Design rationale (via gh CLI)
  5. GitHub Issues - Confusion/questions (facebook/react + reactjs/react.dev)
  6. React Working Group - Design discussions for newer APIs
  7. Flow Types - Source of truth for type signatures
  8. TypeScript Types - Note discrepancies with Flow
  9. Current react.dev docs - Baseline (not trusted as complete)

No web search - No Stack Overflow, blog posts, or web searches. GitHub API via gh CLI is allowed.

Workflow

Step 1: Setup React Repo

First, ensure the React repo is available locally:

# Check if React repo exists, clone or update
if [ -d ".claude/react" ]; then
  cd .claude/react && git pull origin main
else
  git clone --depth=100 https://github.com/facebook/react.git .claude/react
fi

Get the current commit hash for the research document:

cd .claude/react && git rev-parse --short HEAD

Step 2: Dispatch 6 Parallel Research Agents

Spawn these agents IN PARALLEL using the Task tool. Each agent receives the skepticism preamble:

"You are researching React's <TOPIC>. CRITICAL: Do NOT rely on your prior knowledge about this API. Your training may contain outdated or incorrect patterns. Only report what you find in the source files. If your findings contradict common understanding, explicitly highlight this discrepancy."
Agentsubagent_typeFocusInstructions
test-explorerExploreTest files for usage patternsSearch .claude/react/packages/*/src/__tests__/ for test files mentioning the topic. Extract actual usage examples WITH file paths and line numbers.
source-explorerExploreWarnings/errors in sourceSearch .claude/react/packages/*/src/ for console.error, console.warn, and error messages mentioning the topic. Document trigger conditions.
git-historianExploreCommit messagesRun git log --all --grep="<topic>" --oneline -50 in .claude/react. Read full commit messages for context.
pr-researcherExplorePRs introducing/modifying APIRun gh pr list -R facebook/react --search "<topic>" --state all --limit 20. Read key PR descriptions and comments.
issue-hunterExploreIssues showing confusionSearch issues in both facebook/react and reactjs/react.dev repos. Look for common questions and misunderstandings.
types-inspectorExploreFlow + TypeScript signaturesFind Flow types in .claude/react/packages/*/src/*.js (look for @flow annotations). Find TS types in .claude/react/packages/*/index.d.ts. Note discrepancies.

Step 3: Agent Prompts

Use these exact prompts when spawning agents:

test-explorer

You are researching React's <TOPIC>.

CRITICAL: Do NOT rely on your prior knowledge about this API. Your training may contain outdated or incorrect patterns. Only report what you find in the source files.

Your task: Find test files in .claude/react that demonstrate <TOPIC> usage.

1. Search for test files: Glob for `**/__tests__/**/*<topic>*` and `**/__tests__/**/*.js` then grep for <topic>
2. For each relevant test file, extract:
   - The test description (describe/it blocks)
   - The actual usage code
   - Any assertions about behavior
   - Edge cases being tested
3. Report findings with exact file paths and line numbers

Format your output as:
## Test File: <path>
### Test: "<test description>"

<exact code from test>


**Behavior:**

source-explorer


You are researching React's.

CRITICAL: Do NOT rely on your prior knowledge about this API. Only report what you find in the source files.

Your task: Find warnings, errors, and implementation details for.

1. Search.claude/react/packages/*/src/ for:
  - console.error mentions of
  - console.warn mentions of
  - Error messages mentioning
  - The main implementation file
2. For each warning/error, document:
  - The exact message text
  - The condition that triggers it
  - The source file and line number

Format your output as:

## Warnings & Errors

| Message | Trigger Condition | Source |
| --- | --- | --- |
| "" |  | [file:line](https://github.com/reactjs/react.dev/blob/HEAD/.claude/skills/react-expert/file:line) |

## Implementation Notes

#### git-historian

You are researching React's <TOPIC>.

CRITICAL: Do NOT rely on your prior knowledge. Only report what you find in git history.

Your task: Find commit messages that explain <TOPIC> design decisions.

  1. Run: cd .claude/react && git log --all --grep="<topic>" --oneline -50
  2. For significant commits, read full message: git show <hash> --stat
  3. Look for:

- Initial introduction of the API - Bug fixes (reveal edge cases) - Behavior changes - Deprecation notices

Format your output as:

Key Commits

<short hash> - <subject>

Date: <date> Context: <why this change was made> Impact: <what behavior changed>


#### pr-researcher

You are researching React's <TOPIC>.

CRITICAL: Do NOT rely on your prior knowledge. Only report what you find in PRs.

Your task: Find PRs that introduced or modified <TOPIC>.

  1. Run: gh pr list -R facebook/react --search "<topic>" --state all --limit 20 --json number,title,url
  2. For promising PRs, read details: gh pr view <number> -R facebook/react
  3. Look for:

- The original RFC/motivation - Design discussions in comments - Alternative approaches considered - Breaking changes

Format your output as:

Key PRs

PR #<number>: <title>

URL: <url> Summary: <what it introduced/changed> Design Rationale: <why this approach> Discussion Highlights: <key points from comments>


#### issue-hunter

You are researching React's <TOPIC>.

CRITICAL: Do NOT rely on your prior knowledge. Only report what you find in issues.

Your task: Find issues that reveal common confusion about <TOPIC>.

  1. Search facebook/react: gh issue list -R facebook/react --search "<topic>" --state all --limit 20 --json number,title,url
  2. Search reactjs/react.dev: gh issue list -R reactjs/react.dev --search "<topic>" --state all --limit 20 --json number,title,url
  3. For each issue, identify:

- What the user was confused about - What the resolution was - Any gotchas revealed

Format your output as:

Common Confusion

Issue #<number>: <title>

Repo: <facebook/react or reactjs/react.dev> Confusion: <what they misunderstood> Resolution: <correct understanding> Gotcha: <if applicable>


#### types-inspector

You are researching React's <TOPIC>.

CRITICAL: Do NOT rely on your prior knowledge. Only report what you find in type definitions.

Your task: Find and compare Flow and TypeScript type signatures for <TOPIC>.

  1. Flow types (source of truth): Search .claude/react/packages/*/src/*.js for @flow annotations related to <topic>
  2. TypeScript types: Search .claude/react/packages/*/index.d.ts and @types/react
  3. Compare and note any discrepancies

Format your output as:

Flow Types (Source of Truth)

File: <path>

<exact type definition>

TypeScript Types

File:

<exact type definition>

Discrepancies

Step 4: Synthesize Results

After all agents complete, combine their findings into a single research document.

DO NOT add information from your own knowledge. Only include what agents found in sources.

Step 5: Save Output

Write the final document to .claude/research/<topic>.md

Replace spaces in topic with hyphens (e.g., "suspense boundaries" → "suspense-boundaries.md")

Output Document Template

# React Research: <topic>

> Generated by /react-expert on YYYY-MM-DD
> Sources: React repo (commit <hash>), N PRs, M issues

## Summary

[Brief summary based SOLELY on source findings, not prior knowledge]

## API Signature

### Flow Types (Source of Truth)

[From types-inspector agent]

### TypeScript Types

[From types-inspector agent]

### Discrepancies

[Any differences between Flow and TS]

## Usage Examples

### From Tests

[From test-explorer agent - with file:line references]

### From PRs/Issues

[Real-world patterns from discussions]

## Caveats & Gotchas

[Each with source link]

- **<gotcha>** - Source: <link>

## Warnings & Errors

| Message | Trigger Condition | Source File |
|---------|------------------|-------------|
[From source-explorer agent]

## Common Confusion

[From issue-hunter agent]

## Design Decisions

[From git-historian and pr-researcher agents]

## Source Links

### Commits
- <hash>: <description>

### Pull Requests
- PR #<number>: <title> - <url>

### Issues
- Issue #<number>: <title> - <url>

Common Mistakes to Avoid

  1. Trusting prior knowledge - If you "know" something about the API, find the source evidence anyway
  2. Generating example code - Every code example must come from an actual source file
  3. Skipping agents - All 6 agents must run; each provides unique perspective
  4. Summarizing without sources - Every claim needs a file:line or PR/issue reference
  5. Using web search - No Stack Overflow, no blog posts, no social media

Verification Checklist

Before finalizing the research document:

  • React repo is at .claude/react with known commit hash
  • All 6 agents were spawned in parallel
  • Every code example has a source file reference
  • Warnings/errors table has source locations
  • No claims made without source evidence
  • Discrepancies between Flow/TS types documented
  • Source links section is complete

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

34.76%
按下载量换算2,387

Claude

28.85%
按下载量换算1,981

Cursor

17.28%
按下载量换算1,187

Gemini CLI

9.44%
按下载量换算648

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/reactjs/react.dev --skill react-expert 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

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

来源信息

继续浏览同类 Skills