Skill Wiki v0.1.0
rule @community/rule-required-field-indication

Required Field Indication

For every form with required fields:

Skill
@community
Domain
frontend-design
Version
1.0.0
Quality
4.0
Edges
3 out · 0 in
Tokens
213/274/593
$ prime install @community/rule-required-field-indication

Projection

Always in _index.xml · the agent never has to ask for this.

RequiredFieldIndication [rule] v1.0.0

Required form fields must be marked both visually (asterisk or label text) and programmatically (required attribute + aria-required) — visual-only asterisks are invisible to screen readers.

For every form with required fields:
1. Add the required (or aria-required="true") attribute to the input — provides browser validation and AT announcement.
2. Add a visible marker: asterisk (*) is conventional; ensure it is wrapped in aria-hidden="true" with an sr-only sibling providing "(required)" in text.
3. Inversion rule: if most fields in a form are required and only a few are optional, mark the optional fields as "(optional)" instead of marking each required field — reduces visual noise.
4. Place the required indicator adjacent to the label, not the input.

Source

prime-system/examples/frontend-design/primes/compiled/@community/rule-required-field-indication/atom.yaml

Compiled at 2026-05-07