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.

123 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use author-contributions, tool-rename-deprecation and 10 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.
  • MicrosoftSkill

    author-contributions

    Identify all files a specific author contributed to on a branch vs its upstream, tracing code through renames. Use when asked who edited what, what code an author contributed, or to audit authorship before a merge. This skill should be run as a subagent — it performs many git operations and returns a concise table.

    Also in 7 projects that use this

  • gitpod-ioSkill

    tool-rename-deprecation

    Ensure renamed built-in tool references preserve backward compatibility. Use when renaming a toolReferenceName, tool set referenceName, or any tool identifier. Run on ANY change to tool registration code. Covers legacyToolReferenceFullNames for tools and legacyFullNames for tool sets.

    Also in 5 projects that use this

  • DepressionCenterSkill

    project-preferences

    Apply repository-specific preferences when planning, implementing, or reviewing changes in this project.

    Also in 6 projects that use this

  • MicrosoftSkill

    chat-perf

    Run chat perf benchmarks and memory leak checks against the local dev build or any published VS Code version. Use when investigating chat rendering regressions, validating perf-sensitive changes to chat UI, or checking for memory leaks in the chat response pipeline.

    Also in 5 projects that use this

  • DepressionCenterSkill

    create-media-pack

    Create a coordinated project branding and media pack with three accessible design options, approved vector artwork, image exports, a branding guide, and README integration. Use when asked for a repository media pack, brand kit, or complete project visual identity.

    Also in 5 projects that use this

  • +7 more from microsoft

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