redpanda-data/console/form-refactorer
Claude Code and agent skill by redpanda-data/console
- community
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-refactorerSKILL.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
Key Patterns
Vertical field:
Horizontal field (switch/checkbox):
Checklist
Before completing refactoring, verify:
- [ ] All legacy form imports removed (the legacy
Formcomponent) - [ ] Field components used for all fields
- [ ] FieldLabel has
htmlFormatching Inputid - [ ] Errors show
data-invalidon Field andaria-invalidon 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
- Common Patterns — Dynamic fields, field arrays, multi-section forms, pitfalls, Zod patterns
- Field Component Docs
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
- SKILL.md in the repositoryCheckingfrontend/.claude/skills/form-refactorer/SKILL.md
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
[](https://verified-skill.com/skills/redpanda-data/console/form-refactorer)