generate-form

Generates a React form component with validation and store integration.

Updated Jan 18, 2026
One-click install
npx skills add https://github.com/marcd35/health-tracker-9000 --skill generate-form
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: generate-form
Source: https://github.com/marcd35/health-tracker-9000/tree/main/.claude/skills/generate-form
Command: npx skills add https://github.com/marcd35/health-tracker-9000 --skill generate-form

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the boilerplate creation of a React form component with validation, state management, and store integration, reducing repetitive coding tasks.

Core Features & Use Cases

  • Generates a standalone component at src/components/forms/{FormName}.tsx with use client, useState for fields, and a submit handler wired to a store action.
  • Includes validation scaffolding, error handling, and UI with shadcn/ui components.
  • Use Case: Create a new data-entry form for WaterIntake, SleepLog, or similar, with optional list management (add/remove items) as demonstrated in the pattern.

Quick Start

Ask the user for: 1) Form name, 2) Fields and types, 3) Store action to call on submit, 4) Whether it includes a list. Then generate the file at the specified path following the MealLogForm.tsx pattern.

Frequently Asked Questions about generate-form

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I auto-create a validated React form component with store integration?

To auto-create a validated React form component, use this Skill to generate a standalone file at src/components/forms/{FormName}.tsx. It scaffolds useState field management, validation logic, and wires the submit handler directly to your store action.

Can I generate a React data-entry form with add/remove list functionality?

Yes, you can generate a React data-entry form with add/remove list functionality. By specifying that your form includes a list during setup, the Skill applies the MealLogForm.tsx pattern to scaffold dynamic item management.

What do I need to provide to generate a shadcn/ui form component?

To generate a shadcn/ui form component, you need to provide the form name, field names and their types, the store action to call on submit, and whether the form includes a list. Standard React tooling is required.

Does this form generator work with TypeScript and useHealthStore patterns?

Yes, this form generator works with TypeScript and useHealthStore patterns. It outputs a ready-to-use React component utilizing shadcn/ui elements, specifically following the implementation pattern demonstrated in MealLogForm.tsx.

What is the best way to reduce boilerplate when building React forms with validation?

The best way to reduce boilerplate when building React forms with validation is to automate the repetitive coding tasks. This Skill generates the complete component structure, including error handling and UI integration, directly into a new file.

Are there limitations to the forms generated by this Skill?

A limitation is that generated forms strictly follow the MealLogForm.tsx implementation pattern and output to src/components/forms/. You must have standard React tooling and shadcn/ui components pre-configured in your project.