AgentSkillsCN

apple-docs-index

iOS、macOS及相关框架的Apple开发者文档索引。在查询某个框架中有哪些API、浏览可用文档,或决定要获取哪些文档时使用。涵盖SwiftUI、XCTest、HealthKit、Combine、SwiftData等众多框架。

SKILL.md
--- frontmatter
name: apple-docs-index
user-invocable: true
description: Index of Apple developer documentation for iOS, macOS, and related frameworks. Use when looking up what APIs exist in a framework, browsing available documentation, or deciding what docs to fetch. Covers SwiftUI, XCTest, HealthKit, Combine, SwiftData, and more.

Apple Documentation Index

This skill provides indexes of Apple framework documentation. Use these to:

  • Browse available APIs in a framework
  • Find the path to specific documentation
  • Decide what detailed docs to download

Available Indexes

FrameworkFileSizeTopics
SwiftUI../swiftui/swiftui-overview.md907KBViews, modifiers, navigation, state
XCTestxctest-index.md55KBTesting, assertions, expectations
XCUIAutomationxcuiautomation-index.md58KBUI testing, elements, queries
HealthKithealthkit-index.md312KBHealth data, workouts, records
Combinecombine-index.md153KBPublishers, subscribers, operators
SwiftDataswiftdata-index.md86KBModels, containers, queries
Observationobservation-index.md3KB@Observable macro

How to Use

1. Browse an Index

bash
# See what's in HealthKit
cat healthkit-index.md | head -100

# Search for specific topic
grep -i "workout" healthkit-index.md
grep -i "navigation" ../swiftui/swiftui-overview.md

2. Find Documentation Paths

Index files list all available documentation pages. Each entry shows the path:

markdown
- [HKWorkout](/documentation/healthkit/hkworkout)
- [NavigationStack](/documentation/swiftui/navigationstack)

3. Download Detailed Docs

Once you find what you need, download the full documentation:

bash
# From an index entry like "/documentation/healthkit/hkworkout"
curl -sL "https://sosumi.ai/documentation/healthkit/hkworkout" > hkworkout.md

# Then grep as needed
grep -i "startDate" hkworkout.md

Adding More Indexes

Download any framework index:

bash
# Foundation (large)
curl -sL "https://sosumi.ai/documentation/foundation" > foundation-index.md

# UIKit (large)
curl -sL "https://sosumi.ai/documentation/uikit" > uikit-index.md

# Core Data
curl -sL "https://sosumi.ai/documentation/coredata" > coredata-index.md

# Any framework
curl -sL "https://sosumi.ai/documentation/{framework}" > {framework}-index.md

The sosumi.ai Technique

Apple's developer.apple.com uses JavaScript rendering. Replace with sosumi.ai for markdown:

code
https://developer.apple.com/documentation/swiftui/view
→
https://sosumi.ai/documentation/swiftui/view

See docs/apple-docs-for-llms.md for full documentation.