sima-form-creation

Automate publish ad form creation with Zod validation and server actions.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/RosenGray/sima --skill sima-form-creation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sima-form-creation
Source: https://github.com/RosenGray/sima/tree/main/.cursor/skills/sima-form-creation
Command: npx skills add https://github.com/RosenGray/sima --skill sima-form-creation

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a structured, best-practice guideline to simplify and standardize the creation of publish-form UIs, reducing boilerplate and ensuring consistency across ad campaigns.

Core Features & Use Cases

  • Component structure guidelines: forms should be placed in app/(private)/publish-ad/_components/{category}/{FormName}/ with files named {FormName}.tsx and {FormName}.styles.ts, using PascalCase form names and a top-level "use client" directive.
  • Validation and state management: integrate with the conform-to/react library for real-time validation, backed by a Zod schema, and manage form state with useActionState and server actions.
  • Data handling and UI behavior: support dependent dropdowns, image/file uploads via DropFilesInput, and server interactions to create or update ads.

Quick Start

Follow the Quick Start instructions to implement a CarPublishForm using the guidelines and wire it to a publishCarAd server action.

Frequently Asked Questions about sima-form-creation

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

FAQPage Schema
How do I create a publish ad form with Zod validation and server actions?

To create a publish ad form, structure your client components in a dedicated directory and integrate the conform-to/react library with a Zod schema. Manage form state using useActionState and interact with server actions to handle ad creation or updates.

What is the best way to handle dependent dropdowns and file uploads in a React form?

Handling dependent dropdowns and file uploads requires specific UI components like DropFilesInput within a client-side form structure. You can standardize this behavior by following component guidelines that wire these inputs to your form state and validation schema.

How do I manage form state and error handling for client-facing forms?

Form state and error handling for client-facing forms are managed by combining the conform-to/react library for real-time validation with useActionState. This setup ensures errors are caught by the Zod schema and displayed within a responsive layout.

Does this form creation guideline support responsive layouts and custom component structures?

Yes, this form creation guideline supports responsive layouts and enforces a specific component structure. Forms must use PascalCase naming, include a top-level "use client" directive, and separate styling into dedicated files to ensure consistency.

Can I use conform-to/react with a Zod schema for real-time form validation?

Yes, you can use conform-to/react with a Zod schema for real-time form validation. This integration provides the validation logic needed for front-end components, ensuring data integrity before triggering server interactions.