跳到主内容
智客 ZICQ

技能库 智客分类:设计创意 react

React

审查,设计,脚手架,重构,和故障排除反应应用程序和组件库. 当用户要求反应组件设计,钩子,状态所有权,上下文,渲染模式,测试,性能取舍,或迁移指导时使用.

5 安装量

官方网址:skills.sh

技能介绍

先看中文介绍;官方 description 原文单独保留,不改写 SKILL.md。

做什么

审查、设计、脚手架、重构和故障排除程序响应和组件库

何时用

用户要求反应组件设计、钩子、国有、上下文、渲染模式、测试、性能权衡或迁移指导

代理如何加载

按 Agent Skills 渐进披露:启动时只加载 name 与 description(约 100 token);任务匹配后才读入整份 SKILL.md 正文;scripts/、references/、assets/ 仅在需要时再读。 本文件正文结构:React、Intent Router、Quick Start、Workflow、Typical Focus Areas、Outputs to Prefer。 其中含规范建议的小节:分步指令。

文件分析

文件分析:除 SKILL.md 外,正文引用了 references/best-practices.md、references/workflows.md,属于带资源的技能包,这些文件按需再读。

官方 description(原文)

review, design, scaffold, refactor, and troubleshoot react applications and component libraries. use when the user asks for react component design, hooks, state ownership, context, rendering patterns, testing, performance tradeoffs, or migration guidance.

ReactIntent RouterQuick StartWorkflowTypical Focus AreasOutputs to PreferFirst Response PatternCommon RequestsSafety Notes

来源分类:skills.sh agent-skill

SKILL.md 与 Agent 调用

官方规范 ↗
name
react
description
review, design, scaffold, refactor, and troubleshoot react applications and component libraries. use when the user asks for react component design, hooks, state ownership, context, rendering patterns, testing, performance tradeoffs, or migration guidance.
  1. 发现技能客户端向 Agent 提供名称与描述目录。
  2. 匹配与调用用户指定或任务匹配后,载入 SKILL.md 指令。
  3. 按需加载按步骤读取参考文档、使用脚本与素材。
指令中引用的文件 · 2
  • references/best-practices.md
  • references/workflows.md

以下路径提取自原文;文件是否齐全请以来源仓库中的完整目录为准。

具体调用语法与可用工具以目标 Agent 客户端为准。 查看调用机制说明 ↗

安装这个技能

Skills CLI ↗

先选择目标 Agent 和安装范围,保留技能包的附属文件,安装后检查客户端能否发现该技能。

该技能引用了附属文件,请从来源获取完整目录;仅复制 SKILL.md 可能缺少依赖。

交给 Agent 安装

复制安装指令给支持 Agent Skills 的代理,确认其中的目标目录与客户端匹配。

把 Agent Skill「react」安装到我的项目:SKILL.md 原文与官方 description 见 https://zicq.com/zh/skills/skl-ea21945eb6b4beca-%E5%8F%8D%E5%BA%94.html
请存为 .cursor/skills/react/SKILL.md 或 .claude/skills/react/SKILL.md,frontmatter 的 name 与 description 保持原样,不要改写。
该技能还带 scripts/、references/、assets/ 等文件,请从 https://github.com/alisonaquinas/llm-web-design-skills 取完整目录,不要只建一个 SKILL.md。

GitHub 完整包 ↗

终端安装 · Skills CLI

需要 Node.js 与 npx。先查看仓库技能列表,确认实际名称。

npx skills add 'https://github.com/alisonaquinas/llm-web-design-skills' --list

npx skills add 'https://github.com/alisonaquinas/llm-web-design-skills' --skill 'react'

CLI 会交互选择目标 Agent,默认安装到项目;用户级安装使用 -g。先通过查看命令核对仓库内容,再用 npx skills list 检查已安装技能。

阅读排版

name: react description: > review, design, scaffold, refactor, and troubleshoot react applications and component libraries. use when the user asks for react component design, hooks, state ownership, context, rendering patterns, testing, performance tradeoffs, or migration guidance.

React

Use this skill to keep React work grounded in maintainable architecture, predictable delivery, and framework-appropriate conventions.

Intent Router

| Need | Load | | --- | --- | | core conventions, structure, review priorities, and common red flags for React | references/best-practices.md | | setup, migration, testing, build, delivery, and day-two workflow guidance for React | references/workflows.md |

Quick Start

  1. Confirm React version and host framework, client-only or server-rendered delivery, local state, context, reducer, or store posture, and design-system or product-app scope.
  2. Identify whether the task is greenfield scaffolding, incremental refactoring, troubleshooting, migration planning, or code review.
  3. Apply the defaults in references/best-practices.md before proposing custom architecture.
  4. Prefer the smallest change set that improves clarity, safety, operability, and long-term maintainability.

Workflow

  • start from the owning feature or component boundary
  • keep effects narrow and traceable
  • test user-visible behavior instead of implementation detail
  • verify host-framework build and test paths after changes

Typical Focus Areas

  • React version and host framework
  • client-only or server-rendered delivery
  • local state, context, reducer, or store posture
  • design-system or product-app scope

Outputs to Prefer

  • summarize rendering host and state posture first
  • group findings by component boundaries, state ownership, accessibility, and tests
  • recommend concrete refactors that preserve public component contracts

First Response Pattern

  • restate the host framework, rendering model, and state ownership posture before suggesting changes
  • anchor the plan at the owning component or feature boundary instead of broad abstraction churn
  • name the verification loop up front: host build or test commands plus a smoke test of the affected interaction

Common Requests

Review this React component tree for state ownership, hook usage, accessibility, and test gaps.
Refactor this React feature to simplify composition and reduce incidental re-renders without changing behavior.

Safety Notes

  • preserve externally visible behavior unless the user explicitly requests a redesign or a breaking change
  • avoid style-only churn when the current repository already has working conventions and automation

相关技能

设计创意

Automation Workflows

设计和实施自动化工作流程,以节省时间和规模化操作作为独家. 用于识别重复任务实现自动化,构建跨工具的工作流程,设置触发器和行动,或优化现有自动化. 包括自动化机会识别,工作流程设计,工具选择(Zapier,Make,n8n),测试,和维护. 触发"自动","自动","工作流程自动…

设计创意

Ui Ux Pro Max

UI/UX设计智能及建筑抛光接口实施指导. 当用户要求UI设计,UX流量,信息架构,视觉风格方向,设计系统/托盘,组件规格,副本/显微镜,可访问性,或生成/critique/refine前端UI(HTML/CSS/JS,React,Next.js,Vue,Svelte,Tailw…

设计创意

Frontend Design

创建美丽现代UI的专家前端设计指南. 在构建起落架页面,仪表板,或任何用户界面时使用.

设计创意

N8n Workflow Automation

设计和输出 n8n 工作流程 JSON 有强力触发器, idempotency, 错误处理, 记录, 重试, 以及 人入"一站"审查队列. 当您需要可审计的自动化时使用.