Skip to content
Agentmart
Submit a tool

ui-forms

Build working forms: schema validation, field errors, submit/pending/disabled states, and accessible labels.

Skill by sushilti80

IndexedMIT
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/sushilti80-ui-forms

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Build working forms: schema validation, field errors, submit/pending/disabled states, and accessible labels. Use when adding or changing forms, wizards, settings panels, login/signup, filters with submit, or any user input that posts/patches data. Prefer the project's existing form stack (Zod, React Hook Form, Server Actions, Formik, etc.). Do NOT invent a new form library.

Use cases: design, frontend, backend, data

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/ui-forms

What's inside

Skill name
ui-forms
Description
Build working forms: schema validation, field errors, submit/pending/disabled states, and accessible labels. Use when adding or changing forms, wizards, settings panels, login/signup, filters with submit, or any user input that posts/patches data. Prefer the project's existing form stack (Zod, React Hook Form, Server Actions, Formik, etc.). Do NOT invent a new form library.
License
MIT
Instructions
41 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# UI forms (functional validation + submit UX)

A form is not done when fields render — it is done when **invalid input is blocked**, **errors are visible**, and **submit cannot double-fire**.

## Stack detection (pick what the repo already uses)

1. Zod / Valibot / Yup schemas near forms or `lib/validations`
2. React Hook Form, Formik, or uncontrolled native + Server Actions
3. Next.js: Server Actions + `useActionState` / `useFormStatus` when already the pattern
4. shadcn `Form` / `FormField` if present → compose with **`ui-shadcn`**

Do not add a form library if native + schema (or existing stack) covers the REQ.

## Required behaviors

| Behavior | Rule |
|----------|------|
| Schema | One source of truth for client (± server) validation |
| Field errors | Shown next to the field (or announced); not only a toast |
| Labels | Every control has a visible `<label>` or `aria-label` |
| Submit | Disabled / pending while in-flight; prevent double submit |
| Success | Clear outcome (navigate, toast, reset) per REQ |
| Server errors | Map API/field errors back onto fields when shape allows |
| Defaults | Prefill from props/loader data; don't wipe user edits on re-render |

## Implementation ladder (ponytail-aligned)

1. Reuse an existing form pattern in the same feature area.
2. Else: schema + existing form helpers in the repo.
3. Else: minimal controlled inputs + schema parse on submit (no new deps).
4. Only then introduce a helper — and only if ARCH/REQ justifies it.

## Checklist before HANDOFF

- [ ] Empty submit shows validation (not a blank request)
- [ ] Invalid fields are keyboard-reachable and errors are associated (`aria-describedby` / FormMessage)
- [ ] Pending state on primary action
- [ ] Network/API failure has a user-visible path (inline or page-level — see **`ui-states`**)
- [ ] No secrets in client-visible defaults

From sushilti80/specforge-engineering-team, MIT.

More from sushilti80/specforge-engineering-team

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Jul 12, 2026 (3 months ago)
Last release
Aug 6, 2026 (2 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from sushilti80

Cite this page

ui-forms skill. Agent Mart. https://agentmart.dev/skills/sushilti80-ui-forms (last updated 2026-10-24)