Logo Swift Accessibility Skill

Swift Accessibility Skill

Cộng đồng
PasqualeVittoriosi
swift-accessibility-skill

Apply platform accessibility best practices to SwiftUI, UIKit, and AppKit code. Essential companion to any SwiftUI, UIKit, or AppKit skill — always use together. Use whenever writing, editing, or reviewing ANY SwiftUI views, UIKit view controllers, AppKit views/window controllers, or platform UI — even when the user doesn't mention accessibility. Also use when the user mentions VoiceOver, Voice Control, Dynamic Type, Reduce Motion, screen reader, a11y, WCAG, accessibility audit, Nutrition Labels, accessibilityLabel, UIAccessibility, NSAccessibility, assistive technologies, or Switch Control. Not for server-side Swift, non-UI packages, or CLI tools.

Tổng quan

Nhà phát hànhPasqualeVittoriosi
Kho mãswift-accessibility-skill
Tên kỹ năngswift-accessibility-skill
Sao
84
Bản fork
3
Tệp đi kèm
18
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 18 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được PasqualeVittoriosi công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Swift Accessibility Skill trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/PasqualeVittoriosi/swift-accessibility-skill/tree/main/swift-accessibility-skill
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/PasqualeVittoriosi/swift-accessibility-skill.git /tmp/swift-accessibility-skill
mkdir -p .claude/skills
cp -r /tmp/swift-accessibility-skill/swift-accessibility-skill .claude/skills/swift-accessibility-skill
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Swift Accessibility Skill trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Swift Accessibility Skill ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Swift Accessibility Skill với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Platform Accessibility

Overview

Apply accessibility for SwiftUI, UIKit, and AppKit across all supported platforms. Covers all 9 App Store Accessibility Nutrition Label categories — VoiceOver, Voice Control, Larger Text, Dark Interface, Differentiate Without Color, Sufficient Contrast, Reduced Motion, Captions, and Audio Descriptions.

This skill prioritizes native platform APIs (which provide free automatic support) and fact-based guidance without architecture opinions.

First-Draft Rules

Include accessibility in the first draft — never write a bare element and patch it later. Retrofitting accessibility is harder, gets skipped, and produces worse results than building it in from the start.

No inline commentary unless a pattern is non-obvious. Mark inferred labels with // [VERIFY] because SF Symbol names don't always match the intended user-facing meaning.

SituationRequired on first write
Button / NavigationLink — icon-only.accessibilityLabel("…") with // [VERIFY]
Button / NavigationLink — visible textNothing extra — text is the label automatically
Image — meaningful.accessibilityLabel("…")
Image — decorative.accessibilityHidden(true)
withAnimation / .transition / .animation@Environment(\.accessibilityReduceMotion) + gate animation
.font(.system(size:))Replace with .font(.body) or @ScaledMetric
Color conveys state/statusAdd shape, icon, or text alongside color
onTapGesture on non-Button.accessibilityElement(children: .ignore) + .accessibilityAddTraits(.isButton) + .accessibilityLabel
Custom slider / toggle / stepper.accessibilityRepresentation { … } or .accessibilityValue + .accessibilityAdjustableAction
Async content changePost announcement with availability guards (AccessibilityNotification.Announcement on iOS 17+, fallback to UIAccessibility.post)
System .sheet / .fullScreenCoverNothing extra — SwiftUI traps focus automatically (custom overlays still need focus management)
AVPlayer / videoUse AVPlayerViewController — captions and Audio Descriptions for free
Custom tappable view.frame(minWidth: 44, minHeight: 44)
Any new SwiftUI viewVerify with Xcode Canvas Variants (see Accessibility Summary)
NSButton — icon-only (AppKit)setAccessibilityLabel("…") with // [VERIFY]
Custom NSView interactive element (AppKit)setAccessibilityElement(true) + role (setAccessibilityRole(.button)) + label
AppKit modal/popup UITrap focus and ensure dismiss action is keyboard + VoiceOver reachable
Any new AppKit view/controllerVerify with Accessibility Inspector and full keyboard navigation

Prefer native controls (Button, Toggle, Stepper, Slider, Picker, TextField) — they get full accessibility automatically. Custom interactive views require explicit work. For AppKit, prefer native controls (NSButton, NSPopUpButton, NSSlider, NSSegmentedControl, NSTextField) before custom NSView interaction.

Example — icon-only button:

swift
Button {
    shareAction()
} label: {
    Image(systemName: "square.and.arrow.up")
}
.accessibilityLabel("Share") // [VERIFY] confirm label matches intent

Example — gating animation on Reduce Motion:

swift
@Environment(\.accessibilityReduceMotion) private var reduceMotion

withAnimation(reduceMotion ? nil : .spring()) {
    isExpanded.toggle()
}

Full testing and verification procedures → references/testing-auditing.md

Workflow

Reference Routing Rule

Before answering, select one primary reference file that best matches the user's intent and load it first. Load additional reference files only when the request explicitly spans multiple domains (for example, VoiceOver + Dynamic Type + WCAG mapping) or when the primary file does not cover a required criterion.

1) Implement new code

Apply First-Draft Rules — accessibility in the first draft, no commentary. For APIs introduced after iOS 15, always add #available guards and provide older-OS fallback behavior. After writing, verify against the First-Draft Rules table — fix any gaps before outputting. After the code, append an Accessibility Summary (see below).

2) Improve or fix existing code

Apply fixes silently, no commentary. For APIs introduced after iOS 15, always add #available guards and provide older-OS fallback behavior. After fixing, verify against the First-Draft Rules table — fix any gaps before outputting. After the code, append an Accessibility Summary.

  • For transformation patterns → examples/before-after-swiftui.md, examples/before-after-uikit.md, or examples/before-after-appkit.md
  • For platform issues → references/platform-specifics.md

3) Audit existing code

Only when user explicitly asks ("audit", "how accessible is this?", "review accessibility").

Quick fix mode — when the user asks for blocker-only/critical-only scope (for example: "just fix the blockers", "quick fix", "critical only"): address only Blocks Assistive Tech and Degrades Experience issues. Skip Incomplete Support.

Comprehensive mode (default) — address all severity levels including Incomplete Support and Nutrition Label gaps.

  • Identify issues by category → Triage Playbook below
  • Format with Audit Output Format below
  • For WCAG compliance mapping → references/wcag-mapping.md
  • Hand off to QA → resources/qa-checklist.md

4) Prepare Nutrition Label recommendation

→ references/nutrition-labels.md — all 9 categories with official pass/fail criteria

When the user asks to prepare or draft an App Store Accessibility Nutrition Label recommendation, output this format:

**Accessibility Nutrition Label recommendation**

**App version evaluated:** [version or "Current build"]
**Scope reviewed:** [common tasks / screens evaluated]

**You could claim:**
- [labels where every common task is ✅ or —]

**Why you could claim them:**
- [label]: [brief reason tied to completed common-task coverage]

**You should not claim:**
- [labels blocked by any ❌]
- [labels that are not applicable]

**Why you should not claim them:**
- [label]: [blocked task or why the label is not applicable]

**Common-task verification**
| Common Task | VoiceOver | Voice Control | Larger Text | Dark Mode | No Color | Contrast | Motion | Captions | Audio Desc |
|---|---|---|---|---|---|---|---|---|---|
| [task] | ✅ / ❌ / — | ✅ / ❌ / — | ✅ / ❌ / — | ✅ / ❌ / — | ✅ / ❌ / — | ✅ / ❌ / — | ✅ / ❌ / — | ✅ / ❌ / — | ✅ / ❌ / — |

**Recommendation summary**
- You could claim: [labels]
- You should not claim: [labels]

Do not say "claim" without qualification. Phrase the output as a recommendation based on the reviewed scope. Do not suggest a label if any common task in that column is ❌. Use — only when the label is genuinely not applicable to that app or flow.

Accessibility Summary

Append after all code generation and fix tasks (modes 1, 2), unless the user explicitly requests code-only output. No preamble.

**Accessibility applied:**
- [one bullet per pattern added — e.g. "`.accessibilityLabel` on icon-only Share button"]

**Verify in Xcode:**
- Use Canvas **Dynamic Type Variants** (grid icon → Dynamic Type Variants) to check layout at all text sizes
- Use Canvas **Color Scheme Variants** to check light and dark mode
- Use **Accessibility Inspector** (Xcode → Open Developer Tool) Settings tab to simulate Increase Contrast, Reduce Motion, Bold Text on the Simulator

**If Xcode is unavailable:**
- Run equivalent checks with platform accessibility inspector tools and manual setting toggles (Dynamic Type, Contrast, Reduce Motion, VoiceOver/Voice Control)

**Test on device:**
- [relevant items from Must Test on Device checklist]

Omit "Accessibility applied" entirely if nothing was added (all native controls). Omit "Nutrition Label readiness" unless the user asked about it.

Audit Output Format

Only when user explicitly requests an audit. Never during code generation or fixes.

🔴 Blocks Assistive Tech — completely unreachable, fix immediately 🟡 Degrades Experience — reachable but significant friction 🟠 Incomplete Support — gaps preventing Nutrition Label claims ✅ Verified in code — confirmed correct by static analysis

Close with:

Must test on device: relevant items from the Review Checklist. Nutrition Label readiness: Achievable / Blocked by [issue] / Not applicable.

Core Guidelines

Principles

  • Identify framework and platform first. SwiftUI and UIKit have different APIs; using the wrong one causes silent failures.
  • Every modifier needs a semantic reason. Adding .accessibilityLabel to a Button with visible text actually hurts — it overrides the text VoiceOver would read automatically.
  • Gate iOS 17+ APIs with #available. Version-specific APIs crash on older OS without availability checks.
  • Mark inferred labels with [VERIFY]. SF Symbol names (e.g. square.and.arrow.up) rarely match what users expect to hear ("Share"). Inferred labels need human review.
  • Don't change core UI semantics or layout based on UIAccessibility.isVoiceOverRunning. Adapt to the actual user need by checking the relevant accessibility setting directly. Narrow coordination exceptions are fine, such as avoiding overlapping speech or extending transient timeouts while assistive tech is active.
  • Nutrition Labels require complete flow coverage. Claiming "VoiceOver supported" means every user flow works — login, onboarding, purchase, settings — not just the main screen.
  • Test contrast in both light and dark mode. A color pair that passes WCAG 4.5:1 in light mode often fails in dark mode due to different background values.

VoiceOver

  • Every non-decorative element needs a concise, context-independent label
  • Icon-only buttons need .accessibilityLabel — blank is never acceptable
  • Decorative images: .accessibilityHidden(true)
  • State is a trait, not a label: .accessibilityAddTraits(.isSelected) not "Selected photo"
  • Group related elements: .accessibilityElement(children: .combine)
  • Announce dynamic changes: iOS 17+ AccessibilityNotification.Announcement("Upload complete").post(), fallback UIAccessibility.post(notification: .announcement, argument: "Upload complete")
  • Deep reference → references/voiceover-swiftui.md or references/voiceover-uikit.md

Voice Control

  • Labels must exactly match visible text — mismatches silently break "Tap [name]"
  • .accessibilityInputLabels(["Compose", "New Message"]) for icon-only elements
  • Every interactive element must appear in "Show numbers" and "Show names" overlays
  • Hidden-on-swipe UI needs a voice-accessible alternative (.accessibilityAction)
  • Deep reference → references/voice-control.md

Dynamic Type

  • Text styles only: .font(.body) not .font(.system(size: 16))
  • Scale custom values: @ScaledMetric(relativeTo: .body) var spacing: CGFloat = 8
  • Fixed-size UI chrome: .accessibilityShowsLargeContentViewer()
  • Adaptive layout: prefer ViewThatFits (iOS 16+) over manual dynamicTypeSize checks — it automatically picks the layout that fits
  • Deep reference → references/dynamic-type.md

Display Settings

  • Reduce Motion: replace meaningful animations with dissolve/fade; remove decorative ones
  • Contrast: semantic colors (Color(.label)); WCAG 4.5:1 text, 3:1 non-text
  • Differentiate Without Color: add shape/icon/text alongside color
  • Reduce Transparency: replace .ultraThinMaterial with opaque when enabled
  • Deep reference → references/display-settings.md

Semantic Structure

  • Reading order: .accessibilitySortPriority(_:) (higher = read first)
  • Focus on new screen: post .screenChanged notification
  • Modal focus: accessibilityViewIsModal = true
  • Custom navigation: accessibilityRotor(_:entries:)
  • Deep reference → references/semantic-structure.md

Motor / Input

  • Touch targets: minimum 44×44pt
  • Keyboard: every element via Tab, every modal via Escape
  • Switch Control: UIAccessibilityCustomAction for swipe-only gestures
  • Deep reference → references/motor-input.md

Quick Reference

SwiftUI Modifiers

ModifierPurpose
.accessibilityLabel(_:)VoiceOver text for non-text elements
.accessibilityHint(_:)Brief result description
.accessibilityValue(_:)Current value (sliders, progress)
.accessibilityHidden(true)Hide decorative elements
.accessibilityAddTraits(_:)Semantic role or state
.accessibilityRemoveTraits(_:)Remove inherited trait
.accessibilityElement(children:).combine / .contain / .ignore
.accessibilitySortPriority(_:)Reading order (higher = earlier)
.accessibilityAction(_:_:)Named custom action
.accessibilityAdjustableAction(_:)Increment/decrement
.accessibilityInputLabels(_:)Voice Control alternate names
.accessibilityFocused(_:)Programmatic focus
.accessibilityRotor(_:entries:)Custom VoiceOver rotor
.accessibilityRepresentation(_:)Replace AX tree for custom controls
.accessibilityIgnoresInvertColors(true)Protect images in Smart Invert
.accessibilityShowsLargeContentViewer()Large Content Viewer for fixed-size UI

@Environment Values

ValuePurpose
\.accessibilityReduceMotionGate animations
\.accessibilityReduceTransparencyReplace blur effects
\.accessibilityDifferentiateWithoutColorAdd non-color indicators
\.colorSchemeContrast.standard / .increased
\.dynamicTypeSizeCurrent text size

Nutrition Labels → APIs

LabelKey APIsReference
VoiceOveraccessibilityLabel, traits, actions, rotorsvoiceover-swiftui.md, voiceover-uikit.md
Voice ControlaccessibilityInputLabels, visible text matchvoice-control.md
Larger Text@ScaledMetric, text styles, Large Content Viewerdynamic-type.md
Dark InterfacecolorScheme, semantic colorsdisplay-settings.md
Differentiate Without Colorshapes + colordisplay-settings.md
Sufficient ContrastWCAG 4.5:1 text / 3:1 non-textdisplay-settings.md
Reduced MotionaccessibilityReduceMotion, animation gatedisplay-settings.md
CaptionsAVPlayerViewControllermedia-accessibility.md
Audio DescriptionsAVMediaCharacteristic.describesVideoForAccessibilitymedia-accessibility.md

Review Checklist

Verifiable in Code

  • Icon-only buttons have .accessibilityLabel
  • Decorative images have .accessibilityHidden(true)
  • State expressed as traits, not labels
  • No hardcoded font sizes — text styles or @ScaledMetric
  • Animations gated on accessibilityReduceMotion
  • Semantic colors (not hardcoded hex)
  • .accessibilityInputLabels on icon-only elements
  • Touch targets ≥ 44×44pt
  • Modals use .sheet() or accessibilityViewIsModal
  • Swipe-only actions have .accessibilityAction alternatives
  • AVPlayerViewController for video
  • Photos/maps/video have .accessibilityIgnoresInvertColors()
  • XCUITest includes performAccessibilityAudit() with #available guards (iOS 17+ / macOS 14+), plus fallback assertions on older OS versions

Must Test on Device

  • VoiceOver: navigation order, reading flow, focus after push/modal
  • Voice Control: "Show numbers" coverage, "Tap [name]" activation
  • Switch Control: scanning path, custom actions reachable
  • Full Keyboard Access: Tab order, Escape dismissal
  • Dynamic Type: layout at max size — no clipping or overlap
  • Reduce Motion: all animations verified
  • Grayscale filter: information comprehensible without color
  • Dark + Increase Contrast: contrast in both modes
  • Captions and Audio Descriptions: auto-enable

Full testing procedures → references/testing-auditing.md

Triage Playbook

Blocks Assistive Tech — fix immediately

  • Icon-only button has no label → references/voiceover-swiftui.md
  • Image missing alt text → references/voiceover-swiftui.md
  • Custom view not in accessibility tree → references/voiceover-uikit.md
  • VoiceOver loops or can't exit element → references/semantic-structure.md

Degrades Experience — significant friction

  • Voice Control misses an element → references/voice-control.md
  • Voice label doesn't match visible text → references/voice-control.md
  • Touch target < 44×44pt → references/motor-input.md
  • Color is the only differentiator → references/display-settings.md
  • Wrong reading order → references/semantic-structure.md
  • Modal doesn't trap focus → references/semantic-structure.md

Incomplete Support — blocks Nutrition Label claims

  • Text doesn't scale with Dynamic Type → references/dynamic-type.md
  • Animations ignore Reduce Motion → references/display-settings.md
  • Low contrast in dark mode → references/display-settings.md
  • No captions or audio descriptions → references/media-accessibility.md
  • Platform not accessible → references/platform-specifics.md
  • Nutrition Label preparation → references/nutrition-labels.md

Troubleshooting

Wrong framework APIs applied

Symptom: SwiftUI modifiers used in UIKit/AppKit code, or platform APIs mixed across frameworks. Fix: Identify framework from imports (import SwiftUI, import UIKit, import AppKit) before applying APIs. SwiftUI uses modifiers, UIKit uses UIAccessibility properties, and AppKit uses NSAccessibility APIs.

Over-labeling native controls

Symptom: .accessibilityLabel added to a Button("Save") or Toggle("Dark Mode") that already has visible text. Fix: Do not add .accessibilityLabel when the control has visible text — it overrides the automatic label and can desync with what's on screen. Only add labels to icon-only or non-text elements.

API requires newer OS than project target

Symptom: Code uses platform-versioned APIs (iOS/macOS/tvOS/watchOS/visionOS) without availability checks. Fix: Gate with #available for every target OS you support and use older equivalents when needed. Common substitutions:

  • AccessibilityNotification.Announcement("…").post() → UIAccessibility.post(notification: .announcement, argument: "…")
  • performAccessibilityAudit() → manual XCTest assertions
  • ViewThatFits (iOS 16+) → @Environment(\.dynamicTypeSize) with manual layout switching
  • Prefer multi-platform guards when code is shared: if #available(iOS 17, macOS 14, tvOS 17, watchOS 10, visionOS 1, *) { ... }

Accessibility Summary missing

Symptom: Code generated without the "Accessibility applied" / "Test on device" summary block. Fix: Always append the Accessibility Summary after code generation and fix tasks (workflow modes 1 and 2). Omit only when no accessibility patterns were added (all native controls with visible text).

[VERIFY] comments missing on inferred labels

Symptom: .accessibilityLabel derived from SF Symbol names or method names without a // [VERIFY] comment. Fix: Any label that was inferred (not provided by the user) must include // [VERIFY] confirm label matches intent. SF Symbol names like square.and.arrow.up rarely match what users expect to hear.

References

  • references/voiceover-swiftui.md — SwiftUI accessibility modifiers, traits, actions, rotors, announcements
  • references/voiceover-uikit.md — UIAccessibility protocol, custom elements, containers, notifications
  • references/voice-control.md — Input labels, "Show numbers/names", voice-accessible alternatives
  • references/motor-input.md — Switch Control, Full Keyboard Access, AssistiveTouch, tvOS focus
  • references/dynamic-type.md — Dynamic Type, @ScaledMetric, Large Content Viewer, adaptive layouts
  • references/display-settings.md — Reduce Motion, Contrast, Dark Mode, Color, Transparency, Invert
  • references/semantic-structure.md — Grouping, reading order, focus management, rotors, modal focus
  • references/media-accessibility.md — Captions, Audio Descriptions, Speech synthesis, Charts
  • references/testing-auditing.md — Accessibility Inspector, Xcode Canvas Variants, XCTest, performAccessibilityAudit(), manual testing
  • references/nutrition-labels.md — All 9 Nutrition Labels with pass/fail criteria
  • references/wcag-mapping.md — WCAG 2.2 Level A/AA success criteria mapped to SwiftUI/UIKit/AppKit APIs
  • references/assistive-access.md — Assistive Access (iOS 17+), design principles, testing
  • references/platform-specifics.md — macOS, watchOS, tvOS, visionOS specifics
  • examples/before-after-swiftui.md — SwiftUI before/after transformations
  • examples/before-after-uikit.md — UIKit before/after transformations
  • examples/before-after-appkit.md — AppKit (macOS) before/after transformations
  • resources/audit-template.swift — Drop-in XCUITest file for automated accessibility auditing (iOS 17+)
  • resources/qa-checklist.md — Standalone QA checklist for manual testing (hand to testers)

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Swift Accessibility Skill làm được gì?

Apply platform accessibility best practices to SwiftUI, UIKit, and AppKit code. Essential companion to any SwiftUI, UIKit, or AppKit skill — always use together. Use whenever writing, editing, or reviewing ANY SwiftUI views, UIKit view controllers, AppKit views/window controllers, or platform UI — even when the user doesn't mention accessibility. Also use when the user mentions VoiceOver, Voice Control, Dynamic Type, Reduce Motion, screen reader, a11y, WCAG, accessibility audit, Nutrition Labels, accessibilityLabel, UIAccessibility, NSAccessibility, assistive technologies, or Switch Control...

Vì sao nên dùng Swift Accessibility Skill trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Swift Accessibility Skill là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Swift Accessibility Skill trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/PasqualeVittoriosi/swift-accessibility-skill/tree/main/swift-accessibility-skill. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Swift Accessibility Skill?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Swift Accessibility Skill với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Swift Accessibility Skill với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Swift Accessibility Skill có miễn phí không?

Có. Kỹ năng này được PasqualeVittoriosi phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇