Prompts
Prompts are pre-built templates for common tasks. AI uses them to perform complex operations.
create-formβ
Generate a form from a text description.
Arguments:
| Argument | Required | Description |
|---|---|---|
description | Yes | Form description in natural language |
Example request:
Create a registration form with email, password, and confirm password
What gets generated:
- TypeScript interface for the form
- Form schema (FormSchema) with components
- Validation rules (ValidationSchema)
- React component with hooks
Workflow:
AI sequentially uses tools:
get_recommended_structureβ project structuregenerate_typesβ TypeScript typesgenerate_schemaβ form schemagenerate_validationβ validationgenerate_behaviorβ behaviors (if needed)check_codeβ quality check
generate-step-formβ
Generate a multi-step form.
Arguments:
| Argument | Required | Description |
|---|---|---|
description | Yes | Description of form steps |
Example request:
Create a credit application form with steps:
1. Personal info (name, date of birth)
2. Contact info (phone, email)
3. Documents (passport, SSN)
4. Confirmation
Features:
- Separation into steps with individual schemas
- Navigation between steps
- Validation of each step separately
generate-array-formβ
Generate a form with dynamic arrays.
Arguments:
| Argument | Required | Description |
|---|---|---|
description | Yes | Description of form with arrays |
Example request:
Create an order form with a dynamic list of items (name, quantity, price) and automatic total calculation
Features:
- Using ArrayNode
- Adding/removing elements
- Computed fields (subtotal, total)
manage-validationβ
Manage validation rules.
Arguments:
| Argument | Required | Description |
|---|---|---|
task | Yes | Task description |
Example requests:
Add email validation to the userEmail field
Make the phone field required only if contact method is "phone"
Add a check that password and confirmation match
Capabilities:
- Add built-in validators
- Create custom validators
- Async validation
- Cross-field validation
manage-behaviorβ
Manage form behaviors.
Arguments:
| Argument | Required | Description |
|---|---|---|
task | Yes | Task description |
Example requests:
Add automatic calculation total = price * quantity
Hide the companyName field if userType !== "company"
Copy billingAddress to shippingAddress when sameAddress checkbox is checked
Capabilities:
computeFromβ computed fieldsenableWhen/disableWhenβ conditional enablingwatchFieldβ react to changescopyFromβ copy valuessyncFieldsβ two-way syncresetWhenβ reset on condition
debug-formβ
Debug form issues.
Arguments:
| Argument | Required | Description |
|---|---|---|
code | Yes | Form code with the issue |
Example request:
Why doesn't my form show validation errors?
[form code]
What gets checked:
- Use of
useMemoforcreateForm - Correct
useFormControlanduseFormControlValueusage - Type and schema matching
- Validator imports
- Call to
markAsTouchedon blur - Call to
validate()before submission
reformer-helpβ
General ReFormer help.
Arguments:
| Argument | Required | Description |
|---|---|---|
question | Yes | Question about the library |
Example requests:
How does reactivity work in ReFormer?
What validators are available out of the box?
How do I make conditional field display?
AI answers based on up-to-date ReFormer documentation.