frontend-a11y

frontend-a11y is a skill for Claude Code, Codex from pekral/cursor-rules. It costs 46 tokens per session (3,128 once invoked), scanned A, original, MIT.

A set of guidelines for building accessible user interfaces in Laravel applications using Blade, Livewire, Alpine.js, Filament, and Tailwind. It covers semantic HTML, forms, keyboard use, focus, announcements, contrast, and safe handling of dynamic content.

In plain words
What is it for?
Use it when creating or reviewing forms, modals, dropdowns, tabs, tooltips, and other interactive Laravel components. It also helps apply accessibility feedback and manage focus or messages after Livewire updates.
Why use it?
It helps prevent interfaces that are difficult or impossible to use with keyboards, screen readers, or other assistive technology. It also addresses common problems such as unconnected labels, unclear errors, and updates that are not announced.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/pekral/cursor-rules/frontend-a11y
Any agent
npx skills add pekral/cursor-rules --skill frontend-a11y
Clone the repo
git clone --depth 1 https://github.com/pekral/cursor-rules

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for frontend-a11y

README.md
[![agentmods](https://agentmods.dev/badge/skills/pekral/cursor-rules/frontend-a11y.svg)](https://agentmods.dev/skills/pekral/cursor-rules/frontend-a11y)
Your own site
<a href="https://agentmods.dev/skills/pekral/cursor-rules/frontend-a11y"><img src="https://agentmods.dev/badge/skills/pekral/cursor-rules/frontend-a11y.svg" alt="Measured on agentmods" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,128 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00046 $0.03128
Opus 5 $0.00023 $0.01564
Sonnet 5 $0.00009 $0.00626
Haiku 4.5 $0.00005 $0.00313

Measured 5d ago against content hash 3ff8e2a7025e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

frontend-a11y scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/frontend-a11y/SKILL.md · 305 lines

How it starts

The opening of the file, as written. The whole thing — 305 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Constraints

  • Apply @rules/laravel/livewire.mdc — keep Blade presentation-only; use wire:model for bindings; components stay slim.
  • Apply @rules/laravel/filament.mdc — reuse Filament's built-in accessible form/action components rather than rebuilding them.
  • Apply @rules/security/frontend.md — sanitize any dynamic content before DOM insertion; prefer textContent/setAttribute over innerHTML.
  • Stack is Blade + Livewire + Alpine.js + Filament + Tailwind. No React/Vue/Next — never output useState/useEffect/useRef/JSX.

Use when

  • Building or reviewing forms (<input>, <select>, <textarea>).
  • Creating interactive elements (modals, dropdowns, tabs, tooltips) with Alpine.
  • Adding <div>/<span> with wire:click or x-on:click instead of a button.
  • Adding any aria-* attribute.
  • Managing focus or announcing async updates after a Livewire round-trip.
  • Acting on accessibility feedback from a review tool.

Form accessibility

Missing for/id pairing and disconnected error messages are the most commonly flagged issues. Livewire's @error directive pairs naturally with aria-describedby.

Label connection

{{-- BAD: no association --}}
<label>Email</label>
<input type="email" wire:model="email">

{{-- GOOD: for matches id --}}
<label for="email">Email</label>
<input id="email" type="email" wire:model="email">

Required fields

{{-- visual asterisk hidden from SR; required + aria-required convey state --}}
<label for="email">Email <span aria-hidden="true">*</span></label>
<input id="email" type="email" required aria-required="true" wire:model="email">

Error association with Livewire

<label for="email">Email <span aria-hidden="true">*</span></label>
<input
    id="email"
    type="email"
    wire:model.blur="email"
    autocomplete="email"
    @error('email') aria-invalid="true" aria-describedby="email-error" @enderror
>
@error('email')
    <span id="email-error" role="alert" class="text-danger">{{ $message }}</span>
@enderror

Read the full file on GitHub · 305 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 305 lines · 46 tokens per session scan A 3ff8e2a7025e

Subscribe to this mod's changes

frontend-a11y is a skill published in the GitHub repository pekral/cursor-rules (6 stars, last pushed 5d ago), licensed MIT. It adds 46 tokens to every session and 3,128 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

data-charts-tako

Search and visualize the world's data - get charts, insights, and embeddable knowledge cards for finance, economics, demographics, sports, and more.

gooseworks-ai/goose-skills · 35 tokens

monorepo-management

Master monorepo management with Turborepo, Nx, and pnpm workspaces to build efficient, scalable multi-package repositories with optimized builds and dependency management. Use when setting up monorepos, optimizing builds, or managing shared dependencies.

wshobson/agents · 54 tokens

browse-and-evaluate

Use when exploring the ai-agent-skills catalog to find, compare, and evaluate skills before installing. Always use --fields to limit output size and --dry-run before committing to an install.

MoizIbnYousaf/Ai-Agent-Skills · 43 tokens

skill-benchmark

Benchmark AI skill effectiveness by measuring implementation quality against legacy constraints.

HoangNguyen0403/agent-skills-standard · 16 tokens

render-3d-product-showcase

Assemble a premium 3D product-showcase ad from a config — four beat clips (an orbiting hero rotation, a macro push-in, a physics reveal, a typographic close) normalized to the brand-color canvas, hard-concatenated in order, closed on a deterministic Playwright brand end card, and mixed under one instrumental bed at…

gooseworks-ai/goose-skills · 159 tokens

render-airdrop-carousel

Assemble a viral iOS "AirDrop" notification-carousel video ad (≈6–8s, 9:16) from a brand line plus 6–16 real product photos — a native AirDrop share-sheet card ("Brand would like to share a · Decline / Accept") springs up and its preview window CYCLES through the products, landing on a range/lineup payoff with an…

gooseworks-ai/goose-skills · 207 tokens