react-formengine-ai-form-builder-cursorrules-prompt-file

react-formengine-ai-form-builder-cursorrules-prompt-file is a cursor rule for Cursor from PatrickJS/awesome-cursorrules. It costs 1,681 tokens per session, scanned A, original, CC0-1.0.

A set of Cursor coding rules for generating React forms from screenshots, PDFs, HTML, or text. It produces a validated JSON description of the form and a runnable TypeScript React app using supported component libraries.

In plain words
What is it for?
Use it when turning visual or written form specifications into validated FormEngine schemas and runnable forms built with RSuite, Material UI, or Mantine.
Why use it?
It reduces the risk of malformed form definitions and makes generated forms portable instead of tying them to one block of JSX code.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc). Also seen: mentions Cursor.

About the project

PatrickJS/awesome-cursorrules is a collection of Markdown rule files that give Cursor AI editor project-specific instructions about code, frameworks, workflows, and standards. Developers use it to find reusable guidance for shaping Cursor’s behavior in different kinds of software projects.

PatrickJS/awesome-cursorrules · 40,732 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/patrickjs/awesome-cursorrules/react-formengine-ai-form-builder-cursorrules-prompt-file
Clone the repo
git clone --depth 1 https://github.com/PatrickJS/awesome-cursorrules

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for react-formengine-ai-form-builder-cursorrules-prompt-file

README.md
[![agentmods](https://agentmods.dev/badge/rules/patrickjs/awesome-cursorrules/react-formengine-ai-form-builder-cursorrules-prompt-file.svg)](https://agentmods.dev/rules/patrickjs/awesome-cursorrules/react-formengine-ai-form-builder-cursorrules-prompt-file)
Your own site
<a href="https://agentmods.dev/rules/patrickjs/awesome-cursorrules/react-formengine-ai-form-builder-cursorrules-prompt-file"><img src="https://agentmods.dev/badge/rules/patrickjs/awesome-cursorrules/react-formengine-ai-form-builder-cursorrules-prompt-file.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,681 This file is loaded in full into every session.
When invoked 1,681 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.01681 $0.01681
Opus 5 $0.00840 $0.00840
Sonnet 5 $0.00336 $0.00336
Haiku 4.5 $0.00168 $0.00168

Measured 2d ago against content hash ee1ddc866d8e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

react-formengine-ai-form-builder-cursorrules-prompt-file scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

rules/react-formengine-ai-form-builder-cursorrules-prompt-file.mdc · 165 lines

How it starts

The opening of the file, as written. The whole thing — 165 lines — stays where its author put it; the contents beside it link to each section on GitHub.

FormEngine — AI Form Builder for React

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

What you produce — every time

  1. form.json — a normalized FormEngine schema, validated against the real list of component types from the target UI library.
  2. App.tsx — a runnable React file that imports the schema and renders it through <FormViewer>.
  3. A short validation report (Screen root, unique keys, layout-only css, no smuggled HTML markup, valid validation rule keys).
  4. Install command + a link to the free Online FormBuilder (https://formbuilder.formengine.io) so the user can tweak visually.

Hard rules — never violate

Schema invariants

  • Root is type: "Screen" (NOT "Form").
  • Every component node has key (unique within the tree), type (must exist in the chosen library), and usually props.
  • Every prop value is wrapped: "label": { "value": "Email" } — never "label": "Email".
  • Validations live under schema.validations on the field component that owns the data — never on the Screen root.
  • Use the correct tooltip/error types:
    • RSuite: RsTooltip / RsErrorMessage
    • MUI: MuiTooltip / MuiErrorWrapper
    • Mantine: MtTooltip / MtErrorWrapper

Layout vs. styling

  • css and wrapperCss are layout-only — flex, grid, box-model, margin, padding, gap, width/height, alignment. Never color, font, background, border, shadow, radius, opacity, transform.
  • Visual styling belongs in the UI library's theme provider in App.tsx (<CustomProvider> / <ThemeProvider> / <MantineProvider>).
  • The legacy style field is forbidden — use css / wrapperCss.
  • The shape is { "any": { "object": { "<layout-key>": "<value>" } } }, never a plain CSS string.
  • No companion .css file alongside App.tsx. No root className. No <style> blocks. No styled-components.

Read the full file on GitHub · 165 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 165 lines · 1,681 tokens per session scan A ee1ddc866d8e

Subscribe to this mod's changes

react-formengine-ai-form-builder-cursorrules-prompt-file is a cursor rule published in the GitHub repository PatrickJS/awesome-cursorrules (40,732 stars, last pushed 3mo ago), licensed CC0-1.0. It adds 1,681 tokens to every session, about $0.0084 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.