Skip to main content
skill CX Codex

form-refactorer — Claude Code skill: React form refactoring

form-refactorer rewrites legacy forms to Field components from Redpanda UI Registry with Zod validation and react-hook-form state management.

no license 1 installs ★ 4,353 updated 2026-10-29

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add redpanda-data/console --skill form-refactorer -a claude-code
Open on GitHub

What form-refactorer does

The skill replaces outdated form patterns with a structured architecture: Field, FieldLabel, FieldError components instead of legacy wrappers, Zod schemas instead of Yup, zodResolver to wire up react-hook-form. It includes a verification checklist (whether every FieldLabel has htmlFor, whether errors render via FieldError, whether Yup is gone) and code patterns for vertical and horizontal field layouts.

Handles dynamic fields, field arrays and multi-section forms via FieldSet and FieldLegend. No FFmpeg or Python needed — this is pure React refactoring. Triggers: requests to modernize forms, migrate to Field components, or replace legacy patterns.

What it helps with

  • rewrite a form using Field components and Zod
  • replace Yup schemas with Zod and zodResolver
  • group related fields semantically with FieldSet
  • render validation errors via FieldError
  • remove deprecated Form imports and legacy wrappers

Example prompts for the agent

  • Update the topic creation form: use Field, FieldLabel, FieldError and Zod for validation
  • Refactor the settings form — replace old components with FieldSet and react-hook-form
  • Rewrite the signup form: add FieldDescription, FieldSeparator and a Zod schema

How to install form-refactorer

1Skills CLI (Vercel)

npx skills add redpanda-data/console --skill form-refactorer -a claude-code

2Manually: put the files in place

~/.claude/skills/form-refactorer/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/form-refactorer/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about form-refactorer

How to install form-refactorer in Claude Code?

Run npx skills add redpanda-data/console --skill form-refactorer -a claude-code, the skill lands in ~/.claude/skills/form-refactorer/SKILL.md.

What does form-refactorer do?

It rewrites React forms to modern Field components from Redpanda UI Registry, replaces Yup with Zod, adds react-hook-form and verifies pattern compliance via a checklist.

Which patterns does form-refactorer consider legacy?

The legacy Form component from components/redpanda-ui/components/form, Yup schemas, forms without FieldLabel and htmlFor, error rendering without FieldError and data-invalid.

Similar skills

All skills for Frontend and UI →

Project sponsors

Companies that keep this analytics open