ivan-magda/claude-superpowers/swift-docc-github-pages
Claude Code and agent skill by ivan-magda/claude-superpowers
- community
Checking that the SKILL.md file is still in the repository.
Use when setting up DocC documentation for a Swift package, deploying to GitHub Pages, or encountering "no such module 'UIKit'" during doc generation
Install
npx vskill@latest install ivan-magda/claude-superpowers/swift-docc-github-pagesSKILL.md
The same SKILL.md was published earlier as majiayu000/claude-skill-registry/swift-docc-github-pages.
Swift DocC to GitHub Pages
Automate Swift package documentation publishing to GitHub Pages via GitHub Actions.
Which Build Method?
Why? swift package generate-documentation builds for macOS. iOS-only packages fail with "no such module 'UIKit'".
Quick Reference
| Item | Value | |
|---|---|---|
| Target name | From Package.swift: .target(name: "MyLib") | |
| URL format | https://USER.github.io/REPO/documentation/targetnamelowercase/ | |
| Enable Pages | Settings → Pages → Source → "GitHub Actions" |
Workflow
Create .github/workflows/docc.yml. Replace TARGET_NAME, TARGET_NAME_LOWERCASE, REPO_NAME.
iOS-only (no Package.swift changes needed):
Cross-platform: Add dependency to Package.swift, replace Build Documentation step:
Local Testing
Common Mistakes
| Error | Fix | |
|---|---|---|
| "no such module 'UIKit'" | iOS-only package: use xcodebuild docbuild | |
| 404 at root URL | Add redirect index.html step | |
| Empty documentation | Ensure types are public | |
| Wrong URL case | Target in URL is always lowercase | |
| Pages not deploying | Enable GitHub Actions as Pages source |
Optional
Custom docs: Add Sources/TARGET_NAME/Documentation.docc/ with landing page and articles.
Swift Package Index: Add .spi.yml for automatic hosting:
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/swift/skills/swift-docc-github-pages/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ivan-magda/claude-superpowers/swift-docc-github-pages)