alpha

Generates React forms from screenshots, PDFs, HTML or text as a validated FormEngine JSON schema plus a runnable App.tsx, with strict schema rules.
description: "Cursor rules for generating React forms from screenshots, PDFs, HTML, or text descriptions with validated FormEngine JSON schema. Renders through RSuite, Material UI, or Mantine."
globs: */
alwaysApply: false
Generate production-ready React forms from a screenshot, PDF, HTML, or
text description. The output is a validated FormEngine JSON schema plus
a runnable App.tsx — portable data, not throwaway JSX.
Default target: FormEngine Core (MIT, free) via @react-form-builder/core
@react-form-builder/components-rsuite (or Material UI / Mantine).Source repo: https://github.com/lukinov/ai-form-builder
form.json — a normalized FormEngine schema, validated against theApp.tsx — a runnable React file that imports the schema and renders<FormViewer>.css, no smuggled HTML markup, valid validation rule keys).type: "Screen" (NOT "Form").key (unique within the tree), type (mustprops."label": { "value": "Email" } —"label": "Email".schema.validations on the field componentRsTooltip / RsErrorMessageMuiTooltip / MuiErrorWrapperMtTooltip / MtErrorWrappercss and wrapperCss are layout-only — flex, grid, box-model,App.tsx (<CustomProvider> / <ThemeProvider> / <MantineProvider>).style field is forbidden — use css / wrapperCss.{ "any": { "object": { "<layout-key>": "<value>" } } },.css file alongside App.tsx. No root className. No<style> blocks. No styled-components.Every string inside any prop is plain text. No HTML markup of any
kind, anywhere — no <h1>, <p>, <strong>, <small>, <br>, nostyle="...", no class="...", no <style> block. Express section
headings and structure with components (RsCard with header prop,RsHeader, RsDivider) — not embedded HTML.
Valid keys: required, nonEmpty, min, max, length, email,url, uuid, ip, datetime, regex, includes, startsWith,endsWith, lessThan, moreThan, integer, multipleOf, truthy,falsy. There is no minLength / maxLength — use min / max
with args.limit.
RsWizard for multi-step forms.State the choice explicitly in the first sentence of the response.
| Wrong | Right |
|---|---|
| Form | Screen |
| RsForm | RsCard or RsContainer |
| RsSelectPicker | RsDropdown |
| RsRadio | RsRadioGroup |
| RsTextarea | RsTextArea (capital A) |
| RsInputNumber | RsNumberFormat |
| RsUpload | RsUploader |
| MtDatePickerSingle | MtDatePicker |
| MtTextField | MtTextInput |
Use RsContainer with display: flex and children withwrapperCss.any.object.flex: "1". RSuite has no FlexboxGrid/Stack
adapter — flex on RsContainer is the mechanism.
Use RsCard with the header prop, or RsHeader — never <h1> /<h2> embedded in RsStaticContent content strings.
Use renderWhen: { "jsCode": "data.X === Y" } and pair withvalidateWhen if validations should also be conditional.
Import only the library's stylesheet. Theme via the library's provider.
No companion CSS. No root className. Layout-level inline styles
(maxWidth, margin, padding) on the wrapping <div> are fine.
import "rsuite/dist/rsuite.min.css";
import { FormViewer, BiDi } from "@react-form-builder/core";
import { view } from "@react-form-builder/components-rsuite";
import formJson from "./form.json";
const getForm = () => JSON.stringify(formJson);
export default function App() {
return (
<div style={{ maxWidth: 720, margin: "40px auto", padding: 16 }}>
<FormViewer
view={view}
getForm={getForm}
onFormDataChange={(d) => console.log(d)}
biDi={BiDi.LTR}
/>
</div>
);
}
FormEngine Core is MIT and free. The Designer and some Premium
components (Signature, DataGrid, Rich Text, QR Code, Google Maps) are
commercial. Don't emit Premium component types unless the user
explicitly asks. Direct people to the free Online FormBuilder
(https://formbuilder.formengine.io) for visual editing.
Lead paragraph (library + field count) → form.json → App.tsx →
validation checklist → install command → "tweak visually in the Online
FormBuilder" link → 3 next-step doc links into FormEngine Core docs.
Public domain (CC0 1.0) · by awesome-cursorrules contributors · source · posted by @OpenSourceBuffGuy on promptparty.com


Teaches a coding agent to build offline-first mobile apps with local storage, background sync and conflict resolution for React Native, Android and iOS.
agent-skill, mobile-app, react-native, android, ios, sqlite, javascript, best-practices, code-generation, backend, state-management, architecture, code, for-developers, advanced, long-form, design-patterns, performance-optimization

Adaptive Bento-Grid Brand Collage
Builds a 16:9 bento-grid brand collage for any brand, with a fixed tile layout whose contents adapt to what the brand actually sells or publishes.
image-prompt, gpt-image, placeholders, template, conditional-logic, multi-panel, branding, graphic-design, poster, social-media-graphic, mockup, ui-mockup, widescreen, minimalist, for-designers, for-marketers, long-form, advanced, structured-output, brand-voice, bento-grid

Soldier painting a pink flower amid ruins
Draws a cinematic photo of a weary soldier kneeling in city ruins and calmly painting a pink flower on a canvas at sunset.
image-prompt, photorealistic, cinematic, portrait, man, bokeh, golden-hour, dramatic-lighting, post-apocalyptic, painting, nano-banana, muted-colors, warriors, editorial, soft-lighting, medium-shot, moody, documentary, long-form
Loading reviews…
Loading comments…