Skill Wiki v0.1.0
rule @community/rule-button-type-explicit

Button Type Explicit

Every `<button>` element MUST declare an explicit `type` attribute (`button`, `submit`, or `reset`). The HTML default is `submit`, which inside a `<form>` causes any unrelated button (e.g.…

Skill
@community
Domain
frontend-engineering
Version
1.0.0
Quality
4.0
Edges
5 out · 5 in
Tokens
82/362/656
$ prime install @community/rule-button-type-explicit

Projection

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

ButtonTypeExplicit [rule] v1.0.0

Every <button> element MUST declare an explicit type attribute (button, submit, or reset). The HTML default is submit, which inside a <form> causes any unrelated button (e.g. an icon toggle) to submit the form on click — a common, hard-to-debug bug.

Source

prime-system/examples/frontend-design/primes/compiled/@community/rule-button-type-explicit/atom.yaml

Compiled at 2026-05-07