Apple Documentation Lookup
Smart router to Apple Developer documentation using the sosumi CLI.
When Auto-Activated
- Looking up Apple framework APIs (SwiftUI, UIKit, Foundation, Combine, etc.)
- Checking method signatures, availability, or deprecation status
- Exploring new iOS/macOS APIs (WWDC sessions, new frameworks)
- Verifying Swift standard library behavior
- Answering "how does X work in SwiftUI/UIKit?" questions
Tool: sosumi CLI
Installed globally via npm install -g @nshipster/sosumi.
Fetches Apple Developer documentation and WWDC video transcripts as LLM-readable Markdown.
Commands
Search for documentation
sosumi search "query" [--json]
- Returns matching docs with titles, URLs, descriptions, and types
- Use
--json for structured output when you need to pick from results
- Searches across documentation, WWDC videos, and sample code
Fetch a documentation page
sosumi fetch <url-or-path>
- Accepts full URLs or paths:
sosumi fetch /documentation/swiftui/scrollview
sosumi fetch https://developer.apple.com/documentation/swift/array
- Also fetches WWDC session transcripts:
sosumi fetch /videos/play/wwdc2024/10133
- Returns full Markdown with code examples, availability info, and API details
Workflow
Search first when you don't know the exact path:
sosumi search "ScrollViewReader" --json
Fetch the result for full details:
sosumi fetch /documentation/swiftui/scrollviewreader
Apply to implementation using project patterns from IOS_DEVELOPMENT_GUIDE.md
When to Use
| Scenario |
Action |
| Need API signature/params |
sosumi fetch /documentation/framework/type |
| Check availability (iOS version) |
sosumi fetch → look at "Available on" |
| Explore new API options |
sosumi search "topic" --json → pick → fetch |
| WWDC session reference |
sosumi fetch /videos/play/wwdcYEAR/ID |
| Verify deprecation |
sosumi fetch → check for deprecation notices |
Critical Rules
- Search before guessing - Don't assume API signatures, look them up
- Check availability - Verify minimum iOS version matches project target
- Prefer project patterns - Use sosumi for reference, but implement using project conventions (AnytypeText, Color.Text.primary, etc.)
- Cache mentally - If you fetched a doc in this conversation, don't fetch it again
1---2name: apple-docs-developer3description: Apple Documentation Lookup4---5# Apple Documentation Lookup67Smart router to Apple Developer documentation using the `sosumi` CLI.89## When Auto-Activated1011- Looking up Apple framework APIs (SwiftUI, UIKit, Foundation, Combine, etc.)12- Checking method signatures, availability, or deprecation status13- Exploring new iOS/macOS APIs (WWDC sessions, new frameworks)14- Verifying Swift standard library behavior15- Answering "how does X work in SwiftUI/UIKit?" questions1617## Tool: sosumi CLI1819Installed globally via `npm install -g @nshipster/sosumi`.2021Fetches Apple Developer documentation and WWDC video transcripts as LLM-readable Markdown.2223## Commands2425### Search for documentation2627```bash28sosumi search "query" [--json]29```3031- Returns matching docs with titles, URLs, descriptions, and types32- Use `--json` for structured output when you need to pick from results33- Searches across documentation, WWDC videos, and sample code3435### Fetch a documentation page3637```bash38sosumi fetch <url-or-path>39```4041- Accepts full URLs or paths:42 - `sosumi fetch /documentation/swiftui/scrollview`43 - `sosumi fetch https://developer.apple.com/documentation/swift/array`44- Also fetches WWDC session transcripts:45 - `sosumi fetch /videos/play/wwdc2024/10133`46- Returns full Markdown with code examples, availability info, and API details4748## Workflow49501. **Search first** when you don't know the exact path:51 ```bash52 sosumi search "ScrollViewReader" --json53 ```54552. **Fetch the result** for full details:56 ```bash57 sosumi fetch /documentation/swiftui/scrollviewreader58 ```59603. **Apply to implementation** using project patterns from IOS_DEVELOPMENT_GUIDE.md6162## When to Use6364| Scenario | Action |65|----------|--------|66| Need API signature/params | `sosumi fetch /documentation/framework/type` |67| Check availability (iOS version) | `sosumi fetch` → look at "Available on" |68| Explore new API options | `sosumi search "topic" --json` → pick → fetch |69| WWDC session reference | `sosumi fetch /videos/play/wwdcYEAR/ID` |70| Verify deprecation | `sosumi fetch` → check for deprecation notices |7172## Critical Rules73741. **Search before guessing** - Don't assume API signatures, look them up752. **Check availability** - Verify minimum iOS version matches project target763. **Prefer project patterns** - Use sosumi for reference, but implement using project conventions (AnytypeText, Color.Text.primary, etc.)774. **Cache mentally** - If you fetched a doc in this conversation, don't fetch it again