Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

forms

БесплатноБез исполняемых скриптовНе проверен

Builds forms that label every field, ask for the right keyboard, take typed and pasted input, validate on submit and never ask twice.

raphaelsalajaот raphaelsalaja★ 74 звезды на GitHub

Об этом скилле

Forms

This skill holds how forms take input on every screen. It covers labels, keyboards, limits, choices, long flows, validation, saving and sign-in.

Every field meets these values

Use the project's form components and tokens wherever they exist. Where none exists, the values here are exact. A field that rejects pasted input, a pre-checked consent box or an error tied to nothing is a finding in any style.

The required asterisk and the error summary at three errors are house defaults. A project with its own established pattern for either keeps it.

Wording belongs to copy. Focus rings, hit areas, busy buttons and live regions belong to defaults. A dialog holding a form belongs to overlays, and input kept after a failed submit to states.

Labels sit above and share the hit area

Clicking a control's visible label works the control, and a placeholder never stands in for it. A checkbox whose text does nothing when clicked is forms-label-hit-area.

Labels in a column to the left of their fields are forms-label-above. Checkboxes, radios and switches keep their label beside the control.

A radio or checkbox group with no fieldset and legend is forms-group-in-fieldset.

By default a required field is marked on its own label, such as Email *, with the asterisk in aria-hidden="true". The input carries native required, which screen readers announce, even under novalidate. aria-required="true" goes only on a custom control with no native input, never beside required. One note saying every field is required is forms-mark-required. Login forms are exempt.

Rules sit between the label and the field

Password and format rules show before anyone types, in the order label, hint, input, tied by aria-describedby. Rules in a placeholder, a tooltip, the error after submit or below the field, where the keyboard covers them, are forms-rules-before-input.

A hint is one line of plain text, read out with its field, where a link cannot be followed. A hint holding a Learn More link is forms-plain-hint.

Fields ask for the right keyboard

Every field sets type, inputmode and autocomplete with the standard tokens. autocomplete="off" on a field the browser could fill is forms-input-types.

Usernames, emails and codes set autocapitalize="none", autocorrect="off" and spellcheck="false". Amounts take inputmode="decimal" and the Enter key a label through enterkeyhint, such as send or search. A username underlined as a misspelling is forms-keyboard-hints.

A type="number" field is only for a count someone steps up or down. Scroll wheels change it, long values turn into exponents and typed letters vanish silently. A card number, code or ZIP in type="number" instead of type="text" inputmode="numeric" is forms-no-number-type.

On mobile, an input under 16px makes iOS zoom the page on focus, which is forms-input-16px.

One Full Name field replaces a title select and split names, unless the system truly stores the parts apart. That is forms-name-field.

Fields take what people paste and type

Strip formatting in code. A phone field that rejects +1 (555) 010-2030 is forms-accept-messy-input. Never block paste, and trim the trailing space some keyboards add.

maxlength silently cuts a paste short, so say "You can enter up to 200 characters" above the field, and past 75% show a live count, announced politely once typing pauses. Over the limit it reads "12 characters too many" and submit shows a field error. maxlength="200" on a bio is forms-soft-limit.

Fields fit what they hold

A ZIP field stretched across the form instead of width: 6ch is forms-field-fits-input. Two columns of unrelated fields is forms-one-column.

Inputs, selects and buttons on one row share one height from the scale, such as 36px. A 38px input beside a 32px button is forms-control-height.

A textarea grows through field-sizing: content, between min-block-size: 3lh and max-block-size: 10lh. A scrollHeight handler on every keystroke is forms-field-sizing.

A prefix or suffix icon sits inside the field, cleared by padding-inline-start or padding-inline-end, at pointer-events: none when decorative. An icon beside the box that swallows the click is forms-adornment-inside.

A value the user can see but not change takes readonly, which stays focusable, copyable and submitted. disabled drops it from the tab order, the submission and contrast rules, so an account email in a disabled input is forms-readonly-not-disabled.

Choices show their options

Two or three options are visible radios, and a select holding Yes and No is forms-radio-over-select. Options wrapped across a row, each label nearer the next box than its own, are forms-stack-options.

More than 15 options is a searchable combobox, and 15 or fewer stays a plain select. A country select of 200 names is forms-search-long-lists.

An unavailable option stays in place, dis

Полный SKILL.md на GitHub

Установить forms в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

agents/openai.yaml

FAQ

Что делает скилл forms?

Builds forms that label every field, ask for the right keyboard, take typed and pasted input, validate on submit and never ask twice.

Как установить скилл forms?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл forms запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить forms с