# Form Builder

> Build accessible, validated forms with React Hook Form + Zod + shadcn Form, wired to a Next.js server action. Use when adding any form (contact, signup, checkout, settings).

- **Type:** Skill
- **Install:** `agentstack add skill-m-binimran-dev-pack-form-builder`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [m-binimran](https://agentstack.voostack.com/s/m-binimran)
- **Installs:** 0
- **Category:** [Databases](https://agentstack.voostack.com/c/databases)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [m-binimran](https://github.com/m-binimran)
- **Source:** https://github.com/m-binimran/dev-pack/tree/main/skills/form-builder

## Install

```sh
agentstack add skill-m-binimran-dev-pack-form-builder
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# form-builder

One source of truth for validation (Zod), shared by client and server. Accessible by construction.

## Process
1. **Define the Zod schema once.** It validates on the client AND in the server action — no drift.
2. **React Hook Form + shadcn `Form`:** `useForm({ resolver: zodResolver(schema) })`. Use `FormField`,
   `FormLabel`, `FormControl`, `FormMessage` so each input is labelled and errors are associated + announced.
3. **Server action does the real validation:** re-parse with the same schema in the action; never trust the client.
4. **States:** disabled while submitting, visible loading, success + error feedback (`aria-live` for errors).
5. **Honeypot / basic spam guard** on public forms; rate-limit the action.

## Accessibility
- Every field has a real ``. Errors are text (not color-only) and linked via `aria-describedby`.
- Submit reachable by keyboard; focus moves to the first error on failed submit.

## Output
- The schema, the form component, and the server action — with the shared schema referenced in both.
- Note what validation runs client-side vs. server-side.

## Guardrails
- No validation that exists only on the client.
- Don't put secrets/keys in the form component (client code — the `secret-scan` hook will block it).

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [m-binimran](https://github.com/m-binimran)
- **Source:** [m-binimran/dev-pack](https://github.com/m-binimran/dev-pack)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-m-binimran-dev-pack-form-builder
- Seller: https://agentstack.voostack.com/s/m-binimran
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
