
This automates the tedious work of keeping SwiftUI codebases current by scanning Apple's documentation through the Sosumi MCP, finding deprecated APIs, and updating a reference file with modern replacements. You'd run it after major iOS releases or when you want to check what's changed since the last scan. It follows a structured workflow: reads the existing deprecation list, loads a scan manifest of API areas to check, queries Apple's docs systematically, then opens a PR with findings organized by iOS version. The real value is turning a manual documentation hunt into a repeatable process, though you still need Sosumi MCP configured and write access to update the SwiftUI Expert skill's reference files.
$ npx -y skills add avdlee/swiftui-agent-skill --skill update-swiftui-apis --agent claude-codeInstalls into .claude/skills of the current project.
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.
searchAppleDocumentation, fetchAppleDocumentation, fetchAppleVideoTranscript, fetchExternalDocumentation)Read skills/swiftui-expert-skill/references/latest-apis.md to understand:
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.
For each category in the manifest:
searchAppleDocumentation with the listed queries to discover relevant pages.fetchAppleDocumentation with specific documentation paths to get full API details.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.
Compare findings against existing entries. Categorize results:
latest-apis.mdFollow the established format exactly. Each entry must include:
Section placement -- place under the correct version segment:
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.
main named update/latest-apis-YYYY-MM (use current year and month).skills/swiftui-expert-skill/references/latest-apis.md.gh pr create with:
| 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 |
searchAppleDocumentation queries, then drill into specific paths with fetchAppleDocumentation.Sponsors