add-accessibility

add-accessibility is a command for Claude Code from yusufkaran/swiftui-autotest-skill. It costs 53 tokens per session (1,669 once invoked), scanned A, original, MIT.

A command for scanning SwiftUI screens and adding missing accessibility identifiers, which are stable labels that help screen readers and automated tests recognize interface elements. It also reports possible Dynamic Type problems, where text may not adapt well to larger sizes.

In plain words
What is it for?
Use it to label buttons, fields, images, toggles, sliders, pickers, links, and other interactive views, either across the project or in a selected folder.
Why use it?
It makes app controls easier to find in UI tests and helps reveal accessibility issues before release.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the swiftui-autotest-skill plugin — 3 skills, 2 commands shipped together

Good fit Use it to label buttons, fields, images, toggles, sliders, pickers, links, and other interactive views, either across the project or in a selected folder.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/yusufkaran/swiftui-autotest-skill/add-accessibility
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.

Clone the repo
git clone --depth 1 https://github.com/yusufkaran/swiftui-autotest-skill

Made for: Claude Code.

Or install swiftui-autotest-skill, the plugin that ships this one along with the rest of its 3 skills, 2 commands.

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 add-accessibility

README.md
[![agentmods](https://agentmods.dev/badge/commands/yusufkaran/swiftui-autotest-skill/add-accessibility.svg)](https://agentmods.dev/commands/yusufkaran/swiftui-autotest-skill/add-accessibility)
Your own site
<a href="https://agentmods.dev/commands/yusufkaran/swiftui-autotest-skill/add-accessibility"><img src="https://agentmods.dev/badge/commands/yusufkaran/swiftui-autotest-skill/add-accessibility.svg" alt="Measured on agentmods" height="20"></a>
Per session 53 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,669 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.00053 $0.01669
Opus 5 $0.00026 $0.00834
Sonnet 5 $0.00011 $0.00334
Haiku 4.5 $0.00005 $0.00167

Measured 8d ago against content hash 9174124eccf5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

add-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 8d 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.

commands/add-accessibility.md · 193 lines

How it starts

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

Claude Command: Add Accessibility

Bu komut SwiftUI dosyalarini tarayarak eksik accessibility identifier'lari otomatik ekler ve Dynamic Type uyumsuzluklarini raporlar.

Usage

/add-accessibility
/add-accessibility --dry-run
/add-accessibility --path=Sources/Features/Login
/add-accessibility --verbose

Command Options

  • --dry-run: Degisiklik yapma, sadece ne yapilacagini raporla
  • --path=<path>: Sadece belirtilen dizini tara (varsayilan: tum SwiftUI dosyalari)
  • --verbose: Her eklenen identifier'i detayli logla

What This Command Does

Phase 1: Scan & Analyze

  1. Projedeki tum *.swift dosyalarini bul

  2. SwiftUI view'leri iceren dosyalari filtrele (struct X: View, #Preview, vb.)

  3. Her dosyada su elemanlari tespit et:

    • Button - butonlar
    • TextField ve SecureField - input alanlari
    • Image - gorseller
    • Toggle - toggle switch'ler
    • Slider - slider'lar
    • Picker - picker'lar
    • DatePicker - tarih seciciler
    • NavigationLink - navigasyon linkleri
    • TabView icindeki tab item'lar
    • .onTapGesture olan view'lar - tap gesture'lu elemanlar
    • Link - harici link'ler
  4. Her eleman icin mevcut accessibility durumunu kontrol et:

    • .accessibilityIdentifier() var mi?
    • .accessibilityLabel() var mi?
    • Eger varsa → ATLA, dokunma

Phase 2: Generate Identifiers

Naming convention: {screen}-{type}-{name}

Screen ismi: Dosya adindan turet

  • LoginView.swiftlogin
  • OnboardingStepView.swiftonboarding-step
  • HomeTabView.swifthome-tab
  • View suffix'ini kaldir, camelCase'i kebab-case'e cevir

Type: Eleman turune gore

SwiftUI Element Type
Button button
TextField textfield
SecureField securefield
Image image
Toggle toggle
Slider slider
Picker picker
DatePicker datepicker
NavigationLink navlink
Link link
.onTapGesture view tap
TabView item tab

Read the full file on GitHub · 193 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. 8d ago First seen · 193 lines · 0 tokens per session scan A 9174124eccf5

Subscribe to this mod's changes

add-accessibility is a command published in the GitHub repository yusufkaran/swiftui-autotest-skill (24 stars, last pushed 5mo ago), licensed MIT. It adds 53 tokens to every session and 1,669 once invoked, about $0.0003 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-30.