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

react-formsReact 表单

Agent Skill

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

总安装

442

周安装

19

GitHub Stars

11

下载量

155
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/fusengine/agents --skill react-forms

简介

用于辅助 React、Next.js、Vue 等前端框架的表单开发与维护。

  • 适合生成或审查表单组件代码,检查交互逻辑和样式实现。
  • 需结合项目设计系统和构建流程使用,避免生成孤立代码片段。
  • 涉及页面改动时应通过本地预览确认实际效果。
  • react-forms 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

TanStack Form v1 Core Features

Agent Workflow (MANDATORY)

Before ANY implementation, use TeamCreate to spawn 3 agents:

  1. fuse-ai-pilot:explore-codebase - Analyze existing form components and validation patterns
  2. fuse-ai-pilot:research-expert - Verify latest TanStack Form v1 docs via Context7/Exa
  3. mcp__context7__query-docs - Check Zod validation and React 19 Server Actions patterns

After implementation, run fuse-ai-pilot:sniper for validation.


MANDATORY: SOLID Principles

ALWAYS apply SOLID principles from solid-react skill.

→ See ../solid-react/SKILL.md for complete rules

Key Rules:

  • Files < 100 lines (split at 90)
  • Interfaces in modules/[feature]/src/interfaces/
  • JSDoc mandatory on all exports
  • No business logic in components

Core Hooks

HookPurposeGuide
useForm()Initialize form with validationreferences/tanstack-form-basics.md
useField()Subscribe to individual fieldreferences/tanstack-form-basics.md
form.FieldRender prop component for fieldsreferences/tanstack-form-basics.md
form.SubscribeWatch form state changesreferences/tanstack-form-basics.md

→ See references/tanstack-form-basics.md for detailed usage


Validation Adapters

LibraryAdapterBundle Size
ZodzodValidator()~12KB
YupyupValidator()~40KB
ValibotvalibotValidator()~6KB

→ See references/zod-validation.md for Zod patterns → See references/yup-valibot.md for alternatives


Key Features

Async Validation

Server-side checks with debouncing and loading states. → See references/async-validation.md

Server Actions (React 19)

Integration with useActionState and progressive enhancement. → See references/server-actions.md

Arrays & Nested Fields

Dynamic field arrays and dot notation for nested objects. → See references/arrays-nested.md

TypeScript Integration

Full type inference from Zod schemas and defaultValues. → See references/typescript.md

shadcn/ui Integration

Field wrapper components with shadcn styling. → See references/shadcn-integration.md

Listeners (Side Effects)

onMount, onChange, onBlur, onSubmit with debouncing. → See references/listeners.md

Linked Fields

Cross-field validation and dependent dropdowns. → See references/linked-fields.md

Reactivity & Performance

useStore selectors and granular subscriptions. → See references/reactivity.md

Reset API

Form and field reset with custom values. → See references/reset-api.md

SSR & Hydration

TanStack Start integration and server state merge. → See references/ssr-hydration.md

Devtools

Debug form state with @tanstack/react-form-devtools. → See references/devtools.md

React Native

Mobile-specific patterns with TextInput. → See references/react-native.md

Standard Schema

ArkType and Effect Schema support. → See references/standard-schema.md


Templates

TemplateUse Case
templates/basic-form.mdLogin/signup with Zod
templates/multi-step-form.mdWizard with step validation
templates/dynamic-fields.mdAdd/remove field arrays
templates/file-upload-form.mdFile input with preview
templates/server-action-form.mdReact 19 Server Actions
templates/optimistic-form.mduseOptimistic integration
templates/nested-form.mdDot notation nested fields
templates/search-form.mdDebounced search
templates/conditional-fields.mdShow/hide based on values
templates/form-composition.mdReusable field components
templates/listeners-form.mdSide effects & auto-save
templates/linked-fields-form.mdCross-field validation
templates/reactivity-form.mdPerformance optimization
templates/reset-form.mdForm/field reset patterns
templates/ssr-form.mdSSR & hydration
templates/devtools-form.mdDevtools integration
templates/react-native-form.mdReact Native forms

Best Practices

  1. Validation: Use Zod/Yup/Valibot, NOT custom regex
  2. Async: Debounce server validation (300-500ms)
  3. Errors: Display field.state.meta.errors
  4. Nested: Use dot notation (address.street)
  5. Arrays: Use mode="array" with pushValue/removeValue
  6. TypeScript: Infer types with z.infer<typeof schema>

Forbidden (Anti-Patterns)

  • useState for form state → use useForm()
  • ❌ Regex validation → use Zod/Yup/Valibot
  • ❌ No debounce on async → use onChangeAsyncDebounceMs
  • ❌ Validation in components → move to schema
  • ❌ Direct onChange → use field.handleChange
  • ❌ No TypeScript types → use z.infer<typeof schema>

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

34.72%
按下载量换算54

Claude

34.18%
按下载量换算53

Cursor

18.21%
按下载量换算28

Gemini CLI

10.25%
按下载量换算16

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

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

安装前确认

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

来源信息

继续浏览同类 Skills