PluginBench
Skill
Pass
Audit score 90

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
Prerequisites
  • 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
Claude Code
Cursor
Windsurf
Cline

How to use update-swiftui-apis

  1. 1.Read the current latest-apis.md file to understand existing coverage and version segments
  2. 2.Load the scan-manifest.md file to see categorized API areas and documentation paths to scan
  3. 3.Use searchAppleDocumentation with queries from the manifest to discover relevant pages
  4. 4.Call fetchAppleDocumentation with specific paths to get full API details and deprecation info
  5. 5.Note the iOS version for each modern replacement by checking the Availability section
  6. 6.Compare findings against existing entries to identify new deprecations or corrections
  7. 7.Update latest-apis.md following the established format with new entries and Quick Lookup Table rows
  8. 8.Create a branch named update/latest-apis-YYYY-MM and open a pull request with your changes

Use cases

Good for
  • 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
Who it's for
  • 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

What if an API is deprecated but has no direct replacement?

Note this in the documentation rather than suggesting an incorrect alternative. The skill should accurately reflect when deprecations lack direct replacements.

How do I find the exact iOS version for a deprecation?

Check the Availability section in the fetched Apple documentation. WWDC 'What's new in SwiftUI' sessions are also reliable sources for version information.

Should I scan all of Apple's documentation or focus on specific areas?

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.

What format should new API entries follow?

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.

Can this skill work without the Sosumi MCP?

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:

  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()`.**

\```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

  1. Create a branch from main named update/latest-apis-YYYY-MM (use current year and month).
  2. Commit changes to skills/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

ToolParametersReturns
searchAppleDocumentationquery (string)JSON with results[] containing title, url, description, breadcrumbs, tags, type
fetchAppleDocumentationpath (string, e.g. /documentation/swiftui/view/foregroundstyle(_:))Markdown documentation content
fetchAppleVideoTranscriptpath (string, e.g. /videos/play/wwdc2025/10133)Markdown transcript
fetchExternalDocumentationurl (string, full https URL)Markdown documentation content

Tips

  • Start broad with searchAppleDocumentation queries, then drill into specific paths with fetchAppleDocumentation.
  • 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.