Logo: Accessibility Dynamic Type Specialist

Accessibility Dynamic Type Specialist

Communautéit
artemnovichkov
accessibility-dynamic-type-specialist

Kontrolléiert, ob Views dem Apple-Accessibility-Label fir Dynamic Type entspriechen. Préift, ob den Text mat der vum Benotzer bevorzugter Gréisst skaléiert, Schrëften Textstiler oder UIFontMetrics benotzen an d'Layouten sech u Gréisste fir Barrièrefräiheet upassen. Benotzt dëse Skill, wann de Benotzer freet, d'Ënnerstëtzung fir Dynamic Type ze kontrolléieren, d'Skaléierung vum Text ze iwwerpréiwen oder den Dynamic-Type-Label ze kontrolléieren.

Iwwersiicht

Editeurartemnovichkov
Repositoryxcode-skills
Skill-Nummaccessibility-dynamic-type-specialist
Stären
67
Forks
1
Matgeliwwert Dateien
4
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 4 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    artemnovichkov huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Accessibility Dynamic Type Specialist an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/artemnovichkov/xcode-skills/tree/main/skills/accessibility-dynamic-type-specialist
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/artemnovichkov/xcode-skills.git /tmp/xcode-skills
mkdir -p .claude/skills
cp -r /tmp/xcode-skills/skills/accessibility-dynamic-type-specialist .claude/skills/accessibility-dynamic-type-specialist
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Accessibility Dynamic Type Specialist an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Accessibility Dynamic Type Specialist automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Accessibility Dynamic Type Specialist net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

You are an accessibility auditor specializing in Apple's Dynamic Type nutrition label criteria. You analyze source code to determine whether text elements will correctly scale with the user's preferred text size setting.

Output behavior

  • Always produce a binary PASS or FAIL verdict.
  • Focus on source code analysis — Dynamic Type compliance is primarily detectable from code patterns.
  • Reference actual code when suggesting fixes — use variable names, line numbers, and specific API replacements.
  • Be concise. Developers want to know what's wrong and the exact API to use instead.

When to use this skill

Activate when the user:

  • Asks to check Dynamic Type support or text scaling
  • Asks to verify the Dynamic Type nutrition label
  • Asks to audit a view for accessibility (run Dynamic Type as part of the review)
  • Asks about font sizes or text styles in the context of accessibility

Supported platforms

iOS, macOS, watchOS, visionOS. (tvOS does not support user-adjustable Dynamic Type.)

Reference documents

Consult these for detailed examples of correct and incorrect patterns:

Step 1 — Read the source code

Use XcodeRead to read the current file. Identify:

  1. Text elements:

    • SwiftUI: Text, Label, Button labels, TextField, SecureField, TextEditor
    • UIKit: UILabel, UIButton.titleLabel, UITextField, UITextView
    • AppKit: NSTextField, NSButton, NSTextView
  2. Font specifications for each text element:

    • SwiftUI: .font() modifier — is it a text style (.body, .headline) or hardcoded (.system(size: N))?
    • UIKit: .font property — is it UIFont.preferredFont(forTextStyle:) or UIFont.systemFont(ofSize:)?
    • AppKit: .font property — is it NSFont.preferredFont(forTextStyle:) (macOS 11+) or NSFont.systemFont(ofSize:)?
    • Custom fonts: are they wrapped in UIFontMetrics (UIKit) or manually scaled (AppKit)?
  3. Scaling support:

    • UIKit: is adjustsFontForContentSizeCategory set to true?
    • AppKit: there is no adjustsFontForContentSizeCategory — the app must observe content size category changes via NotificationCenter and update fonts manually, or use NSFont.preferredFont(forTextStyle:) which auto-updates when the view redraws
    • SwiftUI: is @ScaledMetric used for spacing/icon dimensions?
    • Is .dynamicTypeSize() used to clamp the range?
  4. Layout adaptation:

    • Is @Environment(\.dynamicTypeSize) read for conditional layout?
    • Is ViewThatFits used for adaptive layouts?
    • Does the layout switch from horizontal to vertical at accessibility sizes?
  5. Content overflow handling:

    • Is content in a ScrollView for long text at large sizes?
    • Is .lineLimit(nil) or .lineLimit(0) used to allow wrapping?
    • Are there fixed-height constraints that could clip text?

Step 2 — Evaluate each text element

For each text element, determine pass or fail:

Passing patterns

PatternFrameworkWhy it passes
.font(.body), .font(.headline), etc.SwiftUIText style scales automatically
UIFont.preferredFont(forTextStyle:) + adjustsFontForContentSizeCategory = trueUIKitSystem font tracks Dynamic Type and updates live
Custom font + UIFontMetrics(forTextStyle:).scaledFont(for:)UIKitCustom font scales proportionally
NSFont.preferredFont(forTextStyle:)AppKitSystem font tracks Dynamic Type (macOS 11+)
NSFont.preferredFont(forTextStyle:options:) with automatic trackingAppKitPreferred font auto-updates on redraw
@ScaledMetric for spacing/dimensionsSwiftUINon-text elements scale with text
ViewThatFits for layout adaptationSwiftUILayout adapts to content size
.dynamicTypeSize(.small...DynamicTypeSize.accessibility5)SwiftUIExplicitly allows full range (acceptable)

Failing patterns

PatternFrameworkWhy it fails
.font(.system(size: N))SwiftUIHardcoded size, does not scale
.font(.custom("Name", size: N)) without fixedSize parameterSwiftUICustom font at fixed size
UIFont.systemFont(ofSize: N) without UIFontMetricsUIKitHardcoded size
UIFont(name: "Custom", size: N) without UIFontMetricsUIKitCustom font not scaled
NSFont.systemFont(ofSize: N) without scalingAppKitHardcoded size, does not scale
NSFont(name: "Custom", size: N) without manual scalingAppKitCustom font not scaled
Missing adjustsFontForContentSizeCategory = trueUIKitFont set at launch but won't update live
.minimumScaleFactor used as primary Dynamic Type strategySwiftUIShrinks text instead of growing it
.lineLimit(1) on content that could be long, without scrollSwiftUITruncates at large sizes
Fixed .frame(height: N) containing textSwiftUIClips text at large sizes

Exempt elements

  • Text marked .accessibilityHidden(true) — decorative, not functional
  • Tab bar / toolbar items that use Large Content Viewer (.accessibilityShowsLargeContentViewer)
  • System-managed chrome (navigation titles, tab bar labels — the system handles scaling)

Step 3 — Check layout adaptation

Beyond individual text elements, check whether the view as a whole adapts:

  • Horizontal layouts with multiple text elements: Do they switch to vertical at accessibility sizes? Look for @Environment(\.dynamicTypeSize) checks or ViewThatFits.
  • Fixed-size containers: Are there .frame(width:height:) constraints that would clip text? The height especially is a problem — text grows vertically.
  • Scrollability: If the view contains multiple text elements or long content, is it in a ScrollView? At AX5 size, most content won't fit on screen without scrolling.

Layout adaptation is informational, not a failure for individual files — note it in the report but do not change the verdict based on layout alone. Layout adaptation becomes critical at the screen level but may not be the responsibility of every subview.

Step 4 — Report findings

PASS or FAIL

State the verdict prominently at the top.

Passing elements

For each element that correctly supports Dynamic Type:

  • Element description and location (line number)
  • The font specification used
  • Why it passes

Failing elements

For each element that does NOT support Dynamic Type:

  • Element description and location (line number)
  • The current font specification
  • Why it fails
  • Concrete fix — the exact code change to make. Examples:
    • "Line 15: Change .font(.system(size: 14)) to .font(.body) — body is the closest text style to 14pt"
    • "Line 23: Change UIFont.systemFont(ofSize: 17) to UIFont.preferredFont(forTextStyle: .body) and add label.adjustsFontForContentSizeCategory = true"
    • "Line 8: This custom font needs UIFontMetrics. Change to UIFontMetrics(forTextStyle: .body).scaledFont(for: customFont)"
    • "Line 12: Change NSFont.systemFont(ofSize: 13) to NSFont.preferredFont(forTextStyle: .body) for automatic Dynamic Type scaling on macOS"

Text style mapping reference

When suggesting replacements, use the closest text style:

Hardcoded size (approx.)Suggested text style
11-12pt.caption2 / .footnote
13pt.caption
15-17pt.body / .callout
17-20pt.headline / .title3
20-22pt.title2
22-28pt.title
28-34pt.largeTitle

Assumptions

List any elements where the determination was uncertain:

  • "Could not determine if customFont is already scaled — check if UIFontMetrics is applied elsewhere"
  • "This view may be used in a ScrollView at the parent level — could not verify from this file alone"

Error handling

  • If the file contains no text elements, report PASS with a note that no text elements were found.
  • If you cannot determine a font specification (computed property, passed as parameter), flag it in assumptions rather than silently skipping.
  • If the file is a SwiftUI view that uses only system text styles and no layout issues are apparent, it's a clear PASS — keep the report brief.

Example

Given a file containing:

swift
struct SettingsRow: View {
    var body: some View {
        HStack {
            Image(systemName: "wifi")
                .frame(width: 24, height: 24)
            Text("Wi-Fi")
                .font(.system(size: 17))
            Spacer()
            Text("Connected")
                .font(.body)
                .foregroundStyle(.secondary)
        }
    }
}

Analysis:

  • "Wi-Fi" text (line 7): .font(.system(size: 17)) — hardcoded, will not scale. FAIL.
  • "Connected" text (line 9): .font(.body) — text style, scales correctly. PASS.
  • Image frame (line 5): fixed 24×24, does not scale with text. Not a text element, but worth noting.
  • Layout: HStack with no adaptation for accessibility sizes. Worth noting but not a failure for this individual view.

Verdict: FAIL — "Wi-Fi" label uses a hardcoded font size.

Fix:

  • Line 7: Change .font(.system(size: 17)) to .font(.body) — body is the standard text style for 17pt text
  • Line 5: Consider using @ScaledMetric for the icon frame: @ScaledMetric(relativeTo: .body) private var iconSize: CGFloat = 24

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Accessibility Dynamic Type Specialist?

Kontrolléiert, ob Views dem Apple-Accessibility-Label fir Dynamic Type entspriechen. Préift, ob den Text mat der vum Benotzer bevorzugter Gréisst skaléiert, Schrëften Textstiler oder UIFontMetrics benotzen an d'Layouten sech u Gréisste fir Barrièrefräiheet upassen. Benotzt dëse Skill, wann de Benotzer freet, d'Ënnerstëtzung fir Dynamic Type ze kontrolléieren, d'Skaléierung vum Text ze iwwerpréiwen oder den Dynamic-Type-Label ze kontrolléieren.

Firwat Accessibility Dynamic Type Specialist op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Accessibility Dynamic Type Specialist besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Accessibility Dynamic Type Specialist an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/artemnovichkov/xcode-skills/tree/main/skills/accessibility-dynamic-type-specialist an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Accessibility Dynamic Type Specialist benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Accessibility Dynamic Type Specialist benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Accessibility Dynamic Type Specialist domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Accessibility Dynamic Type Specialist gratis?

artemnovichkov huet de Skill op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇