شعار Accessibility Dynamic Type Specialist

Accessibility Dynamic Type Specialist

المجتمع
artemnovichkov
accessibility-dynamic-type-specialist

يدقّق في طرق العرض للتحقق من توافقها مع ملصق إمكانية الوصول الخاص بـ Dynamic Type من Apple. يتحقق من أن النص يتغير حجمه وفقًا للحجم الذي يفضّله المستخدم، وأن الخطوط تستخدم أنماط النص أو UIFontMetrics، وأن التخطيطات تتكيف مع أحجام إمكانية الوصول. استخدم هذه المهارة عندما يطلب المستخدم التحقق من دعم Dynamic Type أو تغيير حجم النص أو تدقيق ملصق Dynamic Type.

نظرة عامة

الناشرartemnovichkov
المستودعxcode-skills
اسم المهارةaccessibility-dynamic-type-specialist
النجوم
67
التفريعات
1
الملفات المرفقة
4
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • الملفات المرفقة: 4

    نصوص برمجية وقوالب ومراجع يمكن للنموذج قراءتها أثناء عمله. الملفات للقراءة فقط ولا تُنفّذ أبدًا.

  • مفتوحة المصدر

    نشرها artemnovichkov على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Accessibility Dynamic Type Specialist في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/artemnovichkov/xcode-skills/tree/main/skills/accessibility-dynamic-type-specialist
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

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
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Accessibility Dynamic Type Specialist في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة Accessibility Dynamic Type Specialist تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Accessibility Dynamic Type Specialist بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تستهلك تعليمات المهارة أي توكنات ما دامت المهارة غير مستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

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

الملفات المرفقة

يقرأ النموذج هذه الملفات عند الحاجة ما دامت المهارة محمّلة. وهي متاحة للقراءة ولا تُنفّذ أبدًا.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Accessibility Dynamic Type Specialist؟

يدقّق في طرق العرض للتحقق من توافقها مع ملصق إمكانية الوصول الخاص بـ Dynamic Type من Apple. يتحقق من أن النص يتغير حجمه وفقًا للحجم الذي يفضّله المستخدم، وأن الخطوط تستخدم أنماط النص أو UIFontMetrics، وأن التخطيطات تتكيف مع أحجام إمكانية الوصول. استخدم هذه المهارة عندما يطلب المستخدم التحقق من دعم Dynamic Type أو تغيير حجم النص أو تدقيق ملصق Dynamic Type.

لماذا تستخدم Accessibility Dynamic Type Specialist على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Accessibility Dynamic Type Specialist عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Accessibility Dynamic Type Specialist في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/artemnovichkov/xcode-skills/tree/main/skills/accessibility-dynamic-type-specialist. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Accessibility Dynamic Type Specialist؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Accessibility Dynamic Type Specialist؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Accessibility Dynamic Type Specialist معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Accessibility Dynamic Type Specialist مجانية؟

نشرها artemnovichkov على GitHub. راجع المستودع للاطلاع على شروط الترخيص. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇