swift-api-design-guidelines
Skill by supabase
Guides an assistant to name and review public Swift declarations against the Swift API design guidelines. Useful before opening a pull request that adds or renames public API.
Install swift-api-design-guidelines
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-api-design-guidelines ~/.claude/skills/swift-api-design-guidelinesRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install swift-api-design-guidelines in Claude Code
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-api-design-guidelines ~/.gemini/antigravity-cli/skills/swift-api-design-guidelinesAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install swift-api-design-guidelines in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
swift-api-design-guidelines is an agent skill that tells an assistant how to name and review public, or API-shaped, Swift declarations in a repository. It covers naming clarity, argument labels, initializer and factory conventions, boolean and mutating/nonmutating naming, and terms of art. It is based on the Swift API design guidelines published on swift.org. The core test it gives is to read the call site, not the declaration.
The skill applies when writing new declarations, reviewing a diff for naming issues, or before a pull request that adds or renames public API. It includes a table of common mistakes with fixes. The source says it covers the naming layer only. Structural rules, such as enum-like values and Codable conformance, are in CODE_STYLE.md and should be used alongside it. It is aimed at developers working on Swift code in that repository.
Written from the project's SKILL.md and checked against it.
What it can do
- Call-site naming reviewChecks whether a Swift name reads clearly and fluently where it is used.
- Argument label rulesGuides when to omit, keep, or add argument labels, following Swift conventions.
- Initializer and factory conventionsCovers initializer argument labels and factory methods that start with make.
- Boolean and mutating namingExplains booleans as assertions and mutating and nonmutating pair naming.
- Terms of art and abbreviationsAdvises common words over jargon and avoiding non-standard abbreviations.
- Common mistakes tableLists frequent naming mistakes with the recommended fix for each.
Try asking
- Does this Swift method name read well at the call site?
- What should I call this new Swift initializer?
- Review this PR diff for Swift naming issues.
Good to know
- Covers the naming and clarity layer only, not structural rules.
- Enum-like value and Codable rules are in CODE_STYLE.md and must be used alongside it.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/skills/swift-api-design-guidelines/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to swift-api-design-guidelines
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-api-design-guidelines: common questions
Does this skill cover enum or Codable rules?
No, it covers naming. The source says CODE_STYLE.md's Enum-like Values and Codable Conformance sections cover the structural rules, and both should be used together when an enum-like value's shape changes.
When should an assistant use this skill?
Whenever it writes, names, or reviews public or API-shaped Swift declarations, especially before a pull request that adds or renames public API.
Which guidelines does this skill follow?
It is based on the Swift API design guidelines at swift.org/documentation/api-design-guidelines.
How do I install swift-api-design-guidelines?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is swift-api-design-guidelines free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is swift-api-design-guidelines safe to use?
It scores 79 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-api-design-guidelines?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
