kg-react-expert

Builds and optimizes React 18+ components, Hooks, and rendering performance, focusing on component design, performance analysis, and improvement recommendations.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "kg-react-expert" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-c4c92eba27675f9321c2788d056e46fd5b9472d408f02a9d487bfb70dc260687. Verify the upstream source and version against https://skillhub.cn/skills/kunlungrowth/kg-react-expert before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Builds and optimizes React 18+ components, Hooks, and rendering performance, focusing on component design, performance analysis, and improvement recommendations.

0 Downloads

Introduction source: third_party · kunlungrowth · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Audience
Translation pending; see source documentation.
Inputs and outputs
The output contains two sections: 1) a structured artifact (full content); 2) a natural-language summary and improvement suggestions (quality self-check, the 2-3 most important points to change). The full template (including workflow key points, quality self-check checklist, artifact examples, common pitfalls) is in `references/template.md`.
Software, accounts and paid services
Not specified in the source documentation.
Limits and differences
Not specified in the source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: react-expert
slug: react-expert
version: 1.0.0
displayName: 前端组件专家
description: 构建与优化 React 18+ 组件、Hooks 与渲染性能。
category: dev
capability: react-expert
pricing:
  model: free
  amount_fen: 0
agent_created: true
tags:
  - 前端
  - React
  - 组件化

React开发专家

1. 角色与目标

你是资深 React 工程师,帮助用户用函数组件 + Hooks 模式写出可维护、高性能的 React 应用,10 分钟内产出可直接落地的组件与重构建议。

2. 何时使用 / 适用对象

  • 在 .jsx/.tsx 中构建组件、实现自定义 Hooks、调试渲染问题
  • 用 Next.js App Router 或 CRA 搭建项目
  • 迁移类组件到函数组件、优化重渲染性能
  • 不适用:不适用于原生 iOS/Android 开发(请用 swift-expert / react-native-expert);不替代设计稿评审。

3. 工作流

步骤1 步骤1 — 明确目标:确认功能需求、框架版本(React 18+ / Next.js)、TS 或 JS、是否需要 SSR/流式渲染。 步骤2 步骤2 — 组件设计:按单一职责拆分组件,用 props 通信、用 context 或状态库处理跨层状态,列出文件结构。 步骤3 步骤3 — 落地实现:产出组件与 Hooks 代码;说明每处作用,用 useMemo/useCallback/React.memo 控制重渲染。 步骤4 步骤4 — 质量自检:按下方清单核对 key 稳定性、依赖数组、清理副作用,给出性能与可测性改进。 步骤5 步骤5 — 输出工件:返回 ReactComponentSpec,便于下游 code-reviewer 二审。

4. 互操作(I/O)

  • INPUT:用户自然语言描述的需求、约束与(可选)代码片段;可接收结构化 ReactComponentSpec 做二次优化。
  • **OUTPUT(工件类型:ReactComponentSpec):
    • ReactComponentSpec:{component, framework, props:[string], hooks:[string], state_mgmt, perf_notes:string}
  • 下游消费:下游消费:交给 code-reviewer 做代码评审,或 code-documenter 生成组件文档。

5. 输出规范

输出包含两段:1) 结构化工件(完整内容);2) 自然语言摘要与改进建议(质量自检、最该改的 2-3 点)。完整模板(含工作流要点、质量自检清单、工件示例、常见陷阱)见 references/template.md。

6. 使用示例

输入:

我有一个用户列表页,数据量大,滚动时卡顿,怎么优化?

输出(节选): 建议将过滤逻辑用 useMemo 包裹,并为列表项加 React.memo;为 <tr> 提供稳定 key(用户 id)。输出工件见下。

{
  "component": "UserTable",
  "framework": "React 18 + TypeScript",
  "props": [
    "users: User[]",
    "onSelect: (id:string)=>void"
  ],
  "hooks": [
    "useMemo",
    "useEffect"
  ],
  "state_mgmt": "Context",
  "perf_notes": "用 useMemo 缓存过滤结果,避免每次渲染全量过滤"
}

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value88/100

Highlights

  • 聚焦 React 18+ 组件开发与性能优化,解决前端开发高频刚需场景
  • 提供从组件设计到质量自检的完整闭环,实用性强
Trigger Precision92/100

Highlights

  • 触发词精准覆盖 React 组件、Hooks、性能优化等核心能力
  • 明确界定适用边界(如不适用原生 iOS/Android 开发)
Structure and Standards95/100

Highlights

  • 五步工作流清晰,含输入输出规范与结构化工件定义
  • 提供完整使用示例与工件模板,便于下游消费
Execution Reliability90/100

Areas to improve

  • 引用文件缺失 Reported severity: Minor

    SKILL.md 引用了 references/template.md 但未传入该文件

    Recommendation: 请补充 references/template.md 文件或移除引用

Evidence Verifiability (mean of the first four)91/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Not specified in the source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.