Logo di Accessibility Dynamic Type Specialist

Accessibility Dynamic Type Specialist

Community
artemnovichkov
accessibility-dynamic-type-specialist

Verifica che le view siano conformi all’etichetta di accessibilità Dynamic Type di Apple. Controlla che il testo si ridimensioni in base alla dimensione preferita dall’utente, che i font usino stili di testo o UIFontMetrics e che i layout si adattino alle dimensioni di accessibilità. Usala quando l’utente chiede di verificare il supporto a Dynamic Type, il ridimensionamento del testo o la conformità all’etichetta Dynamic Type.

Panoramica

Pubblicato daartemnovichkov
Repositoryxcode-skills
Nome della skillaccessibility-dynamic-type-specialist
Stelle
67
Fork
1
File inclusi
4
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • File inclusi: 4

    Script, template e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da artemnovichkov su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Accessibility Dynamic Type Specialist in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/artemnovichkov/xcode-skills/tree/main/skills/accessibility-dynamic-type-specialist
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

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
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Accessibility Dynamic Type Specialist in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Accessibility Dynamic Type Specialist non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Accessibility Dynamic Type Specialist non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

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

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA Accessibility Dynamic Type Specialist?

Verifica che le view siano conformi all’etichetta di accessibilità Dynamic Type di Apple. Controlla che il testo si ridimensioni in base alla dimensione preferita dall’utente, che i font usino stili di testo o UIFontMetrics e che i layout si adattino alle dimensioni di accessibilità. Usala quando l’utente chiede di verificare il supporto a Dynamic Type, il ridimensionamento del testo o la conformità all’etichetta Dynamic Type.

Perché usare Accessibility Dynamic Type Specialist su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Accessibility Dynamic Type Specialist è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Accessibility Dynamic Type Specialist in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/artemnovichkov/xcode-skills/tree/main/skills/accessibility-dynamic-type-specialist. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Accessibility Dynamic Type Specialist?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Accessibility Dynamic Type Specialist?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Accessibility Dynamic Type Specialist: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Accessibility Dynamic Type Specialist è gratuita?

È pubblicata su GitHub da artemnovichkov. Consulta il repository per i termini di licenza. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇