Communitygithub.com

YepAPI/skills

React Hook Form, Zod 유효성 검사 및 다단계 마법사 흐름.

skills란 무엇인가요?

이 스킬은 React Hook Form과 Zod를 사용하여 강력한 폼 유효성 검사와 다단계 마법사 흐름을 구현하는 방법을 정의합니다. React Hook Form의 `useForm()`, `register()`, 그리고 Controller를 활용하여 폼 상태를 관리하고, Zod 스키마를 사용하여 클라이언트와 서버 간에 공유 가능한 유효성 검사를 수행합니다. 다단계 폼은 각 단계별로 독립적인 유효성 검사를 수행하는 마법사 패턴을 따르며, 파일 업로드, 자동 저장, 접근성 및 제출 로딩 상태 처리 등 실무에서 필요한 다양한 기능을 포함합니다. 주로 Claude Code, Cursor, Codex와 같은 AI 코딩 도구 환경에서 사용됩니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/YepAPI/skills/tree/HEAD/skills/forms

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

양식

규칙

  • React Hook Form을 통한 폼 상태 관리 — useForm() + register() 또는 Controller 사용
  • 유효성 검사를 위한 Zod 스키마 — 클라이언트와 서버 간 공유
  • 오류 표시: 각 필드 아래에 인라인, 빨간색 텍스트, aria-describedby를 통해 연결
  • 다단계 양식: 단계 상태를 사용한 마법사 패턴, 각 단계 독립적으로 유효성 검사
  • 파일 업로드: 미리보기, 드래그 앤 드롭, 진행 표시기가 있는 별도 컴포넌트
  • 긴 양식의 자동 저장 — 디바운스된 서버/로컬 저장소 저장
  • 접근성: 레이블, 오류 설명, 유효성 검사 실패 시 포커스 관리
  • 로딩 중 제출 비활성화 — 스피너 표시, 이중 제출 방지

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

YepAPI/skills

WCAG 2.1 AA — semantic HTML, keyboard navigation, screen readers.

YepAPI/skills

Experiment setup, variant splitting, statistical significance, and feature flag integration.

YepAPI/skills

CRUD generators, data tables, user management, role-based access, and bulk operations.

YepAPI/skills

Monitor what ChatGPT and Gemini say about your brand using YepAPI.

YepAPI/skills

Queue workers with BullMQ/Inngest/Trigger.dev, job retries, dead letter queues, concurrency.

YepAPI/skills

Commander.js, interactive prompts with Clack, spinners, colors, config files, exit codes, and npm publishing.

YepAPI/skills

cmdk integration, Cmd+K trigger, fuzzy search, grouped actions, keyboard navigation, and dynamic action registration.

YepAPI/skills

Content planning with trend and sentiment data from YepAPI.

YepAPI/skills

Content calendar, keyword-driven planning, and content briefs.

YepAPI/skills

Theme switching with CSS variables, system preference detection, next-themes, and persistence.

YepAPI/skills

Threaded comments, @mentions, reactions, moderation queue, optimistic UI, and cursor pagination.

YepAPI/skills

Competitive analysis between domains using YepAPI.

YepAPI/skills

Layout grids, KPI cards, data tables with sorting/filtering, sidebar navigation, and responsive breakpoints.

YepAPI/skills

Data encryption — TLS everywhere, AES-256-GCM for PII, bcrypt passwords, encrypted backups.

YepAPI/skills

Chart patterns with Recharts/Nivo/D3, responsive containers, color scales, and accessibility.

YepAPI/skills

Drizzle schema definition, push vs migrate, type-safe queries, relations, transactions, and prepared statements.

YepAPI/skills

Upload handling, resize/compress, CDN delivery, blur placeholders, and next/image patterns.

YepAPI/skills

Local business and Google Maps research using YepAPI.

YepAPI/skills

Cursor-based pagination, IntersectionObserver, virtualized lists with @tanstack/react-virtual, and scroll position restoration.

YepAPI/skills

Chat UI components, streaming responses with AI SDK, context window management, and RAG patterns.

관련 스킬