ClawSkills logoClawSkills

Apple Docs

查询 Apple 开发者文档、API 和 WWDC 视频(2014-2025)。搜索 SwiftUI、UIKit、Objective-C、Swift 框架并观看会议回放。

介绍

# Apple Docs Skill

查询 Apple 开发者文档、框架、API 和 WWDC 视频。

## 设置

无需安装 - 开箱即用,使用原生的 fetch。

## 可用工具

### 文档搜索

| 命令 | 描述 | |---------|-------------| | `apple-docs search "query"` | 搜索 Apple 开发者文档 | | `apple-docs symbols "UIView"` | 搜索框架类、结构体、协议 | | `apple-docs doc "/path/to/doc"` | 通过路径获取详细文档 |

### API 探索

| 命令 | 描述 | |---------|-------------| | `apple-docs apis "UIViewController"` | 查找继承关系和协议遵循 | | `apple-docs platform "UIScrollView"` | 检查平台/版本兼容性 | | `apple-docs similar "UIPickerView"` | 查找 Apple 推荐的替代方案 |

### 技术浏览

| 命令 | 描述 | |---------|-------------| | `apple-docs tech` | 按类别列出所有 Apple 技术 | | `apple-docs overview "SwiftUI"` | 获取综合技术指南 | | `apple-docs samples "SwiftUI"` | 浏览 Swift/Objective-C 示例项目 |

### WWDC 视频

| 命令 | 描述 | |---------|-------------| | `apple-docs wwdc-search "async"` | 搜索 WWDC 会议 (2014-2025) | | `apple-docs wwdc-video 2024-100` | 获取文字记录、代码示例、资源 | | `apple-docs wwdc-topics` | 列出 20 个 WWDC 主题类别 | | `apple-docs wwdc-years` | 列出包含视频的 WWDC 年份及数量 |

## 选项

| 选项 | 描述 | |--------|-------------| | `--limit <n>` | 限制结果数量 | | `--category` | 按技术类别筛选 | | `--framework` | 按框架名称筛选 | | `--year` | 按 WWDC 年份筛选 | | `--no-transcript` | 跳过 WWDC 视频的文字记录 | | `--no-inheritance` | 跳过 apis 命令中的继承信息 | | `--no-conformances` | 跳过 apis 命令中的协议遵循信息 |

## 示例

### 搜索文档

```bash # Search for SwiftUI animations apple-docs search "SwiftUI animation"

# Find UITableView delegate methods apple-docs symbols "UITableViewDelegate" ```

### 检查平台兼容性

```bash # Check iOS version support for Vision framework apple-docs platform "VNRecognizeTextRequest"

# Find all SwiftUI views that support iOS 15+ apple-docs search "SwiftUI View iOS 15" ```

### 探索 API

```bash # Get inheritance hierarchy for UIViewController apple-docs apis "UIViewController"

# Find alternatives to deprecated API apple-docs similar "UILabel" ```

### WWDC 视频

```bash # Search for async/await sessions apple-docs wwdc-search "async await"

# Get specific video details with transcript apple-docs wwdc-video 2024-100

# List all available years apple-docs wwdc-years ```

### 浏览技术

```bash # List all Apple technologies apple-docs tech

# Get SwiftUI overview guide apple-docs overview "SwiftUI"

# Find Vision framework samples apple-docs samples "Vision" ```

## 缓存

底层 MCP 服务器包含: - API 文档缓存 30 分钟 - 搜索结果缓存 10 分钟 - 框架信息缓存 1 小时 - 内置 1,260+ 个 WWDC 离线视频 (35MB)

## 资源

- MCP 服务器: https://github.com/kimsungwhee/apple-docs-mcp - Apple 开发者文档: https://developer.apple.com/documentation/ - Apple 开发者: https://developer.apple.com/

更多产品