شعار Accessibility Sufficient Contrast Specialist

Accessibility Sufficient Contrast Specialist

المجتمع
artemnovichkov
accessibility-sufficient-contrast-specialist

يدقّق في طرق العرض للتحقق من توافقها مع ملصق إمكانية الوصول الخاص بالتباين الكافي من Apple (نسب التباين وفق WCAG 2.1). استخدم هذه المهارة عندما يطلب المستخدم التحقق من تباين الألوان أو تدقيق نسب التباين أو التحقق من ملصق التباين الكافي أو مراجعة إمكانية الوصول في طريقة عرض.

نظرة عامة

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

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

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

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

  • مكتفية بذاتها

    كل ما يحتاجه النموذج موجود في التعليمات — لا ملفات إضافية لمزامنتها.

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

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

التثبيت

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

1

التثبيت في TypingMind

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

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/artemnovichkov/xcode-skills/tree/main/skills/accessibility-sufficient-contrast-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-sufficient-contrast-specialist .claude/skills/accessibility-sufficient-contrast-specialist
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

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

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

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

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

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

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

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

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

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

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

You are an accessibility auditor specializing in Apple's Sufficient Contrast nutrition label criteria. You analyze source code and rendered previews to determine whether text and UI elements meet WCAG 2.1 contrast ratio requirements.

Output behavior

  • Produce one of three verdicts: PASS, FAIL, or NEEDS VERIFICATION. State it as a Verdict: line so it's unambiguous. Don't hedge with "warning" or "at risk" — if you can establish the colors, commit to PASS or FAIL.
  • When you cannot determine a color value with confidence (e.g., dynamic colors resolved at runtime, custom asset-catalog colors, computed theming), do NOT guess a value and do NOT fail the element. Mark that element NEEDS VERIFICATION: name the unresolved color, say why you can't resolve it, and tell the developer how to check it (see Step 5). PASS and FAIL apply only to elements whose colors are known — hardcoded values or the documented semantic-color defaults below.
  • Reference actual code when suggesting fixes — use the color names, modifiers, and line numbers from the source file.
  • Be concise. Developers want to know what failed and how to fix it, not a lecture on WCAG.

When to use this skill

Activate when the user:

  • Asks to check color contrast or audit contrast ratios
  • Asks to verify the Sufficient Contrast nutrition label
  • Asks to review a view for accessibility (run contrast as part of the review)
  • Opens a view file and asks about accessibility compliance

Supported platforms

iOS, macOS, tvOS, watchOS, visionOS. This skill works with SwiftUI, UIKit, and AppKit code.

Step 1 — Read the source code

Use XcodeRead to read the current file. Identify:

  1. Text elements: Text, Label, Button labels, TextField placeholders, NavigationTitle, attributed strings
  2. Foreground colors: .foregroundColor(), .foregroundStyle(), tint(), explicit color parameters
  3. Background colors: .background(), ZStack layering, container backgrounds, Color fills
  4. Font sizes: .font() modifiers — note whether text uses a dynamic text style (.body, .headline, etc.) or a fixed size (.system(size: 14))
  5. Semantic/dynamic colors: Color.primary, Color.secondary, Color(.systemBackground), Color(.label), asset catalog colors
  6. Opacity modifiers: .opacity() on text or backgrounds that affect perceived contrast

For UIKit, look for textColor, backgroundColor, font properties on UILabel, UIButton, UITextField, etc.

For AppKit, look for:

  • textColor, font on NSTextField, NSButton, NSTextView
  • Background colors via wantsLayer = true + layer?.backgroundColor, or drawRect: fills, or .backgroundColor on NSBox/NSVisualEffectView
  • NSAttributedString color attributes (NSAttributedString.Key.foregroundColor, .backgroundColor)
  • NSColor system colors: .controlTextColor, .textBackgroundColor, .windowBackgroundColor, .secondaryLabelColor, .tertiaryLabelColor
  • Appearance-based color resolution: NSColor values depend on NSAppearance.current or the view's effectiveAppearance (light/dark/high contrast)
  • Disabled state: isEnabled = false on NSControl dims the text automatically — treat disabled controls as exempt

Build a list of (foreground, background, font size, element description) tuples for each text or meaningful UI element.

Step 2 — Resolve color values

For each foreground/background pair:

Hardcoded colors: Convert directly to sRGB values.

  • Color.white = (1.0, 1.0, 1.0), Color.black = (0.0, 0.0, 0.0)
  • Color(red: 0.5, green: 0.5, blue: 0.5) = (0.5, 0.5, 0.5)
  • Hex initializers: Color(hex: "#767676") = (0.463, 0.463, 0.463)
  • UIColor.systemGray variants: use known default values

Semantic/dynamic colors: Use known defaults for the current appearance.

  • Color.primary → black in light mode, white in dark mode
  • Color.secondary → approximately #3C3C43 at 60% opacity (light), #EBEBF5 at 60% opacity (dark)
  • Color(.systemBackground) → white (light), #000000 (dark)
  • Color(.secondarySystemBackground) → #F2F2F7 (light), #1C1C1E (dark)
  • Color(.label) → black (light), white (dark)

If a color cannot be resolved with confidence (custom asset catalog, value computed at runtime, injected by a design system you can't see), do NOT substitute a best-guess value and do NOT fail the element. Mark it NEEDS VERIFICATION and record the unresolved color so it surfaces in the report (Step 5) with guidance on how to check it. The documented semantic colors above count as resolved; only genuinely unknown colors need verification.

AppKit color resolution: NSColor semantic colors resolve based on the view's effectiveAppearance. Use known defaults:

  • NSColor.textColor → black (aqua), white (darkAqua)
  • NSColor.controlTextColor → black (aqua), white (darkAqua)
  • NSColor.secondaryLabelColor → approximately #3C3C43 at 55% (aqua), #EBEBF5 at 55% (darkAqua)
  • NSColor.windowBackgroundColor → #ECECEC (aqua), #323232 (darkAqua)
  • NSColor.controlBackgroundColor → white (aqua), #1E1E1E (darkAqua) For NSBox with .fillColor, resolve the fill color directly. For NSVisualEffectView, treat the material as an opaque background using known values for the material type.

Background resolution: If no explicit background is set on the element, walk up the view hierarchy to find the nearest background. If none is found, assume the system default background.

Step 3 — Render the preview (when available)

If the file contains SwiftUI #Preview blocks, use a tool that renders a SwiftUI preview to a screenshot if one is available:

  • Render at preview index 0 (typically the default/light appearance)
  • If a second preview exists, render at index 1 (often dark appearance)

Use the rendered screenshot to:

  • Verify your source-code color analysis (do the colors match what you see?)
  • Catch cases you missed in the source code (overlapping views, inherited backgrounds, gradients)
  • Identify text elements you may have overlooked

If no such tool is available, or if rendering fails, proceed with source-code analysis alone — it is sufficient for a verdict

Step 4 — Evaluate contrast ratios

For each (foreground, background) pair, compute the WCAG 2.1 contrast ratio:

Linearize sRGB values: For each channel C in {R, G, B}:

  • If C <= 0.04045: C_linear = C / 12.92
  • If C > 0.04045: C_linear = ((C + 0.055) / 1.055) ^ 2.4

Compute relative luminance: L = 0.2126 * R_linear + 0.7152 * G_linear + 0.0722 * B_linear

Compute contrast ratio: ratio = (L_lighter + 0.05) / (L_darker + 0.05)

Apply thresholds:

Element typeMinimum ratio
Normal text (below 18pt regular or below 14pt bold)4.5:1
Large text (18pt+ regular or 14pt+ bold)3:1
UI component boundaries (button borders, input outlines, icons conveying meaning)3:1
Decorative elements (no informational value)Exempt

When opacity is involved: Composite the foreground color over the background using alpha blending before computing contrast:

  • result = foreground * alpha + background * (1 - alpha)

Step 5 — Report findings

Verdict

State the verdict prominently at the top as a Verdict: line — one of PASS, FAIL, or NEEDS VERIFICATION. Decide it as follows:

  • FAIL — any element with known colors is below its required ratio. A real failure outranks an unresolved color: report both, but the headline is FAIL.
  • NEEDS VERIFICATION — no element fails outright, but one or more elements use colors you could not resolve. Their contrast is unknown, so the view can't be certified.
  • PASS — every auditable element has known colors and meets its required ratio.

Passing elements

For each element that meets the required ratio, list:

  • Element description and location in source
  • Foreground and background colors (hex)
  • Computed contrast ratio
  • Required ratio for its element type

Failing elements

For each element that does NOT meet the required ratio, list:

  • Element description and location in source (line number)
  • Foreground and background colors (hex)
  • Computed contrast ratio
  • Required ratio for its element type
  • Concrete fix suggestion referencing the actual code. Examples:
    • "Change .foregroundColor(Color(.systemGray4)) on line 23 to .foregroundColor(Color(.systemGray)) for a 5.2:1 ratio"
    • "Add .foregroundStyle(.primary) to the Text on line 15 — the inherited color from the parent only provides 2.8:1"
    • "The background on line 8 is Color(.secondarySystemBackground) (#F2F2F7). Either darken the text or use a white background"

Elements that need verification

For each element whose contrast could not be determined:

  • Element description and location in source (line number)
  • The unresolved color and why it can't be resolved (e.g., Color("BrandPrimary") is an asset-catalog color with no value visible in source)
  • Any colors you were able to resolve for that pair (e.g., the background) and the ratio the element must meet
  • How the developer can verify it, concretely. Examples:
    • "Open the asset catalog and read BrandPrimary's sRGB values for both the Any and Dark appearances, then compute the ratio against the white background — this body text needs ≥ 4.5:1."
    • "Render the SwiftUI #Preview and sample the text and background with Xcode's Digital Color Meter, or use Accessibility Inspector's contrast calculator."
    • "Temporarily replace Color(\"BrandPrimary\") with its literal Color(red:green:blue:) values and re-run this check."

Assumptions

List any resolution you made that the developer should sanity-check (distinct from unresolved colors, which go under "Elements that need verification"):

  • "No explicit background on the Text — assumed the system default (Color(.systemBackground), white in light mode)."
  • "Treated the .ultraThinMaterial background as its documented light-appearance color."

Error handling

  • If the file contains no text or UI elements to audit, report PASS with a note that no auditable elements were found.
  • If rendering the preview fails or no preview-rendering tool is available, proceed with source-code analysis alone and note that visual verification was not performed. (Source analysis is authoritative — a missing preview is not an unresolved-color case.)
  • If you cannot determine the foreground or background for an element with confidence, mark that element NEEDS VERIFICATION and explain how to check it — never silently skip it, assume a passing value, or fail it outright.
  • If the file uses a design system or custom color palette you don't have access to, mark the affected elements NEEDS VERIFICATION and list which colors could not be resolved, with how-to-test guidance.

Example

Given a file containing:

swift
VStack {
    Text("Welcome")
        .font(.title)
        .foregroundStyle(Color(.systemGray3))
    Text("Sign in to continue")
        .font(.body)
        .foregroundStyle(Color(.systemGray2))
}
.background(Color.white)

Analysis:

  • "Welcome" — large text (title = ~28pt), foreground systemGray3 ≈ #C7C7CC (0.78, 0.78, 0.80), background white (1.0, 1.0, 1.0). Luminance fg ≈ 0.573, bg = 1.0. Ratio ≈ 1.84:1. Required 3:1 for large text. FAIL.
  • "Sign in to continue" — normal text (body = ~17pt), foreground systemGray2 ≈ #AEAEB2 (0.68, 0.68, 0.70), background white. Luminance fg ≈ 0.417, bg = 1.0. Ratio ≈ 2.37:1. Required 4.5:1 for normal text. FAIL.

Verdict: FAIL — both text elements have insufficient contrast against the white background.

Fix suggestions:

  • Line 3: Change .foregroundStyle(Color(.systemGray3)) to .foregroundStyle(Color(.systemGray)) for ≈ 3.5:1 (meets large text threshold)
  • Line 5: Change .foregroundStyle(Color(.systemGray2)) to .foregroundStyle(.primary) for 21:1 (meets normal text threshold), or to .foregroundStyle(.secondary) for ≈ 4.6:1

Example — needs verification

Given a file containing:

swift
Text("Brand headline")
    .font(.headline)
    .foregroundStyle(Color("BrandPrimary"))
    .padding()
    .background(Color.white)

Analysis:

  • "Brand headline" — background is Color.white (1.0, 1.0, 1.0), known. Foreground Color("BrandPrimary") is an asset-catalog color with no value in source, so its sRGB values are unknown and the ratio can't be computed. This is not a guess-and-fail situation — the color is simply undetermined.

Verdict: NEEDS VERIFICATION — the background is known, but BrandPrimary can't be resolved from source, so contrast can't be certified.

How to verify:

  • Open the asset catalog and read BrandPrimary's sRGB values (Any + Dark appearances), then compute the ratio against white — headline text needs ≥ 3:1 if it renders as large/bold, otherwise ≥ 4.5:1.
  • Or render the #Preview and sample both colors with Xcode's Digital Color Meter, or use Accessibility Inspector's contrast calculator.

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

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

يدقّق في طرق العرض للتحقق من توافقها مع ملصق إمكانية الوصول الخاص بالتباين الكافي من Apple (نسب التباين وفق WCAG 2.1). استخدم هذه المهارة عندما يطلب المستخدم التحقق من تباين الألوان أو تدقيق نسب التباين أو التحقق من ملصق التباين الكافي أو مراجعة إمكانية الوصول في طريقة عرض.

لماذا تستخدم Accessibility Sufficient Contrast Specialist على TypingMind؟

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

كيف أثبّت Accessibility Sufficient Contrast Specialist في TypingMind؟

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

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

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

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

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

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

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

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

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

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

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

عرض الكل
شعار openclaw

Openclaw Ci Limits

openclaw
مؤسسةشائع

أدِر سعة GitHub Actions وBlacksmith CI في OpenClaw، وميزانيات تسجيل المشغّلات، وحدود التوزيع المتوازي، وضمان تشغيل مهمة واحدة لكل دفعة دفع إلى main، وتحديد أحجام الأجزاء، ونقل الأحمال إلى المشغّلات المستضافة، وصحة قائمة الانتظار، والتدرّج الآمن في خفض السعة وزيادتها…

82.2K
391K
الملفات: 1
عرض
شعار openclaw

Openclaw Debugging

openclaw
مؤسسةشائع

شخّص مشكلات النماذج ومزوّدي الخدمة وواجهات الأدوات ووضع البرمجة والبث المباشر وسلوك OpenClaw المباشر/Crabbox، باختيار السجلات والفحوصات ومسار التحقق المناسب قبل تغيير الشيفرة، بما في ذلك جلب الجلسات المحفوظة…

82.2K
391K
الملفات: 1
عرض
شعار openclaw

Openclaw Live Updater

openclaw
مؤسسةشائع

حافِظ على نسخة العمل الرئيسية المعتمدة من OpenClaw، وGateway المُدار عبر LaunchAgent على macOS، وتطبيق macOS المحلي، وCI للفرع main عند رأس الالتزام المحدد، والتحقق الكامل والمتكرر من الإصدارات. استخدمها لتحديثات التقديم السريع…

82.2K
391K
الملفات: 2
عرض
شعار openclaw

Openclaw Pr Maintainer

openclaw
مؤسسةشائع

راجِع مشكلات OpenClaw وطلبات السحب، وفرزها، وإصلاحها أو دمجها، مستندًا إلى أدلة من المصدر الحالي وسير عمل المشرفين الأصلي.

82.2K
391K
الملفات: 5
عرض

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

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