update-swiftui-apis – skill Khác cho agent AI
Quét tài liệu SwiftUI của Apple để tìm các API đã bị deprecated và cập nhật SwiftUI Expert Skill với các thay thế hiện đại.
Cài skill update-swiftui-apis bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/update-swiftui-apis-d5509.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /update-swiftui-apis – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/update-swiftui-apis-d5509.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $update-swiftui-apis – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/update-swiftui-apis-d5509.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /update-swiftui-apis – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/update-swiftui-apis-d5509.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /update-swiftui-apis – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
Update SwiftUI APIs
When to Use
Use this skill when you need scan Apple's SwiftUI documentation for deprecated APIs and update the SwiftUI Expert Skill with modern replacements. Use when asked to "update latest APIs", "refresh deprecated SwiftUI APIs", "check for new SwiftUI deprecations", "scan for API changes", or after a new iOS/Xcode...
Systematically scan Apple's developer documentation via the Sosumi MCP, identify deprecated SwiftUI APIs and their modern replacements, and update swiftui-expert-skill/references/latest-apis.md.
Prerequisites
- Sosumi MCP must be enabled and available (provides
searchAppleDocumentation,fetchAppleDocumentation,fetchAppleVideoTranscript,fetchExternalDocumentation) - Write access to this repository (or a fork)
Workflow
This catalog bundles the scan manifest, not swiftui-expert-skill/references/latest-apis.md. Locate the user-authorized target installation/repository before editing; never invent that file or modify an unrelated skill with a similar name. MCP tool names are examples: use available official Apple documentation tools or primary pages, and record the method actually used rather than claiming Sosumi attribution when unavailable. Distinguish deprecation OS version from replacement availability, check all target platforms/deployment minima and preserve compatible fallbacks. Commit/PR steps apply only when authorized and must follow the target repository's workflow.
1. Understand current coverage
Read swiftui-expert-skill/references/latest-apis.md to understand:
- Which deprecated-to-modern transitions are already documented
- The version segments in use (iOS 15+, 16+, 17+, 18+, 26+)
- The Quick Lookup Table at the bottom
2. Load the scan manifest
Read references/scan-manifest.md (relative to this skill). It contains the categorized list of API areas, documentation paths, search queries, and WWDC video paths to scan.
3. Scan Apple documentation
For each category in the manifest:
1. Call searchAppleDocumentation with the listed queries to discover relevant pages.
2. Call fetchAppleDocumentation with specific documentation paths to get full API details.
3. Look for deprecation notices, "Deprecated" labels, and "Use ... instead" guidance.
4. Note the iOS version where the modern replacement became available.
5. Optionally call fetchAppleVideoTranscript for WWDC sessions that announce API changes.
Batch related searches together for efficiency. Focus on finding new deprecations not yet in latest-apis.md.
4. Compare and identify changes
Compare findings against existing entries. Categorize results:
- New deprecations: APIs not yet documented in
latest-apis.md - Corrections: Existing entries that need updating (wrong version, better replacement available)
- New version segments: If a new iOS version introduces deprecations, add a new section
5. Update latest-apis.md
Follow the established format exactly. Each entry must include:
Section placement -- place under the correct version segment:
- "Always Use (iOS 15+)" for long-deprecated APIs
- "When Targeting iOS 16+" / "17+" / "18+" / "26+" for version-gated changes
Entry format:
**Always use `modernAPI()` instead of `deprecatedAPI()`.**
\// Modern
View()
.modernAPI()
// Deprecated
View()
.deprecatedAPI()
\
Quick Lookup Table -- add a row at the bottom of the file:
| `deprecatedAPI()` | `modernAPI()` | iOS XX+ |Keep the attribution line at the top of the file:
> Based on a comparison of Apple's documentation using the Sosumi MCP, we found the latest recommended APIs to use.
6. Open a pull request
1. Create a branch from main named update/latest-apis-YYYY-MM (use current year and month).
2. Commit changes to swiftui-expert-skill/references/latest-apis.md.
3. Open a PR via gh pr create with:
- Title: "Update latest SwiftUI APIs (Month Year)"
- Body: Summary of new/changed entries, attribution to Sosumi MCP
Sosumi MCP Tool Reference
| Tool | Parameters | Returns |
|------|-----------|---------|
| searchAppleDocumentation | query (string) | JSON with results[] containing title, url, description, breadcrumbs, tags, type |
| fetchAppleDocumentation | path (string, e.g. /documentation/swiftui/view/foregroundstyle(_:)) | Markdown documentation content |
| fetchAppleVideoTranscript | path (string, e.g. /videos/play/wwdc2025/10133) | Markdown transcript |
| fetchExternalDocumentation | url (string, full https URL) | Markdown documentation content |
Tips
- Start broad with
searchAppleDocumentationqueries, then drill into specific paths withfetchAppleDocumentation. - Apple's deprecation docs typically say "Deprecated" in the page and link to the replacement.
- WWDC "What's new in SwiftUI" sessions are the best source for newly introduced replacements.
- When unsure about the exact iOS version for a deprecation, verify by checking the "Availability" section in the fetched documentation.
- If an API is deprecated but no direct replacement exists, note this rather than suggesting an incorrect alternative.
Limitations
- Use this skill only when the task clearly matches its upstream source and local project context.
- Verify commands, generated code, dependencies, credentials, and external service behavior before applying changes.
- Do not treat examples as a substitute for environment-specific tests, security review, or user approval for destructive or costly actions.
Skill liên quan
- url-slug-generator – Công cụ tạo URL slug. Dùng khi làm việc với tiêu đề trang và tùy chọn ngôn ngữ hoặc…
- vendor-contractor-management – Sổ đăng ký nhà cung cấp: tên, loại, dịch vụ, liên hệ, ngày hợp đồng liên kết, điều khoản…
- verification-before-completion – Khẳng định công việc đã hoàn thành mà chưa kiểm chứng là không trung thực, không phải…
- viboscope – Ghép đôi tương thích tâm lý — tìm co-founder, cộng tác viên và bạn bè với sự đồng ý rõ…
- video-router – Định tuyến brief sản xuất video sang tạo mới, dựng cố định, chỉnh sửa từ footage có sẵn…
- viral-video-teardown-remake – Cài đặt và sử dụng gói Viral Video Remake chính thức, ghim theo digest, cho các công…
- visibility-index-calculator – Công cụ tính Visibility Index. Dùng khi làm việc với trọng số từ khóa và ánh xạ…
- vmware-vcenter-attack – Ma trận tấn công bên ngoài cho VMware vSphere / vCenter Server