HTML Form Generator skill for Claude and Codex
A complete, accessible HTML form ready to drop into a page: correctly named fields, labels and fieldsets, native validation attributes, autocomplete hints, a…
Install it once and Claude or Codex runs it for you. When your request matches, your AI loads the skill, asks for anything it is missing, and works through the template itself. Prefer to fill it in by hand? See the full prompt template.
Download the skill (.zip) · View SKILL.md
When it is used
Use when a page needs a new HTML form scaffolded with the right input types, labels, validation attributes, and a working submit, optionally styled. Do not use for documenting, auditing, or debugging a form that already exists, or building the server endpoint. Related topics: coding, html.
What it will ask you for
- Form title (free text, e.g. "Contact Us")
- Action URL (free text, e.g. "/submit-contact")
- Method (choose one: GET, POST)
- Fields needed (longer free text)
- Control types to use (choose any: Text input, Email input, Number input, Textarea, Checkbox, Radio button, Select dropdown, Date input, File upload)
- Validation (choose one: Native HTML attributes only, Native plus a small script for custom messages, None)
- Include basic CSS styling (choose one: Yes, No)
- Submit button label (free text, e.g. "Send Message")
How it works
- Map each requested field to the most specific input type and give it a server-readable name and an autocomplete token.
- Wrap every control in a label, group radios and checkboxes in a fieldset with a legend, and mark required fields visibly and with the attribute.
- Add constraint attributes from the field notes, a real submit button, the right enctype for file fields, and a honeypot for POST forms.
- Add the custom validity script or the minimal style block only when the matching option is selected.
- Return the form in one html block with a comment on each line the user must edit before deploying.
What you get
One fenced html block containing the optional style block, the complete form, and the optional script, with comments marking the lines to customise.
What it watches out for
- Using a div with a click handler as the submit control, which breaks Enter-to-submit and keyboard users.
- Leaving the name attribute off a field, so it renders perfectly and never reaches the server.
- Forgetting enctype multipart/form-data on a form with a file input, which submits the filename and not the file.
How to install
Claude.ai and the Claude desktop app
- Download the skill .zip.
- Open Settings, then Capabilities, and find Skills.
- Choose Upload skill and select the .zip.
- Ask Claude for help with the task. It loads the skill when your request matches.
Claude Code
- Download the skill .zip.
- Unzip it into ~/.claude/skills/ (or .claude/skills/ inside a project).
- Start a new session. Claude Code loads the skill when your request matches.
Codex
- Download the skill .zip.
- Unzip it into ~/.agents/skills/ (or .agents/skills/ inside a project).
- Codex picks it up on its own. Type $ and the skill name to use it, or just ask for the task.
Cursor
- Download the Cursor rule (.mdc).
- Save it in .cursor/rules/ inside your project.
- Cursor's agent applies the rule when your request matches its description.
AGENTS.md (Codex, Cursor, and other coding agents)
- Copy the AGENTS.md section.
- Paste it into AGENTS.md at the root of your repository, creating the file if needed.
- Coding agents that read AGENTS.md follow it when your request fits.