skills/johnrogers/claude-swift-engineering/generating-swift-package-docs

generating-swift-package-docs

SKILL.md

Swift Package Documentation Generator

Generates API documentation for Swift package dependencies on-demand, extracting symbol information from Xcode's DerivedData to answer "what does this library do?"

Overview

When exploring unfamiliar dependencies, generate their documentation automatically instead of guessing from code. This tool uses interfazzle to extract symbol information from compiled modules.

How to Use

When asked about an unfamiliar Swift module import:

  1. Run: ./scripts/generate_docs.py "<module_name>" "<path_to.xcodeproj>"
  2. Script outputs path to cached documentation file
  3. Read the file and provide relevant information

Prerequisites: Project must be built once (DerivedData exists), interfazzle CLI installed.

See reference.md for error handling and details.

Weekly Installs
39
GitHub Stars
161
First Seen
Jan 23, 2026
Installed on
claude-code30
codex30
opencode29
cursor27
gemini-cli26
github-copilot24