cratis-components-accessibility

cratis-components-accessibility is a skill for Claude Code, Codex from Cratis/AI. It costs 110 tokens per session (1,900 once invoked), scanned A, original, MIT.

A guide to the accessibility behavior implemented by Cratis Components, a user-interface component library. It covers where keyboard focus goes in dialogs and how to provide accessible names that can be translated.

In plain words
What is it for?
Use it when building dialogs, choosing their initial focus, naming buttons and fields, and passing accessible text through the component library.
Why use it?
It helps prevent dialogs from leaving keyboard and screen-reader users without a useful starting point. It also avoids putting a label on a non-interactive wrapper instead of the control users operate.

Skill for Claude CodeCodex

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

Good fit Use it when building dialogs, choosing their initial focus, naming buttons and fields, and passing accessible text through the component library.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cratis/ai/cratis-components-accessibility
View source ↗ Cratis/AI
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.

Any agent
npx skills add Cratis/AI --skill cratis-components-accessibility
Clone the repo
git clone --depth 1 https://github.com/Cratis/AI

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 cratis-components-accessibility

README.md
[![agentmods](https://agentmods.dev/badge/skills/cratis/ai/cratis-components-accessibility.svg)](https://agentmods.dev/skills/cratis/ai/cratis-components-accessibility)
Your own site
<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>
Per session 110 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,900 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00110 $0.01900
Opus 5 $0.00055 $0.00950
Sonnet 5 $0.00022 $0.00380
Haiku 4.5 $0.00011 $0.00190

Measured today against content hash 0e639a1ea440, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

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.

skills/cratis-components-accessibility/SKILL.md · 177 lines

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" optionDialogInitialFocus 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

Read the full file on GitHub · 177 lines

Files

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.

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. today First seen · 177 lines · 110 tokens per session scan A 0e639a1ea440

Subscribe to this mod's changes

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.

Related

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".

fpindej/netrock · 53 tokens

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.

fpindej/netrock · 30 tokens

ui-accessibility

Review interface work for accessible interaction, semantics, and resilient responsive behavior.

sabbour/agentweaver · 18 tokens

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…

duongthinh03/portfolio · 90 tokens

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…

duongthinh03/portfolio · 81 tokens

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.

microsoft/skills · 48 tokens