agentleFS
moasqmoasq/ios-dev-agent/.agents/skills/accessibility/SKILL.md

accessibility

Skill4 starsChanged 6 months agoMITView on GitHub

Use when implementing or auditing accessibility. Covers VoiceOver labels, Dynamic Type, Reduce Motion, color contrast, focus management.

70 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use web-quality-audit, core-web-vitals and 8 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • RodrigoTomeESSkill

    web-quality-audit

    Comprehensive web quality audit covering performance, accessibility, SEO, and best practices. Use when asked to "audit my site", "review web quality", "run lighthouse audit", "check page quality", or "optimize my website".

    Also in 8 projects that use this

  • thisisAhsanIqbalSkill

    core-web-vitals

    Audits HTML patterns that affect Core Web Vitals (LCP, CLS, INP). Checks for layout shift causes, largest contentful paint blockers, and interaction responsiveness issues. Use when optimising page performance or fixing Google PageSpeed Insights warnings.

    Also in 10 projects that use this

  • kpbraySkill

    best-practices

    Applies Power BI best practices, BPA rules, and enterprise standards. Use for quality validation, naming conventions, and performance optimization.

    Also in 7 projects that use this

  • YepAPISkill

    background-jobs

    Queue workers with BullMQ/Inngest/Trigger.dev, job retries, dead letter queues, concurrency.

    Also in 3 projects that use this

  • mmondoraSkill

    data-modeling

    Schema design, multi-tenant data isolation, and migration management. Firestore and PostgreSQL patterns, RLS, UUID v7 conventions. Use when designing database schemas, writing migrations, or implementing multi-tenant data access.

    Also in 4 projects that use this

  • MindrallySkill

    prisma

    Expert in Prisma ORM with type-safe database operations and schema design

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 2 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 64 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this guide when implementing or auditing accessibility features.

    line 8
  2. Very specific:

    When enabled: replace .spring() with .easeInOut(duration: 0.2), replace slide transitions with .opacity, disable auto-playing animations, …

    line 19
  3. Very specific:

    All interactive elements: .accessibilityLabel("descriptive text")

    line 29
  4. Very specific:

    NEVER use .font(.system(size:)) — opts out of Dynamic Type

    line 73
  5. Very specific:

    Use .minimumScaleFactor(0.8) only as last resort for layout overflow

    line 74
  6. Distinctive:

    Don't use color alone for status — always pair with icon + text

    line 78
  7. Very specific:

    Use .foregroundStyle(.secondary) for de-emphasized text (maintains adaptive contrast)

    line 80

“Common” is measured: kept by at least 6 in 10 of the 64 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Accessibility

Use this guide when implementing or auditing accessibility features.

Reduce Motion

@Environment(\.accessibilityReduceMotion) var reduceMotion

withAnimation(reduceMotion ? .easeInOut(duration: 0.2) : .spring(response: 0.3)) {
    // state change
}
.transition(reduceMotion ? .opacity : .slide)

When enabled: replace .spring() with .easeInOut(duration: 0.2), replace slide transitions with .opacity, disable auto-playing animations, keep functional animations (progress bars).

Reduce Transparency

@Environment(\.accessibilityReduceTransparency) var reduceTransparency

.background(reduceTransparency ? Color(AppTheme.Colors.surface) : .ultraThinMaterial)

VoiceOver Labels

  • All interactive elements: .accessibilityLabel("descriptive text")
  • Non-obvious actions: .accessibilityHint("Double tap to delete this item")
  • Decorative images: .accessibilityHidden(true)
  • Informative images: .accessibilityLabel("Profile photo of John")
  • Icon-only buttons MUST have .accessibilityLabel()
Button(action: addItem) {
    Image(systemName: "plus")
}
.accessibilityLabel("Add new item")

Grouping & Combining

HStack {
    Image(systemName: "heart.fill")
    Text("Favorites")
    Spacer()
    Text("12")
}
.accessibilityElement(children: .combine)
  • Related content (icon + label + value): .accessibilityElement(children: .combine)
  • Custom read order: .accessibilityElement(children: .ignore) + manual .accessibilityLabel

Accessibility Traits

  • Section headers: .accessibilityAddTraits(.isHeader)
  • Media playback: .accessibilityAddTraits(.startsMediaSession)
  • Summary values: .accessibilityAddTraits(.isSummaryElement)
  • Selected items: .accessibilityAddTraits(.isSelected)

Focus Management

enum Field: Hashable { case name, email, password }
@FocusState private var focusedField: Field?

TextField("Name", text: $name)
    .focused($focusedField, equals: .name)
    .submitLabel(.next)
    .onSubmit { focusedField = .email }

Dynamic Type

  • System text styles (.body, .headline) scale automatically
  • NEVER use .font(.system(size:)) — opts out of Dynamic Type
  • Use .minimumScaleFactor(0.8) only as last resort for layout overflow
  • Wrap in ScrollView for content that may overflow at large sizes

Color & Contrast

  • Don't use color alone for status — always pair with icon + text
  • Minimum 4.5:1 contrast for normal text, 3:1 for large text
  • Use .foregroundStyle(.secondary) for de-emphasized text (maintains adaptive contrast)

Custom Controls

  • Custom sliders/steppers: .accessibilityValue(), .accessibilityAdjustableAction()
  • Custom toggles: .accessibilityAddTraits(.isToggle), .accessibilityValue(isOn ? "on" : "off")
  • Progress indicators: .accessibilityValue("\(Int(progress * 100)) percent")

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.