frontend_forms

Generate and wire create/edit forms with Zod schemas and react-hook-form.

11|3|Updated Aug 31, 2025
One-click install
npx skills add https://github.com/tonehq/tone --skill frontend-forms-tonehq
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: frontend_forms
Source: https://github.com/tonehq/tone/tree/main/.claude/skills/frontend_forms
Command: npx skills add https://github.com/tonehq/tone --skill frontend-forms-tonehq

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Generates create/edit forms for the Tone frontend and wires them into pages, reducing boilerplate and ensuring consistent UX and validation.

Core Features & Use Cases

  • Three layout modes (modal, drawer, and page) selected by form complexity and user preference.
  • Automated generation of Zod schemas, API mutation hooks, and a shared form component wired into the parent page.
  • Guidance on pre-generation checks and aligning with existing frontend architecture for maintainable code.

Quick Start

Create a new form flow by selecting a layout mode and letting the generator produce the form, schema, and hooks.

Frequently Asked Questions about frontend_forms

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

FAQPage Schema
How do I automate React form generation with react-hook-form and Zod?

Automating React form generation with react-hook-form and Zod involves using a generator to produce schemas, API mutation hooks, and shared form components. This automatically wires validation and data handling into your parent frontend page.

What is the best way to structure a create/edit form in a React drawer or modal?

The best way to structure a create/edit form is selecting a layout mode based on field count and complexity. You can generate forms using modal, drawer, or page layouts to ensure consistent UX and validation across your React application.

How do I generate Zod schemas and API mutations for a new frontend form?

Generating Zod schemas and API mutations for a frontend form requires a generator tool that creates the validation rules and data hooks simultaneously. This process produces a shared form component wired directly into your parent page context.

Can I use react-hook-form for both simple modal and complex page layouts?

Yes, you can use react-hook-form for both simple modal and complex page layouts. The form architecture adapts to three layout modes—modal, drawer, and page—selected dynamically by your form's field count and complexity requirements.

Does generating frontend forms automatically align with existing React architecture?

Generating frontend forms can align with existing React architecture by following pre-generation checks. This ensures the newly created forms, Zod schemas, and API mutation hooks integrate smoothly without breaking your current frontend stack maintainability.

When should I not use an automated form generator for React create and edit flows?

You should not use an automated form generator for React create and edit flows if your project falls outside the supported Tone frontend stack. The generated Zod schemas and react-hook-form integrations are specifically tailored for that environment.