update-swiftui-apis
avdlee/swiftui-agent-skill
Scan Apple's SwiftUI documentation for deprecated APIs and update the SwiftUI Expert Skill with modern replacements.
What is update-swiftui-apis?
This skill systematically scans Apple's developer documentation via the Sosumi MCP to identify deprecated SwiftUI APIs and their modern replacements, then updates the SwiftUI Expert Skill's API reference. Use it when asked to refresh deprecated APIs, check for new deprecations, or after a new iOS/Xcode release.
- Searches Apple's SwiftUI documentation for deprecated APIs using the Sosumi MCP
- Fetches full API details and deprecation notices from Apple's official docs
- Identifies modern replacement APIs and their minimum iOS versions
- Compares findings against existing documented APIs to find new deprecations
- Updates the latest-apis.md reference file with new entries in the established format
- Generates pull requests with categorized summaries of API changes
How to install update-swiftui-apis
npx skills add https://github.com/avdlee/swiftui-agent-skill --skill update-swiftui-apis- Sosumi MCP must be enabled and available in your environment
- Write access to the repository containing the SwiftUI Expert Skill
- GitHub CLI (gh) for creating pull requests
How to use update-swiftui-apis
- 1.Read the current latest-apis.md file to understand existing coverage and version segments
- 2.Load the scan-manifest.md file to see categorized API areas and documentation paths to scan
- 3.Use searchAppleDocumentation with queries from the manifest to discover relevant pages
- 4.Call fetchAppleDocumentation with specific paths to get full API details and deprecation info
- 5.Note the iOS version for each modern replacement by checking the Availability section
- 6.Compare findings against existing entries to identify new deprecations or corrections
- 7.Update latest-apis.md following the established format with new entries and Quick Lookup Table rows
- 8.Create a branch named update/latest-apis-YYYY-MM and open a pull request with your changes
Use cases
- After a new iOS release, scan for newly deprecated SwiftUI APIs and their replacements
- Refresh the SwiftUI Expert Skill's API reference when asked to update to latest best practices
- Identify which deprecated APIs have modern replacements available in specific iOS versions
- Verify exact iOS version availability for API deprecations by checking Apple's official documentation
- Extract API change information from WWDC sessions announcing new SwiftUI features
- SwiftUI developers maintaining API reference documentation
- AI agents that need to keep SwiftUI guidance current with Apple's latest releases
- Development teams tracking API deprecation cycles across iOS versions
update-swiftui-apis FAQ
Note this in the documentation rather than suggesting an incorrect alternative. The skill should accurately reflect when deprecations lack direct replacements.
Check the Availability section in the fetched Apple documentation. WWDC 'What's new in SwiftUI' sessions are also reliable sources for version information.
Use the scan-manifest.md file as your guide—it contains categorized API areas and specific documentation paths to scan efficiently rather than searching broadly.
Each entry must include the modern API, deprecated API, Swift code examples, and a Quick Lookup Table row with the minimum iOS version. Follow the exact format shown in latest-apis.md.
No, the Sosumi MCP is required—it provides the searchAppleDocumentation, fetchAppleDocumentation, and fetchAppleVideoTranscript tools needed to scan Apple's documentation.
Full instructions (SKILL.md)
Source of truth, from avdlee/swiftui-agent-skill.
name: update-swiftui-apis description: 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 release. Requires the Sosumi MCP to be available.
Update SwiftUI APIs
Systematically scan Apple's developer documentation via the Sosumi MCP, identify deprecated SwiftUI APIs and their modern replacements, and update skills/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
1. Understand current coverage
Read skills/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:
- Call
searchAppleDocumentationwith the listed queries to discover relevant pages. - Call
fetchAppleDocumentationwith specific documentation paths to get full API details. - Look for deprecation notices, "Deprecated" labels, and "Use ... instead" guidance.
- Note the iOS version where the modern replacement became available.
- Optionally call
fetchAppleVideoTranscriptfor 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()`.**
\```swift
// 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
- Create a branch from
mainnamedupdate/latest-apis-YYYY-MM(use current year and month). - Commit changes to
skills/swiftui-expert-skill/references/latest-apis.md. - Open a PR via
gh pr createwith:- 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.
Related skills
More from avdlee/swiftui-agent-skill and the wider catalog.

swiftui-expert-skill
Expert SwiftUI code review, refactoring, and performance optimization for iOS and macOS.

spm-build-analysis
Diagnose Swift Package Manager dependencies, plugins, and build overhead slowing Xcode builds.

xcode-build-benchmark
Benchmark Xcode clean and incremental builds with repeatable inputs and timestamped artifacts.

xcode-build-fixer
Apply approved Xcode build optimizations and verify improvements with benchmarking.

xcode-build-orchestrator
End-to-end Xcode build optimization: benchmark, analyze, prioritize, approve, fix, and re-benchmark.

xcode-compilation-analyzer
Analyze Swift compile hotspots and generate source-level optimization recommendations from build timing data.