Skip to content
Back to skills

Form Gen

ASecurity

Generates a form component with validation, error messages, and submit handling

  • 10 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added June 1, 2026
ai-agentstypescriptbashreact

Security analysis

A100/100

Scanned June 1, 2026

npx -y skills add berkcangumusisik/claude-code-practices --skill form-gen --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Form Gen?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Form Gen
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/berkcangumusisik-form-gen/badge)](https://www.skillsdirectory.com/skills/berkcangumusisik-form-gen)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: form-gen
description: Generates a form component with validation, error messages, and submit handling
argument-hint: <form-description>
user-invocable: true
allowed-tools: Read Glob Edit
effort: medium
---

## Generate Form

Form description: **$ARGUMENTS**

1. Detect form library:
```bash
cat package.json | grep -E '"react-hook-form"|"formik"|"react-final-form"|"@tanstack/form"'
cat package.json | grep -E '"zod"|"yup"|"joi"'
```

2. Read an existing form component to match patterns.

3. Generate the form with:
   - Field definitions based on description
   - Zod/Yup validation schema
   - Inline error messages (accessible - `aria-describedby`)
   - Loading state on submit
   - Success/error feedback
   - Proper `name` attributes for autofill
   - `autocomplete` hints where applicable

4. TypeScript types for form values and submit handler.

5. Example output for a login form:
```tsx
const loginSchema = z.object({
  email: z.string().email('Invalid email'),
  password: z.string().min(8, 'At least 8 characters'),
})

export function LoginForm({ onSubmit }: LoginFormProps) {
  const form = useForm({ resolver: zodResolver(loginSchema) })
  // ...
}
```

6. Place in the components directory following project conventions.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…