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.
npx skills add Cratis/AI --skill cratis-components-accessibilitygit clone --depth 1 https://github.com/Cratis/AIWrote 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.
[](https://agentmods.dev/skills/cratis/ai/cratis-components-accessibility)<a href="https://agentmods.dev/skills/cratis/ai/cratis-components-accessibility"><img src="https://agentmods.dev/badge/skills/cratis/ai/cratis-components-accessibility.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00110 | $0.01900 |
| Opus 5 | $0.00055 | $0.00950 |
| Sonnet 5 | $0.00022 | $0.00380 |
| Haiku 4.5 | $0.00011 | $0.00190 |
Grade A, and why
cratis-components-accessibility 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 today.
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.
How it starts
The opening of the file, as written. The whole thing — 177 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Accessibility in Cratis Components
This skill covers what @cratis/components actually implements and enforces
in its own source. It is deliberately narrow. It is not a WCAG conformance
guide, and it does not claim the library is conformant.
Read the honest boundary at the end before promising a user any behavior beyond what is written here.
Verified product sources
| Package | Version | Verified from |
|---|---|---|
@cratis/components |
3.0.0 |
its component sources and specifications |
primereact |
^11.0.0 |
peer of @cratis/[email protected] |
1. Dialog focus discipline
A modal must move focus into itself when it opens. Leaving focus on the document
body strands keyboard and screen-reader users, so Dialog has no "focus
nothing" option — DialogInitialFocus has exactly three members and one of
them always applies.
enum DialogInitialFocus { Confirm = 1, Cancel = 2, Content = 3 }
| Member | Effect | Use for |
|---|---|---|
Confirm |
focuses the confirm button — the default | ordinary, safe dialogs |
Cancel |
focuses the least destructive action | anything irreversible |
Content |
focuses the dialog title, arming nothing | a dialog that should commit to nothing |
The armed-Enter hazard
Confirm arms the confirm button. A browser fires click from the keydown
of Enter or Space, so an Enter that is still held — or repeating — from the
action that opened the dialog can confirm it immediately, before the user has
read anything.
Any dialog whose confirm action is destructive or irreversible must set
initialFocus.
<CommandDialog
command={DeleteAccount}
title='Delete account'
okLabel='Delete'
initialFocus={DialogInitialFocus.Cancel}>
Cancel degrades to Content automatically when the chosen button set has
nothing to dismiss with, so it is always safe to ask for.
DialogInitialFocus imports from @cratis/components/Dialogs.
2. Every accessible name is a prop — and never a baked-in English string
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- today First seen · 177 lines · 110 tokens per session scan A 0e639a1ea440
cratis-components-accessibility is a skill published in the GitHub repository Cratis/AI (2 stars, last pushed today), licensed MIT. It adds 110 tokens to every session and 1,900 once invoked, about $0.0006 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-09-06.
Other skills, from other repositories
polish-ui
Design-quality workflow that combines design taste, aesthetic direction, image-to-code, a Web Interface Guidelines audit, and real-browser verification. Use when building or polishing a UI surface, implementing a mockup/screenshot, or when asked to make a page "look great".
review-design
Reviews frontend components for design quality and UI/UX standards. Use when checking component styling, responsiveness, accessibility, or when asked to review a design.
ui-accessibility
Review interface work for accessible interaction, semantics, and resilient responsive behavior.
ui-styling
Create beautiful, accessible user interfaces with shadcn/ui components (built on Radix UI + Tailwind), Tailwind CSS utility-first styling, and canvas-based visual designs. Use when building user interfaces, implementing design systems, creating responsive layouts, adding accessible components (dialogs, dropdowns…
frontend-design
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications, OR when they provide screenshots/images/designs to replicate or draw inspiration from. For screenshot inputs, extracts design guidelines first using…
frontend-ui-dark-ts
Build dark-themed React applications using Tailwind CSS with custom theming, glassmorphism effects, and Framer Motion animations. Use when creating dashboards, admin panels, or data-rich interfaces with a refined dark aesthetic.