update-swiftui-apis by avdlee/swiftui-agent-skill
npx skills add https://github.com/avdlee/swiftui-agent-skill --skill update-swiftui-apis通过 Sosumi MCP 系统性地扫描苹果开发者文档,识别已弃用的 SwiftUI API 及其现代替代方案,并更新 swiftui-expert-skill/references/latest-apis.md。
searchAppleDocumentation、fetchAppleDocumentation、fetchAppleVideoTranscript、fetchExternalDocumentation 工具)阅读 swiftui-expert-skill/references/latest-apis.md 以了解:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
读取 references/scan-manifest.md(相对于此技能)。它包含要扫描的 API 领域分类列表、文档路径、搜索查询和 WWDC 视频路径。
针对清单中的每个类别:
searchAppleDocumentation 以发现相关页面。fetchAppleDocumentation 以获取完整的 API 详情。fetchAppleVideoTranscript 获取宣布 API 变更的 WWDC 会议记录。为提高效率,将相关的搜索批量处理。重点查找 latest-apis.md 中尚未记录的新弃用项。
将发现结果与现有条目进行比较。对结果进行分类:
latest-apis.md 中尚未记录的 API严格遵循既定格式。每个条目必须包含:
部分放置 —— 放置在正确的版本分段下:
条目格式:
**始终使用 `modernAPI()` 替代 `deprecatedAPI()`。**
```swift
// 现代
View()
.modernAPI()
// 已弃用
View()
.deprecatedAPI()
```
快速查找表 —— 在文件底部添加一行:
| `deprecatedAPI()` | `modernAPI()` | iOS XX+ |
保留文件顶部的归属行:
基于使用 Sosumi MCP 对苹果文档进行的比较,我们找到了最新推荐使用的 API。
main 分支创建一个名为 update/latest-apis-YYYY-MM 的分支(使用当前年份和月份)。swiftui-expert-skill/references/latest-apis.md 的更改。gh pr create 发起一个 PR,包含:
| 工具 | 参数 | 返回 |
|---|---|---|
searchAppleDocumentation | query (字符串) | 包含 results[] 的 JSON,results[] 包含 title、url、description、breadcrumbs、tags、type |
fetchAppleDocumentation | path (字符串, 例如 /documentation/swiftui/view/foregroundstyle(_:)) | Markdown 文档内容 |
fetchAppleVideoTranscript | path (字符串, 例如 /videos/play/wwdc2025/10133) | Markdown 文稿 |
fetchExternalDocumentation | url (字符串, 完整 https URL) | Markdown 文档内容 |
searchAppleDocumentation 进行广泛的查询,然后用 fetchAppleDocumentation 深入查看特定路径。每周安装量
104
仓库
GitHub 星标数
2.1K
首次出现
12 天前
安全审计
安装于
github-copilot93
cursor93
codex91
kimi-cli90
gemini-cli90
amp90
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.
searchAppleDocumentation, fetchAppleDocumentation, fetchAppleVideoTranscript, fetchExternalDocumentation)Read 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).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 |
searchAppleDocumentation queries, then drill into specific paths with fetchAppleDocumentation.Weekly Installs
104
Repository
GitHub Stars
2.1K
First Seen
12 days ago
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
github-copilot93
cursor93
codex91
kimi-cli90
gemini-cli90
amp90
通过 LiteLLM 代理让 Claude Code 对接 GitHub Copilot 运行 | 高级变通方案指南
22,200 周安装
Notion知识捕获插件:将对话内容自动转化为结构化文档,提升团队知识管理效率
251 周安装
Shopify开发技能 - 集成ClaudeKit的电商自动化与AI助手解决方案
251 周安装
Hono Cloudflare Workers 教程 - 构建边缘API与无服务器应用
252 周安装
阿里云OpenSearch向量检索版使用指南:Python SDK推送文档与HA/SQL搜索教程
252 周安装
模板引擎技能:自动化生成Word/Excel/PPT文档,支持Jinja2语法与批量邮件合并
252 周安装
Sentry代码审查指南:最佳实践、安全漏洞检测与性能优化清单
252 周安装
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 |