Accessibility Dynamic Type Specialist logo

Accessibility Dynamic Type Specialist

Community
artemnovichkov
accessibility-dynamic-type-specialist

Audits views for compliance with Apple's Dynamic Type accessibility nutrition label. Checks that text scales with the user's preferred size, fonts use text styles or UIFontMetrics, and layouts adapt for accessibility sizes. Use when the user asks to check Dynamic Type support, verify text scaling, or audit the Dynamic Type nutrition label.

Overview

Publisherartemnovichkov
Repositoryxcode-skills
Skill nameaccessibility-dynamic-type-specialist
Stars
67
Forks
1
Bundled files
4
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 4 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by artemnovichkov on GitHub. Read the source before you install it.

Installation

Install the Accessibility Dynamic Type Specialist AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/artemnovichkov/xcode-skills/tree/main/skills/accessibility-dynamic-type-specialist
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Accessibility Dynamic Type Specialist in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Accessibility Dynamic Type Specialist on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Accessibility Dynamic Type Specialist is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Accessibility Dynamic Type Specialist AI skill do?

Audits views for compliance with Apple's Dynamic Type accessibility nutrition label. Checks that text scales with the user's preferred size, fonts use text styles or UIFontMetrics, and layouts adapt for accessibility sizes. Use when the user asks to check Dynamic Type support, verify text scaling, or audit the Dynamic Type nutrition label.

Why use Accessibility Dynamic Type Specialist on TypingMind?

Because you install it once and use it with any model. Accessibility Dynamic Type Specialist is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Accessibility Dynamic Type Specialist in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/artemnovichkov/xcode-skills/tree/main/skills/accessibility-dynamic-type-specialist. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Accessibility Dynamic Type Specialist?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Accessibility Dynamic Type Specialist?

As many as you like. As long as a model supports skills, you can use Accessibility Dynamic Type Specialist with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Accessibility Dynamic Type Specialist AI skill free?

It is published on GitHub by artemnovichkov. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇