# Forms and input

> Forms and input is an open-source agent skill for developer tools. Builds React Native forms with one valibot schema, catalog-key errors and keyboard-aware. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/zakariaf/ReactNative-Skills/tree/main/skills/forms-and-input
- **Repository:** https://github.com/zakariaf/reactnative-skills
- **GitHub stars:** 16
- **License:** MIT
- **Skill name:** forms-and-input
- **Collection:** https://github.com/zakariaf/ReactNative-Skills
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

This skill sets up forms in an Expo app around react-hook-form with a single valibot schema per form, so the field types, runtime checks and error messages all come from one definition. Every validation message is a translation catalog key rather than English text, and a shared TextField component takes a field kind that sets keyboard type, autofill, capitalization and secure entry together.

The skill covers the rest of the input path too: the return key moves focus down the form and submits on the last field, the keyboard is kept from covering the focused field or the Done bar, and errors appear only after a field is blurred. Async checks, such as verifying a name is free, run in a separate hook with debouncing and deadlines rather than inside the schema. A zero-dependency checker script scans the app source against these rules and reports pass or fail.

The skill expects a project that already has the theme, translation catalogs, and helper skills it names as prerequisites. It installs react-native-keyboard-controller and the react-hook-form, resolver and valibot packages, and its templates are TypeScript and JavaScript files for the field kit, hooks and a sample task editor form.

## When your agent uses it

> Builds react-hook-form + valibot forms: one schema, catalog-key errors, TextField kinds (keyboard, autofill), focus chain. Use when adding a form, text field or validation, or the keyboard hides a field. Not for sign-in (auth-and-secure-storage).

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs JavaScript and TypeScript scripts](https://github.com/zakariaf/ReactNative-Skills/tree/HEAD/skills/forms-and-input)
- [No network calls found in its scripts](https://github.com/zakariaf/ReactNative-Skills/tree/HEAD/skills/forms-and-input)
- [License: MIT](https://github.com/zakariaf/ReactNative-Skills/tree/HEAD/skills/forms-and-input)

## Features

- **Single schema validation:** Each form is defined once as a valibot schema wired into react-hook-form through a resolver.
- **Translatable error messages:** Validation messages are catalog keys translated at the field, not hard-coded English.
- **Field kinds for input:** A TextField kind sets keyboard, autofill, capitalization and secure entry together.
- **Keyboard-aware layout:** Forms scroll so the focused field and a Done bar stay above the on-screen keyboard.
- **Return-key focus chain:** The return key moves to the next field and submits from the last one.
- **Async availability checks:** A dedicated hook runs server-side checks with debouncing, deadlines and stale-answer protection.
- **Form source checker:** A zero-dependency script scans the app source for the form rules and reports pass or fail.

## Good for

- Add a sign-up form with name, email and password fields
- Validate a numeric amount field that accepts Arabic or Persian digits
- Check whether a list name is already taken while the user types
- Make a long form keep the focused input visible above the keyboard
- Translate form validation messages into several languages

## Install

### Claude Code

This skill ships in the `react-native` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add zakariaf/ReactNative-Skills
/plugin install react-native@react-native-skills
```

Or copy only this skill to `~/.claude/skills/forms-and-input`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zakariaf/ReactNative-Skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/forms-and-input &&
cp -R "$tmp/skills/forms-and-input" ~/.claude/skills/forms-and-input &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/forms-and-input` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/forms-and-input` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zakariaf/ReactNative-Skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/forms-and-input &&
cp -R "$tmp/skills/forms-and-input" ~/.agents/skills/forms-and-input &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/forms-and-input` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/forms-and-input` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zakariaf/ReactNative-Skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/forms-and-input &&
cp -R "$tmp/skills/forms-and-input" ~/.cursor/skills/forms-and-input &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/forms-and-input` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/zakariaf/ReactNative-Skills.git --path skills/forms-and-input
```

Or copy the folder to `~/.gemini/skills/forms-and-input` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/forms-and-input`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zakariaf/ReactNative-Skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/forms-and-input &&
cp -R "$tmp/skills/forms-and-input" ~/.copilot/skills/forms-and-input &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/forms-and-input` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/zakariaf/ReactNative-Skills.git
```

Then copy `ReactNative-Skills/skills/forms-and-input` into your agent's skills folder as `forms-and-input`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Which libraries does Forms and input need installed?

It installs react-native-keyboard-controller through Expo, and react-hook-form, @hookform/resolvers and valibot via npm at pinned versions.

### Does Forms and input cover sign-in forms?

No. Sign-in flows are handled by the separate auth-and-secure-storage skill.

### How is the form checker run?

From the repository root, run node scripts/check-forms.mjs on the app folder; it prints RESULT: PASS or lists problems.

### Does Forms and input depend on other skills?

Yes. It names prerequisites from several owner skills, including the theme, translation catalogs and async helpers, which must exist first.

### How do I install Forms and input in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/forms-and-input to use it in all your projects, or to .claude/skills/forms-and-input in one project. Or install the react-native plugin, which includes it: /plugin marketplace add zakariaf/ReactNative-Skills, then /plugin install react-native@react-native-skills.

### Does Forms and input run scripts?

Yes. It runs JavaScript and TypeScript scripts. No network calls were found in its scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Forms and input?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Forms and input?

The closest alternatives to Forms and input are Formisch, Vue forms, I18n strings and catalogs, Error handling typed results and Adaptive layout.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Formisch](https://ai-powered.com/skills/formisch): Formisch is an open-source agent skill for developer tools.
- [Vue forms](https://ai-powered.com/skills/vue-forms): Vue forms is an open-source agent skill for developer tools.
- [I18n strings and catalogs](https://ai-powered.com/skills/i18n-strings-and-catalogs): I18n strings and catalogs is an open-source agent skill for developer tools.
- [Error handling typed results](https://ai-powered.com/skills/error-handling-typed-results): Error handling typed results is an open-source agent skill for developer tools.
- [Adaptive layout](https://ai-powered.com/skills/adaptive-layout): Adaptive layout is an open-source agent skill for developer tools.
- [Expo native UI](https://ai-powered.com/skills/expo-native-ui): Expo native UI is an open-source agent skill for developer tools.
- [Expo native UI](https://ai-powered.com/skills/expo-native-ui-scaledockhq): Expo native UI is an open-source agent skill for developer tools.
- [Design system structure](https://ai-powered.com/skills/design-system-structure): Design system structure is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/forms-and-input
