generate-frontend-forms

Implement React forms with useScrapsForm, Zod validators, and AutoSaveForm patterns.

Updated Apr 1, 2026
One-click install
npx skills add https://github.com/Harigithub11/sentry --skill generate-frontend-forms-harigithub11
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: generate-frontend-forms
Source: https://github.com/Harigithub11/sentry/tree/main/.agents/skills/generate-frontend-forms
Command: npx skills add https://github.com/Harigithub11/sentry --skill generate-frontend-forms-harigithub11

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Standardizes form development by teaching a schema-based approach using TanStack Form and Zod, eliminating ad-hoc form implementations and boosting consistency.

Core Features & Use Cases

  • Encourages using useScrapsForm and AutoSaveForm with a public API, ensuring schema-based validation, deterministic submission, and accessible layouts.
  • Demonstrates field components, layout primitives, and error handling patterns for real-world forms (registration, settings, profile editors).
  • Use Case: Build a user settings form with auto-save and inline validations, aligned with Sentry's form system.

Quick Start

Create a new form by importing useScrapsForm from @sentry/scraps/form and wrapping fields with form.AppField inside a form.AppForm, then add a SubmitButton.

Frequently Asked Questions about generate-frontend-forms

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

FAQPage Schema
How do I build React forms with Zod schema validation and auto-save?

To build React forms with Zod schema validation and auto-save, use the Sentry form system's useScrapsForm and AutoSaveForm patterns to enforce deterministic submission and accessible layouts. This approach eliminates ad-hoc implementations by standardizing field composition and error handling.

What is the best way to standardize form development across React interfaces?

The best way to standardize form development across React interfaces is applying a schema-based approach using TanStack Form and Zod. This method enforces consistent field components, layout primitives, and robust error handling patterns for real-world forms like registration and settings editors.

How do I create a user settings form with inline validations and auto-save?

Create a user settings form with inline validations and auto-save by importing useScrapsForm and wrapping fields with form.AppField inside a form.AppForm. Add a SubmitButton to enable deterministic submission and accessible layouts aligned with Sentry's form system.

Can I use TanStack Form and Zod to handle form error handling and field composition?

Yes, you can use TanStack Form and Zod to handle form error handling and field composition. The schema-based approach provides robust data handling and consistent UX by validating field inputs deterministically before submission across various React interfaces.

Does this form system approach support building registration and profile editor forms?

This form system approach supports building registration and profile editor forms by demonstrating field components, layout primitives, and error handling patterns. It leverages useScrapsForm and AutoSaveForm to deliver consistent UX and robust data handling for these real-world use cases.