XCDocs
Apple's developer docs as a Swift package and CLI.
Install / Use
/learn @BitrigApp/XCDocsREADME
XCDocs
<img src="demo.gif" alt="Demo of the xcdocs CLI" width="720">XCDocs lets your agents quickly search local Apple docs without keeping Xcode open!
It uses the vector database powering Xcode's DocumentationSearch MCP tool under the hood, which is already on your Mac.
Includes:
xcdocsCLI & agent skill, designed for use by agents like Codex or Claude Code- Swift package, to integrate
XCDocsinto other tools
Availability
- macOS 26+
- Apple silicon only
- Xcode 26.3 RC or above has to be installed, but you don't need Xcode open.
Install
Ask your agent to help!
Recommended
Install with Homebrew:
brew install BitrigApp/tap/xcdocs
Alternative
Download the CLI from Releases and put it in /usr/local/bin.
You can also clone the repo and run swift build yourself. The resulting binary will be in .build/debug/xcdocs.
Agent Skill
- Codex: Tell agent to copy/symlink
.agents/skills/xcdocsto~/.agents/skills/xcdocs - Claude Code: Tell agent to copy/symlink
.agents/skills/xcdocsto~/.claude/skills/xcdocs
Usage
xcdocs --help
Search for documentation:
xcdocs search "swift testing"
xcdocs search "swift testing" --framework "Swift Testing" --limit 5
xcdocs search "swift testing" --kind article --limit 5
xcdocs search "swiftui color" --json
xcdocs search "swiftui color" --omit-content
Get an entry by identifier:
xcdocs get /documentation/Testing
xcdocs get /documentation/Testing --json
Swift API
XCDocs also exposes a Swift package which you can integrate into other tools.
To get started, add the repo to your Package.swift.
import XCDocs
let client = Client()
let searchResults = try await client.search(
"swift testing",
frameworks: ["Swift Testing"],
kinds: [.article],
limit: 5,
omitContent: false
)
let entry = try await client.entry(
for: "/documentation/Testing"
)
Development
Run tests:
swift test
Run formatting checks:
swift format lint --strict Package.swift
swift format lint --strict --recursive Sources Tests
Related Skills
node-connect
351.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
110.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
351.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
351.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
