new-shared-dialog

Generate shared React dialog components with shadcn Dialog, react-hook-form, and zod.

Updated May 30, 2026
One-click install
npx skills add https://github.com/buitrankimlong/thongtincty --skill new-shared-dialog
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: new-shared-dialog
Source: https://github.com/buitrankimlong/thongtincty/tree/main/.claude/skills/new-shared-dialog
Command: npx skills add https://github.com/buitrankimlong/thongtincty --skill new-shared-dialog

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill simplifies the process of creating new shared dialogs for React applications, utilizing shadcn Dialog, react-hook-form, and zod, reducing the manual effort required to develop modals.

Core Features & Use Cases

  • Shared Dialog Creation: Automated dialog creation under src/components/shared/dialogs/ using predefined patterns and libraries.
  • Customization Support: Allows for user-defined dialog names, custom fields, and layout structures.
  • Use Case: When a user needs to create a new modal dialog component for a React app, such as a ContactDialog or ReportIssueDialog, this Skill can be employed to generate the required files and structure in a consistent and standardized way.

Quick Start

Run the command: `create-dialog "New Dialog Name" to generate a new shared dialog component.

Frequently Asked Questions about new-shared-dialog

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

FAQPage Schema
How do I generate a React dialog component using shadcn Dialog and react-hook-form?

To generate a React dialog component, run the create-dialog command with your desired dialog name. This automatically scaffolds the modal files using shadcn Dialog, react-hook-form, and zod under the shared dialogs directory.

What do I need to set up before creating shared dialogs with shadcn and zod?

Before creating shared dialogs, you need a React project with shadcn Dialog, react-hook-form, and zod already installed and configured. The Skill assumes a specific project structure to place the generated modal components correctly.

Can I customize the fields and layout when generating a modal with react-hook-form?

Yes, you can customize the generated modal by providing a user-defined dialog name, custom input fields, and specific layout structures. This allows the created dialog component to fit various application requirements.

What is the best way to standardize modal creation across a React application?

The best way to standardize modal creation is to use an automated generation command that produces shared dialog components with predefined patterns. This ensures every React modal uses consistent shadcn Dialog and zod validation structures.

Where are the generated shared dialog components placed in my project?

Generated shared dialog components are placed under the src/components/shared/dialogs/ directory. This specific project structure ensures your React modal components remain organized and easily accessible.

Why use zod with react-hook-form when creating a dialog component?

Using zod with react-hook-form when creating a dialog component ensures schema validation is integrated directly into the modal form. This provides standardized data validation and error handling for user inputs within the shared dialog.