minozzzi/dotfiles/form-state-migration
Trust tier 3
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Source check pending
Checking that the SKILL.md file is still in the repository.
Install
npx vskill@latest install minozzzi/dotfiles/form-state-migrationSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
Form State Migration Skill
Guidelines for refactoring legacy React form modals to server actions with useFormState and Zod validation in imowiz-frontend.
Key Principles
- Zod Validation: Validate incoming FormData strings using Zod schemas (
@imowiz/utils/validate-form-data). - Custom Hook Extraction: Encapsulate
useFormState, search comboboxes (400ms debounce), default values, and data fetches into custom hooks (use-<domain>-form.ts). - Dynamic Array Fields: Use local React
useStatesolely for rendering row addition/removal. Bind inputs via dot-notationnameattributes (e.g.,stages.${index}.name). - Radix Checkbox Handling: Unchecked checkboxes are omitted from
FormData. Coerce them in the Zod schema:
``typescript z.coerce.boolean().optional().default(false) ``
- Pure JSX Dialogs: Dialog components destructure state and handles from the hook and render native/Radix form controls.
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 repositoryCheckingconfig/skills/form-state-migration/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
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/minozzzi/dotfiles/form-state-migration)