swift-docc
Skill by supabase
Guides an AI assistant through writing Swift DocC documentation, including /// comments, Topics sections, and .docc catalogs. It is for Swift developers documenting a package.
Install swift-docc
Built from the published package, never by AI.
git clone --depth 1 https://github.com/supabase/supabase-swift /tmp/supabase-swift && mkdir -p ~/.claude/skills && cp -r /tmp/supabase-swift/.claude/skills/swift-docc ~/.claude/skills/swift-doccRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/supabase/supabase-swift /tmp/supabase-swift && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/supabase-swift/.claude/skills/swift-docc ~/.gemini/antigravity-cli/skills/swift-doccAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill teaches an AI assistant how to write Swift DocC documentation. It covers triple-slash comments on types, methods, and properties, with abstracts, Parameters, Returns, and Throws sections. It also explains how to add Topics groups so symbols appear in the navigation hierarchy.
The skill also covers creating a .docc catalog folder with a landing page marked @TechnologyRoot, and writing extension files that add or override symbol documentation. It ends with a verification step that runs ./scripts/test-docs.sh or swift package generate-documentation and checks for warnings. It is aimed at Swift developers who want consistent DocC output for a Swift package.
Written from the project's SKILL.md and checked against it.
What it can do
- Symbol documentationWrites /// comments with abstracts, Parameters, Returns, and Throws sections for Swift symbols.
- Topics hierarchyAdds ## Topics groups so members appear in the navigation sidebar and article links.
- Documentation catalogCreates a ModuleName.docc folder with a landing page marked @TechnologyRoot.
- Extension filesWrites extension .md files that add or override symbol docs using mergeBehavior.
- Build verificationRuns the docs script or swift package generate-documentation and checks for warnings.
- Common mistake fixesCorrects issues such as /** */ comments, @param tags, and single-backtick symbol links.
What you need
- Swift package with DocC support
- Swift toolchain to run swift package generate-documentation
Try asking
- Add DocC comments to the public methods in NetworkClient.swift
- Create a Auth.docc catalog with a landing page and Topics
- Fix the DocC warnings about broken symbol links in my package
Good to know
- Covers Swift DocC only
- Tutorials are covered in a separate tutorials.md file, not this skill
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/skills/swift-docc/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md6 KB -
tutorials.md2 KB
Alternatives to swift-docc
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
swift-docc: common questions
Does this skill write Swift DocC comments?
Yes. It shows how to write /// triple-slash comments with abstracts, Parameters, Returns, and Throws sections for Swift types, methods, and properties.
What is a Topics section in DocC?
A ## Topics section groups a type's members under named headings with symbol links. Without it, members may not appear in the navigation sidebar or article links.
How does the skill check the documentation?
It runs ./scripts/test-docs.sh if available, or swift package generate-documentation, and fixes every warning before finishing.
How do I install swift-docc?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is swift-docc free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is swift-docc safe to use?
It scores 84 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to swift-docc?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
