redpanda-data/console/form-refactorer

Claude Code and agent skill by redpanda-data/console

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Refactor legacy forms to use modern Redpanda UI Registry Field components with react-hook-form and Zod validation. Use when user requests: (1) Form refactoring or modernization, (2) Updating forms to use Field components, (3) Migrating from legacy form patterns, (4) Implementing forms with react-hook-form and Zod validation.

Install

npx vskill@latest install redpanda-data/console/form-refactorer

SKILL.md

The same SKILL.md was published earlier as redpanda-data/console/form-refactorer.

Form Refactorer

Refactor legacy forms to modern Redpanda UI Registry Field components with react-hook-form and Zod validation.

Core Requirements

MUST USE (Modern Pattern)
  • Field component family from components/redpanda-ui/components/field
  • react-hook-form for form state management
  • Zod for validation schemas via zodResolver
FORBIDDEN (Legacy Patterns)

See no-legacy for prohibited patterns. Also never import Form from components/redpanda-ui/components/form.

Component Hierarchy

FieldSet - Semantic fieldset container for related fields
├─ FieldLegend - Title for the fieldset
├─ FieldDescription - Description for entire fieldset
└─ FieldGroup - Layout wrapper that stacks fields
├─ Field - Individual field wrapper
│ ├─ FieldLabel - Label for input (use htmlFor)
│ ├─ Input/Select/... - Form control
│ ├─ FieldDescription - Helper text
│ └─ FieldError - Error message
├─ FieldSeparator - Visual divider between fields
└─ Field - Another field

Key Patterns

Vertical field:

tsx
<Field data-invalid={!!errors.fieldName}>
<FieldLabel htmlFor="fieldName">Label</FieldLabel>
<Input id="fieldName" {...register("fieldName")} aria-invalid={!!errors.fieldName} />
{errors.fieldName && <FieldError>{errors.fieldName.message}</FieldError>}
</Field>

Horizontal field (switch/checkbox):

tsx
<Field orientation="horizontal">
<Switch id="toggle" {...register("toggle")} />
<FieldContent>
<FieldLabel htmlFor="toggle">Enable Feature</FieldLabel>
<FieldDescription>Description</FieldDescription>
</FieldContent>
</Field>

Checklist

Before completing refactoring, verify:

  • [ ] All legacy form imports removed (the legacy Form component)
  • [ ] Field components used for all fields
  • [ ] FieldLabel has htmlFor matching Input id
  • [ ] Errors show data-invalid on Field and aria-invalid on Input
  • [ ] Yup replaced with Zod + zodResolver
  • [ ] FieldSet + FieldLegend used for semantic grouping
  • [ ] FieldError conditionally rendered: {errors.field && <FieldError>...
  • [ ] Form submission handled via react-hook-form handleSubmit

References

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
4,317
Repository forks
430
7-day trend score
42

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/redpanda-data/console/form-refactorer/badge)](https://verified-skill.com/skills/redpanda-data/console/form-refactorer)

Something wrong with this skill or its page? Tell us.